This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM4372: shutdown and restart problem (Linux)

Part Number: AM4372
Other Parts Discussed in Thread: TMDSEVM437X

Hi,

We are using a custom board mostly based on TMDSEVM437X. u-boot is taken from Linux SDK 06.01.00.08 with changed RAM and MMC settings. TPS firmware is unchanged (tps65218D0rslt).

Everything is working fine except one weird issue:

  1. "init 0" will cause a perfect reboot.
  2. "reboot" will also restart the system but it will then switch off shortly after starting u-boot SPL. There is not special point, the more debug messages, the earlier in the boot stage. It seems to be more a timing thing.

In both cases Linux shuts down normally without any specific error messages.

[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
[  OK  ] Started Reboot.
[  OK  ] Reached target Reboot.
[ 1611.740142] watchdog: watchdog0: watchdog did not stop!
[ 1611.754513] systemd-shutdow: 41 output lines suppressed due to ratelimiting
[ 1611.875561] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 1613.233920] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 1613.260088] systemd-journald[79]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 1613.307350] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 1613.328506] systemd-shutdown[1]: Hardware watchdog 'OMAP Watchdog', version 0
[ 1613.340132] systemd-shutdown[1]: Unmounting file systems.
[ 1613.352234] [771]: Remounting '/' read-only in with options '(null)'.
[ 1613.715790] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
[ 1613.741911] systemd-shutdown[1]: All filesystems unmounted.
[ 1613.747776] systemd-shutdown[1]: Deactivating swaps.
[ 1613.753136] systemd-shutdown[1]: All swaps deactivated.
[ 1613.758976] systemd-shutdown[1]: Detaching loop devices.
[ 1613.771974] systemd-shutdown[1]: All loop devices detached.
[ 1613.807249] reboot: Restarting system

[ OK ] Reached target Shutdown.
[ OK ] Reached target Final Step.
[ OK ] Started Power-Off.
[ OK ] Reached target Power-Off.
[ 58.084660] systemd-shutdow: 42 output lines suppressed due to ratelimit
[ 58.207927] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 58.239158] systemd-shutdown[1]: Sending SIGTERM to remaining processes.
[ 58.257966] systemd-journald[73]: Received SIGTERM from PID 1 (systemd-s w).
[ 58.316545] systemd-shutdown[1]: Sending SIGKILL to remaining processes.
[ 58.341920] systemd-shutdown[1]: Unmounting file systems.
[ 58.354351] [643]: Remounting '/' read-only in with options '(null)'.
[ 58.404360] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
[ 58.424986] systemd-shutdown[1]: All filesystems unmounted.
[ 58.430631] systemd-shutdown[1]: Deactivating swaps.
[ 58.436452] systemd-shutdown[1]: All swaps deactivated.
[ 58.441736] systemd-shutdown[1]: Detaching loop devices.
[ 58.454765] systemd-shutdown[1]: All loop devices detached.
[ 58.460882] systemd-shutdown[1]: Detaching DM devices.
[ 58.496840] reboot: Power down

Both outputs are 100% identical to the EVM.

The same Linux image is switching off an rebooting the EVM (and with different bootloader also BBB) without problems.

Any ideas?

Regards
Peter

  • Hi Peter,
    I have ran test with SDK6.3 on AM437x GP EVM, and didn't observed the issue.
    - reboot: reboot the system
    - init 0: power off the system
    - init 6: reboot the system

    I'm attaching three log files for your reference.

    Best,

    -Hong

    am3_6.3_reboot.txt
    root@am437x-evm:~#reboot
    root@am437x-evm:~#          Stopping Reboot and dump vmcore via kexec...
    [  OK  ] Stopped target Timers.
             Stopping User Manager for UID 0...
    [  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Stopped target Sound Card.
             Stopping Save/Restore Sound Card State...
             Stopping Session c1 of user root.
             Unmounting /run/media/mmcblk1p1...
             Stopping Redis In-Memory Data Store...
             Stopping Avahi mDNS/DNS-SD Stack...
             Stopping Simple Network Management Protocol (SNMP) Daemon....
             Stopping Job spooling tools...
             Stopping D-Bus System Message Bus...
             Stopping Periodic Command Scheduler...
    [  OK  ] Stopped target Login Prompts.
             Stopping Lightning Fast Webserver With Light System Requirements...
    [  OK  ] Stopped target Containers.
             Stopping Getty on tty1...
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
             Stopping NFS status monitor for NFSv2/3 locking....
    [  OK  ] Stopped Daily rotation of log files.
    [  OK  ] Stopped target System Time Synchronized.
             Stopping Serial Getty on ttyS0...
    [  OK  ] Stopped Wait for Network to be Configured.
    [  OK  ] Stopped Simple Network Management Protocol (SNMP) Daemon..
    [  OK  ] Stopped Periodic Command Scheduler.
    [  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
    [  OK  ] Stopped D-Bus System Message Bus.
    [  OK  ] Stopped Job spooling tools.
    [  OK  ] Stopped Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
    [  OK  ] Stopped weston.service.
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped Serial Getty on ttyS0.
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Stopped Reboot and dump vmcore via kexec.
    [  OK  ] Stopped Save/Restore Sound Card State.
    [  OK  ] Unmounted /run/media/mmcblk1p1.
    [  OK  ] Stopped Redis In-Memory Data Store.
    [  OK  ] Stopped Session c1 of user root.
             Stopping Login Service...
    [  OK  ] Stopped File System Check on /dev/mmcblk1p1.
    [  OK  ] Removed slice system-systemd\x2dfsck.slice.
    [  OK  ] Removed slice User Slice of UID 0.
             Stopping /run/user/0 mount wrapper...
    [  OK  ] Removed slice system-serial\x2dgetty.slice.
    [  OK  ] Removed slice system-getty.slice.
             Stopping Permit User Sessions...
             Stopping rc.pvr.service...
    [  OK  ] Stopped target Host and Network Name Lookups.
             Stopping RPC Bind Service...
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Stopped Login Service.
    [  OK  ] Stopped RPC Bind Service.
    [  OK  ] Stopped /run/user/0 mount wrapper.
    [  OK  ] Stopped Permit User Sessions.
    [  OK  ] Stopped rc.pvr.service.
    [  OK  ] Stopped target Remote File Systems.
    [  OK  ] Stopped target Network.
             Stopping Network Name Resolution...
    [  OK  ] Removed slice system-user\x2druntime\x2ddir.slice.
    [  OK  ] Stopped target Basic System.
    [  OK  ] Stopped target Slices.
    [  OK  ] Stopped target Sockets.
    [  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Closed RPCbind Server Activation Socket.
    [  OK  ] Closed dropbear.socket.
    [  OK  ] Stopped target Paths.
    [  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
    [  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Stopped target System Initialization.
             Stopping Load/Save Random Seed...
             Stopping Update UTMP about System Boot/Shutdown...
             Stopping Load/Save Screen Backlight�ightness of backlight:backlight...
             Stopping Network Time Synchronization...
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Network Name Resolution.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Load/Save Screen Backlight Brightness of backlight:backlight.
    [  OK  ] Stopped Update UTMP about System Boot/Shutdown.
    [  OK  ] Removed slice system-systemd\x2dbacklight.slice.
             Stopping Network Service...
    [  OK  ] Stopped Network Service.
    [  OK  ] Stopped Apply Kernel Variables.
    [  OK  ] Stopped Load Kernel Modules.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /var/volatile...
             Unmounting Temporary Directory (/tmp)...
             Unmounting /media/ram...
    [FAILED] Failed unmounting /var/volatile.
    [FAILED] Failed unmounting Temporary Directory (/tmp).
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Stopped target Local File Systems (Pre).
    [  OK  ] Stopped Create Static Device Nodes in /dev.
    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Stopped target Swap.
    [  OK  ] Reached target Shutdown.
    [  OK  ] Reached target Final Step.
             Starting Reboot...
    [   86.375758] watchdog: watchdog0: watchdog did not stop!
    [   86.393565] systemd-shutdow: 25 output lines suppressed due to ratelimiting
    [   86.431473] systemd-shutdown[1]: Syncing filesystems and block devices.
    [   86.522628] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [   86.557244] systemd-journald[73]: Received SIGTERM from PID 1 (systemd-shutdow).
    [   86.774229] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [   86.793286] systemd-shutdown[1]: Hardware watchdog 'OMAP Watchdog', version 0
    [   86.804257] systemd-shutdown[1]: Unmounting file systems.
    [   86.814563] [953]: Unmounting '/var/volatile'.
    [   86.833079] [954]: Unmounting '/tmp'.
    [   86.864034] [955]: Remounting '/' read-only in with options '(null)'.
    [   86.918557] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [   86.939052] systemd-shutdown[1]: All filesystems unmounted.
    [   86.944867] systemd-shutdown[1]: Deactivating swaps.
    [   86.951097] systemd-shutdown[1]: All swaps deactivated.
    [   86.956491] systemd-shutdown[1]: Detaching loop devices.
    [   86.967395] systemd-shutdown[1]: All loop devices detached.
    [   87.001762] reboot: Restarting system
    
    U-Boot SPL 2019.01-g333c3e72d3 (Apr 20 2020 - 05:11:06 +0000)
    Trying to boot from MMC1
    SPL: Please implement spl_start_uboot() for your board
    SPL: Direct Linux boot not active!
    
    
    U-Boot 2019.01-g333c3e72d3 (Apr 20 2020 - 05:11:06 +0000)
    
    CPU  : AM437X-GP rev 1.1
    Model: TI AM437x GP EVM
    DRAM:  2 GiB
    PMIC:  TPS65218
    NAND:  512 MiB
    MMC:   OMAP SD/MMC: 0
    Loading Environment from FAT... *** Warning - bad CRC, using default environment
    
    Net:   
    Warning: ethernet@4a100000 using MAC address from ROM
    eth0: ethernet@4a100000
    Hit any key to stop autoboot:  2  1  0 
    => 

    am3_6.3_init0.txt
    root@am437x-evm:~# init --h
    init [OPTIONS...] {COMMAND}
    
    Send control commands to the init daemon.
    
         --help      Show this help
         --no-wall   Don't send wall message before halt/power-off/reboot
    
    Commands:
      0              Power-off the machine
      6              Reboot the machine
      2, 3, 4, 5     Start runlevelX.target unit
      1, s, S        Enter rescue mode
      q, Q           Reload init daemon configuration
      u, U           Reexecute init daemon
    root@am437x-evm:~# init 0
    root@am437x-evm:~# [  OK  ] Stopped target Sound Card.
             Stopping NFS status monitor for NFSv2/3 locking....
             Stopping Reboot and dump vmcore via kexec...
             Stopping User Manager for UID 0...
    [  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
             Unmounting /run/media/mmcblk1p1...
             Stopping Save/Restore Sound Card State...
    [  OK  ] Stopped target Timers.
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
             Stopping Periodic Command Scheduler...
             Stopping D-Bus System Message Bus...
             Stopping Avahi mDNS/DNS-SD Stack...
    [  OK  ] Stopped target Containers.
    [         Stopping Serial Getty on ttyS0...
             Stopping Redis In-Memory Data Store...
             Stopping Lightning Fast Webserver With Light System Requirements...
    [  OK  ] Stopped Matrix GUI.
             Stopping Simple Network Management Protocol (SNMP) Daemon....
             Stopping thttpd.service...
             Stopping Job spooling tools...
    [  OK  ] Stopped Daily rotation of log files.
    [  OK  ] Stopped target System Time Synchronized.
    [  OK  ] Stopped Session c1 of user root.
             Stopping Login Service...
    [  OK  ] Stopped Wait for Network to be Configured.
    [  OK  ] Stopped Periodic Command Scheduler.
    [  OK  ] Stopped D-Bus System Message Bus.
    [  OK  ] Stopped Job spooling tools.
    [  OK  ] Stopped Login Service.
    [  OK  ] Stopped Simple Network Management Protocol (SNMP) Daemon..
    [  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
    [  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
    [  OK  ] Stopped Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped Serial Getty on ttyS0.
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Stopped Reboot and dump vmcore via kexec.
    [  OK  ] Unmounted /run/media/mmcblk1p1.
    [  OK  ] Stopped Save/Restore Sound Card State.
    [  OK  ] Stopped Redis In-Memory Data Store.
    [  OK  ] Stopped thttpd.service.
             Stopping telnetd.service...
    [  OK  ] Stopped File System Check on /dev/mmcblk1p1.
    [  OK  ] Removed slice system-systemd\x2dfsck.slice.
             Stopping /run/user/0 mount wrapper...
    [  OK  ] Removed slice User Slice of UID 0.
    [  OK  ] Removed slice system-serial\x2dgetty.slice.
    [  OK  ] Removed slice system-getty.slice.
             Stopping Permit User Sessions...
    [  OK  ] Stopped target Host and Network Name Lookups.
             Stopping RPC Bind Service...
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Stopped RPC Bind Service.
    [  OK  ] Stopped telnetd.service.
    [  OK  ] Stopped /run/user/0 mount wrapper.
    [  OK  ] Stopped Permit User Sessions.
    [  OK  ] Stopped target Network.
             Stopping Network Name Resolution...
    [  OK  ] Removed slice system-user\x2druntime\x2ddir.slice.
             Stopping weston.service...
    [  OK  ] Stopped Network Name Resolution.
    [  OK  ] Stopped weston.service.
    [  OK  ] Stopped target Remote File Systems.
             Stopping rc.pvr.service...
             Stopping Network Service...
    [  OK  ] Stopped rc.pvr.service.
    [  OK  ] Stopped Network Service.
    [  OK  ] Stopped target Basic System.
    [  OK  ] Stopped target Sockets.
    [  OK  ] Closed dropbear.socket.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Closed RPCbind Server Activation Socket.
    [  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Stopped target System Initialization.
             Stopping Network Time Synchronization...
             Stopping Load/Save Random Seed...
             Stopping Load/Save Screen Backlight�ightness of backlight:backlight...
             Stopping Update UTMP about System Boot/Shutdown...
    [  OK  ] Stopped Apply Kernel Variables.
    [  OK  ] Stopped Load Kernel Modules.
    [  OK  ] Stopped target Paths.
    [  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
    [  OK  ] Stopped target Slices.
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Load/Save Screen Backlight Brightness of backlight:backlight.
    [  OK  ] Stopped Update UTMP about System Boot/Shutdown.
    [  OK  ] Removed slice system-systemd\x2dbacklight.slice.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /media/ram...
             Unmounting /var/volatile...
             Unmounting Temporary Directory (/tmp)...
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Unmounted /var/volatile.
    [  OK  ] Unmounted Temporary Directory (/tmp).
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Stopped target Swap.
    [  OK  ] Stopped target Local File Systems (Pre).
    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Stopped Create Static Device Nodes in /dev.
    [  OK  ] Reached target Shutdown.
    [  OK  ] Reached target Final Step.
             Starting Power-Off...
    [   65.027452] systemd-shutdow: 28 output lines suppressed due to ratelimiting
    [   65.065638] systemd-shutdown[1]: Syncing filesystems and block devices.
    [   65.155217] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [   65.179989] systemd-journald[84]: Received SIGTERM from PID 1 (systemd-shutdow).
    [   65.240640] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [   65.263891] systemd-shutdown[1]: Unmounting file systems.
    [   65.275554] [970]: Remounting '/' read-only in with options '(null)'.
    [   65.324876] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [   65.346440] systemd-shutdown[1]: All filesystems unmounted.
    [   65.352325] systemd-shutdown[1]: Deactivating swaps.
    [   65.357713] systemd-shutdown[1]: All swaps deactivated.
    [   65.363753] systemd-shutdown[1]: Detaching loop devices.
    [   65.375085] systemd-shutdown[1]: All loop devices detached.
    [   65.380859] systemd-shutdown[1]: Detaching DM devices.
    [   65.424550] reboot: Power down
    

    am3_6.3_init6.txt
    root@am437x-evm:~# init --h
    init [OPTIONS...] {COMMAND}
    
    Send control commands to the init daemon.
    
         --help      Show this help
         --no-wall   Don't send wall message before halt/power-off/reboot
    
    Commands:
      0              Power-off the machine
      6              Reboot the machine
      2, 3, 4, 5     Start runlevelX.target unit
      1, s, S        Enter rescue mode
      q, Q           Reload init daemon configuration
      u, U           Reexecute init daemon
    root@am437x-evm:~# init 6
    root@am437x-evm:~#          Unmounting /run/media/mmcblk1p1...
    [  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
             Stopping Reboot and dump vmcore via kexec...
             Stopping NFS status monitor for NFSv2/3 locking....
    [  OK  ] Stopped target Timers.
    [  OK  ] Stopped Daily rotation of log files.
    [  OK  ] Stopped target Containers.
             Stopping Simple Network Management Protocol (SNMP) Daemon.         Stopping Serial Getty on ttyS0...
             Stopping Lightning Fast Webserver With Light System Requirements...
             Stopping Avahi mDNS/DNS-SD Stack...
             Stopping Job spooling tools...
    [  OK  ] Stopped target System Time Synchronized.
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
             Stopping Periodic Command Scheduler...
             Stopping Redis In-Memory Data Store...
             Stopping User Manager for UID 0...
    [  OK  ] Stopped target Sound Card.
             Stopping Save/Restore Sound Card State...
             Stopping D-Bus System Message Bus...
             Stopping strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf...
    [  OK  ] Stopped Session c1 of user root.
             Stopping Login Service...
    [  OK  ] Stopped D-Bus System Message Bus.
    [  OK  ] Stopped Login Service.
    [  OK  ] Stopped Job spooling tools.
    [  OK  ] Stopped Periodic Command Scheduler.
    [  OK  ] Stopped Simple Network Management Protocol (SNMP) Daemon..
    [  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
    [  OK  ] Stopped Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Stopped Serial Getty on ttyS0.
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped weston.service.
    [  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Stopped strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
    [  OK  ] Unmounted /run/media/mmcblk1p1.
    [  OK  ] Stopped Reboot and dump vmcore via kexec.
    [  OK  ] Stopped Redis In-Memory Data Store.
    [  OK  ] Stopped Save/Restore Sound Card State.
    [  OK  ] Stopped File System Check on /dev/mmcblk1p1.
    [  OK  ] Removed slice system-systemd\x2dfsck.slice.
    [  OK  ] Stopped target Network is Online.
             Stopping /run/user/0 mount wrapper...
    [  OK  ] Removed slice User Slice of UID 0.
             Stopping RPC Bind Service...
    [  OK  ] Stopped target Host and Network Name Lookups.
             Stopping rc.pvr.service...
    [  OK  ] Removed slice system-getty.slice.
             Stopping Permit User Sessions...
    [  OK  ] Removed slice system-serial\x2dgetty.slice.
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Stopped RPC Bind Service.
    [  OK  ] Stopped /run/user/0 mount wrapper.
    [  OK  ] Stopped rc.pvr.service.
    [  OK  ] Stopped Permit User Sessions.
    [  OK  ] Stopped target Remote File Systems.
    [  OK  ] Stopped target Network.
             Stopping Network Name Resolution...
    [  OK  ] Removed slice system-user\x2druntime\x2ddir.slice.
    [  OK  ] Stopped target Basic System.
    [  OK  ] Stopped target Slices.
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped target Paths.
    [  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
    [  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Stopped target Sockets.
    [  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Closed dropbear.socket.
    [  OK  ] Closed RPCbind Server Activation Socket.
    [  OK  ] Stopped target System Initialization.
             Stopping Load/Save Random Seed...
             Stopping Load/Save Screen Backlight�ightness of backlight:backlight...
             Stopping Network Time Synchronization...
    [  OK  ] Stopped Network Name Resolution.
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Load/Save Screen Backlight Brightness of backlight:backlight.
    [  OK  ] Removed slice system-systemd\x2dbacklight.slice.
             Stopping Network Service...
    [  OK  ] Stopped Network Service.
    [  OK  ] Stopped Apply Kernel Variables.
    [  OK  ] Stopped Load Kernel Modules.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /media/ram...
             Unmounting /var/volatile...
             Unmounting Temporary Directory (/tmp)...
    [  OK  ] Unmounted /media/ram.
    [FAILED] Failed unmounting /var/volatile.
    [FAILED] Failed unmounting Temporary Directory (/tmp).
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Stopped target Swap.
    [  OK  ] Stopped target Local File Systems (Pre).
    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Stopped Create Static Device Nodes in /dev.
    [  OK  ] Reached target Shutdown.
    [  OK  ] Reached target Final Step.
             Starting Reboot...
    [  181.815567] watchdog: watchdog0: watchdog did not stop!
    [  181.833118] systemd-shutdow: 25 output lines suppressed due to ratelimiting
    [  181.871026] systemd-shutdown[1]: Syncing filesystems and block devices.
    [  181.981514] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [  182.007444] systemd-journald[74]: Received SIGTERM from PID 1 (systemd-shutdow).
    [  182.235674] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [  182.252689] systemd-shutdown[1]: Hardware watchdog 'OMAP Watchdog', version 0
    [  182.263679] systemd-shutdown[1]: Unmounting file systems.
    [  182.273970] [993]: Unmounting '/var/volatile'.
    [  182.293016] [994]: Unmounting '/tmp'.
    [  182.324155] [995]: Remounting '/' read-only in with options '(null)'.
    [  182.390264] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [  182.417504] systemd-shutdown[1]: All filesystems unmounted.
    [  182.423518] systemd-shutdown[1]: Deactivating swaps.
    [  182.428768] systemd-shutdown[1]: All swaps deactivated.
    [  182.434377] systemd-shutdown[1]: Detaching loop devices.
    [  182.445025] systemd-shutdown[1]: All loop devices detached.
    [  182.501315] reboot: Restarting system
    
    U-Boot SPL 2019.01-g333c3e72d3 (Apr 20 2020 - 05:11:06 +0000)
    Trying to boot from MMC1
    SPL: Please implement spl_start_uboot() for your board
    SPL: Direct Linux boot not active!
    
    
    U-Boot 2019.01-g333c3e72d3 (Apr 20 2020 - 05:11:06 +0000)
    
    CPU  : AM437X-GP rev 1.1
    Model: TI AM437x GP EVM
    DRAM:  2 GiB
    PMIC:  TPS65218
    NAND:  512 MiB
    MMC:   OMAP SD/MMC: 0
    Loading Environment from FAT... *** Warning - bad CRC, using default environment
    
    Net:   
    Warning: ethernet@4a100000 using MAC address from ROM
    eth0: ethernet@4a100000
    Hit any key to stop autoboot:  2  0 
    => 

  • Hi Hong,

    This is a misunderstanding. Everything is working fine on the EVM of course. The issue is that we have this problem with our custom design based on EVM.

    My question is what may cause this kind of behavios (TPS programming, specific GPIO settings, ....) to make our board differently when rebooting or shutting down Linux.

    The Linux logs are identical with EVM as well as with our board.

    Regards
    Peter

  • Hi Peter,
    From linux system, and my testing on AM437x GP EVM.
    - init 0: power off the system
    - reboot: reboot the system
    Can you confirm your observation on your board in your original post?
    >>>>
    "init 0" will cause a perfect reboot.
    "reboot" will also restart the system but it will then switch off shortly after starting u-boot SPL.
    <<<<
    Best,
    -Hong

  • Hi Hong,

    Yes, everything is working fine on EVM. As stated in my initial question and reconfirmed in my last post, with EVM it works as excpected, i.e. init 0 will power off.

    The reason why I am writing to you is that with our board which is a custom version, i.e. no exactly your EVM, it is not working like this when using the identical image.

    So my question: what can cause this kind of behavior?

    Regards
    Peter

  • Resolved: on reboot dcdc2 assumed a random value. Made sure SPL overwrites it correctly also for reboot and now working fine.