Message ID | 20210912141140.253778-11-romain.naour@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [01/16] support/testing: test_file_capabilities: bump to kernel 4.19.204 | expand |
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@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@lists.buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot
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",
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@gmail.com> --- support/testing/tests/fs/test_ubi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)