All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH next] board/friendlyarm/nanopi-neo: refine genimage.cfg
@ 2024-08-16 16:07 Dong Wang
  2024-09-03 19:55 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Dong Wang @ 2024-08-16 16:07 UTC (permalink / raw)
  To: buildroot; +Cc: Dong Wang, Yann E . MORIN, Thomas Petazzoni

This patch adds the offset argument for rootfs partiton so that it's
aligned to a 1MiB boundary, instead of using the size of the previous
u-boot partition to achieve this.

Genimage will make sure no partitions overlap. So we don't need a size
argument to limit the size of the u-boot image.

Signed-off-by: Dong Wang <wangdong115@foxmail.com>
---

This one looks a little bit neater.

 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 8d6bdd3295..6d57dd9088 100644
--- a/board/friendlyarm/nanopi-neo/genimage.cfg
+++ b/board/friendlyarm/nanopi-neo/genimage.cfg
@@ -7,11 +7,11 @@ image sdcard.img {
 		in-partition-table = false
 		image = "u-boot-sunxi-with-spl.bin"
 		offset = 8K
-		size = 1016K # 1MB - 8KB(offset)
 	}
 
 	partition rootfs {
 		partition-type = 0x83
 		image = "rootfs.ext4"
+		offset = 1M
 	}
 }
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH next] board/friendlyarm/nanopi-neo: refine genimage.cfg
  2024-08-16 16:07 [Buildroot] [PATCH next] board/friendlyarm/nanopi-neo: refine genimage.cfg Dong Wang
@ 2024-09-03 19:55 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-09-03 19:55 UTC (permalink / raw)
  To: Dong Wang; +Cc: Yann E . MORIN, buildroot

On Sat, 17 Aug 2024 00:07:56 +0800
Dong Wang <wangdong115@foxmail.com> wrote:

> This patch adds the offset argument for rootfs partiton so that it's
> aligned to a 1MiB boundary, instead of using the size of the previous
> u-boot partition to achieve this.
> 
> Genimage will make sure no partitions overlap. So we don't need a size
> argument to limit the size of the u-boot image.
> 
> Signed-off-by: Dong Wang <wangdong115@foxmail.com>
> ---

Applied to next, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-03 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-16 16:07 [Buildroot] [PATCH next] board/friendlyarm/nanopi-neo: refine genimage.cfg Dong Wang
2024-09-03 19:55 ` Thomas Petazzoni via buildroot

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.