board: add new board configuration for ODROID-C4

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4513c437b49b32976d9221ddc6c27ac11e0e2939
This commit is contained in:
Dongjin Kim
2020-03-25 17:06:34 +09:00
parent 61f1861ff2
commit 441b589b32
4 changed files with 29 additions and 2 deletions

22
boards/odroidc4/functions Normal file
View File

@@ -0,0 +1,22 @@
get_machine_name() {
echo "Hardkernel ODROID-C4"
}
get_kernel_package() {
echo "linux-image-odroidc4"
}
get_bootscript_package() {
echo "bootscript-odroidc4"
}
get_reserved_sectors() {
echo 2048
}
download_uboot() {
url="https://api.github.com/repos/hardkernel/u-boot/releases"
curl -s ${url} | grep odroidc4 \
| grep browser_download_url | cut -d'"' -f 4 | head -1 \
| wget -O ${1} -qi -
}

1
boards/odroidc4/packages Normal file
View File

@@ -0,0 +1 @@
openssh-server

View File

@@ -5,6 +5,9 @@ get_board() {
"Hardkernel ODROID-N2")
echo "odroidn2"
;;
"Hardkernel ODROID-C4")
echo "odroidc4"
;;
"ODROID-GO2*")
echo "odroidgo2"
;;
@@ -17,7 +20,7 @@ get_board() {
get_arch() {
case ${1} in
odroidc2 | odroidn2 | odroidgo2)
odroidc2 | odroidn2 | odroidc4 | odroidgo2)
echo "arm64"
;;
odroidxu4)

3
menu
View File

@@ -37,6 +37,7 @@ do_menu_board() {
"odroidc2" "Hardkernel ODROID-C2" \
"odroidxu4" "Hardkernel ODROID-XU4" \
"odroidn2" "Hardkernel ODROID-N2" \
"odroidc4" "Hardkernel ODROID-C4" \
"odroidgo2" "Hardkernel ODROID-GO2" \
2>&1 >/dev/tty)
@@ -50,7 +51,7 @@ do_menu_board() {
odroidxu4)
ARCH=armhf
;;
odroidn2)
odroidn2 | odroidc4)
ARCH=arm64
;;
odroidgo2)