Jetson NX not triggering systemd shutdown

I have noticed that when I perform a soft reboot on my production jetson NX module, I don’t get any messages over serial from systemd-shutdown about shutting down various processes and hardware:

nvidia@ubuntu:~$ sudo reboot
[sudo] password for nvidia: 
[  177.258663] watchdog: watchdog0: watchdog did not stop!
[  177.262531] systemd-shutdow: 38 output lines suppressed due to ratelimiting
��WARNING: at platform/drivers/pg/pg-gpu-t194.c:185
��[  177.523901] reboot: Restarting system
����Shutdown state requested 1
Rebooting system ...
\0\0��
[0000.025] W> RATCHET: MB1 binary ratchet value 4 is too large than ratchet level 2 from HW fuses.

I have tried using my NX module on both a custom carrier board as well as a devkit (although it’s a Jetson Nano devkit, I think this is ok though?)

This happens on the JetPack version I am currently developing on (4.6), but also on the latest release (5.0) which I updated to in order to check. To investigate this problem I installed both versions cleanly using the sdkmanager (no custom stuff)

I wonder if this is similar to a known issue for the Jetson Orin : “3586140 Jetson AGX Orin: Shutdown doesnot trigger systemd shutdown on the target.”

I have since tried a developer Jetson Nano using the same JetPack versions (4.6.2 and 5.0.2) and I do see various systemd-shutdown messages.

See attached for serial logs of shutting down in both 4.6.2 and 5.0.2 (on the custom carrier board):
soft-reboot-jp4.6.txt (93.9 KB)
soft-reboot-jp5.0.2.txt (67.2 KB)

What is the exact behavior you want here?

Also, the only one that can output your desired result is a jetson nano?

Hi Wayne,

For comparison, on the Jetson Nano Dev Kit we get the following output after a shutdown:

nvidia@localhost:~$ sudo reboot
[sudo] password for nvidia: 
[   61.464505] l4tbr0: port 2(usb0) entered disabled state
[   61.469807] l4tbr0: port 1(rndis0) entered disabled state
[   61.479959] tegradc tegradc.0: blank - powerdown
[   61.484627] tegradc tegradc.1: blank - powerdown
[   63.869788] tegradc tegradc.0: blank - powerdown
[   64.187043] tegra-xudc-new 700d0000.xudc: ep 3 disabled
[   64.192348] tegra-xudc-new 700d0000.xudc: ep 2 disabled
[   64.197579] tegra-xudc-new 700d0000.xudc: ep 5 disabled
[   64.202881] tegra-xudc-new 700d0000.xudc: ep 4 disabled
[   64.208106] tegra-xudc-new 700d0000.xudc: ep 7 disabled
[   64.213353] tegra-xudc-new 700d0000.xudc: ep 9 disabled
[   64.218588] tegra-xudc-new 700d0000.xudc: ep 13 disabled
[   64.223965] tegra-xudc-new 700d0000.xudc: ep 11 disabled
[   64.229302] tegra-xudc-new 700d0000.xudc: ep 6 disabled
[   64.234530] tegra-xudc-new 700d0000.xudc: ep 8 disabled
[   64.239761] tegra-xudc-new 700d0000.xudc: ep 15 disabled
[   64.245272] android_work: sent uevent USB_STATE=DISCONNECTED
[   64.245875] tegra-xudc-new 700d0000.xudc: ep 0 disabled
[   64.258353] device usb0 left promiscuous mode
[   64.262793] l4tbr0: port 2(usb0) entered disabled state
[   64.336455] device rndis0 left promiscuous mode
[   64.341038] l4tbr0: port 1(rndis0) entered disabled state
[   69.474393] watchdog: watchdog0: watchdog did not stop!
[   69.485764] systemd-shutdow: 33 output lines suppressed due to ratelimiting
[   69.503689] systemd-shutdown[1]: Syncing filesystems and block devices.
[   69.580629] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[   69.599327] systemd-journald[1926]: Received SIGTERM from PID 1 (systemd-shutdow).
[   69.637419] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[   69.655277] systemd-shutdown[1]: Hardware watchdog 'max77620-watchdog', version 0
[   69.667153] systemd-shutdown[1]: Unmounting file systems.
[   69.702476] EXT4-fs (mmcblk0p1): re-mounted. Opts: data=ordered
[   69.724580] systemd-shutdown[1]: All filesystems unmounted.
[   69.730188] systemd-shutdown[1]: Deactivating swaps.
[   69.735234] systemd-shutdown[1]: All swaps deactivated.
[   69.740541] systemd-shutdown[1]: Detaching loop devices.
[   69.748421] systemd-shutdown[1]: All loop devices detached.
[   69.809553] sdhci-tegra sdhci-tegra.0: Tuning done, restoring the best tap value : 29
[   69.846829] therm-fan-est: shutting down
[   69.851074] nvgpu: 57000000.gpu                 gk20a_pm_shutdown:961  [INFO]  shutting down
[   69.859698] nvgpu: 57000000.gpu                 gk20a_pm_shutdown:992  [INFO]  shut down complete
[   69.869256] late_shutdown started
[   69.872614] tegra-i2c 7000d100.i2c: Bus is shutdown down..
[   69.878107] tegra-i2c 7000d000.i2c: Bus is shutdown down..
[   69.883780] tegra-i2c 7000c700.i2c: Bus is shutdown down..
[   69.889339] tegra-i2c 7000c500.i2c: Bus is shutdown down..
[   69.894831] tegra-i2c 7000c400.i2c: Bus is shutdown down..
[   69.900321] tegra-i2c 7000c000.i2c: Bus is shutdown down..
[   69.905807] tegra-vii2c 546c0000.i2c: Bus is shutdown down..
[   69.931861] reboot: Restarting system

