Thatâs part of the kernel, so youâd end up building a kernel with a matching configuration to the running system. The hard part is that I donât know if the edit will change the base kernel, or instead change a module. Out of safety I would recommend building and installing both a new kernel Image and modules. You would need to change the CONFIG_LOCALVERSION
to something else so that the module directory changes. You could add the new Image
with an alternate name (probably based on the CONFIG_LOCALVERSION
) and simply add a second boot entry to â/boot/extlinux/extlinux.conf
â, then pick that entry with serial console during boot.
The documents for your L4T release have the cross compile information. If you use command âhead -n 1 /etc/nv_tegra_release
â you can find your L4T version. The list of L4T versions (leading to documents and kernel source) are here:
https://developer.nvidia.com/linux-tegra
Some information on doing this natively, and explaining CONFIG_LOCALVERSION
, can be found here:
https://forums.developer.nvidia.com/t/attempts-to-set-up-ecryptfs-and-fscrypt-failed-and-failed-and-failed/119083/2
The above URL emphasizes matching the CONFIG_LOCALVERSION
, but in this case you might want your CONFIG_LOCALVERSION
to be something like:
CONFIG_LOCALVERSION="-pci-test"
I highly recommend leaving the old kernel there and accessible via serial console picking. In that above URL it doesnât mention â/boot/extlinux/extlinux.conf
â, but basically, if you add the Image
file with a new name to â/boot
â, and copy the original part of the â/boot/extlinux/extlinux.conf
â for the default Image
, then you simply pick the one you want and donât worry about if your edit worked or not. An example extlinux.conf
edit to make both kernels available (if you have serial console set up during boot):
LABEL primary
MENU LABEL primary kernel
LINUX /boot/Image
APPEND ${cbootargs} root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4
LABEL pci-test
MENU LABEL pci-test
LINUX /boot/Image-pci-test
APPEND ${cbootargs} root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4
Youâd then interrupt boot at the correct moment (it is only a very short window to hit a key to interrupt bootâŠif you interrupt too early just type âboot
â and then interrupt again at the kernel pick phase) and use â2
â to pick the second kernel label.