Jump to content

Recommended Posts

Posted
Armbianmonitor:

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 changed the title to Shutdown operation doesn't power Orange Pi down
  • Igor pinned this topic
Posted
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?

Posted
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.

Posted
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 .

Posted
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?

Posted

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.

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

Important Information

Terms of Use - Privacy Policy - Guidelines