Hi,
I’m using the agx xavier devkit (r35.3.1). I need run some AI or robotic software (ROS2, docker, etc.). Because the internal emmc storage is low, I flash the Jetpach to a nvme (500G) by:
Therefore, I want to known how to reduce flash time of l4t_initrd_flash.sh when only flashing single partition?
Can I continue use the faster command sudo ./flash.sh -r -k spe-fw jetson-agx-xavier-devkit mmcblk0p1 to update the SPE-FW partition in this situation?
Thanks.
It has been a long time since the full flash, but I found the relevant log file in the folder /Linux_for_Tegra/initrdlog (I am not 100% sure). flash_2-1_0_20230426-222133.log (71.4 KB)
We will update the code to reduce the flash individual partition in the next release.
For now, there’s a workaround for you use case.
Step 1. Create a second BSP folder to generate the new spe fw for initrd
Step 2. Manually replace the spe fw for initrd in original BSP folder.
$ cp Linux_for_Tegra_2nd/tools/kernel_flash/images/internal/spe_t194_sigheader.bin.encrypt Linux_for_Tegra/tools/kernel_flash/images/internal/spe_t194_sigheader.bin.encrypt
Step 3. Use the following command to flash only the spe partiton, which would use existing environment
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1 -c ./tools/kernel_flash/flash_l4t_nvme.xml --flash-only -k spe-fw jetson-agx-xavier-devkit nvme0n1p1
tools/kernel_flash/images/internal/spe_t194_sigheader.bin.encrypt will be generated when you use initrd command to flash the whole board as your previous comamnd as following.
Sorry, I still have some misunderstandings about the flashing plan you provided.
Based on my understanding, this command should be executed in the original BSP folder.
But, this also means that it will exist in that original folder (I have discovered its existence in that folder). Why do you still need to copy in Step2?
In addition, what folder should the modified spe-fw be placed in?
The main purpose for the 2nd BSP package is to get the spe_t194_sigheader.bin.encrypt.
You should put your updated spe_t194.bin to 2nd BSP package and use the full flash command to flash your board. The spe_t194_sigheader.bin.encrypt will be generated during the flash so that you could copy this file to the original BSP package.
At last, you could use initrd command to update only spe-fw with the command in Step3.