mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 01:48:42 +09:00
Add new board support 'ODROID-HC4'
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I6450a65313bc16fe387356f30b019e2c70231907
This commit is contained in:
22
boards/odroidhc4/functions
Normal file
22
boards/odroidhc4/functions
Normal 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 -
|
||||
}
|
||||
2
boards/odroidhc4/packages
Normal file
2
boards/odroidhc4/packages
Normal file
@@ -0,0 +1,2 @@
|
||||
openssh-server
|
||||
odroid-homecloud-display
|
||||
5
default
5
default
@@ -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
3
menu
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user