• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    6.1 Kernel GPU firmware update

    Scheduled Pinned Locked Moved PI CM5 Laptop
    48 Posts 6 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nathan @george
      last edited by

      @george

      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.

      1 Reply Last reply Reply Quote 0
      • N
        nathan @plumlis
        last edited by nathan

        @plumlis

        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.

        plumlisP 1 Reply Last reply Reply Quote 0
        • plumlisP
          plumlis @nathan
          last edited by

          @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.

          blog: https://plumz.me

          N 1 Reply Last reply Reply Quote 0
          • plumlisP
            plumlis
            last edited by plumlis

            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/+packages

            I dont care about npu. Just waiting speaker and sound fix for kernel 6.1.

            blog: https://plumz.me

            G 1 Reply Last reply Reply Quote 0
            • G
              george @plumlis
              last edited by

              @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
              
              plumlisP N 3 Replies Last reply Reply Quote 0
              • plumlisP
                plumlis @george
                last edited by

                @george Thanks for info,I'll try it out now.

                blog: https://plumz.me

                1 Reply Last reply Reply Quote 0
                • plumlisP
                  plumlis @george
                  last edited by

                  @george 我换到了 6.1 内核,就是git 最新版编译的。
                  也注释掉了 rc.local 里面的内容,不过依然没有声音。

                  后来我在 alsamixer 里看了看,把什么 left headphone mix 和 right headphone mix 之类的 unmute ,声音就回来了。

                  我注意到麦克风似乎还是不工作的,不过目前也没什么用到麦克风的场景,就先不测试了。

                  blog: https://plumz.me

                  1 Reply Last reply Reply Quote 0
                  • N
                    nathan @plumlis
                    last edited by nathan

                    @plumlis

                    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.

                    plumlisP M 2 Replies Last reply Reply Quote 0
                    • N
                      nathan @george
                      last edited by nathan

                      @george

                      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.

                      plumlisP 1 Reply Last reply Reply Quote 0
                      • plumlisP
                        plumlis @nathan
                        last edited by

                        @nathan thanks for your explanasion. I decide to use kernel 6.1 with latest mesa.

                        blog: https://plumz.me

                        1 Reply Last reply Reply Quote 0
                        • plumlisP
                          plumlis @nathan
                          last edited by

                          @nathan I'm using the kernel 6.1 compiled from coolpi github .
                          No issues with suspend.

                          blog: https://plumz.me

                          N 1 Reply Last reply Reply Quote 0
                          • N
                            nathan @plumlis
                            last edited by

                            @plumlis

                            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.

                            plumlisP 1 Reply Last reply Reply Quote 0
                            • plumlisP
                              plumlis @nathan
                              last edited by

                              @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.

                              blog: https://plumz.me

                              1 Reply Last reply Reply Quote 0
                              • M
                                mainbord
                                last edited by mainbord

                                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

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mainbord @nathan
                                  last edited by

                                  @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?

                                  G 1 Reply Last reply Reply Quote 0
                                  • G
                                    george @mainbord
                                    last edited by

                                    @mainbord
                                    The mali_csffw.bin path corresponding to the Panthor driver needs to be modified. The dmesg information will show the new loading path, and copying it on the system will enable GPU acceleration.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      mainbord @george
                                      last edited by

                                      @george
                                      Thans! It is working!

                                      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/

                                      1 Reply Last reply Reply Quote 0
                                      • plumlisP
                                        plumlis
                                        last edited by plumlis

                                        最近研究了一下内核还有panfrost相关的,说点个人想法和建议。

                                        目前看来好像 coolpi 官方是想要尽快把设备支持推到主线内核里,包括 panthor 的支持,但是我又看到有种声音是说 panthor 的性能不如那个 panfork

                                        而且很多人为了追求 panfork 的 gpu 性能也是搞出了 kernel 6.1 + panfork 的,比如

                                        https://github.com/Joshua-Riek/ubuntu-rockchip/tree/kernel
                                        还有
                                        https://cool-pi.com/topic/588/bredos-for-the-cool-pi-4b

                                        所以这个 panfork 的性能真的差距那么大吗?panthor 我目前用感觉还好,不过还没抽空测试游戏什么的。

                                        blog: https://plumz.me

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          mainbord @plumlis
                                          last edited by mainbord

                                          @plumlis
                                          glmark2
                                          stock ubuntu, linux kernel 5.1 - 2000fps (panfork ??)
                                          debian testing, linux kernel 6.1 - 1000fps (panthor ??)
                                          software - 150 fps (cpu ??)

                                          With any GPU acceleration it's good.

                                          Performance it's a second problem, first is - OpenGL ES 3.1
                                          Good apps want open GL 4.5, example is blender or xonotic game.

                                          G 1 Reply Last reply Reply Quote 0
                                          • G
                                            george @mainbord
                                            last edited by

                                            @mainbord
                                            The efficiency of the Panthor driver is currently lower, and we look forward to future updates.

                                            1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post