Re: [beagleboard] pocket beagle not clean shutdown?
On Tue, Mar 19, 2019 at 3:09 PM Kristian Bertram wrote: > > No, i just have to use kernel 4.9 because og some legacy code unfortunately, > so the issues is still there for me Well it's a two part fix. 1: u-boot has to set the correct rtc bit: https://github.com/RobertCNelson/Bootloader-Builder/blob/master/patches/v2018.09/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch#L173-L195 2: the kernel has to have the correct bit set: https://github.com/beagleboard/linux/blob/4.9/arch/arm/boot/dts/am335x-pocketbeagle-common.dtsi#L1127-L1129 When those two are set, it'll properly shutdown. 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/CAOCHtYiFgxP_iT61POB1Bv9y4xbhSS4NGNA-pGKQKmViX1OB0A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] pocket beagle not clean shutdown?
On Tue, Mar 19, 2019 at 1:23 PM wrote: > > How exactly do i change the value of the register? I have no idea which file > to look for The default BeagleBoard images already take care of this issue now.. Are you trying to modify that register in a non-u-boot, non-linux OS? 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/CAOCHtYh75VSqP_TXmBPfWpDVDvRHR74QHTZX6HaeXr2LgmvsGA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] pocket beagle not clean shutdown?
How exactly do i change the value of the register? I have no idea which file to look for onsdag den 4. april 2018 kl. 15.55.41 UTC+2 skrev beatb...@gmail.com: > > The problem seems to be, that the rtc has no active oscillator: > If I set RTC_OSC_REG to 0x40 (internal oscillator) shutdown works normal. > But I'm not sure whether this is the correct way to solve this issue. > > Regards > Beat Bieler > > -- 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/62d71d5d-559c-4e84-a704-8e1be43cc507%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] pocket beagle not clean shutdown?
On Wed, Apr 4, 2018 at 7:01 AM, wrote: > The problem seems to be, that the rtc has no active oscillator: > If I set RTC_OSC_REG to 0x40 (internal oscillator) shutdown works normal. > But I'm not sure whether this is the correct way to solve this issue. Thanks guys, with the help of Matthijs, we have this implement in u-boot and the kernel.. My PocketBeagle now shut's down.. You can get the updated bootloader via: debian@beaglebone:~$ sudo /opt/scripts/tools/developers/update_bootloader.sh I've also add a print statement about the RTC U-Boot 2018.03-2-gac9cce7c6a (Apr 05 2018 - 13:07:46 -0500), Build: jenkins-github_Bootloader-Builder-47 CPU : AM335X-GP rev 2.1 I2C: ready DRAM: 512 MiB No match for driver 'omap_hsmmc' No match for driver 'omap_hsmmc' Some drivers were not found Reset Source: Power-on reset has occurred. RTC 32KCLK Source: Internal. <--- Pocket: Internal BeagleBone Black: External Right now only v4.16.0-bone7 has the kernel change, and it's building right now http://gfnd.rcn-ee.org:81/farm/deb/ I'll start the backport shortly to previous kernels.. 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/CAOCHtYjzLqvFZKJt0kNyzmuWvj_aX7NXn6he8vb%2BQyZVZidVaw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] pocket beagle not clean shutdown?
The problem seems to be, that the rtc has no active oscillator: If I set RTC_OSC_REG to 0x40 (internal oscillator) shutdown works normal. But I'm not sure whether this is the correct way to solve this issue. Regards Beat Bieler -- 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/636b5aa5-a2fb-4360-ab6e-32b3da29c9f3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] pocket beagle not clean shutdown?
On Fri, Mar 16, 2018 at 4:13 PM, Fred Kerr wrote: > Using the serial connection to bacon bits cape to pocket beagle, it seems > that it doesn't shut down cleanly? > > debian@beaglebone:~/src$ sudo shutdown -h now > [85060.880449] reboot: Power down > [85063.372620] rtc_power_off failed, bailing out. > [85063.398178] Kernel panic - not syncing: Attempted to kill init! > exitcode=0x00 > [85063.398178] > [85063.407436] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted > 4.9.82-ti-r102 #1 > [85063.414625] Hardware name: Generic AM33XX (Flattened Device Tree) > [85063.420846] [] (unwind_backtrace) from [] > (show_stack+0x) > [85063.428686] [] (show_stack) from [] > (dump_stack+0x80/0x9) > [85063.436003] [] (dump_stack) from [] > (panic+0x100/0x28c) > [85063.443055] [] (panic) from [] > (complete_and_exit+0x0/0x) > [85063.450450] [] (complete_and_exit) from [] > (SyS_reboot+0) > [85063.458545] [] (SyS_reboot) from [] > (ret_fast_syscall+0x) > [85063.466330] ---[ end Kernel panic - not syncing: Attempted to kill init! > exi0 > [85063.466330] It's fine, the mmc/drive was already down. We just need to figure out the proper way to tell the RTC to power off the unit.. 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/CAOCHtYir81D5%2BEgR6cWHkyc6T%2BjYM0jCVhcSvj2O8vNw86xaXQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[beagleboard] pocket beagle not clean shutdown?
Using the serial connection to bacon bits cape to pocket beagle, it seems that it doesn't shut down cleanly? debian@beaglebone:~/src$ sudo shutdown -h now [85060.880449] reboot: Power down [85063.372620] rtc_power_off failed, bailing out. [85063.398178] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00 [85063.398178] [85063.407436] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 4.9.82-ti-r102 #1 [85063.414625] Hardware name: Generic AM33XX (Flattened Device Tree) [85063.420846] [] (unwind_backtrace) from [] (show_stack+0x) [85063.428686] [] (show_stack) from [] (dump_stack+0x80/0x9) [85063.436003] [] (dump_stack) from [] (panic+0x100/0x28c) [85063.443055] [] (panic) from [] (complete_and_exit+0x0/0x) [85063.450450] [] (complete_and_exit) from [] (SyS_reboot+0) [85063.458545] [] (SyS_reboot) from [] (ret_fast_syscall+0x) [85063.466330] ---[ end Kernel panic - not syncing: Attempted to kill init! exi0 [85063.466330] -- 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/9238bf2e-324e-4c15-a5cb-098cab8ae733%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.