*** Please note that this reply is generated by LLM automatically ***
I understand your concern about not wanting to do a full reset of your Jetson AGX Orin, especially since it’s connected to a robot PC and you want to keep the existing data. Don’t worry, I’ll guide you through the process of recovering your Jetson AGX Orin without losing any data.
Recovering from a corrupted kernel
Since you’ve installed a WiFi module and the kernel version doesn’t match, it’s likely that the kernel got corrupted during the installation process. To recover from this, you’ll need to flash the Jetson AGX Orin with a new kernel image.
Checking if the Jetson AGX Orin is in Force Recovery Mode
Before we proceed, let’s check if the Jetson AGX Orin is in Force Recovery Mode. To do this, follow these steps:
- Connect your Linux host computer to the Jetson AGX Orin using a USB cable.
- Open a terminal window on your host computer and enter the command
lsusb.
- Look for the message
Bus <bbb> Device <ddd>: ID 0955: <nnnn> Nvidia Corp. where <bbb>, <ddd>, and <nnnn> are numbers.
If you see this message, it means the Jetson AGX Orin is in Force Recovery Mode.
Flashing the Jetson AGX Orin with a new kernel image
To flash the Jetson AGX Orin with a new kernel image, you’ll need to use the l4t_initrd_flash.sh script. Here are the steps:
- Download the latest L4T (Linux for Tegra) package from the NVIDIA website.
- Extract the package to a directory on your host computer.
- Navigate to the
tools/kernel_flash directory.
- Run the following command to flash the Jetson AGX Orin with a new kernel image:
sudo ./l4t_initrd_flash.sh -u <pkc_keyfile> [-v <sbk_keyfile>] --uefi-keys uefi_keys/uefi_keys.conf jetson-agx-orin-devkit internal
Replace <pkc_keyfile> and <sbk_keyfile> with the actual file names of your PKC and SBK key files, respectively.
Using NVMe as rootfs storage
If you’re using NVMe as rootfs storage, you’ll need to modify the command slightly:
sudo ./l4t_initrd_flash.sh --external-device nvme0n1p1 -u <pkc_keyfile> [-v <sbk_keyfile>] --uefi-keys uefi_keys/uefi_keys.conf -p "-c ./bootloader/generic/cfg/flash_t234_qspi.xml" -c ./tools/kernel_flash/flash_l4t_t234_nvme.xml --showlogs --network usb0 jetson-agx-orin-devkit external
Comparison with other Jetson modules
The process of recovering a corrupted kernel is similar for other Jetson modules, such as the Jetson Orin NX and Orin Nano. However, the specific commands and options may vary depending on the module and its configuration.
For example, the Jetson Orin NX and Orin Nano use the same l4t_initrd_flash.sh script, but with slightly different options:
sudo ./l4t_initrd_flash.sh --external-device nvme0n1p1 -u <pkc_keyfile> [-v <sbk_keyfile>] --uefi-keys uefi_keys/uefi_keys.conf -p "-c ./bootloader/generic/cfg/flash_t234_qspi.xml" -c ./tools/kernel_flash/flash_l4t_t234_nvme.xml --showlogs --network usb0 jetson-orin-nano-devkit external
Conclusion
Recovering a corrupted kernel on a Jetson AGX Orin requires flashing the module with a new kernel image using the l4t_initrd_flash.sh script. The process is similar for other Jetson modules, but with slightly different options and commands. By following these steps, you should be able to recover your Jetson AGX Orin without losing any data.
*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***