6.1 Kernel GPU firmware update
-
昨天看到6.1又有了新的提交,不过今天编译后发现还是没声音。
-
Hello, I have decided to give 6.1 a try on my CoolPi CM5 v10 notebook (or at least, I think it's the v10). I decided to write the Ubuntu 24.04 LTS image to a USB drive.
I'm not sure why, but only images for the v20 exist, but the 24.04 LTS image works without issues on the v10. I ran a device tree export to verify what model I have and I didn't find any mention of v20 so I assume my notebook is the v10 model. Ubuntu 24.04 LTS what came installed by default on my notebook.
I wanted to try to use Panthor on my notebook so I enabled it in the v10 defconfig before compiling. I accessed the Ubuntu install via chroot to upgrade all of the packages, install the latest Mesa (with the 'kisak-mesa fresh' PPA), and placed the new firmware file at '/lib/firmware/arm/mali/arch10.8'
Whenever trying to boot the laptop from the USB drive do I get a black screen immediately after the CoolPi logo goes off screen. I do not get the Ubuntu startup screen. I did have Ubuntu working via USB when I had the 5.10 kernel, so this is something kernel-related.
Does the 6.1 kernel support v10 notebooks at the moment or does it only support v20 notebooks? Thank you in advance.
-
For some reason the dtb file in the 24.04 LTS image does not have 'v20' in the name but it turns out my laptop is the v20 model. When I purchased it, I didn't have anything telling me whether it was v10 or v20. I built the 6.1 kernel for the v20 model and it now Ubuntu starts up without issues with working GPU acceleration.
Sound doesn't seem to work still, but I'll see if that fix on the Armbian thread works here.
-
@nathan
Upgrade the Mesa version according to the following instructions, and then copy the Mali bin file to the corresponding path to enable Panthor.sudo add-apt-repository ppa:oibaf/graphics-drivers sudo apt update sudo apt-get dist-upgrade
-
看起来Ubuntu 的 Mesa 更新了,PPA G610 里的已经过期了。
是不是应该更新一下了?或者有没有对应手册说明我可以自己编译新Mesa with Panfrost
还是说其他 PPA 的 Mesa 默认也支持 Panfrost? -
Thank you. I've managed to get Panthor working on the laptop as of a few hours ago. The issue I had was coming from me confusing my v20 notebook for the v10 which I fixed. The only issue that remains is sound. The audio devices are detected but no audio actually goes through.
-
To my knowledge, the existing Mesa PPA that comes by default with the Ubuntu 24.04 LTS image contains Panfork (which is an unupdated fork of Panfrost containing a number of hacks for the Mali G610) which predates Panthor or at least is from a time when Panthor was very early in development.
The PPA that George mentioned above contains Mesa packages that are built daily. On most Linux distros, the Mesa included also contains Panfrost and has been for several years. To my knowledge, Panfrost is included by default when building Mesa from source.
-
@nathan said in 6.1 Kernel GPU firmware update:
Panfork
So only the "Panfork Mesa" will work with kernel 5.10 bsp, Right?
I just wanted to say that I am using a preinstalled Ubuntu 24.04 with Kernel 5.10 BSP. Now, Ubuntu is prompting me that there is a new version of Mesa available for update, and the "Panfork" version of Mesa is outdated. I would like to know if there are any manuals or tutorials that I can refer to for building the latest Mesa with Panfork, so that my 5.10 BSP Kernel can continue to work.
-
LOL
I found the "Panfork mesa version 24.05" preinstalled from coolpi ppa is just from mesa 23.05 renamed.
https://launchpad.net/~george-coolpi/+archive/ubuntu/mali-g610/+packagesI dont care about npu. Just waiting speaker and sound fix for kernel 6.1.
-
@plumlis
The function of switching between speakers and headphones is now OK, and the 6.1 kernel has been updated to the latest version.
Then/etc/rc.local blocks the following options:#amixer -c 2 cset numid=4 192 #amixer -c 2 cset numid=2 4,4 #amixer -c 2 cset numid=13 6 #amixer -c 2 cset numid=19 28 #amixer -c 2 cset numid=20 6
-
@george Thanks for info,I'll try it out now.
-
@george 我换到了 6.1 内核,就是git 最新版编译的。
也注释掉了 rc.local 里面的内容,不过依然没有声音。后来我在 alsamixer 里看了看,把什么 left headphone mix 和 right headphone mix 之类的 unmute ,声音就回来了。
我注意到麦克风似乎还是不工作的,不过目前也没什么用到麦克风的场景,就先不测试了。
-
Yes, it will work just fine. Panfork is what is preinstalled on the 24.04 LTS image (where the 5.10 BSP kernel is also shipped). Before trying the 6.1 LTS kernel with Panthor, I upgraded my system and it automatically installed newer Mesa, which consequently replaced the Mesa containing Panfork (which broke GPU acceleration before I switched to Linux 6.1 LTS with Panthor + newer Mesa).
I'm using Panthor on the Linux 6.1 LTS kernel with a constantly updating Mesa as indicated by my other post right now for GPU acceleration, so I do not use Panfork.
If you want to continue to use the 5.10 BSP kernel, you will need to continue using the Mesa that has Panfork. Unless someone updates the Mesa from the original PPA so that it survives system upgrades, for now at least, in order for it to survive a system upgrade, you will need to either pin the Mesa release version using an 'apt' package release pin preferences file or spoof the versions of the packages yourself and install them to the system so that 'apt' does not try to download and install the regular, newer Mesa from the Ubuntu repos.
Panfork has not been updated in a very long time. To my knowledge, Panfork is an abandoned project. There is no newer Mesa available with the Panfork hacks applied to it and Panfork is not a fully upstream-friendly project. TLDR: Anyone who is using Panfork is also using an older Mesa version and no one seems to be interested in applying the Panfork hacks to a newer Mesa release at the moment.
-
Question, is it a known issue for suspend to break when running the 6.1 LTS kernel or is there a change needed to be made in the software? I have noticed that once the screen goes blank for awhile, the power light does not turn off, and the laptop is completely unresponsive to any kind of input given (including pressing the power button). It seems like it does not like to wake up from suspend when running the newer kernel.
So far the only solution has been to force the system to perform a hard shutdown by holding the power button for a few seconds and then powering the laptop back on.
-
@nathan thanks for your explanasion. I decide to use kernel 6.1 with latest mesa.
-
@nathan I'm using the kernel 6.1 compiled from coolpi github .
No issues with suspend. -
Strange, I'm using the same exact kernel on my CoolPi CM v20 laptop. The 5.10 BSP kernel did not give me this issue. Did you end up getting the speaker audio working correctly? I haven't been able to get it working on my laptop.
-
@nathan yeah. speaker and headphone jack working now.
First you have to compile latest version of kernel 6.1 from coolpi.
And commet out some alsa related in /etc/rc.local
Then boot into system. type alsamixer in terminal. F6 to select sound card.
Use " M" key to unmute left headphone mix and right headphone mix something like that.
Then speaker is working.
-
After a certain update, video acceleration broke. So I decided to update to 6.1
gpu acceleration
sudo dmesg | grep panthor
create folder before copy
sudo cp /usr/lib/firmware/mali_csffw.bin /usr/lib/firmware/arm/mali/arch10.8/It's fix for sound thanks!
Comment out some alsa related in /etc/rc.local
Then boot into system. type alsamixer in terminal. F6 to select sound card.
Use " M" key to unmute left headphone mix and right headphone mix something like that. System is slow, because there is no hardware acceleartion.And disabled this service wirh errors
sudo systemctl disable qrtr-ns
-
@nathan said in 6.1 Kernel GPU firmware update:
before I switched to Linux 6.1 LTS with Panthor + newer Mesa).
Do you have mali acceleartion in OS?