I have got mesa-pvr-vf2 to build and install OK. I built visionfive2-img-gpu but it failed to install due to 2 conflicting files that I presume must be included with cwt13 by default.
[root@ArchVF2 aur-visionfive2-img-gpu]# pacman -U visionfive2-img-gpu-1.17.6210866-4-riscv64.pkg.tar.zst
loading packages...
warning: visionfive2-img-gpu-1.17.6210866-4 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) visionfive2-img-gpu-1.17.6210866-4
Total Installed Size: 42.22 MiB
Net Upgrade Size: 0.48 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
visionfive2-img-gpu: /usr/lib/firmware/rgx.fw.36.50.54.182 exists in filesystem
visionfive2-img-gpu: /usr/lib/firmware/rgx.sh.36.50.54.182 exists in filesystem
Errors occurred, no packages were upgraded.
To work around this I simply deleted the two conflicting files, then I was able to install visionfive2-img-gpu but I donāt think I needed to do that.
It doesnāt seem that gdm is packaged for rv64 Arch yet and Iāve not been able to get lightdm nor sddm to work as a display manager. Which display manager and what config, if any is required, are you using @sajattack? Did you have to create an xorg.conf? If youāre not using a DM, how are you starting Weston?
Does GNOME work for you or have you not tested it?
Iām using lightdm to start Weston. Weston itself works, and a few demos. With the PVR aware Mesa, actually very little works, many GTK programs (that work with the āvanillaā Mesa) will crash with the new one. Gnome will not run, Iām not sure how complete / consistent with various bits that are ported are.
Did you have to adjust lightdm.conf or do anything else to get it to work like create an xorg.conf?
When I run sudo systemctl start lightdm after installing the mesa-pvr pacakge I just get a blinking cursor in the top left of the screen, I never see the lightdm login page.
@cwt, The problem with the PVR driver not initialising correctly is caused by rebuilding the initramfs (using the supplied, unmodified /etc/mkinitcpio.conf).
On cwt13:
Using the distributed initrd.img-5.15.2-cwt13 the PVR device initialises correctly.
Using a generated initrd.img-5.15.2-cwt13 (sudo mkinitcpio -g /boot/initrd.img-5.15.2-cwt13), always results in PVR_K initialisation errors.
@stronnag If I understand your question correctly, you are using the packaged kernel (which installed from # pacman -U linux-cwt-515-starfive-visionfive2-*.zst, right?)
In that package, the kernel version should be 5.15.2-cwt-3.0.4-2, the initrd image should name /boot/initramfs-linux.img , and the kernel itself should name /boot/vmlinuz
$ uname -a
Linux VF2-A 5.15.2-cwt-3.0.4-2 #1 SMP PREEMPT Wed Jun 14 01:20:40 +07 2023 riscv64 GNU/Linux
$ sudo pacman -Ql linux-cwt-515-starfive-visionfive2 |grep "vmlinuz"
linux-cwt-515-starfive-visionfive2 /boot/vmlinuz
linux-cwt-515-starfive-visionfive2 /usr/lib/modules/5.15.2-cwt-3.0.4-2/vmlinuz
$ sudo pacman -Ql linux-cwt-515-starfive-visionfive2 |grep preset
linux-cwt-515-starfive-visionfive2 /etc/mkinitcpio.d/linux.preset
$ cat /etc/mkinitcpio.d/linux.preset
# mkinitcpio preset file for the linux package
ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz"
PRESETS=('default')
#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux.img"
#default_options=""
Which I wonder why are you using this command sudo mkinitcpio -g /boot/initrd.img-5.15.2-cwt13? Because that would overwrite the non-packaged initrd image that was shipped with the cwt13 image before I create the packaged kernel.
I am using the imaged 5.15.2-cwt13 kernel. That is why I use the command sudo mkinitcpio -g /boot/initrd.img-5.15.2-cwt13. But making an initramfs with the packaged kernel has the same result of a non-working PVR_K.