From f9437ed4c512f6aa53a9312b16b5329d94cf3207 Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Tue, 15 Sep 2020 20:59:18 +0200 Subject: v7a: image-vexpress: slim down image We don't need the whole 1 GiB image, the rootfs is only about 50 MiB in size. Slim the image down to 64 MiB rootfs + 63 MiB data and 1 MiB of padding at the end to keep the kernel happy. Signed-off-by: Roland Hieber --- configs/platform-v7a/config/images/vexpress.config | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'configs/platform-v7a') diff --git a/configs/platform-v7a/config/images/vexpress.config b/configs/platform-v7a/config/images/vexpress.config index 07125be..17fcf5e 100644 --- a/configs/platform-v7a/config/images/vexpress.config +++ b/configs/platform-v7a/config/images/vexpress.config @@ -6,21 +6,22 @@ image @IMAGE@ { partition root-A { image = root.ext2 partition-type = 0x83 - size = 512M + size = 64M } partition data { partition-type = 0x83 - size = 512M + size = 63M } /* genimage does not write zeros at the end of an image to save space, * but the kernel in qemu will complain if the image file is smaller - * than the partition sizes. work around this by adding an empty + * than the partition sizes, and qemu will complain if the SD card size + * is not a power of 2. work around this issues by adding an empty * partition at the end. */ partition end { image = /dev/null size = 1M - offset = 1025M + offset = 128M in-partition-table = false } } -- cgit v1.2.3