I want to debug kernel module using KDBG, i extracted kernel sources , ran xconfig on the tegra_defconfig generated .config using of course all the command line parameters as in the development guide.
after building the kernel, i copied the generated Image and dtb under the /kernel and also generated kernel_supplements and copied there as well.
i put the xavier to recovery mode and run the command:
sudo ./flash.sh -k kernel jetson-xavier mmcblk0p1
the script runs and seems to finish flashing, the xavier reboots to linux normally.
when i check if any configuration was changed:
zcat /proc/config.gz | egrep ‘CONFIG_KGDB|KDGB|CONFIG_FRAME_POINTER|CONFIG_WATCHDOG|IKCONFIG’
having to flash entire filesystem and erase everything every time i need to make a small change to kernel is time consuming as well as unacceptable.
for a development kit,integrtation process is extermely convoluted.
with earlier versions this didn’t seem to be a problem as far as i can remember, but still i’m not the only one having problems with the flash process.