I am using a ConnectTech Photon carrier for a Xavier NX board, and would like to build a custom kernel to support a CSI camera. I am able to compile the kernel sources from ConnectTech for the carrier board, but when attempting to flash, I always get stuck here:
[ 37.5837 ] Writing partition
[ 37.5849 ] tegradevflash_v2 --write kernel 1_boot_sigheader.img.encrypt
[ 37.5875 ] Bootloader version 01.00.0000
[ 37.6025 ] Writing partition kernel with 1_boot_sigheader.img.encrypt
[ 37.6030 ] 0000000074740204: E> NV3P_SERVER: Accessing offset 327933952 after boundary partition size 67108864
[ 37.6042 ]
[ 37.6042 ]
I can flash the board no problem when not building the kernel from scratch.
I am also able to flash a Xavier NX devkit when building the kernel (using the sources provided by NVIDIA).
The .conf
files for the two boards don’t show any differences in the bootloader size partitions - what could I be doing wrong?
Here is how I am building my kernel:
# download L4T
# apply CTI BSP into the L4T directory based on Connecttech's instructions
export ARCH=arm64
export LOCALVERSION=-tegra
export CROSS_COMPILE=/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
make -C kernel/kernel-4.9/ mrproper
make -C kernel/kernel-4.9/ O=$KERNEL_OUT cti_tegra_defconfig
make -C kernel/kernel-4.9/ O=$KERNEL_OUT -j2 --output-sync=target Image
make -C kernel/kernel-4.9/ O=$KERNEL_OUT --output-sync=target dtbs
make -C kernel/kernel-4.9/ O=$KERNEL_OUT -j2 --output-sync=target modules
make -C kernel/kernel-4.9/ O=$KERNEL_OUT INSTALL_MOD_PATH=$KERNEL_MODULES_OUT modules_install
# copy the files into my L4T dir
cp -rfv $KERNEL_OUT/build/arch/arm64/boot/Image $L4T_DIR/kernel/
cp -rfv $KERNEL_OUT/build/arch/arm64/boot/dts/*.dtb $L4T_DIR/kernel/dtb
sudo cp -arfv $KERNEL_OUT/modules/lib $L4T_DIR/rootfs/
# do apply_binaries
sudo ./apply_binaries.sh
# flash
sudo ./flash.sh -r -k kernel cti/Xavier-NX/photon-imx219 mmcblk0p1
Any help would be appreciated. I am using Jetpack 4.4 and L4T 32.4.3