]> Git Repo - buildroot-mgba.git/commitdiff
configs/cubieboard1: new defconfig
authorGero Schwäricke <[email protected]>
Sun, 2 Jun 2024 21:40:50 +0000 (21:40 +0000)
committerThomas Petazzoni <[email protected]>
Sat, 13 Jul 2024 20:44:55 +0000 (22:44 +0200)
This patch adds a new defconfig for Cubieboard1 made by Cubietech. It is
based on the Allwinner A10 SoC. See:
http://www.cubietech.com/product-detail/cubieboard1.

The defconfig uses upstream U-Boot and Linux.

Signed-off-by: Gero Schwäricke <[email protected]>
Reviewed-by: Giulio Benetti <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
DEVELOPERS
board/cubietech/cubieboard1/genimage.cfg [new file with mode: 0644]
board/cubietech/cubieboard1/patches/linux-headers/linux-headers.hash [new symlink]
board/cubietech/cubieboard1/patches/linux/linux.hash [new file with mode: 0644]
board/cubietech/cubieboard1/patches/uboot/uboot.hash [new file with mode: 0644]
board/cubietech/cubieboard1/readme.txt [new file with mode: 0644]
board/cubietech/cubieboard1/rootfs_overlay/boot/extlinux/extlinux.conf [new file with mode: 0644]
configs/cubieboard1_defconfig [new file with mode: 0644]

index 152789cd5d02d2aeb32601d0032d60ccb667421e..9474d03520a2bc3a337136a71d76a265a1f62e63 100644 (file)
@@ -1210,6 +1210,10 @@ F:       package/flannel/
 N:     Geoffrey Ragot <[email protected]>
 F:     package/python-pyyaml/
 
+N:     Gero Schwaericke <[email protected]>
+F:     board/cubietech/cubieboard1/
+F:     configs/cubieboard1_defconfig
+
 N:     Gilles Talis <[email protected]>
 F:     board/freescale/imx8mmevk/
 F:     board/friendlyarm/nanopi-r2s/
diff --git a/board/cubietech/cubieboard1/genimage.cfg b/board/cubietech/cubieboard1/genimage.cfg
new file mode 100644 (file)
index 0000000..92c8677
--- /dev/null
@@ -0,0 +1,16 @@
+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 rootfs {
+               partition-type = 0x83
+               image = "rootfs.ext4"
+       }
+}
diff --git a/board/cubietech/cubieboard1/patches/linux-headers/linux-headers.hash b/board/cubietech/cubieboard1/patches/linux-headers/linux-headers.hash
new file mode 120000 (symlink)
index 0000000..5808d92
--- /dev/null
@@ -0,0 +1 @@
+../linux/linux.hash
\ No newline at end of file
diff --git a/board/cubietech/cubieboard1/patches/linux/linux.hash b/board/cubietech/cubieboard1/patches/linux/linux.hash
new file mode 100644 (file)
index 0000000..5e9df51
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  19b31956d229b5b9ca5671fa1c74320179682a3d8d00fc86794114b21da86039  linux-6.8.12.tar.xz
diff --git a/board/cubietech/cubieboard1/patches/uboot/uboot.hash b/board/cubietech/cubieboard1/patches/uboot/uboot.hash
new file mode 100644 (file)
index 0000000..97a2b4e
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  18a853fe39fad7ad03a90cc2d4275aeaed6da69735defac3492b80508843dd4a  u-boot-2024.04.tar.bz2
diff --git a/board/cubietech/cubieboard1/readme.txt b/board/cubietech/cubieboard1/readme.txt
new file mode 100644 (file)
index 0000000..d5033f4
--- /dev/null
@@ -0,0 +1,32 @@
+Cubietech Cubieboard1
+=====================
+
+Cubieboard1 is the first generation Cubieboard from Cubietech.
+
+Cubietech:
+http://www.cubietech.com/product-detail/cubieboard1
+
+Linux Sunxi Wiki:
+https://linux-sunxi.org/Cubietech_Cubieboard
+
+Building
+--------
+
+Configure and build with
+
+  make cubieboard1_defconfig
+  make
+
+Flashing
+--------
+
+Flash the sdcard image onto a micro sdcard with
+
+  dd if=output/images/sdcard.img of=/dev/sdX bs=1M conv=fsync
+
+Running
+-------
+
+Connect a 3V3 serial interface to the serial header on the top side of the board
+(between the USB jacks and the A10 chip). Then provide power to the board. The
+interface uses 115200 baud.
diff --git a/board/cubietech/cubieboard1/rootfs_overlay/boot/extlinux/extlinux.conf b/board/cubietech/cubieboard1/rootfs_overlay/boot/extlinux/extlinux.conf
new file mode 100644 (file)
index 0000000..2fde683
--- /dev/null
@@ -0,0 +1,5 @@
+DEFAULT linux
+LABEL linux
+  KERNEL /boot/zImage
+  DEVICETREE /boot/sun4i-a10-cubieboard.dtb
+  APPEND console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p1 rootwait
diff --git a/configs/cubieboard1_defconfig b/configs/cubieboard1_defconfig
new file mode 100644 (file)
index 0000000..d51f2ab
--- /dev/null
@@ -0,0 +1,42 @@
+# Target
+BR2_arm=y
+BR2_cortex_a8=y
+
+# Toolchain
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_8=y
+
+# Build options
+BR2_GLOBAL_PATCH_DIR="board/cubietech/cubieboard1/patches"
+BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
+
+# System configuration
+BR2_ROOTFS_OVERLAY="board/cubietech/cubieboard1/rootfs_overlay"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/cubietech/cubieboard1/genimage.cfg"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.8.12"
+BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun4i-a10-cubieboard"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+
+# Filesystem images
+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="2024.04"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="Cubieboard"
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+
+# Host utilities
+BR2_PACKAGE_HOST_GENIMAGE=y
This page took 0.042796 seconds and 4 git commands to generate.