This procedure builds a kernel and it’s modules and packages them. You then manual copy the files (not the packages) using ssh and set up up the links in the boot directory. This bypasses the package manager, so it will not know about the installed modules.
See Installing an alternate kernel.
You will find kernel and initrd at out/linux64/build/tmp/work/edison-poky-linux/edison-image/1.0/rootfs/boot/ looking like:
The format is bzImage-$1-edison-acpi-$2, with $1 the version and $2 the type (standard or preempt-rt).
Copy these to edison’s /boot. You can use ssh or write a bash script to automate this. However, I prefer to drag and drop using dophin’s fish plugin.
initrd rename it to initrdNew-$1-$2, do not overwrite the existing initrd.You will find the kernel’s modules directory at out/linux64/build/tmp/work/edison-poky-linux/edison-image/1.0/rootfs/lib/modules/.
Copy the directory with subdirectories to edison’s /lib/modules.
/boot directory.You can find the script altboot.sh fixup up the links in /boot in meta-intel-edison/utils/flash/. Copy the script to edison and run
./altboot.sh 6.6.31-rt31 preempt-rt
or a similar version and type.
bzImageNew and the initrd initrdNew.
The kernel and initrd installed according to this section have version and type in the filename. altboot.sh merrily creates links to the selected kernel. It will overwrite the existing link - or file, so don’t mix the 2 methods.© 2018 Ferry Toth