# Xavier NX stalls after apt upgrade and rebooting

**URL:** <https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163>\
**Category:** Jetson Xavier NX\
**Tags:** boot\
**Created:** [June 4, 2024, 7:41pm UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163 "2024-06-04T19:41:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![user17005](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user17005](https://forums.developer.nvidia.com/u/user17005)\
**Post date:** [June 4, 2024, 7:42pm UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/1 "2024-06-04T19:42:00Z")

</div>

I have a very similar issue mentioned in:

> [@New Jetpack 5.1.3 Xavier NX flash and apt upgrade results in broken setup](https://forums.developer.nvidia.com/t/new-jetpack-5-1-3-xavier-nx-flash-and-apt-upgrade-results-in-broken-setup/294224):
>
> Using my Xavier NX board I flashed Jetpack 5.1.3 to NVME disk, completed the setup and had a working board. Upon reboot I had 140+ packages waiting for update. sudo atp upgrade and then reboot results in the board startup process failing. the messages that appear most relevant are depmod: WARNING: could not open modules.order at /lib/modules/5.10.192-tegra: No such file or directory tegra\_ccc 3960000.tegra\_cec: Sent \<Text View On\> res: -113 tegra\_ccc 3960000.tegra\_cec: tegra\_cec\_init Done. de…

after a fresh flash of Jetpack 5.1.3 to my Xavier NX running `sudo apt update && sudo apt upgrade` and rebooting. I get stuck with the error:  
`[6.172292] No root-device: Mount failed`

Here is my debug port dump:  
[boot.txt](https://forums.developer.nvidia.com/uploads/short-url/fuk6OdA01ZRoAObZkUTsitm58ES.txt) (59.8 KB)

I assume this is the solution:

> [@New Jetpack 5.1.3 Xavier NX flash and apt upgrade results in broken setup](https://forums.developer.nvidia.com/t/new-jetpack-5-1-3-xavier-nx-flash-and-apt-upgrade-results-in-broken-setup/294224/20):
>
> Please add this patch to /sbin/nv-update-extlinux and it will fix this issue. diff --git a/rfs/usr/sbin/nv-update-extlinux b/rfs/usr/sbin/nv-update-extlinux index e450a36..e1bc435 100755 --- a/rfs/usr/sbin/nv-update-extlinux +++ b/rfs/usr/sbin/nv-update-extlinux @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# SPDX-FileCopyrightText: Copyright (c) 2020-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2020-2024 NVIDIA CORPORATION & AFFILIATES. All r…

but I am unsure of how to apply the patch while my jetson won’t boot.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [June 5, 2024, 1:11am UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/3 "2024-06-05T01:11:42Z")

</div>

This is the solution to avoid the error and you need to conduct it “before” running apt upgrade.

If the error already happened, then this patch won’t bring it back.

---

<div class="post-metadata">

**Author:** ![user17005](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user17005](https://forums.developer.nvidia.com/u/user17005)\
**Post date:** [June 5, 2024, 1:50am UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/4 "2024-06-05T01:50:35Z")

</div>

So I would still have to reflash or could I do the weird fix in `/boot/extlinux/extlinux.conf`:

> [@New Jetpack 5.1.3 Xavier NX flash and apt upgrade results in broken setup](https://forums.developer.nvidia.com/t/new-jetpack-5-1-3-xavier-nx-flash-and-apt-upgrade-results-in-broken-setup/294224/13):
>
> facepalm yes…after mounting and opening up /boot/extlinux/extlinux.conf I saw root= was empty. You were right, setting it root=/dev/nvme0n1p1 put my board is back up and in a running state. So does that mean that the warning in apt upgrade Couldn't identify type of root file system for fsck hook Could have been the culprit? I’m just trying to understand how the boot/extlinux/extlinux.conf was modified.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [June 5, 2024, 2:02am UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/5 "2024-06-05T02:02:40Z")

</div>

Actually this error is just a “space” got added in kernel cmdline in extlinux.conf with “root=xxxx”.

If you can mount the nvme and go to update /boot/exlinux/extlinux.conf (remove space) then your next boot will work.

If you don’t know what I am talking about, then just reflash your board.

---

<div class="post-metadata">

**Author:** ![user17005](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user17005](https://forums.developer.nvidia.com/u/user17005)\
**Post date:** [June 5, 2024, 2:49am UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/6 "2024-06-05T02:49:39Z")

</div>

I was able to find the file I just did not know how to edit it.  
Then I remembered busybox had vi so I was able to get it to work.

Thank you so much for your time.

---

<div class="post-metadata">

**Author:** ![user17005](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user17005](https://forums.developer.nvidia.com/u/user17005)\
**Post date:** [June 5, 2024, 3:13am UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/7 "2024-06-05T03:13:10Z")

</div>

Actually, I have a different error now after rebooting:

```auto
Device /dev/sd?1 does not exist
Checking whether device /dev/nvme?n1p1 exist
[5.465345] tegra_cec 3960000.tegra_cec: Can't find physical address.
[5.465537] tegra_cec 3960000.tegra_cec: tegra_cec_init Done.
Looking for OTA work directory on the device(s): /dev/nvme0n1p1
mount /dev/nvme0n1p1 /mnt
[5.501060] EXT4-fs (nvme0n1p1): recovery complete
[5.501362] EXT4-fs (nvme0n1p1): mounted filesystem with ordered data mode. Opts: (null)
is_boot_only_partition /mnt
OTA work directory /mnt/ota_work is not found on /dev/nvme0n1p1
[5.542551] usb 1-3: New USB device found, idVendor=1358, idProduct=c123, bcdDevice= 0.00
[5.542750] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[5.542912] usb 1-3: Product: Bluetooth Radio
[5.543008] usb 1-3: Manufacturer: Realtek
[5.543092] usb 1-3: SerialNumber: 00e04c000001
Finding OTA work dir on internal storage device
mount /dev/mmcblk0p1 /mnt
[5.591193] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
is_boot_only_partition /mnt
OTA work directory /mnt/ota_work is not found on /dev/mmcblk0p1
OTA work directory is not found on internal and external storage devices
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-5.0#

```

The weird thing is I have 2 jetsons and the fix worked for one of them while the second one produced this error.

---

<div class="post-metadata">

**Author:** ![DaveYYY](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/daveyyy/32/233244_2.png) [@DaveYYY](https://forums.developer.nvidia.com/u/DaveYYY)\
**Post date:** [June 5, 2024, 3:22am UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/8 "2024-06-05T03:22:05Z")

</div>

Check this post so your device boots with the default mode:

> [@AGX Orin Recovery Boot](https://forums.developer.nvidia.com/t/agx-orin-recovery-boot/246473/6):
>
> Hi, Please try below method and it will go back to direct Boot again. Press ESC to enter UEFI Menu, then choose Device Manager → NVIDIA Configuration → L4T Configuration → OS chain A status → (The value is Unbootable if UEFI attemps recovery kernel) choose Normal → Save and exit, reboot, UEFI will try Direct Boot.

---

<div class="post-metadata">

**Author:** ![user17005](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user17005](https://forums.developer.nvidia.com/u/user17005)\
**Post date:** [June 5, 2024, 3:28am UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/9 "2024-06-05T03:28:19Z")

</div>

ok yeah, that fixed it.

Thank you so much again.  
(sorry for asking for help a second time)

---

<div class="post-metadata">

**Author:** ![ExailDeveloper](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/exaildeveloper/32/345014_2.png) [@ExailDeveloper](https://forums.developer.nvidia.com/u/ExailDeveloper)\
**Post date:** [June 18, 2024, 1:52pm UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/11 "2024-06-18T13:52:09Z")

</div>

Hello, I have the same problem.  
I have flashed and installed the SDK Manager packages on my Nvidia Jetson Xavier NX, but after the command “sudo apt-get upgrade” I can no longer boot. The error screen is always the following:

 ![error](https://global.discourse-cdn.com/nvidia/original/4X/c/c/2/cc2c0a94115007daf1c6eea79c1ff15f0177c5dd.jpeg)

I followed the steps to change the “OS chain A status” but that didn’t solve the problem.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [July 2, 2024, 1:52pm UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/12 "2024-07-02T13:52:55Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [July 3, 2024, 2:19am UTC](https://forums.developer.nvidia.com/t/xavier-nx-stalls-after-apt-upgrade-and-rebooting/295163/13 "2024-07-03T02:19:35Z")

</div>

Hi @ExailDeveloper  
Please open a new topic for your issue. Thanks
