From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Dong Wang <wangdong115@foxmail.com>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH next] board/friendlyarm/nanopi-neo: fix uboot partition size
Date: Thu, 15 Aug 2024 21:50:40 +0200 [thread overview]
Message-ID: <20240815215040.0908cb47@windsurf> (raw)
In-Reply-To: <tencent_C2D6061483906AA710B3001B277F4EE62606@qq.com>
Hello,
On Fri, 16 Aug 2024 01:28:26 +0800
Dong Wang <wangdong115@foxmail.com> wrote:
> This patch fixes the wrongly calculated uboot partition size in
> genimage.cfg. The size should be 1016K, which is
> 1MB (typical partition start) - 8K(offset dictated by the bootrom).
>
> Signed-off-by: Dong Wang <wangdong115@foxmail.com>
> ---
> board/friendlyarm/nanopi-neo/genimage.cfg | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/friendlyarm/nanopi-neo/genimage.cfg b/board/friendlyarm/nanopi-neo/genimage.cfg
> index ec78fd0e56..8d6bdd3295 100644
> --- a/board/friendlyarm/nanopi-neo/genimage.cfg
> +++ b/board/friendlyarm/nanopi-neo/genimage.cfg
> @@ -7,7 +7,7 @@ image sdcard.img {
> in-partition-table = false
> image = "u-boot-sunxi-with-spl.bin"
> offset = 8K
> - size = 1000K # 1MB - 8KB(offset) - 16KB(GPT)
> + size = 1016K # 1MB - 8KB(offset)
Actually, does this size argument really make sense? This space will
automatically take the size of the "u-boot-sunxi-with-spl.bin" file I
believe. Or is it needed to make sure that the next partition doesn't
start before 1 MB?
Why is it important that the size is 1MB - 8KB, and not 1MB or 2MB ?
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-15 19:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-15 17:28 [Buildroot] [PATCH next] board/friendlyarm/nanopi-neo: fix uboot partition size Dong Wang
2024-08-15 17:50 ` Yann E. MORIN
2024-08-15 17:58 ` Darren Wang
2024-08-15 18:14 ` Yann E. MORIN
2024-08-15 18:19 ` Yann E. MORIN
2024-08-15 18:22 ` Dong Wang
2024-08-15 19:50 ` Thomas Petazzoni via buildroot [this message]
2024-08-15 20:00 ` Yann E. MORIN
2024-08-16 16:15 ` Dong 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=20240815215040.0908cb47@windsurf \
--to=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=wangdong115@foxmail.com \
--cc=yann.morin.1998@free.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox