Replace Kodi version in Librelec (Raspberry Pi4

  • Hi,

    I've looked around the forums and I can't see a way to swap out the Kodi version that's on Librelec (apart from the one built in version that only allows previous Libreelec builds), which is especially difficult with no apt.

    The reason I'm looking to do this is that I want to install a version of Kodi that someone has built which supports rotation. I have a projector that I need to send the image to rotated 180°.

    Is there actually a way to do this, or is the Kodi builds for Librelec too specific to make this work?

    Thanks for reading.

    WT

  • LE is an "embedded" style distro so it's not possible to change the Kodi version in an image as kodi.bin lives inside the read-only SYSTEM file which is uncompressed into a virtual filesystem (in RAM) on boot. Even if you could replace it, the file you're looking to download and use is a) an old version of Kodi, b) compiled for Debian so almost certainly wouldn't run on LE anyway.

    https://wiki.libreelec.tv/development/build-basics (and adjacent wiki pages) contains instructions on how to self-build your own LE image. Start with building a default image. Then add the diff patch with Kodi changes to packages/mediacentre/kodi/patches and then rebuild the image; it will detect the patch and rebuild only the Kodi package. You can also add udev rules files to packages/mediacentre/kodi/udev.d and they will be included in the SYSTEM file or you can add them manually to /storage/.config/udev.rules.d sometime later.

    NB: The "how to build an LE image" instructions that leecher1337 provides in the last post to that thread are not correct in a couple of places. I'd guess written by ChatGPT and not from actual experience.