ODROID-M2: Add new board ODROID-M2 with Rockchip SoC RK3588S2

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I30343abbc2614804a57abdc550da5f3465b22ef1
This commit is contained in:
Dongjin Kim
2024-02-27 20:04:27 +09:00
parent 9557100c43
commit 6f7a98f3ea
25 changed files with 96 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
apt-mark hold libwayland-egl1

View File

@@ -0,0 +1,2 @@
libmali-odroidm2
glmark2-es2-wayland

View File

@@ -0,0 +1,3 @@
glmark2-es2
mali-bifrost-x11-driver
xserver-xorg-video-armsoc-rk3568

View File

@@ -0,0 +1,2 @@
mali-bifrost-wayland-driver
glmark2-es2-wayland

View File

@@ -0,0 +1,3 @@
glmark2-es2
mali-bifrost-x11-driver
xserver-xorg-video-armsoc-rk3568

View File

@@ -0,0 +1,3 @@
#!/bin/sh
apt-mark hold libwayland-egl1

View File

@@ -0,0 +1,2 @@
libmali-odroidm2
glmark2-es2-wayland

View File

@@ -0,0 +1,3 @@
glmark2-es2
mali-bifrost-x11-driver
xserver-xorg-video-armsoc-rk3568

View File

@@ -0,0 +1,2 @@
mali-bifrost-wayland-driver
glmark2-es2-wayland

View File

@@ -0,0 +1,3 @@
glmark2-es2
mali-bifrost-x11-driver
xserver-xorg-video-armsoc-rk3568

View File

@@ -0,0 +1,3 @@
#!/bin/sh
apt-mark hold libwayland-egl1

View File

@@ -0,0 +1,2 @@
libmali-odroidm2
glmark2-es2-wayland

View File

@@ -0,0 +1,2 @@
libmali-odroidm2
glmark2-es2-wayland

View File

@@ -0,0 +1,3 @@
#!/bin/sh
apt-mark hold libwayland-egl1

View File

@@ -0,0 +1,2 @@
libmali-odroidm2
glmark2-es2-wayland

View File

@@ -0,0 +1,2 @@
libmali-odroidm2
glmark2-es2-wayland

View File

@@ -0,0 +1,3 @@
glmark2-es2
mali-bifrost-x11-driver
xserver-xorg-video-armsoc-rk3568

View File

@@ -0,0 +1,2 @@
libmali-odroidm2
glmark2-es2-wayland

View File

@@ -0,0 +1,3 @@
glmark2-es2
mali-bifrost-x11-driver
xserver-xorg-video-armsoc-rk3568

View File

@@ -0,0 +1,18 @@
#!/bin/sh
CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME | cut -d'=' -f2)
case ${CODENAME} in
"focal" | "buster")
OPTION=""
;;
*)
OPTION="[trusted=yes]"
;;
esac
cat>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
deb ${OPTION} http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ main
deb ${OPTION} http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ rk3588
deb ${OPTION} http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ rockchip
__EOF

View File

@@ -0,0 +1,5 @@
#!/bin/sh
if [ -f /etc/pulse/default.pa ]; then
sed -i "s/^#set-default-sink.*/set-default-sink alsa_output.platform-hdmi-sound.hdmi-stereo/g" /etc/pulse/default.pa
fi

15
boards/odroidm2/functions Normal file
View File

@@ -0,0 +1,15 @@
get_machine_name() {
echo "Hardkernel ODROID-M2"
}
get_kernel_package() {
echo "5.10.0-odroid-arm64"
}
get_bootscript_package() {
echo "bootscript-odroidm2"
}
get_reserved_sectors() {
echo 6144
}

4
boards/odroidm2/packages Normal file
View File

@@ -0,0 +1,4 @@
net-tools
odroid-alsa
pciutils
u-boot-odroidm2

View File

@@ -26,6 +26,9 @@ get_board() {
"ODROID-M1S")
echo "odroidm1s"
;;
"ODROID-M2")
echo "odroidm2"
;;
*)
echo "odroidn2plus"
;;
@@ -35,7 +38,7 @@ get_board() {
get_arch() {
case ${1} in
odroidc2 | odroidn2* | odroidc4 | odroidhc4 | odroidgo2 | odroidm1 | odroidm1s)
odroidc2 | odroidn2* | odroidc4 | odroidhc4 | odroidgo2 | odroidm1 | odroidm1s | odroidm2)
echo "arm64"
;;
odroidxu4)

3
menu
View File

@@ -44,6 +44,7 @@ do_menu_board() {
"odroidgo2" "Hardkernel ODROID-GO2" \
"odroidm1" "Hardkernel ODROID-M1" \
"odroidm1s" "Hardkernel ODROID-M1S" \
"odroidm2" "Hardkernel ODROID-M2" \
2>&1 >/dev/tty)
ret=$?
@@ -56,7 +57,7 @@ do_menu_board() {
odroidxu4)
ARCH=armhf
;;
odroidn2 | odroidn2plus | odroidc4 | odroidhc4 | odroidm1)
odroidn2 | odroidn2plus | odroidc4 | odroidhc4 | odroidm1 | odroidm1s | odroidm2)
ARCH=arm64
;;
odroidgo2)