Fixed
Created: Jun 20, 2025
Updated: Sep 5, 2025
Resolved Date: Jul 9, 2025
Found In Version: 10.22.33.17, 10.22.33.21
Fix Version: 10.22.33.22
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: BSP
Target: ORIN AGX Dev kit
OS: LTS22
BSP: nvidia-orin
Description:
If unplugging the USB-C cable connecting the HOST and the Target after the OS boots up, the following occurred.
[81046.808223] Workqueue: events tegra_xudc_usb_role_sw_work [tegra_xudc]
[81046.814785] pstate: 60400009 (nZCv daif +PAN {-}UAO -TCO -DIT -SSBS BTYPE={-}-)
[81046.821867] pc : _regulator_disable+0xf0/0x1b0
[81046.826329] lr : _regulator_disable+0xf0/0x1b0
[81046.830792] sp: ffff80000c22bc60
[81046.834204] x29: ffff80000c22bc60 x28: ffff0000840f5600 x27: 0000000000000000
[81046.841554] x26: ffff0000840f5674 x25: ffff000fa2bfcd05 x24: ffff0000800094b0
[81046.848817] x23: ffff00008b775a90 x22: ffff000087936800 x21: ffff00008176a000
[81046.856167] x20: ffff00008176a000 x19: ffff000083434300 x18: 0000000000000006
[81046.863517] x17: 0000000000000000 x16: ffffb5355e011d80 x15: 0720072007200720
[81046.870779] x14: 0720072007300756 x13: 0720072007200720 x12: 0720072007300756
[81046.878129] x11: 0720072007200720 x10: 0720072007200720 x9: ffffb5355f675308
[81046.885480] x8: 0000000100000593 x7: ffffb5355f6cd308 x6: 000000000001ea88
[81046.892741] x5: ffff000fa2be8a10 x4: ffffb5355f6cd308 x3: 0000000000000000
[81046.900092] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000091176e40
[81046.907357] Call trace:
[81046.909805] _regulator_disable+0xf0/0x1b0
[81046.914006] regulator_disable+0x50/0x90
[81046.917767] tegra186_utmi_phy_set_mode+0x194/0x2f0
[81046.922579] phy_set_mode_ext+0x68/0xc0
[81046.926520] tegra_xudc_device_mode_off+0x60/0x2d4 [tegra_xudc]
[81046.932379] tegra_xudc_usb_role_sw_work+0xa0/0xe0 [tegra_xudc]
[81046.938242] process_one_work+0x220/0x4ec
[81046.942441] worker_thread+0x7c/0x48c
[81046.945942] kthread+0x158/0x164
[81046.949354] ret_from_fork+0x10/0x20
[81046.952858] -{-}{{-}}[ end trace 3f99afbd7beae83a ]{{-}}{-}-
1. Build Instructions
=====================
# Download project for nvidia-orin
$ ./wrlinux-x/setup.sh --dl-layers --machine nvidia-orin --distro wrlinux-graphics
# Create a build
$ . environment-setup-x86_64-wrlinuxsdk-linux
$ . oe-init-build-env
# Enable CUSTOMER_RECIPES
# WARNING: The following action will enable NVIDIA proprietary licenses recipes
# and download NVIDIA proprietary sources, you must consult your legal
# department before enable them for the build.
#
# Add the following lines conf/local.conf
require conf/machine/include/nvidia-orin-proprietary-license-recipes.inc
BB_NO_NETWORK = '0'
# Build the image
$ bitbake wrlinux-image-std
To build 'core-image-minimal/base/sato' with 'poky' distro, it additionally requires
'pam' in DISTRO_FEATURES to help the build process.
Edit conf/local.conf to use:
$ echo 'DISTRO_FEATURES:append = " pam"' >> conf/local.conf
2. Boot Instructions
====================
2.1 Updating images in eMMC flash
=================================
This section provides details about how to update a new Nvidia Jetson AGX Orin
developer kit board with the latest image into it.
More details about hardware configuration & software details can be obtained
from below Nvidia website
https://www.nvidia.com/en-in/autonomous-machines/embedded-systems/jetson-orin/
Jetson AGX Orin Developer Kit | Nvidia
3.1.1 Nvidia Jetson AGX Orin board port connectivity
====================================================
First, connect the following to the developer kit;
* DisplayPort cable attached to a computer monitor
* For a monitor with HDMI input, use an active DisplayPort to HDMI adapter/cable.
* USB keyboard and mouse
* Ethernet cable (optional if you plan to connect to the Internet via WLAN)
* Then connect the included power supply into the USB Type-C port above the DC jack
* connet the USB-C type (near to 40-pin expander) to host machine for image upgrade purpose
connet the debug console port USB-A type (near to DP port) to host machine
* Your developer kit should automatically power on, and the white LED near
the power button will light. If not, press the Power button.
* open the debug console port from host machine 'sudo minicom -D /dev/ttyACM0 -8 -b 115200'
* Wait up to few mins to have the Linux prompt on the debug console port
3.1.2 Updating Nvidia Jetson AGX Orin with latest image
=======================================================
a) Open a debug console on the Host PC, login with Ubuntu/WR linux default credentials provided.
Wind River Linux Graphics LTS 22.33 Update 17 nvidia-orin ttyTCU0
nvidia-orin login: root
b) Run the below command to boot the board into recovery mode
root@nvidia-orin:~# reboot --force forced-recovery
c) After running the above step, goto host machine where the USB Type C cable is connected
* copy the boot image from the build machine to host machine into a specific path
* untar the boot image using below command
tar -xvf wrlinux-image-std-nvidia-orin.tegraflash.tar.gz
* Execute the below command with sudo permission to start the image upgrade
sudo ./doflash
* Wait until the above command is executed. The Nvidia board will go for reboot
automatically after the upgrade.
* Now the Nvidia target board shall be booted with the updated image.
4. Booting the LTS22 system on Nvidia Jetson AGX Orin.
====================================================
open the debug console port from host machine 'sudo minicom -D /dev/ttyACM0 -8 -b 115200'
login as: root
root@nvidia-orin-nx:~#
Remove the USB-C cable connected in step 3-1-2 from the AGX Orin.
As a result, the following stack trace error is output to the console
---------------------------------------------------------------------------------------
[81046.808223] Workqueue: events tegra_xudc_usb_role_sw_work [tegra_xudc]
[81046.814785] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[81046.821867] pc : _regulator_disable+0xf0/0x1b0
[81046.826329] lr : _regulator_disable+0xf0/0x1b0
[81046.830792] sp : ffff80000c22bc60
[81046.834204] x29: ffff80000c22bc60 x28: ffff0000840f5600 x27: 0000000000000000
[81046.841554] x26: ffff0000840f5674 x25: ffff000fa2bfcd05 x24: ffff0000800094b0
[81046.848817] x23: ffff00008b775a90 x22: ffff000087936800 x21: ffff00008176a000
[81046.856167] x20: ffff00008176a000 x19: ffff000083434300 x18: 0000000000000006
[81046.863517] x17: 0000000000000000 x16: ffffb5355e011d80 x15: 0720072007200720
[81046.870779] x14: 0720072007300756 x13: 0720072007200720 x12: 0720072007300756
[81046.878129] x11: 0720072007200720 x10: 0720072007200720 x9 : ffffb5355f675308
[81046.885480] x8 : 0000000100000593 x7 : ffffb5355f6cd308 x6 : 000000000001ea88
[81046.892741] x5 : ffff000fa2be8a10 x4 : ffffb5355f6cd308 x3 : 0000000000000000
[81046.900092] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000091176e40
[81046.907357] Call trace:
[81046.909805] _regulator_disable+0xf0/0x1b0
[81046.914006] regulator_disable+0x50/0x90
[81046.917767] tegra186_utmi_phy_set_mode+0x194/0x2f0
[81046.922579] phy_set_mode_ext+0x68/0xc0
[81046.926520] tegra_xudc_device_mode_off+0x60/0x2d4 [tegra_xudc]
[81046.932379] tegra_xudc_usb_role_sw_work+0xa0/0xe0 [tegra_xudc]
[81046.938242] process_one_work+0x220/0x4ec
[81046.942441] worker_thread+0x7c/0x48c
[81046.945942] kthread+0x158/0x164
[81046.949354] ret_from_fork+0x10/0x20
[81046.952858] ---[ end trace 3f99afbd7beae83a ]---
----------------------------------------------------------------------------------------
5.Rebuild Image.
========================================================
I have checked and found that this problem corresponds to LP: #2083643 at the following URL.
https://launchpadlibrarian.net/754331549/linux-nvidia-tegra_5.15.0-1029.29_5.15.0-1030.30.diff.gz
+ * apply NVIDIA patches Sep 20 - Oct 3, 2024 (LP: #2083643)
+ - NVIDIA: SAUCE: Revert "regulator: core: Only increment use_count when
+ enable_count changes"
The attached patch has been applied to the kernel.
# Build the image
$ bitbake wrlinux-image-std
Updating images in eMMC flash.
Repeat step 3.1.1 and 3.1.2.
Booting the LTS22 system on Nvidia Jetson AGX Orin.
open the debug console port from host machine 'sudo minicom -D /dev/ttyACM0 -8 -b 115200'
login as: root
root@nvidia-orin-nx:~#
Remove the USB-C cable as instructed in Step 4.
As a result, the following message is output to the console
-----------------------------------------------------------------------------------------
[ 35.052360] VIN_SYS_5V0: Underflow of regulator enable count
-----------------------------------------------------------------------------------------