Aggiorna README.md

This commit is contained in:
Fabio 2025-07-30 22:41:00 +08:00
parent f1aa7e5818
commit ad009ed9fd

View file

@ -28,81 +28,94 @@ Please keep in mind that i'm not a developer for Armbian. I just wanted to share
### 1A: import gpg key and use it to sign repo ### 1A: import gpg key and use it to sign repo
```sh
wget -qO - https://download.opensuse.org/repositories/home:/amazingfate:/panfork-mesa/Debian_12/Release.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/panfork-mesa.gpg wget -qO - https://download.opensuse.org/repositories/home:/amazingfate:/panfork-mesa/Debian_12/Release.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/panfork-mesa.gpg
```
### 1B: Add Repo to apt sources & update ### 1B: Add Repo to apt sources & update
```sh
echo "deb https://download.opensuse.org/repositories/home:/amazingfate:/panfork-mesa/Debian_12/ /" | sudo tee /etc/apt/sources.list.d/panfork-mesa.list echo "deb https://download.opensuse.org/repositories/home:/amazingfate:/panfork-mesa/Debian_12/ /" | sudo tee /etc/apt/sources.list.d/panfork-mesa.list
sudo apt update sudo apt update
```
### 1C: Install firmware ## ### 1C: Install firmware ##
```sh
sudo apt install mali-g610-firmware libmali-g610-x11 sudo apt install mali-g610-firmware libmali-g610-x11
```
### 1D: **RECOMMENDED** : Remove panfork-mesa repo ## ### 1D: **RECOMMENDED** : Remove panfork-mesa repo ##
```sh
sudo rm -rf /etc/apt/sources.list.d/panfork-mesa.list sudo rm -rf /etc/apt/sources.list.d/panfork-mesa.list
sudo rm -rf /etc/apt/trusted.gpg.d/panfork-mesa.gpg sudo rm -rf /etc/apt/trusted.gpg.d/panfork-mesa.gpg
```
### -- 02 Enable Debian Experimental Repo for recent Mesa Packages 02 -- #### ### -- 02 Enable Debian Experimental Repo for recent Mesa Packages 02 -- ####
```sh
sudo nano /etc/apt/sources.list sudo nano /etc/apt/sources.list
```
### 2A: Add the following to the bottom of the document... ## ### 2A: Add the following to the bottom of the document... ##
```sh
deb http://deb.debian.org/debian unstable main contrib non-free deb http://deb.debian.org/debian unstable main contrib non-free
deb http://deb.debian.org/debian experimental main deb http://deb.debian.org/debian experimental main
```
### 2B: Update and install Mesa Packages ## ### 2B: Update and install Mesa Packages ##
```sh
sudo apt update sudo apt update
sudo apt install -t experimental mesa-vulkan-drivers mesa-utils libgl1-mesa-dri libglx-mesa0 mesa-vdpau-drivers mesa-va-drivers mesa-opencl-icd mesa-libgallium sudo apt install -t experimental mesa-vulkan-drivers mesa-utils libgl1-mesa-dri libglx-mesa0 mesa-vdpau-drivers mesa-va-drivers mesa-opencl-icd mesa-libgallium
```
### 2C: **RECOMMENDED** : Re-open apt sources and remove Experimental/Unstable repos... ## ### 2C: **RECOMMENDED** : Re-open apt sources and remove Experimental/Unstable repos... ##
```sh
sudo nano /etc/apt/sources.list sudo nano /etc/apt/sources.list
```
### Remove the following and update apt...# ### Remove the following and update apt...#
```sh
deb http://deb.debian.org/debian unstable main contrib non-free deb http://deb.debian.org/debian unstable main contrib non-free
deb http://deb.debian.org/debian experimental main deb http://deb.debian.org/debian experimental main
sudo apt update sudo apt update
```
### -- 03 Add rockchip-multimedia Ubuntu Repo to Apt 03 -- #### ### -- 03 Add rockchip-multimedia Ubuntu Repo to Apt 03 -- ####
```sh
echo "deb [arch=arm64] https://ppa.launchpadcontent.net/liujianfeng1994/rockchip-multimedia/ubuntu jammy main" | sudo tee /etc/apt/sources.list.d/rockchip-multimedia.list echo "deb [arch=arm64] https://ppa.launchpadcontent.net/liujianfeng1994/rockchip-multimedia/ubuntu jammy main" | sudo tee /etc/apt/sources.list.d/rockchip-multimedia.list
```
### 3A: Download Key and add convert to gpg ## ### 3A: Download Key and add convert to gpg ##
```sh
curl -o rockchip-multimedia.asc "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8065BE1FC67AABDE" curl -o rockchip-multimedia.asc "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8065BE1FC67AABDE"
gpg --dearmor rockchip-multimedia.asc gpg --dearmor rockchip-multimedia.asc
sudo mv rockchip-multimedia.asc.gpg /etc/apt/keyrings/rockchip-multimedia.gpg sudo mv rockchip-multimedia.asc.gpg /etc/apt/keyrings/rockchip-multimedia.gpg
```
### 3B: Add PPA Repo and update ## ### 3B: Add PPA Repo and update ##
```sh
echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/rockchip-multimedia.gpg] https://ppa.launchpadcontent.net/liujianfeng1994/rockchip-multimedia/ubuntu jammy main" | sudo tee /etc/apt/sources.list.d/rockchip-multimedia.list echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/rockchip-multimedia.gpg] https://ppa.launchpadcontent.net/liujianfeng1994/rockchip-multimedia/ubuntu jammy main" | sudo tee /etc/apt/sources.list.d/rockchip-multimedia.list
sudo apt update sudo apt update
```
### 3C: Install packages ## ### 3C: Install packages ##
```sh
sudo apt install libv4l-rkmpp chromium gstreamer1.0-rockchip1 rockchip-multimedia-config sudo apt install libv4l-rkmpp chromium gstreamer1.0-rockchip1 rockchip-multimedia-config
```
### 3D: **OPTIONAL** : Disable rockchip-multimedia PPA repo ## ### 3D: **OPTIONAL** : Disable rockchip-multimedia PPA repo ##
```sh
sudo mv /etc/apt/sources.list.d/rockchip-multimedia.list /etc/apt/sources.list.d/rockchip-multimedia.list.disabled sudo mv /etc/apt/sources.list.d/rockchip-multimedia.list /etc/apt/sources.list.d/rockchip-multimedia.list.disabled
sudo apt update sudo apt update
```
### -- 04 Optimize XFCE/Xorg and Reboot 04 -- #### ### -- 04 Optimize XFCE/Xorg and Reboot 04 -- ####
### 4A: Open default xorg config ## ### 4A: Open default xorg config ##
```sh
sudo nano /etc/X11/xorg.conf.d/01-armbian-defaults.conf sudo nano /etc/X11/xorg.conf.d/01-armbian-defaults.conf
```
### Add the following... # ### Add the following... #
'''sh ```sh
Section "Device" Section "Device"
Identifier "Mali-G610" Identifier "Mali-G610"
Driver "modesetting" Driver "modesetting"
@ -111,14 +124,15 @@ Section "Device"
Option "PageFlip" "on" # Reduces tearing Option "PageFlip" "on" # Reduces tearing
Option "TearFree" "true" # Xfce-specific anti-tearing Option "TearFree" "true" # Xfce-specific anti-tearing
EndSection EndSection
''' ```
### 4B: Add XFCE Specific tweaks ## ### 4B: Add XFCE Specific tweaks ##
```sh
sudo nano /etc/X11/xorg.conf.d/20-xfce-tweaks.conf sudo nano /etc/X11/xorg.conf.d/20-xfce-tweaks.conf
```
## Add the following... # ## Add the following... #
'''sh ```sh
Section "Extensions" Section "Extensions"
Option "COMPOSITE" "Enable" Option "COMPOSITE" "Enable"
EndSection EndSection
@ -126,7 +140,9 @@ EndSection
Section "ServerFlags" Section "ServerFlags"
Option "AutoAddGPU" "off" # Prevents duplicate GPU detection Option "AutoAddGPU" "off" # Prevents duplicate GPU detection
EndSection EndSection
''' ```
### 4C: Reboot ## ### 4C: Reboot ##
```sh
sudo reboot now sudo reboot now
```