> Am 09.09.2020 um 16:48 schrieb Robert Nelson <robertcnel...@gmail.com>:
> 
> On Wed, Sep 9, 2020 at 9:43 AM H. Nikolaus Schaller <h...@computer.org> 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

Ah, ok. I'll look into that.

But does it mean it is not a kernel problem? Is there no kernel-only solution 
(without touching u-boot)?
I do not need the RTC or RTC wakeup, just safe power-down by user-command...

BR and thanks,
Nikolaus

> 
> 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 beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/CAOCHtYhKA_73ig%3DwBjaEgsMpr_XMBJeV3gMxbmNq6i1aoarsYw%40mail.gmail.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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/2CD47C2A-B8E5-4C4F-8E8E-439E3B412A61%40computer.org.

Reply via email to