The changes from the link in my previous post I have applied to the source code. Next to this I changed the following:
-replacing "false" into "disabled" and "true " into "enabled" in the file packages/graphics/libdrm/package.mk (they changed it for other entries).
-for the statement in the file config/graphic
if [ "${GRAPHIC_DRIVERS}" = "all" ]; then
GRAPHIC_DRIVERS="crocus i915 iris r300 r600 radeonsi nvidia nvidia-legacy nvidia-ng vmware virtio vc4"
fi
I reduced the second line to GRAPHIC_DRIVERS="nouveau". However during building LibreELEC I saw in the configuration:
Graphic Drivers: crocus i915 iris r300 r600 radeonsi virtio vmware
Removal of the first and third line of the statement resulted in:
Graphic Drivers: nouveau
After building the image I copied it to a hard disk. Booting from this hard disk I could install LibreELEC on a pen drive successfully. Booting from this pen drive stops at a certain moment without starting Kodi. I can reboot my computer by ctr-alt-delete.
After replacing "quiet" by "ssh textmode" at the end of APPEND in the file syslinux.cfg I got a LibrELEC prompt after booting. I can also access the computer by ssh.
In dmesg the word "nouveau" can not be found. There is also no kernel module nouveau available. Despite of the changes made in the source code, the nouveau driver seems not have been set in the config file for the kernel.
I downloaded the kernel version that is mentioned in project/Generic/linux/linux.x86_64.conf and copied this file to .config, make menuconfig and wrote .config back to linux.x86_64.conf. I built a new image and now the nouveau driver has been included. Also during booting nouveau kicks in (font becomes smaller). The splash screen with the logo of LibreELEC has never been shown.
However the booting stops at
[ok] Reached target kodi.target
pastekodi https://paste.libreelec.tv/sharp-penguin.log and
pastecrash https://paste.libreelec.tv/grand-sculpin.log show
/usr/lib/kodi/kodi.bin: error while loading shared libraries: libva.so.2: cannot open shared object file: No such file or directory
I can find it in /$HOME/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/libva-2.20.0 and it compiles fine. However, via ssh I can see it is missing.
How could I add this missing library? See RE: Adding package to image