SpikeyGG Posted January 27, 2019 Posted January 27, 2019 Armbianmonitor: http://ix.io/1zmA I have two Orange PI +2E machines. The first one I got was a while ago so it's running a 3.4.113 kernel (16.04), the more recent one I purchased is running 4.19.13 kernel (18.04) - both are Ubuntu Armbian. I've noticed when I use the "shutdown now" command on the older pi, the board actually powers off but when I use the same command on the newer kernel board, it never powers down. The newer board appears to stop all services and eventually report that the system is halted but it remains in that state. Is there a way to enable it to power off after a "shutdown now" is issued? I'm wondering if this is a kernel difference but it may be something else completely. Thanks, -Greg
Igor Posted January 27, 2019 Posted January 27, 2019 Power down function is not supported yet on H3 boards due to lack of support for https://linux-sunxi.org/AR100 inside the kernel.
SpikeyGG Posted January 29, 2019 Author Posted January 29, 2019 On 1/27/2019 at 11:54 AM, Igor said: Power down function is not supported yet on H3 boards due to lack of support for https://linux-sunxi.org/AR100 inside the kernel. Thanks Igor, but this functionality was supported on older kernel 3.4.113 and subsequently removed from the newer kernel?
Igor Posted January 29, 2019 Posted January 29, 2019 1 minute ago, SpikeyGG said: removed from the newer kernel? Support for those chips in a modern kernel were mostly written from scratch. Due to incompatibility with a modern kernel and due to bad code quality ... which would never been accepted to the mainline kernel in a first place.
enjoyneering Posted June 7, 2019 Posted June 7, 2019 Hi Igor, Any ideas when they are going to add shutdown support in the modern kernel?
Igor Posted June 7, 2019 Posted June 7, 2019 23 minutes ago, enjoyneering said: Hi Igor, Any ideas when they are going to add shutdown support in the modern kernel? Can't tell, but here you can monitor progress:https://github.com/crust-firmware/crust It's not a kernel problem.
avg@freebsd Posted August 11, 2020 Posted August 11, 2020 On 12/12/2019 at 5:12 PM, wsian said: Seems that kernel 5.3 solve this problem. I wonder how it does that. AFAICT, boards like Orange Pi PC Plus do not have any power management unit (e.g., something like AXP209). Also, I do not see any PSCI support for shutdown. No GPIO shutdown either. There does not seem to be a syscon poweroff method too. I looked at various drivers under drivers/reset and beyond and I could not find anything that would be compatible with Orange Pi H3-based boards. So, I am very curious what mechanism Linux or Armbian uses for powering off on those boards .
062621AM Posted August 12, 2020 Posted August 12, 2020 On 12/12/2019 at 11:12 PM, wsian said: Seems that kernel 5.3 solve this problem. I tried a few months back. My OPiPC+ shows halted on the screen. Are you sure?
avg@freebsd Posted August 12, 2020 Posted August 12, 2020 Yes, I am seeing the same with Armbian 20.05.4 Focal (Linux 5.4.45-sunxi). At this point I think that the closest to soft poweroff would be some sort of custom firmware indeed. The firmware would put a system into a deepest sleep state possible. If it's ever woken up then it would reset the system. I see some code in linux-sunxi repo that does something like that. It looks like it copies some special code to a special address in SRAM (?). Probably that code gets run to handle a wake-up or something like that. I cannot find that code in the modern linux kernel.
Recommended Posts