inindev / visionfive2

stock debian riscv64 linux for the starfive visionfive v2
GNU General Public License v3.0
6 stars 1 forks source link

Faulty /lib/firmware/rgx.* #4

Open EchedelleLR opened 1 week ago

EchedelleLR commented 1 week ago

I get the following error while trying to install your latest release:

Copying rgx firmware to initrd...
36164 blocks
Creating lib/firmware folder in initrd...
cp: cannot stat '/lib/firmware/rgx.*': No such file or directory
run-parts: /etc/kernel/postinst.d/zz-initramfs-mod exited with return code 1
P: Checking for EXTLINUX directory... found.
P: Writing config for vmlinuz-6.11.3-1-riscv64...
P: Writing config for vmlinuz-6.6.20-starfive...
P: Writing config for vmlinuz-5.15.0-starfive...
P: Updating /boot/extlinux/extlinux.conf...
dpkg: error processing package linux-image-6.11.3-1-riscv64 (--install):
 installed linux-image-6.11.3-1-riscv64 package post-installation script subprocess returned error exit status 1
Setting up linux-libc-dev:riscv64 (6.11.3-1) ...
Errors were encountered while processing:
 linux-image-6.11.3-1-riscv64
inindev commented 4 days ago

this line from above: /etc/kernel/postinst.d/zz-initramfs-mod

The upstream image does not contain a file named zz-initramfs-mod:

# ls -al /etc/kernel/postinst.d
total 12
-rwxr-xr-- 1 root root 929 Sep 22 06:51 dtb_cp
-rwxr-xr-x 1 root root 863 Aug 31  2020 initramfs-tools
-rwxr-xr-- 1 root root 548 Sep 22 06:51 kernel_chmod
lrwxrwxrwx 1 root root  25 Sep 22 06:51 update_extlinux -> ../../../boot/mk_extlinux

If you are trying to run a recent upstream kernel on a older vendor supplied downstream version of Linux, I would not expect this to work.

EchedelleLR commented 4 days ago

In the beginning, I started using the StarFive provided image, then upgraded to Trixie upstream and after that, I tried using your kernel and ran into that error.