How only flash kernel when debug kernel driver?

Now, I debug the camera kernel driver (under Linux_for_Tegra\source\public\kernel\nvidia\drivers\media\i2c)
I add some print info in the driver. Then build the kernel:
make ARCH=arm64 O=$TEGRA_KERNEL_OUT
make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j56
cp out/arch/arm64/boot/Image …/…/…/…/kernel/Image
cp out/arch/arm64/boot/dts/* …/…/…/…/kernel/dtb/ -fr
make ARCH=arm64 O=$TEGRA_KERNEL_OUT modules_install INSTALL_MOD_PATH=…/…/…/…/rootfs
./apply_binaries.sh

then flash it.
./flash.sh -r -k kernel jetson-xavier-nx-devkit-emmc mmcblk0p1
but it can’t print the info what I add when poweron.
I flash the whole system image use the flow command is OK.
./flash.sh jetson-xavier-nx-devkit-emmc mmcblk0p1
why?

I flash the dtb is OK too.
./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-emmc mmcblk0p1

hello haihui.pang,

please refer to CBoot session of the boot flow.
you may use extlinux.conf configuration file to loads the kernel binary file from the LINUX entry.
thanks

1 Like

OK, Thanks