Here we can see systemd-shutdown clearing up the system before it is rebooted.

However, on the Xavier NX we don’t see any of these messages (as shown in the comment above from Sam). We would still expect systemd to be unmounting filesystems etc. on the Jetson Xavier NX during shutdown.

So, the questions we wanted to ask are:

  • Is this behaviour during shutdown of the Jetson Xavier NX correct?
  • Why are there no messages from systemd-shutdown on the Jetson Xavier NX?

Hi Wayne,

I am expecting there to be some messages out about processes being shutdown and bits of hardware being powered off. This is what rebooting on the Nano looks like:

nvidia@localhost:~$ sudo reboot
[sudo] password for nvidia: 
[   61.464505] l4tbr0: port 2(usb0) entered disabled state
[   61.469807] l4tbr0: port 1(rndis0) entered disabled state
[   61.479959] tegradc tegradc.0: blank - powerdown
[   61.484627] tegradc tegradc.1: blank - powerdown
[   63.869788] tegradc tegradc.0: blank - powerdown
[   64.187043] tegra-xudc-new 700d0000.xudc: ep 3 disabled
[   64.192348] tegra-xudc-new 700d0000.xudc: ep 2 disabled
[   64.197579] tegra-xudc-new 700d0000.xudc: ep 5 disabled
[   64.202881] tegra-xudc-new 700d0000.xudc: ep 4 disabled
[   64.208106] tegra-xudc-new 700d0000.xudc: ep 7 disabled
[   64.213353] tegra-xudc-new 700d0000.xudc: ep 9 disabled
[   64.218588] tegra-xudc-new 700d0000.xudc: ep 13 disabled
[   64.223965] tegra-xudc-new 700d0000.xudc: ep 11 disabled
[   64.229302] tegra-xudc-new 700d0000.xudc: ep 6 disabled
[   64.234530] tegra-xudc-new 700d0000.xudc: ep 8 disabled
[   64.239761] tegra-xudc-new 700d0000.xudc: ep 15 disabled
[   64.245272] android_work: sent uevent USB_STATE=DISCONNECTED
[   64.245875] tegra-xudc-new 700d0000.xudc: ep 0 disabled
[   64.258353] device usb0 left promiscuous mode
[   64.262793] l4tbr0: port 2(usb0) entered disabled state
[   64.336455] device rndis0 left promiscuous mode
[   64.341038] l4tbr0: port 1(rndis0) entered disabled state
[   69.474393] watchdog: watchdog0: watchdog did not stop!
[   69.485764] systemd-shutdow: 33 output lines suppressed due to ratelimiting
[   69.503689] systemd-shutdown[1]: Syncing filesystems and block devices.
[   69.580629] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[   69.599327] systemd-journald[1926]: Received SIGTERM from PID 1 (systemd-shutdow).
[   69.637419] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[   69.655277] systemd-shutdown[1]: Hardware watchdog 'max77620-watchdog', version 0
[   69.667153] systemd-shutdown[1]: Unmounting file systems.
[   69.702476] EXT4-fs (mmcblk0p1): re-mounted. Opts: data=ordered
[   69.724580] systemd-shutdown[1]: All filesystems unmounted.
[   69.730188] systemd-shutdown[1]: Deactivating swaps.
[   69.735234] systemd-shutdown[1]: All swaps deactivated.
[   69.740541] systemd-shutdown[1]: Detaching loop devices.
[   69.748421] systemd-shutdown[1]: All loop devices detached.
[   69.809553] sdhci-tegra sdhci-tegra.0: Tuning done, restoring the best tap value : 29
[   69.846829] therm-fan-est: shutting down
[   69.851074] nvgpu: 57000000.gpu                 gk20a_pm_shutdown:961  [INFO]  shutting down
[   69.859698] nvgpu: 57000000.gpu                 gk20a_pm_shutdown:992  [INFO]  shut down complete
[   69.869256] late_shutdown started
[   69.872614] tegra-i2c 7000d100.i2c: Bus is shutdown down..
[   69.878107] tegra-i2c 7000d000.i2c: Bus is shutdown down..
[   69.883780] tegra-i2c 7000c700.i2c: Bus is shutdown down..
[   69.889339] tegra-i2c 7000c500.i2c: Bus is shutdown down..
[   69.894831] tegra-i2c 7000c400.i2c: Bus is shutdown down..
[   69.900321] tegra-i2c 7000c000.i2c: Bus is shutdown down..
[   69.905807] tegra-vii2c 546c0000.i2c: Bus is shutdown down..
[   69.931861] reboot: Restarting system

Have also noticed that the Nano boot up messages contain a “Power-up reason” which is different depending on if the board is rebooted using sudo reboot vs power cycled, whereas on the NX it seems to always have a “Coldboot” message regardless.

Basically what I want is to know whether the NX system is shutting down graciously or not

I’m closing this topic due to there is no update from you for a period, assuming this issue was resolved.
If still need the support, please open a new topic. Thanks

Sorry for the late response, is this still an issue to support? Thanks