ODROID-N2PLUS: Add new board ODROID-N2Plus

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I3b29f3b04ceca2cf65306c98504f262abdd8affa
This commit is contained in:
Dongjin Kim
2020-07-12 19:15:45 +09:00
parent 9963ff65f7
commit 2377624591
4 changed files with 30 additions and 2 deletions

View File

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

View File

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

View File

@@ -5,6 +5,9 @@ get_board() {
"Hardkernel ODROID-N2")
echo "odroidn2"
;;
"Hardkernel ODROID-N2Plus")
echo "odroidn2plus"
;;
"Hardkernel ODROID-C4")
echo "odroidc4"
;;
@@ -20,7 +23,7 @@ get_board() {
get_arch() {
case ${1} in
odroidc2 | odroidn2 | odroidc4 | 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" \
"odroidn2plus" "Hardkernel ODROID-N2Plus" \
"odroidc4" "Hardkernel ODROID-C4" \
"odroidgo2" "Hardkernel ODROID-GO2" \
2>&1 >/dev/tty)
@@ -51,7 +52,7 @@ do_menu_board() {
odroidxu4)
ARCH=armhf
;;
odroidn2 | odroidc4)
odroidn2 | odroidn2plus | odroidc4)
ARCH=arm64
;;
odroidgo2)