From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MAu+BhNliGMo4QAAbAwnHQ (envelope-from ) for ; Thu, 01 Dec 2022 09:25:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oCi9BhNliGMFbgEA9RJhRA (envelope-from ) for ; Thu, 01 Dec 2022 09:25:55 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9665739588 for ; Thu, 1 Dec 2022 09:25:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0esT-0007OC-4i; Thu, 01 Dec 2022 03:25:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0esQ-0007Ng-O6 for bug-guix@gnu.org; Thu, 01 Dec 2022 03:25:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0esQ-0005Si-Ah for bug-guix@gnu.org; Thu, 01 Dec 2022 03:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0esQ-0006KX-5h for bug-guix@gnu.org; Thu, 01 Dec 2022 03:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59695: ESP partition uses 1024 byte sectors Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 01 Dec 2022 08:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59695 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59695@debbugs.gnu.org Received: via spool by 59695-submit@debbugs.gnu.org id=B59695.166988306924304 (code B ref 59695); Thu, 01 Dec 2022 08:25:02 +0000 Received: (at 59695) by debbugs.gnu.org; 1 Dec 2022 08:24:29 +0000 Received: from localhost ([127.0.0.1]:38242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0ers-0006Jw-Bz for submit@debbugs.gnu.org; Thu, 01 Dec 2022 03:24:28 -0500 Received: from mail-wm1-f45.google.com ([209.85.128.45]:53222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0erq-0006Jk-CE for 59695@debbugs.gnu.org; Thu, 01 Dec 2022 03:24:27 -0500 Received: by mail-wm1-f45.google.com with SMTP id o30so616930wms.2 for <59695@debbugs.gnu.org>; Thu, 01 Dec 2022 00:24:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=9tmI8H9YspI7Ufpge9qGodECx4ksEmNKjf0icPSnjO4=; b=YNgVDoy515Qj4olykTh6CO0GcxbkSGiaJEJyIVw6NfHgbALe0GuzJuaxouBpecDdUK WgNS4wTq+QjNZKci3WCxcyp01YzHoyGbrfyVhtssfE2g4X1nvbm07aiYbH5uWqQApL+L vSsEbJQw3kLMBtASNVxoA0CMFs697m4p9kKjf3aW4PV2HvEYqQFLffY+YQxEk8zxOqR0 X9Oc+Sjpqyl4rtXw490+R4KzijqJPkoHCRrfwLM+6kFBG5eHdSqQPZazy8oHuHvHHHhk LezxQtnseYUGN5kxoDTcrHUlB0qh3rOuH9fasuC+7yL4CuPcjakyCNV99Gq+4Vi9Exvj B1HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9tmI8H9YspI7Ufpge9qGodECx4ksEmNKjf0icPSnjO4=; b=xVFIWK4Vuy7Xczbsa/MExJsgtRyI4i++gyHGKsecw+GDMLa5Gznd+Zf7dyfxSO2Oyi 2qtPIq/uU3rEdmbS1b6aSM7eN3ix2AkqoibDntXWIxk6Ole8kTL93xlrKIIDuVut914m 3nBqoaNOQ1mwEXKmyXrnnyRaECdn8C2SH0mif33xUTHSbMaSJkB2gQXAs0UAXbU2Qj7Q TREe5eWzMo9y84bF3gXvwYSpN36z/IA1pN5WPuqZxht/EjsIlGaClEMxbL0NZzzA06q6 spqjusm1g7Pbsj6vwUYtWvw6Txe57y9QYJPgWSrLd9la5uFW4NqIxRtrrnojV+rVDeS7 tVzg== X-Gm-Message-State: ANoB5pnmPSUzQMBLNqLrFv3EQQpimmp94lCTlpgHEWsik3M9HyqLLO9S qWPHgzP6YIELqYPkklfwTs0u7c8+nEU= X-Google-Smtp-Source: AA0mqf5TIYTWpUBG5pMAaW3w8H64rGgszkybeyl9AbAV0xZeIj3jmC9d4GiPYS2PvHvEqk/Uuzc4ag== X-Received: by 2002:a05:600c:22c4:b0:3cf:71b7:7a41 with SMTP id 4-20020a05600c22c400b003cf71b77a41mr49072672wmg.31.1669883060126; Thu, 01 Dec 2022 00:24:20 -0800 (PST) Received: from localhost ([141.226.13.150]) by smtp.gmail.com with ESMTPSA id p17-20020a05600c359100b003c6b9749505sm8556285wmq.30.2022.12.01.00.24.19 for <59695@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 00:24:19 -0800 (PST) Date: Thu, 1 Dec 2022 10:24:17 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , 59695@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eV8Oe2TW36fkgAB6" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669883155; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=9tmI8H9YspI7Ufpge9qGodECx4ksEmNKjf0icPSnjO4=; b=HsNozaQNYs4UF2+8aS8Yh3/ZiE1pnYOjz4AOCAc7/Rq9TCaJvDBierpbsCLjfOXmEH1mC4 bIOwyxeme7YZMtR+MOUIBqVYkJ5/9VXjeiqHFs8XqhF1RdYEIrcAZ/mxSSVPb8UVik9YQd M9mZf5g4qlGo2gPhKWTDQ6A1mib7/mtDyuHwB5z5LnHaVJsMYjJWZ+Ij1VGxWGWHx6y/JA Gx7kziLdINwJVXsvUHvPefb+pxcewBav8qHCK0jPC9A2QfKUQP9M9YAGi+4Zko9SfeCTJ4 ZIBShWkZaVhKOKoz6PaGFM/3WK83chlw43r+SBhrdlCSiOJE1WeS4M5/OCeukw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669883155; a=rsa-sha256; cv=none; b=hO6Y/+CrG+AK9Oa1xtkRhSz2BJYOFfkGeKLXU8V6fMv70+EkhdGXlpZujlCFyv9eS1hBmT hXy+jI3WctaE2TeH8sfkkJI80V57lkNE2xDFAEp9h0CBUmCt1rs5+fJ/9Gz/nA5sy5FFua fm8JUeXpR+ohEC/1WqKttkdKia5o8dtYyApulUr0e0psOfzWIYqHIWIyHnQrFr9TrHruE4 vPPgjh7w9fbs1aNk6wwiNuFO39AWpE8GmKRbSeblMlRZGdZfsvEXwEPXADcSQ3KxdCM1fN hvOHk4UH7LwF6VM04mQzPAOF2cuaFzWweSgibjuZHvqOVeZ/HlS7BM2r77P8rA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YNgVDoy5; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.56 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=YNgVDoy5; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9665739588 X-Spam-Score: -0.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: QJ3h1Cs9thCZ --eV8Oe2TW36fkgAB6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 29, 2022 at 10:51:42PM +0200, Efraim Flashner wrote: > I was working on using a grub-efi system image for aarch64 and I got the > following error: > 'Error: FAT sector size mismatch (fs=3D1024, dev=3D512)' > I traced it back to u-boot=C2=B9. u-boot wouldn't chainload grub if the > device block size and the filesystem sector size doesn't line up. I > changed the line in (gnu build image) in make-vfat-image to use '-S 512' > for esp partitions and was able to load the grub menu from u-boot. >=20 > I spent some time looking through the git history but I wasn't able to > find anything to suggest why we have 1024 byte sectors there > specifically. >=20 > =C2=B9 https://source.denx.de/u-boot/u-boot/-/blob/master/fs/fat/fat.c#L5= 89 Normally I'd be ok with hardcoding 512 for the sector size to fix this, but then I remembered that there are 4k block size disks which actually declare themselves as having 4k blocks and not emulating 512 byte blocks. What do you think? I suppose one option would be to patch u-boot to not demand they be equal, but that only works with guix build u-boot. We could force 512, u-boot is the only thing I've come across so far that cares and most people=C2=B2 use =C2=B5SD cards which advertise 512 byte blo= cks. Maybe change it to 512 and add a TODO to revisit it later as needed? =C2=B2 citation needed --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --eV8Oe2TW36fkgAB6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmOIZK4ACgkQQarn3Mo9 g1E4yA//QTuJeKP1GOhF8ZiHWqWAvh3Ka+KWFWK14k6+3eHNA3QXdSiXosps75H8 8aRyE59319aY6szkDFbkFfuc0PvoYU5kYgRaeqqo1Pm0us8Zn3RdEwMSm1ZgkOSv oBGOJv3hGiEyqDKXWm59EZuri+KPxaQrOFmk7KrkAZO7G7NWEUrhtoywaMqKb04F r4PGp9DhHR+TFwjYnTriNr4N8NJXAj+KVzm+x4YogH2MdfXYsMBUFwkjr1LXqEgy 89ogUfKPN9NWRg3wWxI6vtF1JgDXqB2lpQrQgAnFPiOc4ZxW5T7Rcn49V0fK7F45 BVH8Zsre/7+3A3adrs7FHjYiCrL8IM+welcbodQO/TVn5teG5NEqFPTn9wygRgVG zyzUscmqFlj57z34kbf3zEVxsbB8Orrgf/zha/+YudKndoDEXbmi8DvEF1F28f7z TUSLOvV7ROUb/MeQIdZ+Knnoip3HqBfIPwPxz5/+XPYi56SVy/7iL9OiT4S+M1uO k4jBs0Xv0Zp460qj9s6ySi3ZH4hafW5FZDzIvzMg3zNoc/vP1tBAb2y9I5B9FO9W FcKitxPijYsxLcOyUFDIs83g61H9RB2oMg/6Q80oazXSR2OF99qf2PMxLyeaIhpt Nb1xzHkWTGKjnB1yJjgeuuLxEWgDVnsdbPChQgbIvUH24B5AX3E= =HJNi -----END PGP SIGNATURE----- --eV8Oe2TW36fkgAB6--