-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Raspberry Pi 5 does not work with upstream mesa or X server, it needs a bump to Debian 12 and packages from raspios repos. Change-type: minor Signed-off-by: Michal Toman <[email protected]>
- Loading branch information
Showing
8 changed files
with
76 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,5 +51,6 @@ data: | |
- raspberrypi3 | ||
- raspberrypi3-64 | ||
- raspberrypi400-64 | ||
- raspberrypi5 | ||
- intel-nuc | ||
- genericx86-64-ext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
# This script will install chromium to use with the browser block | ||
# If the device is a Raspberry Pi (any model), it will use the version | ||
# from the raspios repo (together with mesa and X), because | ||
# * Since Debian 12, the upstream chromium provided in Debian repos | ||
# does not work on armv7 at all | ||
# * The upstream chromium will not work on devices with < 1GB memory | ||
# namely the Pi3A and the PiZero2 even when using aarch64 | ||
# * The Raspberry Pi 5 needs patched versions of mesa and X to work | ||
|
||
BASE_DIR="/usr/src/build" | ||
CHROMIUM_PACKAGE="chromium" | ||
|
||
MACHINE_NAME="$1" | ||
|
||
# FORCE_RPI_REPO=0 never includes the repo | ||
# FORCE_RPI_REPO=1 always includes the repo | ||
# If the machine name starts with "raspberry", or if the machine | ||
# is a balenaFin, include the repo | ||
if [ "${FORCE_RPI_REPO}" != "0" ] && [ "${FORCE_RPI_REPO}" = "1" -o "${MACHINE_NAME:0:9}" = "raspberry" -o "${MACHINE_NAME}" = "fincm3" ] | ||
then | ||
echo "Enabling raspios repository" | ||
|
||
cp -a "${BASE_DIR}/rpi/raspi.list" "/etc/apt/sources.list.d/" | ||
cp -a "${BASE_DIR}/rpi/raspberrypi-archive-stable.gpg" "/etc/apt/trusted.gpg.d/" | ||
|
||
# The RPi-patched chromium package is called chromium-browser | ||
CHROMIUM_PACKAGE="chromium-browser" | ||
else | ||
# The node library launches /usr/bin/chromium-browser | ||
# which is not provided by the upstream package | ||
ln -s /usr/bin/chromium /usr/bin/chromium-browser | ||
fi | ||
|
||
install_packages \ | ||
${CHROMIUM_PACKAGE} \ | ||
chromium-common \ | ||
libgles2-mesa \ | ||
lsb-release \ | ||
mesa-vdpau-drivers \ | ||
scrot \ | ||
x11-xserver-utils \ | ||
xserver-xorg-input-evdev \ | ||
xserver-xorg-legacy \ | ||
xserver-xorg-video-fbdev \ | ||
xserver-xorg xinit \ | ||
xinput \ | ||
xterm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Section "OutputClass" | ||
Identifier "vc4" | ||
MatchDriver "vc4" | ||
Driver "modesetting" | ||
Option "PrimaryGPU" "true" | ||
EndSection |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
deb http://archive.raspberrypi.com/debian/ bookworm main | ||
# Uncomment line below then 'apt-get update' to enable 'apt-get source' | ||
#deb-src http://archive.raspberrypi.com/debian/ bookworm main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters