From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Dong Wang <wangdong115@foxmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] configs/friendlyarm_nanopi_neo_defconfig: new defconfig
Date: Tue, 6 Aug 2024 23:28:42 +0200 [thread overview]
Message-ID: <20240806232842.4a04d4ca@windsurf> (raw)
In-Reply-To: <tencent_7E39529BBE1BB50CB4AA2A429702629C0808@qq.com>
Hello Dong,
First of all, thanks a lot for your contribution and patch submission,
and sorry for the delay with which we are getting back to you. I only
have a few comments below.
On Wed, 15 May 2024 08:52:31 +0800
Dong Wang <wangdong115@foxmail.com> wrote:
> This patch adds a new defconfig for the NanoPi NEO board made by
> FriendlyARM. This board is based on the Allwinner H3 SoC.
>
> See: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_NEO
>
> .
This empty line with a dot seems quite useless, could you drop it?
>
> This patch uses the mainline kernel and u-boot for the board.
>
> The configurations are based on the previously dropped defconfig
> maintained by Yann E. MORIN <yann.morin.1998@free.fr>.
>
> Signed-off-by: Dong Wang <wangdong115@foxmail.com>
> diff --git a/board/friendlyarm/nanopi-neo/boot.cmd b/board/friendlyarm/nanopi-neo/boot.cmd
> new file mode 100644
> index 0000000000..8c199ed480
> --- /dev/null
> +++ b/board/friendlyarm/nanopi-neo/boot.cmd
> @@ -0,0 +1,5 @@
> +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait panic=10
> +
> +load mmc 0:1 ${fdt_addr_r} ${fdtfile}
> +load mmc 0:1 ${kernel_addr_r} zImage
> +bootz ${kernel_addr_r} - ${fdt_addr_r}
Could you drop this custom U-Boot script, and use extlinux.conf like we
try to do in most new defconfigs?
> diff --git a/board/friendlyarm/nanopi-neo/genimage.cfg b/board/friendlyarm/nanopi-neo/genimage.cfg
> new file mode 100644
> index 0000000000..4cfd8c8fc2
> --- /dev/null
> +++ b/board/friendlyarm/nanopi-neo/genimage.cfg
> @@ -0,0 +1,36 @@
> +# Minimal SD card image for the NanoPi NEO.
> +image boot.vfat {
> + vfat {
> + files = {
> + "zImage",
> + "sun8i-h3-nanopi-neo.dtb",
> + "boot.scr"
> + }
> + }
> +
> + size = 16M
> +}
> +
> +image sdcard.img {
> + hdimage {
> + }
> +
> + partition u-boot {
> + in-partition-table = false
> + image = "u-boot-sunxi-with-spl.bin"
> + offset = 8K
> + size = 1000K # 1MB - 8KB(offset) - 16KB(GPT)
> + }
> +
> + partition boot {
> + partition-type = 0xC
> + bootable = "true"
> + image = "boot.vfat"
> + }
Could you drop entirely this VFAT partition, and have the kernel + DTB
+ extlinux.conf directly in the rootfs, and U-Boot directly load
extlinux.conf from this ext4 filesystem?
> + partition rootfs {
> + partition-type = 0x83
> + image = "rootfs.ext4"
> + size = 512M
Leave out the size = argument, it isn't very useful to have a larger
partition, but a filesystem that is smaller than that size.
All of the rest really looks good to me. Could you just address the
above comments, and submit a v2 ?
Thanks a lot for your contribution and effort!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-08-06 21:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-15 0:52 [Buildroot] [PATCH] configs/friendlyarm_nanopi_neo_defconfig: new defconfig Dong Wang
2024-08-06 21:28 ` Thomas Petazzoni via buildroot [this message]
2024-08-13 17:02 ` [Buildroot] [PATCH v2] " Dong Wang
2024-08-14 22:12 ` Thomas Petazzoni via buildroot
2024-08-15 17:59 ` Darren Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240806232842.4a04d4ca@windsurf \
--to=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=wangdong115@foxmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.