• 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.
    • G
      george @plumlis
      last edited by

      @plumlis
      内核需要修改增加驱动支持。应用层驱动已经有各个版本的ppa源支持。

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

        刚看到github更新了,立即clone 下来开始编译,结果新内核启动后黑屏了。

        具体表现就是启动会显示 logo,但是会直接黑屏,不出现 gdm,按下关机键会回到命令行看到关机停止服务的各种指令。

        我应该是把新的 firmware 放到目录了,但是感觉像是你说的没 firmware 的黑屏。

        今天很晚了,明天再折腾研究一下。

        blog: https://plumz.me

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

          @plumlis
          内核默认启用了panther的GPU驱动,需要先把mesa更新到24.02版本,否则就会黑屏。

          sudo add-apt-repository ppa:oibaf/graphics-drivers
          sudo apt update
          sudo  apt-get  dist-upgrade
          
          1 Reply Last reply Reply Quote 0
          • plumlisP
            plumlis
            last edited by

            经过更新mesa终于可以进系统了。
            顺便一提这个firmware的路径不是 /lib/firmware,放在那里还是会被找不到。

            看日志发现是应该放在: /lib/firmware/arm/mali/arch10.8/ 下面
            简单测试了一下,首先是firefox 开 GPU 之后页面不会乱撕裂了,浏览器好像也可以直接播放视频不会卡死,虽然不清楚是不是用了硬件加速。

            接着就是发现没声音,和这个问题还不太一样:
            https://cool-pi.com/topic/578/es8316-sound-issues-on-armbian-with-6-1-rockchip-kernel/2

            就是单纯的没声音,麦克风和输出还有耳机和喇叭都没声音。

            剩下的就是日志里一堆 rknpu 的报错,可能是 npu 模块还没编译?

            休眠工作正常,开盖自动唤醒还是没有。

            blog: https://plumz.me

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

              换回 5.10 好像 panfrost 开不了了。
              是应该把 mesa 换回 maliG610 PPA的版本么?

              update:已经降级并开启 panfrost

              blog: https://plumz.me

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

                @plumlis
                其它的功能会持续完善,音频 NPU 编解码这些都还有问题。

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

                  @plumlis
                  是的,需要换回去老的mesa版本。

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

                    @george 辛苦了,最近看到内核的更新都是晚上。

                    blog: https://plumz.me

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

                      昨天看到6.1又有了新的提交,不过今天编译后发现还是没声音。

                      blog: https://plumz.me

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

                        @george

                        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.

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

                          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.

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

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

                              看起来Ubuntu 的 Mesa 更新了,PPA G610 里的已经过期了。
                              是不是应该更新一下了?或者有没有对应手册说明我可以自己编译新Mesa with Panfrost
                              还是说其他 PPA 的 Mesa 默认也支持 Panfrost?

                              blog: https://plumz.me

                              N 1 Reply Last reply Reply Quote 0
                              • 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
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post