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]>
add Cubieboard4 board support.
- SOC: Allwinner A80.
- DRAM: 2GiB DDR3 @ 672MHZ.
- NAND: 8GBeMMC
- Power: DC 5V.
- Wifi: 80211 b/g/n. (module is AP6330)
Reference: https://hirokun.jp/AP6330.pdf
- Ethernet: RTL8211E
The detail of board: https://linux-sunxi.org/Cubietech_Cubieboard4
Board support package includes the following components:
- mainline Linux Kernel 6.6.8
- mainline U-boot 2021.10.
---
v1 -> v2
* Add BR2_cortex_a15_a7=y in buildroot defconfig.
* Bump linux version to 6.6.8
* Using sunxi_defconfig in kernel.
* Using "make savedefconfig" to save defconfig.
* Remove boot.cmd.
--- 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
--
2.34.1
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Nigel,
Quoted 12 lines · Nigel Wang
From:
nigel_wang<[email protected]>add Cubieboard4 board support.
- SOC: Allwinner A80.
- DRAM: 2GiB DDR3 @ 672MHZ.
- NAND: 8GBeMMC
- Power: DC 5V.
- Wifi: 80211 b/g/n. (module is AP6330)
Reference: https://hirokun.jp/AP6330.pdf
- Ethernet: RTL8211E
Quoted 7 lines
The detail of board: https://linux-sunxi.org/Cubietech_Cubieboard4
Board support package includes the following components:
- mainline Linux Kernel 6.6.8
- mainline U-boot 2021.10.Signed-off-by Nigel Wang <[email protected]>
Here you have to keep the previous tags when sending new version of patches:
Quoted 7 lines
---
v1 -> v2
* Add BR2_cortex_a15_a7=y in buildroot defconfig.
* Bump linux version to 6.6.8
* Usingsunxi_defconfigin kernel.
* Using "make savedefconfig" to save defconfig.
* Remove boot.cmd.
this patch had to be V3, but don't mind at this point. I ask you when you send newer patches to set as superseded the previous patch in patchwork:
https://patchwork.ozlabs.org/project/buildroot/list/
Quoted 109 lines
--- 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.confcreate mode 100644 board/cubietech/cubieboard4/genimage.cfg create mode 100755board/cubietech/cubieboard4/post-image.shcreate mode 100644 configs/cubieboard4_defconfigDEVELOPERS +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_defconfigboard/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 +0
-0
configs/cubieboard4_defconfig line 10
Quoted 10 lines
configs/cubieboard4_defconfig new file +10
-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"
Here the option below is missing and it's needed otherwise the newest Linux version will be picked and build will fail.
Now we don't see the problem because the latest version is exactly 6.6, so need this:
# Linux headers same as kernel, a 6.6 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
Quoted 29 lines
configs/cubieboard4_defconfig new file +28
-1+# 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 --
Quoted 2 lines
2.34.1
This patch looks to me, except missing Linux header version.
I've added that option and re-built successfully so I confirm my:
Maybe a Maintainer can edit while committing, of if you can please send a V3 with that missing line.
Thank you!
Best regards
Signature · 6 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Giulio,
Quoted 3 lines
Here you have to keep the previous tags when sending new version of patches:
I didn't get it, what is the previous tags?
Quoted 13 lines
Reviewed-by Giulio Benetti <[email protected]>[Build Tested]Tested-by Giulio Benetti <[email protected]>Quoted 7 lines
---
v1 -> v2
* Add BR2_cortex_a15_a7=y in buildroot defconfig.
* Bump linux version to 6.6.8
* Usingsunxi_defconfigin kernel.
* Using "make savedefconfig" to save defconfig.
* Remove boot.cmd.
Quoted 6 lines
this patch had to be V3, but don't mind at this point. I ask you when you send newer patches to set as superseded the previous patch in patchwork:
https://patchwork.ozlabs.org/project/buildroot/list/I just need to add v3 tag, right? or I need to add other tags, e.g.,
resend?
Quoted 175 lines
Review
Quoted 25 lines
--- 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.confcreate mode 100644 board/cubietech/cubieboard4/genimage.cfg create mode 100755board/cubietech/cubieboard4/post-image.shcreate mode 100644 configs/cubieboard4_defconfigDEVELOPERS +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(quoted diff) +0
-0
b/board/cubietech/cubieboard4/extlinux.confReview
Quoted 11 lines
new file mode 100644
index 0000000000..5084e2237bboard/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 +(quoted diff) +0
-0b/board/cubietech/cubieboard4/genimage.cfg
Review
Quoted 44 lines
new file mode 100644
index 0000000000..f1dee13923board/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 + } +}(quoted diff) +0
-0
b/board/cubietech/cubieboard4/post-image.shboard/cubietech/cubieboard4/post-image.sh line 4
Quoted 9 lines
new file mode 100755
index 0000000000..e37b960a4dboard/cubietech/cubieboard4/post-image.sh new file +4
-0@@ -0,0 +1,18 @@ +#!/bin/sh + +BOARD_DIR="$(dirname "$0")" +install -m 0644 -D $BOARD_DIR/extlinux.conf
$BINARIES_DIR/extlinux/extlinux.confReview
Quoted 15 lines
board/cubietech/cubieboard4/post-image.sh new file +14
-0+ +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 $?(quoted diff) +0
-0b/configs/cubieboard4_defconfig
Quoted 5 lines
new file mode 100644
index 0000000000..0592fe4a2dconfigs/cubieboard4_defconfig line 10
Quoted 10 lines
configs/cubieboard4_defconfig new file +10
-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"Here the option below is missing and it's needed otherwise the newest Linux version will be picked and build will fail.
Now we don't see the problem because the latest version is exactly 6.6, so need this:# Linux headers same as kernel, a 6.6 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=yQuoted 29 lines
configs/cubieboard4_defconfig new file +28
-1+# 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 --Quoted 2 lines
2.34.1
This patch looks to me, except missing Linux header version.
I've added that option and re-built successfully so I confirm my:
Reviewed-by Giulio Benetti <[email protected]>[Build Tested]Tested-by Giulio Benetti <[email protected]>Maybe a Maintainer can edit while committing, of if you can please send a V3 with that missing line.
Quoted 7 lines
Thank you!
Best regards
--
Giulio Benetti
CEO&CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Eric,
please use plan-text and not HTML e-mail,
Quoted 7 lines · eric
Hi Giulio,
Here you have to keep the previous tags when sending new version of patches:
I didn't get it, what is the previous tags?
My Reviewed-by and Tested-by: you see below,
Quoted 16 lines
Reviewed-by Giulio Benetti <[email protected]<mailto:[email protected]>>
[Build Tested]Tested-by Giulio Benetti <[email protected]<mailto:[email protected]>>
> ---
> v1 -> v2
> * Add BR2_cortex_a15_a7=y in buildroot defconfig. > * Bump linux version to 6.6.8
> * Usingsunxi_defconfigin kernel.
> * Using "make savedefconfig" to save defconfig. > * Remove boot.cmd.
Quoted 7 lines
this patch had to be V3, but don't mind at this point. I ask you when you send newer patches to set as superseded the previous patch in patchwork:
https://patchwork.ozlabs.org/project/buildroot/list/
<https://patchwork.ozlabs.org/project/buildroot/list/>I just need to add v3 tag, right? or I need to add other tags, e.g., resend?
for the upcoming one yes, it must be V3,
Quoted 131 lines
> ---
> 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
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index a03018ab2b..bffb8f2069 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -3297,3 +3297,7 @@ F: package/quazip/
> F: package/shapelib/
> F: package/simple-mail/
> F: package/tinc/
> +
> +N: Nigel Wang <[email protected]
<mailto:[email protected]>>
> +F: board/cubietech/cubieboard4/
> +F: configs/cubieboard4_defconfig
> diff --git a/board/cubietech/cubieboard4/extlinux.conf
b/board/cubietech/cubieboard4/extlinux.conf
> new file mode 100644
> index 0000000000..5084e2237b
> --- /dev/null
> +++ b/board/cubietech/cubieboard4/extlinux.conf
> @@ -0,0 +1,5 @@
> +label linux
> + kernel /boot/zImage
> + devicetree /sun9i-a80-cubieboard4.dtb
> + append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2
rootwait
> +
> diff --git a/board/cubietech/cubieboard4/genimage.cfg
b/board/cubietech/cubieboard4/genimage.cfg
> new file mode 100644
> index 0000000000..f1dee13923
> --- /dev/null
> +++ b/board/cubietech/cubieboard4/genimage.cfg
> @@ -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
> + }
> +}
> diff --git a/board/cubietech/cubieboard4/post-image.sh
b/board/cubietech/cubieboard4/post-image.sh
> new file mode 100755
> index 0000000000..e37b960a4d
> --- /dev/null
> +++ b/board/cubietech/cubieboard4/post-image.sh
> @@ -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 $?
> diff --git a/configs/cubieboard4_defconfig
b/configs/cubieboard4_defconfig
> new file mode 100644
> index 0000000000..0592fe4a2d
> --- /dev/null
> +++ b/configs/cubieboard4_defconfig
> @@ -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"Quoted 7 lines
Here the option below is missing and it's needed otherwise the newest
Linux version will be picked and build will fail.
Now we don't see the problem because the latest version is exactly 6.6,
so need this:
# Linux headers same as kernel, a 6.6 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=yThis ^^^ must be part of V3 patch and reported in patch changelog,
Quoted 43 lines
> +# 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
> --
> 2.34.1
>
This patch looks to me, except missing Linux header version.
I've added that option and re-built successfully so I confirm my:
Reviewed-by: Giulio Benetti <[email protected]
<mailto:[email protected]>>
[Build Tested]
Tested-by: Giulio Benetti <[email protected]
<mailto:[email protected]>>
Maybe a Maintainer can edit while committing, of if you can please sendQuoted 9 lines
a V3 with that missing line.
Thank you!
Best regards
--
Giulio Benetti
CEO&CTO@Benetti Engineering sasWhile sending V3 with modifies listed above please add under your SoB also my:
Thank you!
Best regards
Signature · 6 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Giulio,
long time no see, I already added v3 patch, can you help me review again?
Best regards,
Nigel
Giulio Benetti <[email protected]> 於 2024年2月16日 週五 上午1:10寫道:
Quoted 246 lines
Hi Eric,
please use plan-text and not HTML e-mail,
Quoted 7 lines · eric
Hi Giulio,
Here you have to keep the previous tags when sending new version of patches:
I didn't get it, what is the previous tags?
My Reviewed-by and Tested-by: you see below,
Quoted 16 lines
Reviewed-by Giulio Benetti <[email protected]<mailto:[email protected]>>
[Build Tested]Tested-by Giulio Benetti <[email protected]<mailto:[email protected]>>
> ---
> v1 -> v2
> * Add BR2_cortex_a15_a7=y in buildroot defconfig. > * Bump linux version to 6.6.8
> * Usingsunxi_defconfigin kernel.
> * Using "make savedefconfig" to save defconfig. > * Remove boot.cmd.Quoted 7 lines
this patch had to be V3, but don't mind at this point. I ask you when you send newer patches to set as superseded the previous patch in patchwork:
https://patchwork.ozlabs.org/project/buildroot/list/
<https://patchwork.ozlabs.org/project/buildroot/list/>I just need to add v3 tag, right? or I need to add other tags, e.g.,
resend?
for the upcoming one yes, it must be V3,
Quoted 121 lines
> --- > 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 > > diff --git a/DEVELOPERS b/DEVELOPERS > index a03018ab2b..bffb8f2069 100644 > --- a/DEVELOPERS > +++ b/DEVELOPERS > @@ -3297,3 +3297,7 @@ F: package/quazip/ > F: package/shapelib/ > F: package/simple-mail/ > F: package/tinc/ > + > +N: Nigel Wang <[email protected] <mailto:[email protected]>> > +F: board/cubietech/cubieboard4/ > +F: configs/cubieboard4_defconfig > diff --git a/board/cubietech/cubieboard4/extlinux.conf b/board/cubietech/cubieboard4/extlinux.conf > new file mode 100644 > index 0000000000..5084e2237b > --- /dev/null > +++ b/board/cubietech/cubieboard4/extlinux.conf > @@ -0,0 +1,5 @@ > +label linux > + kernel /boot/zImage > + devicetree /sun9i-a80-cubieboard4.dtb > + append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait > + > diff --git a/board/cubietech/cubieboard4/genimage.cfg b/board/cubietech/cubieboard4/genimage.cfg > new file mode 100644 > index 0000000000..f1dee13923 > --- /dev/null > +++ b/board/cubietech/cubieboard4/genimage.cfg > @@ -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 > + } > +} > diff --git a/board/cubietech/cubieboard4/post-image.sh b/board/cubietech/cubieboard4/post-image.sh > new file mode 100755 > index 0000000000..e37b960a4d > --- /dev/null > +++ b/board/cubietech/cubieboard4/post-image.sh > @@ -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 $? > diff --git a/configs/cubieboard4_defconfig b/configs/cubieboard4_defconfig > new file mode 100644 > index 0000000000..0592fe4a2d > --- /dev/null > +++ b/configs/cubieboard4_defconfig > @@ -0,0 +1,39 @@ > +# Architecture > +BR2_arm=yQuoted 9 lines
> +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"
Quoted 4 lines
Here the option below is missing and it's needed otherwise the newest Linux version will be picked and build will fail.
Now we don't see the problem because the latest version is exactly6.6,
Quoted 4 lines
so need this:
# Linux headers same as kernel, a 6.6 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=yThis ^^^ must be part of V3 patch and reported in patch changelog,
Quoted 8 lines
> +# 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"
Quoted 27 lines
> + > +# 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 > -- > 2.34.1 > This patch looks to me, except missing Linux header version.Quoted 8 lines
I've added that option and re-built successfully so I confirm my: Reviewed-by: Giulio Benetti <[email protected] <mailto:[email protected]>> [Build Tested] Tested-by: Giulio Benetti <[email protected] <mailto:[email protected]>> Maybe a Maintainer can edit while committing, of if you can pleasesend
Quoted 9 lines
a V3 with that missing line.
Thank you!
Best regards
--
Giulio Benetti
CEO&CTO@Benetti Engineering sasWhile sending V3 with modifies listed above please add under your SoB also my:
Reviewed-by Giulio Benetti <[email protected]>[Build Tested]Tested-by Giulio Benetti <[email protected]>
Quoted 7 lines
Thank you!
Best regards
--
Giulio Benetti
CEO&CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot