From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Roland Hieber Date: Tue, 15 Sep 2020 20:59:18 +0200 Message-Id: <20200915185920.3353-13-rhi@pengutronix.de> In-Reply-To: <20200915185920.3353-1-rhi@pengutronix.de> References: <20200915185920.3353-1-rhi@pengutronix.de> MIME-Version: 1.0 Subject: [DistroKit] [PATCH 13/15] v7a: image-vexpress: slim down image List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: distrokit-bounces@pengutronix.de Sender: "DistroKit" To: distrokit@pengutronix.de Cc: Roland Hieber 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(-) diff --git a/configs/platform-v7a/config/images/vexpress.config b/configs/platform-v7a/config/images/vexpress.config index 07125bea4c88..17fcf5ec414c 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 } } -- 2.28.0 _______________________________________________ DistroKit mailing list DistroKit@pengutronix.de