Dateien hochladen nach „buildroot-external/board“
This commit is contained in:
2
buildroot-external/board/boot-env.txt
Normal file
2
buildroot-external/board/boot-env.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Uncomment this to enable GPIO support for RPI-RF-MOD/HM-MOD-RPI-PCB
|
||||||
|
#overlays=rpi-rf-mod
|
||||||
1
buildroot-external/board/cmdline.txt
Normal file
1
buildroot-external/board/cmdline.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
console=tty0 console=ttyAML0,115200n8
|
||||||
26
buildroot-external/board/hassos-hook.sh
Normal file
26
buildroot-external/board/hassos-hook.sh
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# shellcheck disable=SC2155
|
||||||
|
|
||||||
|
function hassos_pre_image() {
|
||||||
|
local BOOT_DATA="$(path_boot_dir)"
|
||||||
|
local UBOOT_SM1="${BINARIES_DIR}/u-boot.sm1"
|
||||||
|
local SPL_IMG="$(path_spl_img)"
|
||||||
|
|
||||||
|
cp "${BINARIES_DIR}/boot.scr" "${BOOT_DATA}/boot.scr"
|
||||||
|
cp "${BINARIES_DIR}/meson-sm1-odroid-c4.dtb" "${BOOT_DATA}/meson-sm1-odroid-c4.dtb"
|
||||||
|
|
||||||
|
mkdir -p "${BOOT_DATA}/overlays"
|
||||||
|
cp "${BINARIES_DIR}"/*.dtbo "${BOOT_DATA}/overlays/"
|
||||||
|
cp "${BOARD_DIR}/boot-env.txt" "${BOOT_DATA}/haos-config.txt"
|
||||||
|
cp "${BOARD_DIR}/cmdline.txt" "${BOOT_DATA}/cmdline.txt"
|
||||||
|
|
||||||
|
# SPL
|
||||||
|
create_spl_image
|
||||||
|
|
||||||
|
dd if="${UBOOT_SM1}" of="${SPL_IMG}" conv=notrunc bs=512 seek=1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function hassos_post_image() {
|
||||||
|
convert_disk_image_xz
|
||||||
|
}
|
||||||
7379
buildroot-external/board/kernel-amlogic.config
Normal file
7379
buildroot-external/board/kernel-amlogic.config
Normal file
File diff suppressed because it is too large
Load Diff
10
buildroot-external/board/meta
Normal file
10
buildroot-external/board/meta
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
BOARD_ID=odroid-c4
|
||||||
|
BOARD_NAME="Hardkernel Odroid-C4"
|
||||||
|
CHASSIS=embedded
|
||||||
|
BOOTLOADER=uboot
|
||||||
|
KERNEL_FILE=Image
|
||||||
|
BOOT_SYS=mbr
|
||||||
|
BOOT_SPL=true
|
||||||
|
BOOT_ENV_SIZE=0x2000
|
||||||
|
SUPERVISOR_MACHINE=odroid-c4
|
||||||
|
SUPERVISOR_ARCH=aarch64
|
||||||
Reference in New Issue
Block a user