board/cubietech/cubieboard4 : Add config file for cubieboard4.
PATCH v2 1/1 board/cubietech/cubieboard4 : Add config file for cubieboard4.
From: nigel_wang <[email protected]>
configs/cubieboard4_defconfig : add defconfig for cubieboard4.
board/cubietech/cubieboard4/extlinux.conf: using the config to make device can boot uboot/kernel correctly. board/cubietech/cubieboard4/genimage.cfg: Adjust boot dtb/sdcard memory layout.board/cubietech/cubieboard4/post-image.sh: using extlinux.conf in the file, it can use "genimage" to generate sdcard image.
modified: configs/cubieboard4_defconfig: remove unnecessary option.
Replaced boot.cmd by extlinux.conf.
Append name in DEVELOPERS file.
Signed-off-by Nigel Wang <[email protected]>
--- DEVELOPERS | 4 +++ board/cubietech/cubieboard4/extlinux.conf | 5 +++ board/cubietech/cubieboard4/genimage.cfg | 38 ++++++++++++++++++++++ board/cubietech/cubieboard4/post-image.sh | 18 +++++++++++ configs/cubieboard4_defconfig | 39 +++++++++++++++++++++++ 5 files changed, 104 insertions(+) create mode 100644 board/cubietech/cubieboard4/extlinux.conf create mode 100644 board/cubietech/cubieboard4/genimage.cfg create mode 100755 board/cubietech/cubieboard4/post-image.sh create mode 100644 configs/cubieboard4_defconfig
DEVELOPERS +4 -0
@@ -3297,3 +3297,7 @@ F: package/quazip/ F: package/shapelib/ F: package/simple-mail/ F: package/tinc/ + +N: Nigel Wang <[email protected]> +F: board/cubietech/cubieboard4/ +F: configs/cubieboard4_defconfig
board/cubietech/cubieboard4/extlinux.conf new file +5 -0
@@ -0,0 +1,5 @@ +label linux + kernel /boot/zImage + devicetree /sun9i-a80-cubieboard4.dtb + append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait +
board/cubietech/cubieboard4/genimage.cfg new file +38 -0
@@ -0,0 +1,38 @@ +# Minimal SD card image for the Cubieboard2 +# Based in the Orange Pi genimage.cfg + +image boot.vfat { + vfat { + files = { + "zImage", + "sun9i-a80-cubieboard4.dtb", + "extlinux" + } + } + + size = 8M +} + +image sdcard.img { + hdimage { + } + + partition u-boot { + in-partition-table = "no" + image = "u-boot-sunxi-with-spl.bin" + offset = 8K + size = 1016K # 1MB - 8KB + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + size = 512M + } +}
board/cubietech/cubieboard4/post-image.sh new file +18 -0
@@ -0,0 +1,18 @@ +#!/bin/sh + +BOARD_DIR="$(dirname "$0")" +install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf + +GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg" +GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" + +rm -rf "${GENIMAGE_TMP}" + +genimage \ + --rootpath "${TARGET_DIR}" \ + --tmppath "${GENIMAGE_TMP}" \ + --inputpath "${BINARIES_DIR}" \ + --outputpath "${BINARIES_DIR}" \ + --config "${GENIMAGE_CFG}" + +exit $?
configs/cubieboard4_defconfig new file +39 -0
@@ -0,0 +1,39 @@ +# Architecture +BR2_arm=y +BR2_cortex_a15_a7=y +BR2_ARM_FPU_NEON_VFPV4=y + +# System +BR2_TARGET_GENERIC_HOSTNAME="Cubieboard4" +BR2_TARGET_GENERIC_ISSUE="Welcome to Cubieboard4!" +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/cubietech/cubieboard4/post-image.sh" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.8" +BR2_LINUX_KERNEL_DEFCONFIG="sunxi" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun9i-a80-cubieboard4" + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y + +# Bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="Cubieboard4" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin" +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS=y
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot