On 25/08/17 19:40, Robert Nelson wrote:
> Your overlays look good, have you tried combining them into one file?
> 
> If it works fine as one file (BB-I2C2-DS1388-00A0.dts) , can you
> submit a pull request for:
> 
> https://github.com/beagleboard/bb.org-overlays/tree/master/src/arm
> 
> and i'll push it out for all users. ;)

Thanks Robert,

The overlays work when combined into a single file, however I've noticed
that with the onboard RTC disabled, the beaglebone black no longer
powers off.

I'm guessing that the RTC is being used during shutdown?  I'm not sure
whether the power off code is just using the RTC to trigger the next
stage of the shutdown code, or if it's actually used to trigger the HW
shutdown sequence directly.  If the former then perhaps it would work OK
with the ds1338 if it was available earlier in the boot sequence?

Any ideas, and if waiting for ds1338 init is the answer how to arrange
for that?

If omap rtc is essential to the shutdown sequence, then I suppose I'll
see if I can either set the ds1338 to be /dev/rtc0 or just get linked to
/dev/rtc e.g. using udev?



When the 'poweroff' command is issued, then I get:

omap_rtc disabled at boot:

[    3.788171] bone_capemgr bone_capemgr: initialized OK.
[    3.800527] PM: rtc0 not available
[    3.805005] hctosys: unable to open rtc device (rtc0)
...
[    4.856569] rtc-ds1307 2-0068: rtc core: registered ds1338 as rtc0
[    4.900682] rtc-ds1307 2-0068: 56 bytes nvram
[    4.934936] PM: bootloader does not support rtc-only!
...
[    7.036492] systemd[1]: System time before build time, advancing clock.

omap_rtc disabled at poweroff:

[   57.328742] systemd-shutdown[1]: Powering off.
...
[   57.378562] reboot: System halted
<remains powered>



omap_rtc NOT disabled (ds1338 also enabled) - at boot:

[    3.365041] omap_rtc 44e3e000.rtc: already running
[    3.370543] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc
as rtc0
...
[    3.800087] bone_capemgr bone_capemgr: initialized OK.
[    3.812568] PM: bootloader does not support rtc-only!
...
[    3.819111] omap_rtc 44e3e000.rtc: setting system clock to 2017-09-11
12:55:47 UTC
[    4.865031] rtc-ds1307 2-0068: rtc core: registered ds1338 as rtc1
[    4.894450] rtc-ds1307 2-0068: 56 bytes nvram
...

omap_rtc NOT disabled - at 'poweroff':

[   53.181208] systemd-shutdown[1]: Powering off.
...
[   53.231249] reboot: Power down
[   53.234626] System will go to power_off state in approx. 1 second
<power actually turns off>


Cheers,

Tim.

-- 
South East Open Source Solutions Limited
Registered in England and Wales with company number 06134732.
Registered Office: 2 Powell Gardens, Redhill, Surrey, RH1 1TQ
VAT number: 900 6633 53  http://seoss.co.uk/ +44-(0)1273-808309

-- 
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/a17b78c8-4141-0698-8c69-9178695d4982%40seoss.co.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to