Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:configurations:enable-panfrost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:configurations:enable-panfrost [2024/11/30 03:29]
nick
products:sbc:common:configurations:enable-panfrost [2025/05/18 21:44] (current)
jacobe [Edge2]
Line 1: Line 1:
 +
 ====== Enable Panfrost ====== ====== Enable Panfrost ======
  
-<WRAP tip >+<WRAP important >
 For Ubuntu 24.04 only. For Ubuntu 24.04 only.
 </WRAP> </WRAP>
Line 10: Line 11:
 ===== Enable Panfrost ===== ===== Enable Panfrost =====
  
-You need to enable the Panfrost via [[device-tree-overlay | device tree overlay]], add ''panfrost'' to node ''fdt_overlays=''.+You need to enable the Panfrost via [[device-tree-overlay | device tree overlay]]
 + 
 +<tabbox VIM4/3/3L/1S> 
 + 
 +Add ''panfrost'' to node ''fdt_overlays='':
  
 ```shell ```shell
 fdt_overlays=panfrost fdt_overlays=panfrost
 ``` ```
 +<tabbox Edge2>
 +
 +Add ''panthor-gpu'' to node ''fdt_overlays='':
 +
 +```shell
 +sudo vi /boot/dtb/rockchip/rk3588s-khadas-edge2.dtb.overlay.env
 +fdt_overlays=panthor-gpu
 +```
 +
 +
 +For Edge2, you need extra steps to upgrade mesa packages to support Panfrost:
 +
 +```shell
 +$ cat <<-EOF | sudo tee /etc/apt/sources.list.d/kisaku-panfork-mesa-noble.list
 +deb https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble main
 +# deb-src deb https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble main
 +EOF
 +$ wget https://raw.githubusercontent.com/khadas/fenix/refs/heads/master/config/panfork-kisak.key
 +$ cat panfork-kisak.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/panfork-kisak.gpg
 +$ sudo apt update
 +$ sudo apt -y upgrade
 +$ sudo apt -y install libegl-mesa0 libgbm1 libglapi-mesa libglx-mesa0
 +```
 +</tabbox>
  
 ===== Remove the close source GPU libraries ===== ===== Remove the close source GPU libraries =====
Line 22: Line 51:
  
 ```shell ```shell
-sudo apt remove linux-gpu-mali-wayland +sudo apt -y remove linux-gpu-mali-wayland 
-sudo apt reinstall  libegl1  libgles2   libegl1-mesa-dev  libgles2-mesa-dev  libglvnd-dev  libgles1  libwayland-dev  mesa-common-dev  libgl-dev  libegl-dev libgles-dev libgbm-dev  libgbm1  libwayland-egl1+sudo apt -y reinstall  libegl1  libgles2   libegl1-mesa-dev  libgles2-mesa-dev  libglvnd-dev  libgles1  libwayland-dev  mesa-common-dev  libgl-dev  libegl-dev libgles-dev libgbm-dev  libgbm1  libwayland-egl1
 sync sync
 sudo reboot sudo reboot
Last modified: 2024/11/30 03:29 by nick