[Buildroot] [PATCH 13/16] support/testing: test_ubi: reduce the rootfs.ubi size to 64M to match the Qemu emulated flash device

Yann E. MORIN yann.morin.1998 at free.fr
Sun Oct 17 19:49:58 UTC 2021


Romain, All,

On 2021-09-12 16:11 +0200, Romain Naour spake thusly:
> The size of the cfi flash device emulated by Qemu is 64M not 128M [1].
> Since Qemu >= 4.0, the size of the device must match the size of the block backend [2].
> 
> Fixes:
> 
>   qemu-system-arm: device requires 67108864 bytes, block backend provides 134217728 bytes
> 
> [1] https://git.qemu.org/?p=qemu.git;a=blob;f=hw/arm/vexpress.c;h=58481c07629aedb09864dcc72757ff7947e733bb;hb=f9baca549e44791be0dd98de15add3d8452a8af0#l50
> [2] https://git.qemu.org/?p=qemu.git;a=commitdiff;h=06f1521795207359a395996c253c306f4ab7586e
> 
> Signed-off-by: Romain Naour <romain.naour at gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  support/testing/tests/fs/test_ubi.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/support/testing/tests/fs/test_ubi.py b/support/testing/tests/fs/test_ubi.py
> index 7321f83da9..8148e5f336 100644
> --- a/support/testing/tests/fs/test_ubi.py
> +++ b/support/testing/tests/fs/test_ubi.py
> @@ -25,7 +25,7 @@ class TestUbi(infra.basetest.BRTest):
>          out = out.splitlines()
>          self.assertIn("UBI image, version 1", out[0])
>  
> -        subprocess.call(["truncate", "-s 128M", img])
> +        subprocess.call(["truncate", "-s 64M", img])
>  
>          self.emulator.boot(arch="armv7",
>                             kernel="builtin",
> -- 
> 2.31.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at lists.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