Jump to content

GPU driver installation problem on Rock5B (Armbian Bookworm Minimal)


Norbert Kett

Recommended Posts

Hello,

 

I would like to install Mali-G610 drivers on my Rock5B, but getting error during adding PPA:

 

root@rock-5b:~# add-apt-repository ppa:liujianfeng1994/panfork-mesa
PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'deb https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu/ bookworm main'
Description:
https://gitlab.com/panfork/mesa
You need to install mali-g610-firmware if you don't have file /lib/firmware/mali_csffw.bin
More info: https://launchpad.net/~liujianfeng1994/+archive/ubuntu/panfork-mesa
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/liujianfeng1994-ubuntu-panfork-mesa-bookworm.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/liujianfeng1994-ubuntu-panfork-mesa-bookworm.list
Adding key to /etc/apt/trusted.gpg.d/liujianfeng1994-ubuntu-panfork-mesa.gpg with fingerprint 0B2F0747E3BD546820A639B68065BE1FC67AABDE
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://deb.debian.org/debian bookworm-backports InRelease
Ign:6 https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu bookworm InRelease
Err:7 https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu bookworm Release
  404  Not Found [IP: 185.125.190.80 443]
Hit:5 http://fi.mirror.armbian.de/beta bookworm InRelease
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu bookworm Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I had to install python3-launchpadlib to get add-apt-repository work, which is not documented, i found it in the forums.

 

HW: Rock5B (boot from: eMMC 32GB)

OS: Armbian Bookworm Minimal (Feb 29, 2024)

Followed the guide here: https://www.armbian.com/rock-5b/

 

How to fix this error?

Edited by Norbert Kett
added more info
Link to comment
Share on other sites

@amazingfate thanks, meanwhile i realized, bookworm is debian :D can you help me how to i add that linked repo?

 

log:

root@rock-5b:~# add-apt-repository https://build.opensuse.org/project/show/home:amazingfate:panfork-mesa
Repository: 'deb https://build.opensuse.org/project/show/home:amazingfate:panfork-mesa bookworm main'
Description:
Archive for codename: bookworm components: main
More info: https://build.opensuse.org/project/show/home:amazingfate:panfork-mesa
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_build_opensuse_org_project_show_home_amazingfate_panfork-mesa-bookworm.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_build_opensuse_org_project_show_home_amazingfate_panfork-mesa-bookworm.list
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://deb.debian.org/debian bookworm-backports InRelease
Ign:5 https://build.opensuse.org/project/show/home:amazingfate:panfork-mesa bookworm InRelease
Err:6 https://build.opensuse.org/project/show/home:amazingfate:panfork-mesa bookworm Release
  404  Not Found [IP: 195.135.223.221 443]
Hit:7 http://fi.mirror.armbian.de/beta bookworm InRelease
Reading package lists... Done
E: The repository 'https://build.opensuse.org/project/show/home:amazingfate:panfork-mesa bookworm Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

 

Link to comment
Share on other sites

@amazingfate i followed the guide, but getting this:

root@rock-5b:~# apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Ign:4 https://build.opensuse.org/project/show/home:amazingfate:panfork-mesa ./ InRelease
Hit:5 http://deb.debian.org/debian bookworm-backports InRelease
Err:6 https://build.opensuse.org/project/show/home:amazingfate:panfork-mesa ./ Release
  404  Not Found [IP: 195.135.223.221 443]
Hit:7 http://fi.mirror.armbian.de/beta bookworm InRelease
Reading package lists... Done
E: The repository 'https://build.opensuse.org/project/show/home:amazingfate:panfork-mesa ./ Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

 

my sources.list:

root@rock-5b:~# cat /etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
# deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
# deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
# deb-src http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware

deb http://security.debian.org/ bookworm-security main contrib non-free non-free-firmware
# deb-src http://security.debian.org/ bookworm-security main contrib non-free non-free-firmware

deb [signed-by=/etc/apt/keyrings/obs-home-amazingfate.gpg] https://build.opensuse.org/project/show/home:amazingfate:panfork-mesa ./

 

Link to comment
Share on other sites

@amazingfate Thank you, i'm sorry about my clumsiness...

 

finally i could install the mali g610 firmware, but now 'startx' can't start:

X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
Current Operating System: Linux rock-5b 6.8.0-rc1-edge-rockchip-rk3588 #1 SMP PREEMPT Sun Jan 21 22:11:32 UTC 2024 aarch64
Kernel command line: root=UUID=fb37e203-0f28-4a83-8200-4d1b92192ca3 rootwait rootfstype=ext4 splash=verbose console=ttyS2,1500000 console=tty1 consoleblank=0 loglevel=1 ubootpart=dbfff1e9-1afa-704c-8661-c1a273d2de36 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1
xorg-server 2:21.1.7-3+deb12u5 (https://www.debian.org/support)
Current version of pixman: 0.42.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar  2 15:45:43 2024
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
free(): double free detected in tcache 2
(EE)
(EE) Backtrace:
(EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x188) [0xaaaae1ffb7e8]
(EE) unw_get_proc_info failed: no unwind info found [-10]
(EE)
(EE)
Fatal server error:
(EE) Caught signal 6 (Aborted). Server aborting
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.

 

i gave up at this point 😕

Link to comment
Share on other sites

@amazingfate Thank for your responses ;)

 

I tried the latest Radxa ubuntu server build (kernel 5.x) , and successfully installed mali g610 drivers. with glxinfo i see everything ok.

but.... when im trying to create an opengl context for headless rendering, i getting a very strange error. rknpu_dri.so is missing. this is my initial problem, that is why i gave a try with Armbian.

rknpu_dri.so issue (github)

 

do you have any clue, which package contains this driver? so far no one could figure it out.

Link to comment
Share on other sites

@amazingfate This is it!!! You solved my root problem :D Thank you! I modified the EGL code, and now with device #1 works well.

 

root@ubuntu:~/egl_example# ./egl_example dev1
Explicit device selection: 1
Loaded EGL 1.4 after reload.
GL_VENDOR=Panfrost
GL_RENDERER=Mali-G610 (Panfrost)
GL_VERSION=3.3 (Compatibility Profile) Mesa 23.0.0-devel
GL_SHADING_LANGUAGE_VERSION=3.30
root@ubuntu:~/egl_example# ./egl_example dev1 es2
Explicit device selection: 1
Loaded EGL 1.4 after reload.
GL_VENDOR=Panfrost
GL_RENDERER=Mali-G610 (Panfrost)
GL_VERSION=OpenGL ES 3.1 Mesa 23.0.0-devel
GL_SHADING_LANGUAGE_VERSION=OpenGL ES GLSL ES 3.10

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines