On Wed, Sep 9, 2020 at 9:43 AM H. Nikolaus Schaller <[email protected]> wrote:
>
> Hi,
> I have a custom board based on osd3358 and a little trouble getting the
> "poweroff" command work as expected.
>
> The device tree is almost the same as am335x-pocketbeagle.dts and I am 
> running a v5.9-rc4 kernel.
> Therefore,
>
> &rtc {
>         system-power-controller;
> };
>
> is defined.
>
> The board is powered through USB (haven't tried other options).
>
> "poweroff" results in:
>
> ...
> [info] Hardware Clock updated to Wed Sep  9 14:31:56 UTC 2020.
> [ ok ] Deactivating swap...done.
> [  200.324307] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
> [info] Will now halt.
> [  202.548073] reboot: Power down
>
> After that, the gpio-led showing cpu activity trigger goes off for a moment
> but after that it is flickering as if there is still CPU activity with some
> 1 second modulation.
>
> Pressing the reset button immediately reboots.
>
> So this means that "poweroff" does not shut down the PMIC and the processor
> is still idling.
>
> Pressing the power button for 10 seconds does a forced shutdown and the
> reset button is without significance.
>
> And hints how to make "poweroff" work are welcome.

This two parts to make it work with the PocketBeagle, first is the
patch you have and then also configure the RTC in u-boot to use an
internal 32Khz reference:

U-boot doesn't make this too easy, so some things need to be moved around..

https://github.com/RobertCNelson/Bootloader-Builder/blob/master/patches/v2019.04/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch#L185-L207

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYhKA_73ig%3DwBjaEgsMpr_XMBJeV3gMxbmNq6i1aoarsYw%40mail.gmail.com.

Reply via email to