board/cubietech/cubieboard4 : Add config file for cubieboard4.
PATCH 1/2 board/cubietech/cubieboard4 : Add config file for cubieboard4.
--- board/cubietech/cubieboard4/boot.cmd | 5 +++ board/cubietech/cubieboard4/genimage.cfg | 38 +++++++++++++++++++++++ board/cubietech/cubieboard4/post-image.sh | 16 ++++++++++ 3 files changed, 59 insertions(+) create mode 100644 board/cubietech/cubieboard4/boot.cmd create mode 100644 board/cubietech/cubieboard4/genimage.cfg create mode 100755 board/cubietech/cubieboard4/post-image.sh
board/cubietech/cubieboard4/boot.cmd new file +5 -0
@@ -0,0 +1,5 @@ +setenv fdt_high ffffffff +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait +fatload mmc 0 $kernel_addr_r zImage +fatload mmc 0 $fdt_addr_r sun9i-a80-cubieboard4.dtb +bootz $kernel_addr_r - $fdt_addr_r
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", + "boot.scr" + } + } + + size = 10M +} + +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 +16 -0
@@ -0,0 +1,16 @@ +#!/bin/sh + +BOARD_DIR="$(dirname $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 $?
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 configs/cubieboard4_defconfig : add *_defconfig for cubieboard4.
--- configs/cubieboard4_defconfig | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 configs/cubieboard4_defconfig
configs/cubieboard4_defconfig new file +42 -0
@@ -0,0 +1,42 @@ +# Architecture +BR2_arm=y +BR2_cortex_a7=y +BR2_ARM_FPU_NEON_VFPV4=y + +# Linux headers same as kernel, a 5.15 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.11" +BR2_LINUX_KERNEL_DEFCONFIG="multi_v7" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun9i-a80-cubieboard4" + +# 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_OPENSSL=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_PYTHON3=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin" +BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/cubietech/cubieboard4/boot.cmd" + +# System +BR2_TARGET_GENERIC_HOSTNAME="Cubieboard4" +BR2_TARGET_GENERIC_ISSUE="Welcome to Cubieboard4!" +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/cubietech/cubieboard4/post-image.sh" +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] configs/cubieboard4_defconfig : add *_defconfig for cubieboard4.
Hi Nigel,
On 27/11/23 07:43, nigel_wang wrote:
here commit log is missing but you will squash this patch with 1/2
Quoted 12 lines
Signed-off-by nigel_wang <[email protected]>--- configs/cubieboard4_defconfig | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+)create mode 100644 configs/cubieboard4_defconfig
configs/cubieboard4_defconfig new file +0
-0
configs/cubieboard4_defconfig line 7
Quoted 7 lines
configs/cubieboard4_defconfig new file +7
-0@@ -0,0 +1,42 @@ +# Architecture +BR2_arm=y +BR2_cortex_a7=y +BR2_ARM_FPU_NEON_VFPV4=y + +# Linux headers same as kernel, a 5.15 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y
Please bump to newer Linux version like 6.6 that is LTS
configs/cubieboard4_defconfig line 12
Quoted 5 lines
configs/cubieboard4_defconfig new file +5
-0+ +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.11"
ditto,
configs/cubieboard4_defconfig line 13
Quoted 1 line
configs/cubieboard4_defconfig new file +1
-0+BR2_LINUX_KERNEL_DEFCONFIG="multi_v7"
Is there a reason why you haven't used sunxi_defconfig? It's a more size-optimized version for sunxi SoCs and it should work correctly. If it does please change it with "sunxi"
Quoted 8 lines
configs/cubieboard4_defconfig new file +8
-0+BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun9i-a80-cubieboard4" + +# 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"
configs/cubieboard4_defconfig line 31
Quoted 10 lines
configs/cubieboard4_defconfig new file +10
-0+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="Cubieboard4" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_PYTHON3=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin" +BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/cubietech/cubieboard4/boot.cmd"
Here please use extlinux.conf and remove unnecessary variables.
configs/cubieboard4_defconfig line 38
Quoted 7 lines
configs/cubieboard4_defconfig new file +7
-0+ +# System +BR2_TARGET_GENERIC_HOSTNAME="Cubieboard4" +BR2_TARGET_GENERIC_ISSUE="Welcome to Cubieboard4!" +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y
While building using utils/docker-run I've found that the default rootfs size of 60MB is too few since it needs 80MB so please set it to 120M if using sunxi_defconfig for Linux doesn't reduce the size below 60MB. This
can happen because sunxi_defconfig has very less modules installed to
target.
configs/cubieboard4_defconfig line 42
Quoted 4 lines
configs/cubieboard4_defconfig new file +4
-0+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/cubietech/cubieboard4/post-image.sh" +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y
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 Nigel,
thanks for contributing, please squash this and the next patch,
On 27/11/23 07:43, nigel_wang wrote:
Please provide a commit log here, take a look to the other boards' initial adding commit logs,
Quoted 1 line
Signed-off-by nigel_wang <[email protected]>
Here you need to provide your "Name Surname", so it should be like:
"Nigel Wang <[email protected]>"
Quoted 15 lines
--- board/cubietech/cubieboard4/boot.cmd | 5 +++ board/cubietech/cubieboard4/genimage.cfg | 38 +++++++++++++++++++++++ board/cubietech/cubieboard4/post-image.sh | 16 ++++++++++ 3 files changed, 59 insertions(+)create mode 100644 board/cubietech/cubieboard4/boot.cmd create mode 100644 board/cubietech/cubieboard4/genimage.cfg create mode 100755
board/cubietech/cubieboard4/post-image.shboard/cubietech/cubieboard4/boot.cmd new file +0
-0
board/cubietech/cubieboard4/boot.cmd line 5
Quoted 5 lines
board/cubietech/cubieboard4/boot.cmd new file +5
-0@@ -0,0 +1,5 @@ +setenv fdt_high ffffffff +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait +fatload mmc 0 $kernel_addr_r zImage +fatload mmc 0 $fdt_addr_r sun9i-a80-cubieboard4.dtb +bootz $kernel_addr_r - $fdt_addr_r
Please use extlinux.conf instead of boot.cmd since it's easier to use for debugging,
Quoted 9 lines
board/cubietech/cubieboard4/genimage.cfg new file +3
-0@@ -0,0 +1,38 @@ +# Minimal SD card image for the Cubieboard2 +# Based in the Orange Pi genimage.cfg +
board/cubietech/cubieboard4/genimage.cfg line 13
Quoted 10 lines
board/cubietech/cubieboard4/genimage.cfg new file +10
-0+image boot.vfat { + vfat { + files = { + "zImage", + "sun9i-a80-cubieboard4.dtb", + "boot.scr" + } + } + + size = 10M
Can you please use a value that is a power of 2 here? Like 16M if really needed or 8M(the smaller the better)
Quoted 5 lines
board/cubietech/cubieboard4/genimage.cfg new file +5
-0+} + +image sdcard.img { + hdimage { + }
board/cubietech/cubieboard4/genimage.cfg line 28
Quoted 10 lines
board/cubietech/cubieboard4/genimage.cfg new file +10
-0+ + 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
Check Buildroot manual for partition-type notation
board/cubietech/cubieboard4/genimage.cfg line 34
Quoted 6 lines
board/cubietech/cubieboard4/genimage.cfg new file +6
-0+ bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83
same here,
Quoted 16 lines
board/cubietech/cubieboard4/genimage.cfg new file +4
-0+ image = "rootfs.ext4" + size = 512M + } +}board/cubietech/cubieboard4/post-image.sh new file +6
-0@@ -0,0 +1,16 @@ +#!/bin/sh + +BOARD_DIR="$(dirname $0)" +GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg" +GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" +
board/cubietech/cubieboard4/post-image.sh line 16
Quoted 10 lines
board/cubietech/cubieboard4/post-image.sh new file +10
-0+rm -rf "${GENIMAGE_TMP}" + +genimage \ + --rootpath "${TARGET_DIR}" \ + --tmppath "${GENIMAGE_TMP}" \ + --inputpath "${BINARIES_DIR}" \ + --outputpath "${BINARIES_DIR}" \ + --config "${GENIMAGE_CFG}" + +exit $?
I review the 2/2 patch now
Best regards
Signature · 6 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
A message that is not in the archive (sent off-list or not yet received): CAKEXHNMot2pXCY49EUPxvMTUvL9TNYBx93iDzZ_GjOyen6pFjg@mail.gmail.com
Hi Eric,
I re-add Buildroot Mailing List to share with other people. Always remember to "Reply to All"
Please don't top-post, answer inline as I've done while reviewing your patch and use only plain-test instead of HTML formatting,
Quoted 2 lines · eric
Hi Giulio,
Thank you for helping me review the patch.
you're welcome,
Quoted 2 lines
About below comment, I didn't get it. Does the buildroot have any example about "partition-type notation"?
Yes, in Buildroot Manual:
https://buildroot.org/downloads/manual/manual.html#writing-genimage-cfg
but I was wrong below since you're not producing GPT partitions like here:
https://gitlab.com/buildroot.org/buildroot/-/blob/master/board/pine64/rockpro64/genimage.cfg?ref_type=heads#L15
so 0xC and 0x83 are correct, my bad.
You can check genimage README.rst as stated in Buildroot Manual here:
https://github.com/pengutronix/genimage/blob/master/README.rst
But it's correct how you've dealt with it, in MBR way basically.
Quoted 1 line
I think the discription"partition-type =
0xC" can represent ext2/ext4.
No, 0xC represents FAT32 while 0x83 represents ext2. Check here for DOS partition types:
https://en.wikipedia.org/wiki/Partition_type
Quoted 1 line
Because this is my first patch, can you give me some hints about above question?
Done :-)
Quoted 1 line
thanks!!
No problem
Waiting for V2 patch then!
Best regards
Signature · 2 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas
Quoted 149 lines
Quoted 6 lines
board/cubietech/cubieboard4/genimage.cfg new file +5
-0+} + +image sdcard.img { + hdimage { + }board/cubietech/cubieboard4/genimage.cfg line 28
Quoted 10 lines
board/cubietech/cubieboard4/genimage.cfg new file +10
-0+ + partition u-boot { + in-partition-table = "no" + image = "u-boot-sunxi-with-spl.bin" + offset = 8K + size = 1016K # 1MB - 8KB + } + + partition boot { + partition-type = 0xCCheck Buildroot manual for partition-type notation
Quoted 6 lines
+ bootable = "true"
+ image = "boot.vfat"
+ }
+
+ partition rootfs {
+ partition-type =0x83same here,
Giulio Benetti <[email protected] <mailto:[email protected]>> 於 2023年12月3日 週日 上 午12:28寫道:
Hi Nigel, thanks for contributing, please squash this and the next patch, On 27/11/23 07:43, nigel_wang wrote: Please provide a commit log here, take a look to the other boards' initial adding commit logs, > Signed-off-by: nigel_wang <[email protected] <mailto:[email protected]>> Here you need to provide your "Name Surname", so it should be like: "Nigel Wang <[email protected] <mailto:[email protected]>>" > --- > board/cubietech/cubieboard4/boot.cmd | 5 +++ > board/cubietech/cubieboard4/genimage.cfg | 38 +++++++++++++++++++++++ > board/cubietech/cubieboard4/post-image.sh | 16 ++++++++++ > 3 files changed, 59 insertions(+) > create mode 100644 board/cubietech/cubieboard4/boot.cmd > create mode 100644 board/cubietech/cubieboard4/genimage.cfg > create mode 100755 board/cubietech/cubieboard4/post-image.sh > > diff --git a/board/cubietech/cubieboard4/boot.cmd b/board/cubietech/cubieboard4/boot.cmd > new file mode 100644 > index 0000000000..6521243696 > --- /dev/null > +++ b/board/cubietech/cubieboard4/boot.cmd > @@ -0,0 +1,5 @@ > +setenv fdt_high ffffffff > +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait > +fatload mmc 0 $kernel_addr_r zImage > +fatload mmc 0 $fdt_addr_r sun9i-a80-cubieboard4.dtb > +bootz $kernel_addr_r - $fdt_addr_r Please use extlinux.conf instead of boot.cmd since it's easier to use for debugging, > diff --git a/board/cubietech/cubieboard4/genimage.cfg b/board/cubietech/cubieboard4/genimage.cfg > new file mode 100644 > index 0000000000..5d5488bcf9 > --- /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", > + "boot.scr" > + } > + } > + > + size = 10M Can you please use a value that is a power of 2 here? Like 16M if really needed or 8M(the smaller the better) > +} > + > +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 Check Buildroot manual for partition-type notation > + bootable = "true" > + image = "boot.vfat" > + } > + > + partition rootfs { > + partition-type = 0x83 same here, > + 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..9cca1b1789 > --- /dev/null > +++ b/board/cubietech/cubieboard4/post-image.sh > @@ -0,0 +1,16 @@ > +#!/bin/sh > + > +BOARD_DIR="$(dirname $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}" > +
Quoted 9 lines
> +exit $?
I review the 2/2 patch now
Best regards
--
Giulio Benetti
CEO&CTO@Benetti Engineering sas_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
A message that is not in the archive (sent off-list or not yet received): CAKEXHNMJChaSnd5uaASVQ2xd4gsSgsYtyfZVE9krAix=3T3RpQ@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): [email protected]
Forgotten to add Buildroot ML in Cc.
Signature · 2 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas
Quoted 190 lines · Giulio Benetti
Quoted 3 lines · eric
Hi Giulio,
I am wrong.
Partition type |0xC| indicates a FAT32 partition with LBA.Exactly, my bad, I was wrong, I've pointed everything on the other e-mail.
Best regards
Signature · 2 lines
Giulio Benetti CEO&CTO@Benetti Engineering sasQuoted 177 lines
Best regards,
ericeric <[email protected] <mailto:[email protected]>> 於 2023 年 12月6日 週三 下午10:53寫道:
Hi Giulio,
Thank you for helping me review the patch.
About below comment, I didn't get it. Does the buildroot have any example about "partition-type notation"?
I think the discription"partition-type =0xC" can represent ext2/ext4.Because this is my first patch, can you give me some hints about above question?
thanks!!
> +}
> +
> +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 =0xCCheck Buildroot manual for partition-type notation
> + bootable = "true"
> + image = "boot.vfat"
> + }
> +
> + partition rootfs {
> + partition-type =0x83same here,
Giulio Benetti <[email protected] <mailto:[email protected]>> 於 2023年12月3日 週 日 上午12:28寫道:
Hi Nigel,
thanks for contributing, please squash this and the next patch,
On 27/11/23 07:43,
nigel_wangwrote:Please provide a commit log here, take a look to the other boards' initial adding commit logs,
> Signed-off-by:
nigel_wang<[email protected] <mailto:[email protected]>>Here you need to provide your "Name Surname", so it should be like:
"Nigel Wang <[email protected] <mailto:[email protected]>>"> ---
> board/cubietech/cubieboard4/boot.cmd | 5 +++ > board/cubietech/cubieboard4/genimage.cfg | 38
+++++++++++++++++++++++
> board/cubietech/cubieboard4/post-image.sh | 16 ++++++++++ > 3 files changed, 59 insertions(+)
> create mode 100644 board/cubietech/cubieboard4/boot.cmd > create mode 100644 board/cubietech/cubieboard4/genimage.cfg > create mode 100755board/cubietech/cubieboard4/post-image.sh>
> diff --git a/board/cubietech/cubieboard4/boot.cmd b/board/cubietech/cubieboard4/boot.cmd
> new file mode 100644
> index 0000000000..6521243696
> ---/dev/null
> +++ b/board/cubietech/cubieboard4/boot.cmd
> @@ -0,0 +1,5 @@
> +setenvfdt_highffffffff
> +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
> +fatload mmc 0 $kernel_addr_r zImage
> +fatload mmc 0 $fdt_addr_r sun9i-a80-cubieboard4.dtb > +bootz $kernel_addr_r - $fdt_addr_rPlease use extlinux.conf instead of boot.cmd since it's easier to use
for debugging,> diff --git a/board/cubietech/cubieboard4/genimage.cfg b/board/cubietech/cubieboard4/genimage.cfg
> new file mode 100644
> index 0000000000..5d5488bcf9
> ---/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", > + "boot.scr"
> + }
> + }
> +
> + size = 10MCan you please use a value that is a power of 2 here? Like 16M if really
needed or 8M(the smaller the better)> +}
> +
> +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 =0xCCheck Buildroot manual for partition-type notation
> + bootable = "true"
> + image = "boot.vfat"
> + }
> +
> + partition rootfs {
> + partition-type =0x83same here,
> + image = "rootfs.ext4"
> + size = 512M
> + }
> +}
> diff --gita/board/cubietech/cubieboard4/post-image.shb/board/cubietech/cubieboard4/post-image.sh
> new file mode 100755
> index 0000000000..9cca1b1789
> ---/dev/null
> +++b/board/cubietech/cubieboard4/post-image.sh> @@ -0,0 +1,16 @@
> +#!/bin/sh
> +
> +BOARD_DIR="$(dirname $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 $?I review the 2/2 patch now
Best regards
-- Giulio Benetti
CEO&CTO@Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot