From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Dong Wang <wangdong115@foxmail.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH next] board/friendlyarm/nanopi-neo: fix uboot partition size
Date: Thu, 15 Aug 2024 22:00:36 +0200 [thread overview]
Message-ID: <Zr5eZO21C1avtmSz@landeda> (raw)
In-Reply-To: <20240815215040.0908cb47@windsurf>
Thomas, All,
On 2024-08-15 21:50 +0200, Thomas Petazzoni via buildroot spake thusly:
> 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).
[--SNIP--]
> > - 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 ?
The above has two effects:
- ensure the uboot image is not bigger than the allocated space,
- the filesystem image (rootfs) is aligned to a 1MiB boundary.
The latter could be achieved by setting offset=1MiB (or 2MiB or
whatever). I'm not sure how genimage would handle the case where the
uboot image would be too big that the offset of the next partition could
not be honored...
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-08-15 20:00 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
2024-08-15 20:00 ` Yann E. MORIN [this message]
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=Zr5eZO21C1avtmSz@landeda \
--to=yann.morin.1998@free.fr \
--cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox