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.

DRA829V: Reboot command not working on J7 Linux

Part Number: DRA829V

Hi,

I was trying to execute reboot command on Linux A72 side.

It gets stuck and will not perform reboot.

Need inputs, what might be causing this behavior.

After executing reboot, attaching the end logs, we have waited for more than 30 minutes and system will not restart.

[ OK ] Stopped target Swap.
[ OK ] Reached target Shutdown.
[ OK ] Reached target Final Step.
Starting Reboot...
[ 247.393330] watchdog: watchdog0: nowayout prevents watchdog being stopped!
[ 247.400221] watchdog: watchdog0: nowayout prevents watchdog being stopped!
[ 247.407122] watchdog: watchdog0: watchdog did not stop!
[ 247.415619] systemd-shutdow: 23 output lines suppressed due to ratelimiting
[ 247.452332] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 247.467115] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 247.478177] systemd-journald[153]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 247.501471] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 247.511501] systemd-shutdown[1]: Hardware watchdog 'K3 RTI Watchdog', version 0
[ 247.519642] systemd-shutdown[1]: Unmounting file systems.
[ 247.526376] [1115]: Remounting '/' read-only in with options '(null)'.
[ 247.684563] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 247.690595] systemd-shutdown[1]: All filesystems unmounted.
[ 247.696164] systemd-shutdown[1]: Deactivating swaps.
[ 247.701185] systemd-shutdown[1]: All swaps deactivated.
[ 247.706407] systemd-shutdown[1]: Detaching loop devices.
[ 247.713086] systemd-shutdown[1]: All loop devices detached.
[ 247.729712] reboot: Restarting system
-------------------Nothing happens after this----------------------------------------

 

  • Hi Rajendra,

    I am using: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/latest/index_FDS.html

    Log: https://pastebin.ubuntu.com/p/7spSQNGBfx/

    Y
    ou see that reboot works fine.

    The latest is 7.0 Linux SDK. Couple of questions:

    1) Which SDK version are you using?
    2) Which boot mode are you using & can you paste the full log from u-boot to reboot failure?

    Best Regards,
    Keerthy

  • Hi,

    we are using SDK 6.2.

    Sorry, I will not be able to provide full logs from uboot till prompt, I am looking for Private E2E forum, once I received that I will add more detail logs there.

    root@:~# uname -a

    Linux 4.19.94-g5a23bc00e0 #1 SMP PREEMPT Mon Sep 14 08:34:20 UTC 2020 aarch64 GNU/

    please find the reboot log:

    root@-:~# reboot
    Stopping Unmounting /run/media/sda1...
    [ OK ] Stopped target Timers.
    [ OK ] Stopped Daily rotation of log files.
    [ OK ] Stopped Daily Cleanup of Temporary Directories.
    [ OK ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
    Stopping Periodic Command Scheduler...
    [ OK ] Stopped target Containers.
    Stopping Avahi mDNS/DNS-SD Stack...
    [ OK ] Stopped target Login Prompts.
    Stopping Serial Getty on ttyS2...
    Stopping Getty on tty1...
    [ OK ] Stopped DEMO.
    Stopping DNS forwarder and DHCP server...
    Stopping D-Bus System Message Bus...
    Stopping Target Communication Framework agent...
    Stopping Job spooling tools...
    Stopping Serial Getty on ttyS1...
    Stopping thttpd.service...
    [ OK ] Stopped target System Time Synchronized.
    Stopping NFS status monitor for NFSv2/3 locking....
    Stopping Hostapd IEEE 802.11 AP...
    [ 42.011934] wlan: Stoping AP
    [ 42.014934] wlan: AP stopped
    Stopping Setup WiFi and Modem for Internet Connection...
    Unmounting /run/media/mmcblk1p1...
    [ OK ] Stopped Wait for Network to be Configured.
    [ OK ] Stopped Job spooling tools.
    [ OK ] Stopped Periodic Command Scheduler.
    [ OK ] Stopped D-Bus System Message Bus.
    [ OK ] Stopped GENIVI DLT logging daemon.
    [ OK ] Stopped Setup WiFi and Modem for Internet Connection.
    [ OK ] Stopped Avahi mDNS/DNS-SD Stack.
    [ OK ] Stopped Serial Getty on ttyS2.
    [ OK ] Stopped Getty on tty1.
    [ OK ] Stopped Serial Getty on ttyS1.
    [ OK ] Stopped Target Communication Framework agent.
    [ OK ] Stopped NFS status monitor for NFSv2/3 locking..
    [ OK ] Stopped Hostapd IEEE 802.11 AP.
    [ OK ] Stopped User Manager for UID 0.
    [ OK ] Stopped Hostname Service.
    [ OK ] Unmounted /run/media/sda1.
    [ OK ] Stopped DNS forwarder and DHCP server.
    [ OK ] Stopped thttpd.service.
    [ OK ] Unmounted /run/media/mmcblk1p1.
    [ OK ] Stopped Session c1 of user root.
    Stopping Login Service...
    [ OK ] Stopped File System Check on /dev/mmcblk1p1.
    Stopping telnetd.service...
    [ OK ] Stopped File System Check on /dev/sda1.
    [ OK ] Removed slice system-systemd\x2dfsck.slice.
    Stopping /run/user/0 mount wrapper...
    [ OK ] Removed slice User Slice of UID 0.
    [ OK ] Stopped target Host and Network Name Lookups.
    Stopping RPC Bind Service...
    [ OK ] Removed slice system-getty.slice.
    [ OK ] Removed slice system-serial\x2dgetty.slice.
    Stopping Permit User Sessions...
    [ OK ] Unmounted /run/user/0.
    [ OK ] Stopped Login Service.
    [ 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 ] Stopped target Remote File Systems.
    [ OK ] Removed slice system-user\x2druntime\x2ddir.slice.
    Stopping rc.pvr.service...
    [ OK ] Stopped Network Name Resolution.
    Stopping Network Service...
    [ OK ] Stopped rc.pvr.service.
    [ OK ] Stopped target Basic System.
    [ 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 Sockets.
    [ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
    [ OK ] Closed RPCbind Server Activation Socket.
    [ OK ] Closed D-Bus System Message Bus Socket.
    [ OK ] Closed sshd.socket.
    [ OK ] Stopped target System Initialization.
    Stopping Load/Save Random Seed...
    Stopping Update UTMP about System Boot/Shutdown...
    Stopping Network Time Synchronization...
    [ OK ] Stopped target Slices.
    [ OK ] Removed slice User and Session Slice.
    [ OK ] Stopped Network Time Synchronization.
    [ OK ] Stopped Network Service.
    [ OK ] Stopped Load/Save Random Seed.
    [ OK ] Stopped target Network (Pre).
    [ OK ] Stopped Apply Kernel Variables.
    [ OK ] Stopped Load Kernel Modules.
    [ OK ] Stopped Update UTMP about System Boot/Shutdown.
    [ OK ] Stopped Create Volatile Files and Directories.
    [ OK ] Stopped target Local File Systems.
    Unmounting /media/ram...
    Unmounting Temporary Directory (/tmp)...
    Unmounting /var/volatile...
    [ OK ] Unmounted /media/ram.
    [ OK ] Unmounted Temporary Directory (/tmp).
    [ OK ] Unmounted /var/volatile.
    [ OK ] Reached target Unmount All Filesystems.
    [ OK ] Stopped target Swap.
    [ OK ] Stopped target Local File Systems (Pre).
    [ OK ] Stopped Create Static Device Nodes in /dev.
    [ OK ] Stopped Remount Root and Kernel File Systems.
    [ OK ] Reached target Shutdown.
    [ OK ] Reached target Final Step.
    Starting Reboot...
    [ 43.220038] watchdog: watchdog0: nowayout prevents watchdog being stopped!
    [ 43.226929] watchdog: watchdog0: nowayout prevents watchdog being stopped!
    [ 43.233793] watchdog: watchdog0: watchdog did not stop!
    [ 43.242239] systemd-shutdow: 25 output lines suppressed due to ratelimiting
    [ 43.278895] systemd-shutdown[1]: Syncing filesystems and block devices.
    [ 43.301170] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [ 43.312178] systemd-journald[156]: Received SIGTERM from PID 1 (systemd-shutdow).
    [ 43.348086] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [ 43.358087] systemd-shutdown[1]: Hardware watchdog 'K3 RTI Watchdog', version 0
    [ 43.366235] systemd-shutdown[1]: Unmounting file systems.
    [ 43.372777] [1105]: Remounting '/' read-only in with options '(null)'.
    [ 43.570545] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [ 43.576650] systemd-shutdown[1]: All filesystems unmounted.
    [ 43.582220] systemd-shutdown[1]: Deactivating swaps.
    [ 43.587240] systemd-shutdown[1]: All swaps deactivated.
    [ 43.592458] systemd-shutdown[1]: Detaching loop devices.
    [ 43.599120] systemd-shutdown[1]: All loop devices detached.
    [ 43.616125] reboot: Restarting system

  • Rajendra,

    I have the reboot working logs on the exact same 6.02 kernel:

    https://pastebin.ubuntu.com/p/j67GjFckYq/

    Can you just try to prepare card as suggested here: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/latest/exports/docs/linux/Overview/PSDKLA_Formatting_SD_Card.html

    Best Regards,
    Keerthy

  • Hello Keerthy,

    Ok. From the log you have shared, there is u-boot being triggered. Does this console log "reboot" you have shared, mean soc wide reboot or only A72 reboot? We require both and controlled.

    For ex:

    1. reboot -> can trigger A72 reboot while the rest of the R5Fs in Main and Mcu still active and running an TI RTOS instance

    2. reboot -> can trigger an SoC wide reboot, asserting reset on all cores triggering a restart SoC wide.

    Thanks,

    Dev

  • Hi Dev,

    Reboot from Linux resets the entire SoC and not just A72. If there are no further questions please
    resolve.

    Best Regards,
    Keerthy

  • Hi,

    Can we know what happens when we execute reboot on Linux, which register is set, so that MCU will detect the register status and will perform the reset of SOC ?

    Is there a way to perform reboot of only Linux, keeping other cores active ?

  • Hi Rajendra,

    I checked with the experts on this. Reboot command finally goes to the ATF. (Arm trusted firmware).

    Sequence: machine_restart("arch/arm64/kernel/process.c") --> arm_pm_restart --> psci_sys_reset ("drivers/firmware/psci/psci.c")

    This finally goes as a ATF call (Arm Trusted Firmware). So it is not a matter of reading a register from Linux or M3. ARM64 architecture
    is implementing reboot via ATF.

    To answer your second question to keep all the cores executing and only resetting A72 is currently not supported.

    Hope this answers all your questions.

    Best Regards,
    Keerthy


  • Hi Keerthy,

    thanks for your inputs.

    We are using similar method to format the sdcard partition as mentioned in mksdboot.sh.

    Still we are not able to see complete system reset, could you please have a look at below ticket, I have attached complete log, as requested above.

    https://e2eprivate.ti.com/aptiv/aptiv_-_ep_automotive/f/infotainment-support-qna/15196/384-15196-j721e-dra829v-reboot-does-not-reset-the-linux-on-a72/87688#87688

    Please let us know any other scripts or files needed or where to look at, to see, why system is not going for complete reset.

    Thanks,

    Rajendra

  • Hi Rajendra,

    I am attaching the two files reboot.txt that successfully reboots at my 6.02 setup & reboot1.txt
    which is your logs. I see bluetooth & wlan getting closed in your case which is not there in my setup.

    Just to be doubly sure can you just try with just the dra829-evm with the freshly prepared card
    from 6.02 sdk mksdboot.sh?

    Are you using a custom board if yes then there might be differences that we need to look there as well.

    You can compare the reboot1.txt & reboot.txt & see if you can get them removed to nail out
    the blocking one.

    7220.reboot.txt
    reboot
             St         Stopping Session c1 of user root.
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
    [  OK  ] Stopped Daily rotation of log files.
             Unmounting /run/media/mmcblk1p1...
             Stopping Job spooling tools...
    [  OK  ] Stopped DEMO.
             Stopping thttpd.service...
    [  OK  ] Stopped target Containers.
             Stopping User Manager for UID 0...
             Stopping Periodic Command Scheduler...
             Stopping Avahi mDNS/DNS-SD Stack...
             Stopping D-Bus System Message Bus...
             Stopping NFS status monitor for NFSv2/3 locking....
             Stopping irqbalance daemon...
    [  OK  ] Stopped target Sound Card.
             Stopping Save/Restore Sound Card State...
             Unmounting /run/media/mmcblk0p1...
    [  OK  ] Stopped target System Time Synchronized.
    [  OK  ] Stopped target Login Prompts.
             Stopping Serial Getty on ttyS2...
             Stopping Getty on tty1...
             Stopping Serial Getty on ttyS1...
    [  OK  ] Stopped Wait for Network to be Configured.
    [  OK  ] Stopped Periodic Command Scheduler.
    [  OK  ] Stopped irqbalance daemon.
    [  OK  ] Stopped Job spooling tools.
    [  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
    [  OK  ] Stopped D-Bus System Message Bus.
    [  OK  ] Stopped Serial Getty on ttyS2.
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped Serial Getty on ttyS1.
    [  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
    [  OK  ] Unmounted /run/media/mmcblk0p1.
    [  OK  ] Stopped Reboot and dump vmcore via kexec.
    [  OK  ] Stopped Session c1 of user root.
             Stopping Login Service...
    [  OK  ] Stopped File System Check on /dev/mmcblk0p1.
    [  OK  ] Stopped target Host and Network Name Lookups.
             Stopping RPC Bind Service...
    [  OK  ] Removed slice system-getty.slice.
    [  OK  ] Removed slice system-serial\x2dgetty.slice.
    [  OK  ] Stopped Login Service.
    [  OK  ] Stopped RPC Bind Service.
    [  OK  ] Stopped thttpd.service.
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Stopped Save/Restore Sound Card State.
    [  OK  ] Removed slice User Slice of UID 0.
             Stopping /run/user/0 mount wrapper...
             Stopping Permit User Sessions...
             Stopping telnetd.service...
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Unmounted /run/media/mmcblk1p1.
    [  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.
    [  OK  ] Stopped File System Check on /dev/mmcblk1p1.
    [  OK  ] Removed slice system-systemd\x2dfsck.slice.
    [  OK  ] Stopped Network Name Resolution.
    [  OK  ] Stopped telnetd.service.
             Stopping weston.service...
             Stopping Network Service...
    [  OK  ] Stopped weston.service.
    [  OK  ] Stopped Network Service.
             Stopping rc.pvr.service...
    [  OK  ] Stopped target Remote File Systems.
    [  OK  ] Stopped rc.pvr.service.
    [  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 D-Bus System Message Bus Socket.
    [  OK  ] Closed RPCbind Server Activation Socket.
    [  OK  ] Closed dropbear.socket.
    [  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Stopped target System Initialization.
             Stopping Network Time Synchronization...
    [  OK  ] Stopped Update is Completed.
    [  OK  ] Stopped Rebuild Hardware Database.
    [  OK  ] Stopped Apply Kernel Variables.
    [  OK  ] Stopped Load Kernel Modules.
             Stopping Load/Save Random Seed...
    [  OK  ] Stopped Rebuild Dynamic Linker Cache.
             Stopping Update UTMP about System Boot/Shutdown...
    [  OK  ] Stopped Rebuild Journal Catalog.
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Update UTMP about System Boot/Shutdown.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /media/ram...
             Unmounting Temporary Directory (/tmp)...
             Unmounting /var/volatile...
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Unmounted Temporary Directory (/tmp).
    [  OK  ] Unmounted /var/volatile.
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Stopped target Swap.
    [  OK  ] Stopped target Local File Systems (Pre).
    [  OK  ] Stopped Create Static Device Nodes in /dev.
    [  OK  ] Stopped Create System Users.
    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Reached target Shutdown.
    [  OK  ] Reached target Final Step.
             Starting Reboot...
    [   34.379478] watchdog: watchdog0: nowayout prevents watchdog being stopped!
    [   34.386367] watchdog: watchdog0: nowayout prevents watchdog being stopped!
    [   34.393232] watchdog: watchdog0: watchdog did not stop!
    [   34.402002] systemd-shutdow: 26 output lines suppressed due to ratelimiting
    [   34.442385] systemd-shutdown[1]: Syncing filesystems and block devices.
    [   34.542347] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [   34.552883] systemd-journald[156]: Received SIGTERM from PID 1 (systemd-shutdow).
    [   34.583600] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [   34.593309] systemd-shutdown[1]: Hardware watchdog 'K3 RTI Watchdog', version 0
    [   34.601456] systemd-shutdown[1]: Unmounting file systems.
    [   34.608218] [1177]: Remounting '/' read-only in with options '(null)'.
    [   34.651119] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [   34.657376] systemd-shutdown[1]: All filesystems unmounted.
    [   34.662961] systemd-shutdown[1]: Deactivating swaps.
    [   34.667991] systemd-shutdown[1]: All swaps deactivated.
    [   34.673209] systemd-shutdown[1]: Detaching loop devices.
    [   34.679998] systemd-shutdown[1]: All loop devices detached.
    [   34.709336] reboot: Restarting system
    

    8032.reboot1.txt
     reboot
             Stopping Session c1 of user root.
             Unmounting /run/media/sda1...
             Unmounting /run/media/mmcblk1p1...
             Stopping User Manager for UID 0...
    [  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Stopped target Timers.
    [  OK  ] Stopped target Multi-User System.
             Stopping Job spooling tools...
             Stopping Periodic Command Scheduler...
             Stopping Target Communication Framework agent...
             Stopping Setup WiFi and Modem for Internet Connection...
             Stopping Hostapd IEEE 802.11 AP...
             Stopping Avahi mDNS/DNS-SD Stack...
    [  245.948496] wlan: Stoping AP
    [  245.951547] wlan: AP stopped
             Stopping DNS forwarder and DHCP server...
    [  245.970148] wlan: Stoping AP
    [  245.973063] wlan: AP stopped
    [  OK  ] Stopped target Containers.
             Stopping thermal-zone-init.service...
    [  OK  ] Stopped target Login Prompts.
             Stopping Getty on tty1...
             Stopping Serial Getty on ttyS2...
             Stopping Serial Getty on ttyS1...
    [  OK  ] Stopped DEMO.
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
             Stopping GENIVI DLT logging daemon...
             Stopping D-Bus System Message Bus...
    [  OK  ] Stopped Daily rotation of log files.
             Stopping NFS status monitor for NFSv2/3 locking....
    [  OK  ] Stopped Periodic Command Scheduler.
    [  OK  ] Stopped Job spooling tools.
    [  OK  ] Stopped GENIVI DLT logging daemon.
    [  OK  ] Stopped Setup WiFi and Modem for Internet Connection.
    [  OK  ] Stopped D-Bus System Message Bus.
    [  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
    [  OK  ] Stopped Target Communication Framework agent.
    [  OK  ] Stopped Serial Getty on ttyS2.
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped Serial Getty on ttyS1.
    [  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
    [  OK  ] Stopped Hostapd IEEE 802.11 AP.
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Unmounted /run/media/sda1.
    [  OK  ] Unmounted /run/media/mmcblk1p1.
    [  OK  ] Stopped DNS forwarder and DHCP server.
    [  OK  ] Stopped thermal-zone-init.service.
    [  OK  ] Stopped Session c1 of user root.
             Stopping Login Service...
             Stopping bluetooth-up.service...
    [  OK  ] Stopped File System Check on /dev/mmcblk1p1.
    [  OK  ] Stopped File System Check on /dev/sda1.
    [  OK  ] Removed slice system-systemd\x2dfsck.slice.
    [  OK  ] Removed slice User Slice of UID 0.
             Stopping /run/user/0 mount wrapper...
             Stopping RPC Bind 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 Login Service.
    [  OK  ] Stopped RPC Bind Service.
    [  OK  ] Stopped bluetooth-up.service.
    [  OK  ] Stopped /run/user/0 mount wrapper.
    [  OK  ] Stopped Permit User Sessions.
    [  OK  ] Removed slice system-user\x2druntime\x2ddir.slice.
             Stopping LSB: network benchmark...
             Stopping thttpd.service...
    [  OK  ] Stopped LSB: network benchmark.
    [  OK  ] Stopped thttpd.service.
    [  OK  ] Stopped target Network is Online.
    [  OK  ] Stopped target Network.
    [  OK  ] Stopped target Remote File Systems.
             Stopping telnetd.service...
    [  OK  ] Stopped target Host and Network Name Lookups.
             Stopping Network Name Resolution...
    [  OK  ] Stopped target System Time Synchronized.
    [  OK  ] Stopped Network Name Resolution.
    [  OK  ] Stopped telnetd.service.
             Stopping rc.pvr.service...
             Stopping Network Service...
    [  OK  ] Stopped rc.pvr.service.
    [  OK  ] Stopped target Basic System.
    [  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 Slices.
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped target Sockets.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Closed RPCbind Server Activation Socket.
    [  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Closed sshd.socket.
    [  OK  ] Stopped target System Initialization.
             Stopping Network Time Synchronization...
             Stopping Load/Save Random Seed...
             Stopping Update UTMP about System Boot/Shutdown...
    [  OK  ] Stopped Network Service.
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Apply Kernel Variables.
    [  OK  ] Stopped Load Kernel Modules.
    [  OK  ] Stopped target Network (Pre).
    [  OK  ] Stopped Update UTMP about System Boot/Shutdown.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /media/ram...
             Unmounting Temporary Directory (/tmp)...
             Unmounting /var/volatile...
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Unmounted Temporary Directory (/tmp).
    [  OK  ] Unmounted /var/volatile.
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Stopped target Local File Systems (Pre).
    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Stopped Create Static Device Nodes in /dev.
    [  OK  ] Stopped target Swap.
    [  OK  ] Reached target Shutdown.
    [  OK  ] Reached target Final Step.
             Starting Reboot...
    [  247.393330] watchdog: watchdog0: nowayout prevents watchdog being stopped!
    [  247.400221] watchdog: watchdog0: nowayout prevents watchdog being stopped!
    [  247.407122] watchdog: watchdog0: watchdog did not stop!
    [  247.415619] systemd-shutdow: 23 output lines suppressed due to ratelimiting
    [  247.452332] systemd-shutdown[1]: Syncing filesystems and block devices.
    [  247.467115] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [  247.478177] systemd-journald[153]: Received SIGTERM from PID 1 (systemd-shutdow).
    [  247.501471] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [  247.511501] systemd-shutdown[1]: Hardware watchdog 'K3 RTI Watchdog', version 0
    [  247.519642] systemd-shutdown[1]: Unmounting file systems.
    [  247.526376] [1115]: Remounting '/' read-only in with options '(null)'.
    [  247.684563] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
    [  247.690595] systemd-shutdown[1]: All filesystems unmounted.
    [  247.696164] systemd-shutdown[1]: Deactivating swaps.
    [  247.701185] systemd-shutdown[1]: All swaps deactivated.
    [  247.706407] systemd-shutdown[1]: Detaching loop devices.
    [  247.713086] systemd-shutdown[1]: All loop devices detached.
    [  247.729712] reboot: Restarting system

    Best Regards,
    Keerthy

  • Hi Keerthy,

    We have tried OSPI boot made by keeping SPL & Uboot in OSPI and Kernel image and rootfs in SD card. Board is successfully booting up in fresh power cycle. when we tried reboot command, unlike earlier(SD boot mode) it getting rebooted but getting hard stop at Uboot level and printing below error 

    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Bad Linux ARM64 Image magic!

    Probably this might causing the reboot failure issue even in SD Boot Mode, so can you kindly let us know how to resolve this issue.

    you can see the full logs in the attachment. Reboot-logs_ospimode.txt

    Thanks,

    Rakesh T

  • Hi Rakesh,

    So this is different information. Earlier you were not seeing any u-boot prints in the second boot cycle right?

    "[ 43.599120] systemd-shutdown[1]: All loop devices detached.
    [ 43.616125] reboot: Restarting system"
    I

    It was getting stuck like mentioned above. just want to know how that was fixed in your side?

    Best Regards,
    Keerthy

  • Hi Keerthy,

    Issue is still exist when we using SD boot mode. I mean upon executing the reboot command system is getting struck at reboot: Restarting system in SD boot mode(All bootable image in SD card) .

    recently shared logs are with OSPI boot mode (SPL & Uboot binaries in OSPI and kernel and Rootfs in SD card).

    Steps we followed:

    1. copied SPL and Uboot images into OSPI and kernel&rootfs images into SD card.

    2. sets BOOTMODE pins to OSPI mode and given a fresh power cycle

    3. sets uboot env to load the kernel images from the SD card.

    4. upon successfully loading kernel and getting login prompt run reboot command

    5. reboot got executed and able to see initial logs in second boot cycle too, but getting stopped at loading kernel images from SD card by printing above mentioned error.

    Thanks,

    Rakesh T

  • Hi Rakesh,

    RAKESH THOTTEMPUDI said:
    3. sets uboot env to load the kernel images from the SD card.

    After the above step all i did was for the first time i booted from SPI:

    env default -a
    saveenv
    boot

    Then i reached kernel prompt and entered 'reboot' command and i could boot to kernel
    prompt. Tried this multiple times and it worked.

    Best Regards,
    Keerthy