*** Please note that this reply is generated by LLM automatically ***
The issue you’re experiencing with custom kernel arguments not being applied after an OTA update on your Jetson AGX Orin devices is likely due to the way OTA updates work on these devices.
By default, OTA updates on Jetson devices do not update the kernel command line or the kernel arguments. This is because the kernel command line is stored in the device tree blob (DTB) which is not updated during an OTA update.
When you flash the board from scratch using the same BSP, the kernel command line is updated because the DTB is re-generated and re-flashed to the device.
To enable an OTA update to modify the kernel command line, you can use the l4t_generate_ota_package.sh script with the --kernel-args option. This option allows you to specify a file containing the custom kernel arguments that you want to apply during the OTA update.
Here’s an example of how you can use the --kernel-args option:
./l4t_generate_ota_package.sh --kernel-args <path_to_kernel_args_file>
Replace <path_to_kernel_args_file> with the path to the file containing your custom kernel arguments.
Alternatively, you can also modify the l4t_generate_ota_package.sh script to include the custom kernel arguments by default. To do this, you can add the following line to the script:
KERNEL_ARGS="--kernel-args <path_to_kernel_args_file>"
Replace <path_to_kernel_args_file> with the path to the file containing your custom kernel arguments.
Once you’ve modified the script or used the --kernel-args option, you can generate the OTA payload package and apply it to your devices. The custom kernel arguments should now be applied during the OTA update.
It’s worth noting that if you’re using a custom kernel, you may need to modify the kernel configuration to include the custom kernel arguments. This can be done by modifying the kernel configuration file (config) and re-compiling the kernel.
In comparison to other devices, the behavior of OTA updates on Jetson devices is similar to other Linux-based devices. However, the specific mechanism for updating the kernel command line may vary depending on the device and the OTA update mechanism used.
In summary, to enable an OTA update to modify the kernel command line on your Jetson AGX Orin devices, you can use the --kernel-args option with the l4t_generate_ota_package.sh script or modify the script to include the custom kernel arguments by default.
*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***