Message ID | tencent_92439641515553684D208B3331676FB36C05@qq.com |
---|---|
State | Accepted |
Headers | show |
Series | [next] board/friendlyarm/nanopi-neo: refine genimage.cfg | expand |
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
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 } }
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(-)