reboot does not work in yocto Krogoth with systemd [SOLVED]

Moderators: Oren.R, Eran.M, fradensky

pmarzo
Posts: 15
Joined: Tue Nov 15, 2016 10:44 am

reboot does not work in yocto Krogoth with systemd [SOLVED]

Postby pmarzo » Fri Nov 18, 2016 8:21 am

If I build a core-image-minimal of yocto Krogoth and flash an sdcard for the iMx6ul everything works as expected.
But if I switch on systemd uncommenting the lines of the machine config and then try to do a reboot the system hangs instead of rebooting.
It happens even with the evaluation board.

This is my log:
$reboot
...
systemd-shutdown[1]: All loop devices detached.
systemd-shutdown[1]: Detaching DM devices.
systemd-shutdown[1]: All DM devices detached.
systemd-shutdown[1]: Rebooting with argument 'reboot'.
imx2-wdt 20bc000.wdog: Device shutdown: Expect reboot!
reboot: Restarting system with command 'reboot'
Reboot failed -- System halted

cat /proc/version
Linux version 4.1.15-6UL (pmarzo@Lynx) (gcc version 5.3.0 (GCC) ) #2 SMP PREEMPT Mon Nov 14 15:52:13 CET 2016

cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 24.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5

Hardware : Freescale i.MX6 Ultralite (Device Tree)
Revision : 0000
Serial : 0000000000000000

fradensky
Posts: 41
Joined: Sun Nov 13, 2016 7:55 am

Re: reboot does not work in yocto Krogoth with systemd

Postby fradensky » Tue Nov 29, 2016 11:39 am

Hi,

Please edit /etc/systemd/system.conf and replace

#ShutdownWatchdogSec=10min

by

ShutdownWatchdogSec=0

On next boot the reboot command will function properly.

Felix.

pmarzo
Posts: 15
Joined: Tue Nov 15, 2016 10:44 am

Re: reboot does not work in yocto Krogoth with systemd

Postby pmarzo » Tue Nov 29, 2016 3:21 pm

Hello, I've set this ShutdownWatchdogSec=0 instead of #ShutdownWatchdogSec=10min
But no luck, the same failure as before.

fradensky
Posts: 41
Joined: Sun Nov 13, 2016 7:55 am

Re: reboot does not work in yocto Krogoth with systemd

Postby fradensky » Tue Nov 29, 2016 3:32 pm

Hi,

Does reboot work in SystemV init configuration ?

Felix.

pmarzo
Posts: 15
Joined: Tue Nov 15, 2016 10:44 am

Re: reboot does not work in yocto Krogoth with systemd

Postby pmarzo » Tue Nov 29, 2016 3:35 pm

Yes it does.
In fact if instead of zero I put ShutdownWatchdogSec=1 it works with systemd too

[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Stopped target Paths.
[ OK ] Stopped Dispatch Password Requests to Console Directory Watch.
[ OK ] Stopped Forward Password Requests to Wall Directory Watch.
[ OK ] Reached target Shutdown.
watchdog watchdog0: watchdog did not stop!
systemd-shutdown[1]: Sending SIGTERM to remaining processes...
systemd-journald[169]: Received SIGTERM from PID 1 (systemd-shutdow).




U-Boot SPL 2015.10 (Nov 14 2016 - 16:26:30)
i.MX6UL SOC
Part number: VSM-6UL-601
Assembly: AS160606667
Date of production: 2016 Jun 30
DART-6UL configuration: NAND WIFI
Ram size: 512
Boot Device: NAND
NAND : 512 MiB

fradensky
Posts: 41
Joined: Sun Nov 13, 2016 7:55 am

Re: reboot does not work in yocto Krogoth with systemd

Postby fradensky » Wed Nov 30, 2016 6:29 pm

What SOM and carrier board revisions do you have ? With SOM rev 1.21 and carrier board rev 1.21 the problem is definitely fixed by setting ShutdownWatchdogSec=0.

fradensky
Posts: 41
Joined: Sun Nov 13, 2016 7:55 am

Re: reboot does not work in yocto Krogoth with systemd

Postby fradensky » Mon Dec 05, 2016 6:19 pm

Kernel watchdog driver was fixed. No changes to /etc/systemd/system.conf are necessary.

pmarzo
Posts: 15
Joined: Tue Nov 15, 2016 10:44 am

Re: reboot does not work in yocto Krogoth with systemd [SOLVED]

Postby pmarzo » Mon Dec 12, 2016 1:45 pm

Yes, that fixes the problem.
Thank you!


Return to “Yocto”

Who is online

Users browsing this forum: No registered users and 1 guest