OneCloud GPIO
OneCloud GPIO Pinout
The OneCloud board exposes multiple GPIO headers for functions such as power control. The numbering for the Wi-Fi pad starts at the bottom-left corner and increases counterclockwise.
GPIO mapping
Below is the mapping between available GPIOs and pads:
Example
Using pad 26 as an example to determine the corresponding GPIO configuration:
-
From the physical position, pad 26 corresponds to sysfs gpio-436
- Note: on Linux kernel >= 6.x, add an offset of 91, so it becomes gpio-527
-
The software label "J2 Header Pin 16" maps to gpiochip0 line 7 in gpioinfo
-
Control this GPIO in
/etc/kvmd/custom_atx/gpio.sh
with:
Direct GPIO wiring
Notes
- May not be suitable for non-standard ATX power devices
- For Huanan X99-F8 and K9-ETH boards:
- Connect GPIO to power-on jumper pin 7, and GND to pin 9 (not the usual 5/7). Incorrect wiring may prevent the board from powering on or break the RST button
This solution applies to both old and new OneCloud boards, using the GPIO reserved for the IR interface to physically control power on/off:
- Requires only one GPIO group (3.3V level)
-
Solder two wires to the IR module reserved interface:
- GPIO-420 → power-on jumper positive
- GND → power-on jumper negative
Optocoupler isolation
For improved safety, you can use an optocoupler isolation board: