Try to Use Archlinux Arm
-
Hello, I' m trying to use archlinux arm on pi cm5 laptop v20. The kernel I use is from github repo of cool-pi offcial, both 5.10 and 6.1 have been tried. In addition, I need to regenerate initrd.img by myself using dracut. I simply copied uboot from ubuntu img.
Both kernel can boot into system, but issues exist:
When booting from 5.10, I need to build mesa with panfork support from aur, and then I can use hardware acceleration in X11. However, entering plasma wayland will cause a black screen, and I can't input anything except poweroff.
If using 6.1, version of mesa from archlinux arm is 24.1.4 and linux-firmware package contains gpu firmware, which is at /lib/firmware/arm/mali/arch10.8/mali_csffw.bin. However I can't use any of hardware acceleration. Here is the dmesg:sudo dmesg | grep gpu [ 8.185337] vdd_gpu_s0: supplied by vcc5v0_sys [ 8.186427] vdd_gpu_s0: 550 <--> 950 mV at 750 mV, enabled [ 10.448271] I : [File] : drivers/gpu/arm/mali400/mali/linux/mali_kernel_linux.c; [Line] : 407; [Func] : mali_module_init(); svn_rev_string_from_arm of this mali_ko is '', rk_ko_ver is '5', built at '04:36:34', on 'Jul 23 2024'. [ 11.976920] rockchip-pm-domain fd8d8000.power-management:power-controller: Looking up gpu-supply from device tree [ 11.976941] rockchip-pm-domain fd8d8000.power-management:power-controller: Looking up gpu-supply property in node /power-management@fd8d8000/power-controller failed [ 11.977134] panthor fb000000.gpu: [drm] clock rate = 198000000 [ 11.977196] panthor fb000000.gpu: Looking up mali-supply from device tree [ 11.977553] panthor fb000000.gpu: Looking up sram-supply from device tree [ 11.977559] panthor fb000000.gpu: Looking up sram-supply property in node /gpu@fb000000 failed [ 11.982535] panthor fb000000.gpu: EM: OPP:400000 is inefficient [ 11.982543] panthor fb000000.gpu: EM: OPP:300000 is inefficient [ 11.982626] panthor fb000000.gpu: EM: created perf domain [ 11.984456] panthor fb000000.gpu: [drm] mali-g610 id 0xa867 major 0x0 minor 0x0 status 0x5 [ 11.984490] panthor fb000000.gpu: [drm] Features: L2:0x7120306 Tiler:0x809 Mem:0x301 MMU:0x2830 AS:0xff [ 11.984507] panthor fb000000.gpu: [drm] shader_present=0x50005 l2_present=0x1 tiler_present=0x1 [ 11.986256] panthor fb000000.gpu: Direct firmware load for arm/mali/arch10.8/mali_csffw.bin failed with error -2 [ 11.986273] panthor fb000000.gpu: [drm] *ERROR* Failed to load firmware image 'mali_csffw.bin' [ 11.986720] panthor: probe of fb000000.gpu failed with error -2 [ 32.258334] Modules linked in: ip6table_nat ip6_tables xt_REDIRECT xt_mark iptable_filter iptable_nat nf_nat nf_conntrack iptable_mangle bpfilter xt_TPROXY nf_tproxy_ipv6 nf_tproxy_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 8852be btusb btrtl btbcm btintel btmtk sch_fq_codel nfnetlink ip_tables panthor drm_gpuvm drm_exec drm_shmem_helper gpu_sched dm_mirror dm_region_hash dm_log dm_mod
It's certain that file /lib/firmware/arm/mali/arch10.8/mali_csffw.bin exists. I have to use llvmpipe.
And sound system seems not working on kernel 6.1.
-
@prcups said in Try to Use Archlinux Arm:
i
Have you tried this firmware for 6.1?
https://cool-pi.com/topic/581/6-1-kernel-gpu-firmware-update -
@plumlis I tried. Seems that the file from linux-firmware package in archlinux arm is the same as file from this site.
-
@prcups It seems same to me while I trying to make Fedora with panfrost.
About sound issue, Try to check alsamixer and unmute "left headphone mix" or "right headphone mix " something like that.
This works to me with kernel 6.1 under ubuntu.
-
@prcups said in Try to Use Archlinux Arm:
Direct firmware load for arm/mali/arch10.8/mali_csffw.bin failed with error -2
This bin file path needs to be modified.
-
@prcups
Panthor needs to be loaded in KO mode. -
@prcups try using this kernel its the rkr3 latest from rockchip
https://repo.bredos.org/repo/BredOS/aarch64/linux-rockchip-rkr3-6.1.75-8-aarch64.pkg.tar.zst
https://repo.bredos.org/repo/BredOS/aarch64/linux-rockchip-rkr3-headers-6.1.75-8-aarch64.pkg.tar.zst
https://repo.bredos.org/repo/BredOS/aarch64/mali-G610-firmware-rkr4-20240204-3-aarch64.pkg.tar.zstthen fix the kernel in extlinux.conf and enable the overlay
kernel /vmlinuz-linux-rockchip-rkr3 initrd /initramfs-linux-rockchip-rkr3.img fdtoverlays /dtbs/rockchip/overlay/rockchip-rk3588-panthor-gpu.dtbo
-
貌似是arch带的编译器版本太高了
用老编译器编的内核可以正常使用panthor