We are currently using the Jetpack 4.6.4 SDK on a Xavier NX . We want to optimize the boot time and have noticed the waiting time during the Cboot stage for auto boot and kernel selection.
So I downloaded the source code of cboot (cboot_src_t19x.tbz2 from Jetson Linux R32.7.4 | NVIDIA Developer)and compiled the lk according to the document CBoot_Standalone_Readme_t194.txt. I then placed it into the development environment. However, I am unable to enter the cboot stage successfully.
here is flashing log. flash_cboot.txt (79.9 KB)
here is the boot log. cboot_2023-10-23_11_02_30.log (33.5 KB)
“I noticed that when using the original cboot, there would be a log displaying ‘Welcome to cboot’ after the lk stage. However, when using the cboot I compiled myself, this log does not appear. May I ask how should I configure the cboot source code to ensure it can boot up properly on Xavier?”
Are you using the devkit or custom board for Xavier NX?
Could your Xavier NX boot up successfully if you recover the <Linux_for_Tegra>/bootloader/nvtboot_cpu_t194.bin to original and use the following command to update again?
I relpace the cboot_t194.bin file not the nvtboot_cpu_t194.bin with the lk.bin whitch I compiled.
because I see the CBoot_Standalone_Readme_t194.txt below.
Build the T194 CBoot binary, lk.bin, with the command:
make -C ./bootloader/partner/t18x/cboot PROJECT=t194 TOOLCHAIN_PREFIX=“${CROSS_COMPILE}” DEBUG=2 BUILDROOT=“${PWD}”/out NV_TARGET_BOARD=t194ref NV_BUILD_SYSTEM_TYPE=l4t NOECHO=@
The binary is located at: ‘./out/build-t194/…’:
cboot/out/build-t194/lk.bin
Rename the binary lk.bin to cboot_t194.bin to use with the Jetson Xavier (T194)
Linux for Tegra Board Support Package.
This CBoot binary replaces the one provided at: Linux_for_Tegra/bootloader/cboot_t194.bin.
I could boot up successfully when I recover the cboot_t194.bin.
so I need to relpace nvtboot_cpu_t194.bin instead of cboot_t194.bin. Is that rihgt?