[Buildroot] [PATCH 09/10] board/sifive: hifive-unleashed: Update rootfs offset

Yann E. MORIN yann.morin.1998 at free.fr
Mon Jun 26 17:12:58 UTC 2023


Bin, All,

On 2023-06-27 00:00 +0800, Bin Meng spake thusly:
> From: Bin Meng <bmeng at tinylab.org>
> 
> As the rootfs size is set to 60M, let's put it right on the 4M offset
> in the SD card, so that the generated sdcard.img can be exactly 64M.

As much I like power-of-two numbers, is there a technical reason to hit
exactly 64MiB?

Regards,
Yann E. MORIN.

> Signed-off-by: Bin Meng <bmeng at tinylab.org>
> ---
> 
>  board/sifive/hifive-unleashed/genimage_sdcard.cfg | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/board/sifive/hifive-unleashed/genimage_sdcard.cfg b/board/sifive/hifive-unleashed/genimage_sdcard.cfg
> index 079ac5ed26..99e3525a8c 100644
> --- a/board/sifive/hifive-unleashed/genimage_sdcard.cfg
> +++ b/board/sifive/hifive-unleashed/genimage_sdcard.cfg
> @@ -17,6 +17,7 @@ image sdcard.img {
>  
>  	partition rootfs {
>  		image = "rootfs.ext4"
> +		offset = 4076K
>  		partition-type-uuid = 0fc63daf-8483-4772-8e79-3d69d8477de4
>  		bootable = true
>  	}
> -- 
> 2.34.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list