ODROID-C5: Add new board ODROID-C5 with Amlogic SoC S905X5

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib1d8e3705b443d014dfe053227f03fa2a62d6399
This commit is contained in:
Dongjin Kim
2024-09-07 00:02:34 +09:00
parent fbe985c5d3
commit 92b81710d9
15 changed files with 89 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
amlogic
web

View File

@@ -0,0 +1,5 @@
#!/bin/sh
if id gdm >/dev/null 2>&1; then
sudo adduser gdm video
fi

View File

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

View File

@@ -0,0 +1,2 @@
plymouth-theme-ubuntu-logo
stress-ng

View File

@@ -0,0 +1,4 @@
libmali-odroidc5
glmark2-es2-wayland
gstreamer1.0-amlogic
odroid-kiosk-weston

View File

@@ -0,0 +1,5 @@
#!/bin/sh
if id gdm >/dev/null 2>&1; then
sudo adduser gdm video
fi

View File

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

View File

@@ -0,0 +1,2 @@
plymouth-theme-lubuntu-logo
stress-ng

View File

@@ -0,0 +1,4 @@
libmali-odroidc5
glmark2-es2-wayland
gstreamer1.0-amlogic
odroid-kiosk-weston

15
boards/odroidc5/functions Normal file
View File

@@ -0,0 +1,15 @@
get_machine_name() {
echo "Hardkernel ODROID-C5"
}
get_kernel_package() {
echo "5.15.153-odroid-arm64"
}
get_bootscript_package() {
echo "bootscript-odroidc5"
}
get_reserved_sectors() {
echo 16384
}

View File

@@ -0,0 +1,35 @@
[core]
locking=false
idle-time=0
#shell=desktop-shell.so
#xwayland=true
gbm-format=abgr8888
#repaint-window=16
background-color=0x00ffffff
background-type=scale
panel-position=none
startup-animation=none
close-animation=none
[shell]
background-color=0xff002244
clock-format=minutes
locking=false
[input-method]
path=/usr/libexec/weston-keyboard
#[xwayland]
#path=/usr/bin/Xwayland
#[autolaunch]
#path=/usr/share/odroid-kiosk-weston/weston-autostart.sh
#watch=true
[output]
name=HDMI-A-1
#mode=1920x1080@60
mode=3840x2160@60
#ui-size=3840x2160
ui-size=1920x1080
priority=9

2
boards/odroidc5/packages Normal file
View File

@@ -0,0 +1,2 @@
u-boot-odroidc5
firmware-amlogic-s905x5m

View File

@@ -14,6 +14,9 @@ get_board() {
"Hardkernel ODROID-C4")
echo "odroidc4"
;;
"Hardkernel ODROID-C5")
echo "odroidc5"
;;
"Hardkernel ODROID-HC4")
echo "odroidhc4"
;;
@@ -38,7 +41,7 @@ get_board() {
get_arch() {
case ${1} in
odroidc2 | odroidn2* | odroidc4 | odroidhc4 | odroidgo2 | odroidm1 | odroidm1s | odroidm2)
odroidc2 | odroidn2* | odroidc4 | odroidc5 | odroidhc4 | odroidgo2 | odroidm1 | odroidm1s | odroidm2)
echo "arm64"
;;
odroidxu4)

View File

@@ -36,3 +36,6 @@ if [ "x@@OSNAME@@" = "xdebian" ]; then
${OPTION} http://deb.debian.org/debian @@DEFAULT_DISTRO@@ non-free-firmware
__EOF
fi
#sed -i 's|^[^#]*jammy-security|#&|' /etc/apt/sources.list
#cat /etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list

3
menu
View File

@@ -40,6 +40,7 @@ do_menu_board() {
"odroidn2l" "Hardkernel ODROID-N2L" \
"odroidn2plus" "Hardkernel ODROID-N2Plus" \
"odroidc4" "Hardkernel ODROID-C4" \
"odroidc5" "Hardkernel ODROID-C5" \
"odroidhc4" "Hardkernel ODROID-HC4" \
"odroidgo2" "Hardkernel ODROID-GO2" \
"odroidm1" "Hardkernel ODROID-M1" \
@@ -57,7 +58,7 @@ do_menu_board() {
odroidxu4)
ARCH=armhf
;;
odroidn2 | odroidn2plus | odroidc4 | odroidhc4 | odroidm1 | odroidm1s | odroidm2)
odroidn2 | odroidn2plus | odroidc4 | odroidc5 | odroidhc4 | odroidm1 | odroidm1s | odroidm2)
ARCH=arm64
;;
odroidgo2)