From patchwork Mon Jul 10 16:26:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 786262 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x5rFf3hwHz9s3T for ; Tue, 11 Jul 2017 02:26:46 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="XAFd5HgQ"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 03D5D868B0; Mon, 10 Jul 2017 16:26:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GstFjjeqBNPX; Mon, 10 Jul 2017 16:26:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E3B008694D; Mon, 10 Jul 2017 16:26:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E983B1BF54B for ; Mon, 10 Jul 2017 16:26:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D6171868D7 for ; Mon, 10 Jul 2017 16:26:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FkwzgCuV1T+k for ; Mon, 10 Jul 2017 16:26:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7A1A28686B for ; Mon, 10 Jul 2017 16:26:26 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id 77so25987706wrb.3 for ; Mon, 10 Jul 2017 09:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=k3FEjs7IpYJttykPd8yNG2Hy/XR4pbrhF7k7XSThaps=; b=XAFd5HgQoq5hQAZxELzZQTNx65X52D6MYaadpfR8W5CxuVFze1fxn8VZkI8sYKyI5A kSTE41A8lKB+09RJ8WH4u5YTDr3b/j373ROdfO8PKA/SEt5tNohNBhlimSWkiH5yhfJN bca0cvCzfKim3PF7bPtP2bpJJWr1RlQuphLhTTg3lsdqEeAMn4VsEJqVjeCcIgMGR9Ny OPeEcFcSvpXOtUsAuzyylfm0gZFwA6q7QR4RLAVm6xwNjGfhunoaIYnznEKNSq8EHL9L NyRAiSJc2Yu8nNP0iBM1DdfA1qfS6J0BNqQ7odBoBvWaPApQrSTacPr9QiD9aweGDyn0 wCwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=k3FEjs7IpYJttykPd8yNG2Hy/XR4pbrhF7k7XSThaps=; b=jK4WHApawZnT6pz6Ox45VINd78UuHVsHLm/okOLJu61k6gCUXasBS+4fSHONVI2tJe LClk7SIwQjK88RCtJ9OZChquhGCkGHbkPo7CbJAQy04Zn6OSlc1o3/Ti7WzIqz0OFFtD dWdxlwyZE9JAG+PKgLw62f4qRAYF3UphVSa4bfjUyIdSD+3i6vGqNFyqZW6IFWhg7/kI 7XyK+j2qaB5NmGgRglIQAVDClqjxFlE+uJVgY+iHtiQ4/qJyuXAS7CM5T76ygwPWFZ88 BXjvRsFed0ruhuU4gSsDllj4e74S3Rp9CdszxdwKYZdDMOt6BwLmb7APOHniIK0ojcF8 TOBw== X-Gm-Message-State: AIVw112hykIVRXRmjpryq1bGsNyMk824ktnxr+ASiibqnQGA80e+UQ20 riwidbb9Hf4aJU3f X-Received: by 10.28.21.72 with SMTP id 69mr8447942wmv.75.1499703984971; Mon, 10 Jul 2017 09:26:24 -0700 (PDT) Received: from localhost.localdomain (2a01cb0886107300808c2ac9196c58d8.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:808c:2ac9:196c:58d8]) by smtp.gmail.com with ESMTPSA id h10sm7267216wme.30.2017.07.10.09.26.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jul 2017 09:26:24 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Mon, 10 Jul 2017 18:26:19 +0200 Message-Id: <03816ee56333f1eddb6ca8a048aea947fc027963.1499703968.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/3] fs/squashfs: align size to 1MiB X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The Linux kernel will refuse to mount a squashfs image/partition that is not padded to a 1MiB boundary. We already have this as a workaround in the testing infrastructure, in support/testing/tests/fs/test_squashfs.py@26. Use that workaround directly during the squashfs generation. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- fs/squashfs/squashfs.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk index 342c7a8a37..ba2c956544 100644 --- a/fs/squashfs/squashfs.mk +++ b/fs/squashfs/squashfs.mk @@ -21,6 +21,7 @@ endif define ROOTFS_SQUASHFS_CMD $(HOST_DIR)/bin/mksquashfs $(TARGET_DIR) $@ -noappend \ $(ROOTFS_SQUASHFS_ARGS) + truncate -s %1M $@ endef $(eval $(call ROOTFS_TARGET,squashfs))