Jump to content

Recommended Posts

Posted

If possible, I would like to shutdown or wake up the Odroid N2 using a GPIO button. I followed the guide here: https://wiki.odroid.com/odroid-n2/application_note/gpio/gpio_key_wakeup. The button LED works, but the button does not trigger shutdown or wake up using pin 9 and 11. Has anyone gotten a power button to work on the Odroid N2? Is there a specific Odroid module/software that isn't installed by default in Armbian?

 

Additions to /boot/boot.ini

setenv gpiopower "479"
setenv bootargs ${bootargs} gpiopower=${gpiopower}

 

After these additions, /proc/cmdline shows "gpiopower=479" as expected.

 

I'm running Armbian 21.02.2 Buster on the Odroid N2 (kernel 5.10.16-meson64), running headless with OS installed on eMMC.

The power button and led hardware is functioning as expected when tested with a multi-meter.

 

Thank you!

Posted

HardKernel has added non-standard "features" to their kernels in the past. For example, see THIS POST. This may be one of them.

 

Notably, kernel arguments are generally of the MODULE.PARAMETER=VALUE form, and "gpiopower" doesn't fit that at all.

 

So, if you want the kernel to handle it, you can enable it by specifying a DTB overlay, adding "gpio-poweroff" to your specified GPIO pin. See these examples:

Else you can write a script to monitor that GPIO and call shutdown when desired.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines