How can I copy the LibreELEC kernel to boot on another distro for RPi4

  • To transplant the Raspbian kernel to another distro like Arch ARM, I found I could copy from Raspbian, /boot/kernel7.img and the modules directory modules/4.14.90-v7+ to the Arch ARM image and it would boot and run fine. I wanted to do the same with the LE kernel so from LE's /boot, I copied kernel.img to Arch ARM's /boot and renamed it to kernel7.img and also copied the modules over, but found that it wouldn't boot.

    The error displayed was:

    Code
    *** Error in mount_flash: mount_part: Unknown filesystem ***
    ### Starting debugging shell for boot step: mount_flash... type exit to quit###

    Is there any way I can take the LE kernel and modules and just boot to it on Arch ARM?

  • The LE kernel has a built-in initramfs, taking care of the early linux init steps of LE, so using it on another distro won't quite work (it'll have exactly the result you posted).

    It's probably easiest to just build a kernel yourself, using the LE kernel config linux.arm.conf

    so long,

    Hias