Hello,
I have successfully rebuilt the Linux kernel (kernel-5.10) for a Jetson AGX Xavier as explained here: Kernel Customization — Jetson Linux<br/>Developer Guide 34.1 documentation
I did some modifications (adding printk
messages) to some kernel modules, for example these files:
kernel/kernel-5.10/sound/soc/tegra/tegra210_i2s.c
, kernel/kernel-5.10/sound/soc/tegra/tegra210_adsp.c
, and a couple of other files.
After re-flashing the device with the new kernel Image + modules, I have enough reason to believe my changes in those files have not been applied. In other words, the unchanged modules from before still seem to be those used by the kernel. I view my changes by looking at the output in the dmesg
buffer.
After rebuilding the kernel, I (successfully) installed the modules with (modified to fit my paths):
$ sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT modules_install \
INSTALL_MOD_PATH=<top>/Linux_for_Tegra/rootfs/
I also compressed the modules with:
tar --owner root --group root -cjf kernel_supplements.tbz2 \
lib/modules
and replaced the kernel_supplements.tbz2
file in Linux_for_Tegra/rootfs/
with the new file.
I then ran the regular flashing commands for the Jetson AGX Xavier:
sudo ./apply_binaries.sh
sudo ./tools/l4t_flash_prerequisites.sh
sudo ./flash.sh jetson-agx-xavier-devkit internal
I believe these are all the steps required (I may be mistaken) to correctly rebuild the kernel + modules and apply them.
Does anyone have a hint on what could be the issue? That is, why the changes I made don’t seem to be taken into account?
Thanks