Add new board support 'ODROID-HC4'

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I6450a65313bc16fe387356f30b019e2c70231907
This commit is contained in:
Dongjin Kim
2020-10-24 13:47:38 +09:00
parent efe46fdde7
commit 93d355fb31
4 changed files with 30 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
get_machine_name() {
echo "Hardkernel ODROID-HC4"
}
get_kernel_package() {
echo "linux-image-generic"
}
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 browser_download_url | cut -d'"' -f 4 \
| grep u-boot-odroidc4 | head -1 \
| wget -O ${1} -qi -
}

View File

@@ -0,0 +1,2 @@
openssh-server
odroid-homecloud-display

View File

@@ -11,6 +11,9 @@ get_board() {
"Hardkernel ODROID-C4")
echo "odroidc4"
;;
"Hardkernel ODROID-HC4")
echo "odroidhc4"
;;
"ODROID-GO2*")
echo "odroidgo2"
;;
@@ -23,7 +26,7 @@ get_board() {
get_arch() {
case ${1} in
odroidc2 | odroidn2* | odroidc4 | odroidgo2)
odroidc2 | odroidn2* | odroidc4 | odroidhc4 | odroidgo2)
echo "arm64"
;;
odroidxu4)

3
menu
View File

@@ -39,6 +39,7 @@ do_menu_board() {
"odroidn2" "Hardkernel ODROID-N2" \
"odroidn2plus" "Hardkernel ODROID-N2Plus" \
"odroidc4" "Hardkernel ODROID-C4" \
"odroidhc4" "Hardkernel ODROID-HC4" \
"odroidgo2" "Hardkernel ODROID-GO2" \
2>&1 >/dev/tty)
@@ -52,7 +53,7 @@ do_menu_board() {
odroidxu4)
ARCH=armhf
;;
odroidn2 | odroidn2plus | odroidc4)
odroidn2 | odroidn2plus | odroidc4 | odroidhc4)
ARCH=arm64
;;
odroidgo2)