Home  >  Edison  >  Building

Installing an alternate kernel fast

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.

Building an alternative kernel

See Installing an alternate kernel.

Modifying Edison’s installed kernels

Copying the kernel and module directory

Transfer kernel and kernel modules

You will find kernel and initrd at out/linux64/build/tmp/work/edison-poky-linux/edison-image/1.0/rootfs/boot/ looking like:

  • bzImage-6.16.0-rc6-edison-acpi-preempt-rt
  • initrd

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.

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.

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.

Boot into the new kernel

See Installing an alternate kernel.