Compiling and updating kernel/modules on SD card?

I’ve got a Jetson Nano running from SD card and want to deploy an updated kernel and modules but its not clear to me what the best/correct way of doing this is?

I’ve followed the steps here building on the nano itself -

  • make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig after updating tegra_defconfig to add the modules I needed.
  • `make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j4[/code]

Everything seems to have built ok.

Is there a way to add this updated kernel and module to the currently running system, the guide seems to describe the steps involved in creating a new SD card image rather than updating the current system.

Any tips would be cool.

If the only thing you’re doing is to add a module, then simply copy the file to the correct subdirectory of “/lib/modules/$(uname -r)/”. Then run “sudo depmod -a”. No need for any other flash or image creation.

Hi, Balnog

For the modules install and update, just follow @linuxdev’s instructions.
For the kernel Image update.

cp Image /boot/  && sync && reboot

The Image loaded by current system is assigned by label ‘LINUX’ in extlinux.conf

jetbot@jetbot:~$ cat /boot/extlinux/extlinux.conf 
DEFAULT primary

MENU TITLE p3450-porg eMMC boot options

LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} rootfstype=ext4 root=/dev/mmcblk0p1 rw rootwait