From patchwork Thu Oct 22 10:15:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian La Roche X-Patchwork-Id: 1386116 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.a=rsa-sha256 header.s=20161025 header.b=O4OhZ69G; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CH3CK56ZYz9sVM for ; Thu, 22 Oct 2020 21:15:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D6E9D86CF8; Thu, 22 Oct 2020 10:15:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jNzmqQrQYM_C; Thu, 22 Oct 2020 10:15:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 46BB186D28; Thu, 22 Oct 2020 10:15:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 680D91BF2C9 for ; Thu, 22 Oct 2020 10:15:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6491586D28 for ; Thu, 22 Oct 2020 10:15:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yTjStpeRp6NU for ; Thu, 22 Oct 2020 10:15:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 885CE86CF8 for ; Thu, 22 Oct 2020 10:15:19 +0000 (UTC) Received: by mail-ej1-f68.google.com with SMTP id ce10so1466602ejc.5 for ; Thu, 22 Oct 2020 03:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x0abEmk3PqI0O5oParaxbq585nYIMTzMPavt0OfQcCI=; b=O4OhZ69G7EU09IN5e2oRqWjf5O4PSPpuJ9eDcCFsQLuQqWOI6OSvZckz9eryfg0W9h KQgO0KBKr/HmLfjO5lU5sJiprY4bBZWx4gSe0/OE/hsCBY1AlKS+Nu/G6c+sVz3gf9X7 qFOrvT5gR4kxuIEcuJ/MKEvVGrVWqZcITuQ/+akk1CIYhvtW4WDOnGn2n4vd3p/hsba9 x4BPC+fDNTaVSyK8U0K1oLLSZuX3XDOoEj8La2yh50o3ieEir6LzwcWNOWqtIpCXD8gk CzIfVWHfvSHZekDTMzhb3jxat+iZfs9dwI3RYylw8/x1toOUW0YJ80JEMmgCJ/s+BRye zKyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x0abEmk3PqI0O5oParaxbq585nYIMTzMPavt0OfQcCI=; b=UvTH8LZNqHRKGH8bYlcxXTOSRuGDfiu1iG3V14fsEEHA50BqE+3ZDK2ZxV//TfByy1 J8lZebxJO6jybD6BvgtDepqlDr2qA1NqeTvrh5pmVNC9LaHKxbFvA8A4oP/rs/reUCPr bNzeMDE+6jSIiBgRGb/PLwRG1GYisY0Pyh5UjUtunrZz7D6Alyftt8ipGc32Z8AWAxTu +JepZ3gqbIFbjqUe9P9yGChrD5pQwY9jMRoq2jUPOe0yXSCj/VvXTffAIk6LeOMmMtX3 tEBeJY48wJ8MQIhvTJtvmt+LOoCN4BFIjsX00X1ndEpYtkKsN6CFNXrFZHsvZt9PSjbg XLhA== X-Gm-Message-State: AOAM532WQ5ST19YvJWe2N9Rz7ENFdS2uC9nft2GdQJu8MR3RDeyavqxv UvW3wxOKe/NbDgmZZITg3xBCQPICX5THFQ== X-Google-Smtp-Source: ABdhPJz3FeHnfDBgMOeq2KmUtFzeb/RvsWet18MejBLkqVs3XYtvdUyB4xf/8XZ2IHZ8TI+6qG7igw== X-Received: by 2002:a17:906:3e4b:: with SMTP id t11mr1456698eji.420.1603361717551; Thu, 22 Oct 2020 03:15:17 -0700 (PDT) Received: from winie.fritz.box (i59F521A5.versanet.de. [89.245.33.165]) by smtp.gmail.com with ESMTPSA id fx11sm569776ejb.77.2020.10.22.03.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2020 03:15:16 -0700 (PDT) X-Google-Original-From: Florian La Roche To: buildroot@buildroot.org Date: Thu, 22 Oct 2020 12:15:12 +0200 Message-Id: <20201022101512.56470-1-Florian.LaRoche@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] grub-efi: align the rootfs to start at 16MB offset from start of the image X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian La Roche via buildroot From: Florian La Roche Reply-To: Florian La Roche Cc: Florian La Roche Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" For grub-efi we can align the rootfs to start at exactly 16MB from the beginning of the disk. This can be done by reducing the vfat partition to be 32 KB smaller than its 16MB size, just like the offset of the vfat partition. Signed-off-by: Florian La Roche --- board/pc/genimage-efi.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/pc/genimage-efi.cfg b/board/pc/genimage-efi.cfg index ea15ae5cfb..304e964f14 100644 --- a/board/pc/genimage-efi.cfg +++ b/board/pc/genimage-efi.cfg @@ -10,7 +10,7 @@ image efi-part.vfat { image = "bzImage" } } - size = 16777216 + size = 16744448 } image disk.img { @@ -22,7 +22,7 @@ image disk.img { image = "efi-part.vfat" partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b offset = 32768 - size = 16777216 + size = 16744448 bootable = true } @@ -30,6 +30,6 @@ image disk.img { partition-type-uuid = 44479540-f297-41b2-9af7-d131d5f0458a partition-uuid = UUID_TMP image = "rootfs.ext2" - offset = 16809984 + offset = 16777216 } }