From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 8GbsL9fze2JfLAAAbAwnHQ (envelope-from ) for ; Wed, 11 May 2022 19:35:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KFS9L9fze2LM6wAAauVa8A (envelope-from ) for ; Wed, 11 May 2022 19:35:19 +0200 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 473AC31055 for ; Wed, 11 May 2022 19:35:19 +0200 (CEST) Received: from localhost ([::1]:43366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noqF3-0002zg-T9 for larch@yhetil.org; Wed, 11 May 2022 13:35:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noqEp-0002yL-Cx for guix-patches@gnu.org; Wed, 11 May 2022 13:35:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noqEp-0001ja-3b for guix-patches@gnu.org; Wed, 11 May 2022 13:35:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noqEp-0002GF-1M for guix-patches@gnu.org; Wed, 11 May 2022 13:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55343] [PATCH 2/2] image: Add new efi32-raw format for 32bit UEFI on 64bit systems Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 May 2022 17:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55343 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Maxime Devos Cc: 55343@debbugs.gnu.org Received: via spool by 55343-submit@debbugs.gnu.org id=B55343.16522904678624 (code B ref 55343); Wed, 11 May 2022 17:35:02 +0000 Received: (at 55343) by debbugs.gnu.org; 11 May 2022 17:34:27 +0000 Received: from localhost ([127.0.0.1]:38373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noqEE-0002F2-SZ for submit@debbugs.gnu.org; Wed, 11 May 2022 13:34:27 -0400 Received: from cyberdimension.org ([80.67.179.20]:35876 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noqED-0002Et-71 for 55343@debbugs.gnu.org; Wed, 11 May 2022 13:34:25 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id e451a6e2; Wed, 11 May 2022 17:33:19 +0000 (UTC) Received: from primarylaptop.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 433decdd; Wed, 11 May 2022 17:33:18 +0000 (UTC) Date: Wed, 11 May 2022 19:35:50 +0200 From: Denis 'GNUtoo' Carikli Message-ID: <20220511193550.1b0da112@primarylaptop.localdomain> In-Reply-To: References: <20220510011812.15710e0b@primarylaptop.localdomain> <20220509232451.30605-1-GNUtoo@cyberdimension.org> <20220509232451.30605-2-GNUtoo@cyberdimension.org> <20220510233910.683f8454@primarylaptop.localdomain> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/t0plz66UENxzCpHjjmOP=xl"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652290519; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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; bh=n/DAcbwkIoPS/ht35C36djzbOTpEoMyTKRt8rb4dwGQ=; b=mwdPTCs71Y+WQPnJySswMJvzCxA180I4hhlWsbP08rLkNYZQwYlF+BtbK76qjDiskbq7TT HBdGpz6Q0zZKfthMdmNFQj2eJt5aEcMn/LKUmGmkFtAmjg1VJ6QORGY279k5Cbb1iSV39F CAzBWPCL5pbzyc9cQVyWJYMAaF2et4QHAUKaPWS9Mh7dJ8y9rA9MvfcFHKWaC/wZJ0R2AO Ic/BZ3F5GugZwwyFDhXGt2CHWUTQmzaCwEOMjyyOrsqU0jnQSpqinUfiUKm+jZkuNiak/I 9B4T1klF7QZwaJ5NlQqg4HSdZFL3snDhsX8oGn5hiT0c5JJ7xxzaE88+pDLPiw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652290519; a=rsa-sha256; cv=none; b=UP+BkjsTe4rpNKLizXCRIFs5+5OYtgiQR9YrxzMEsfC2ShZzp0PFqVsaN8P2SxlUL6eHD8 EBxm3oPAGuxg7aRZjqCmks35qVW3M/aFZ4vGQybUe5YKTf8BlrRkNycSkWilf3uhx4Z49K 754YiKCwPQCMzAKxWr6BSwYovvwW7zWhtpGVRkSYL0Eqo55qvwfUY+kikA/LqOIgCGWmRt Xsa/UvmoHiHYTlc6nVeEOi/Ia+Ht/955ZrObUszf7oUseVGZC1FwYf9+lrhK2XiJrSafK+ usU4N/vjKtxIKiY/NjCNC/ps+4dLkMPupItepDcXPaBNZ4UeJdvQO773Zjk9eg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.11 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 473AC31055 X-Spam-Score: -5.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1RDEZCam6kss --Sig_/t0plz66UENxzCpHjjmOP=xl Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 11 May 2022 11:07:22 +0200 Maxime Devos wrote: > Ok, --target looks like a better fit in this case. Sorry for the previous mail, I saw this one after finishing sending the one with a report on tests with (list #:target "i686-linux"). > Though now I'm wondering if on i686-linux we might need a grub-efi64 > variant on some setups ... Good question. It would require to have a computer where the UEFI implementation is only able to launch 64bit PE files on computers with a CPU that also support 32bit OS. For ARM I'm not sure if we can boot 32bit kernels on 64bit CPUs: In theory many ARM computers hardware is capable of that. However in practice we'd need to make that kernel configurations works for that, and platform drivers that only work for aarch64 are probably required anyway. Maybe in case of emulation that doesn't apply though. For x86 I didn't ear of 64bit-only UEFI with CPUs that still support 32bit OS, but it could exist. And according to the official GRUB documentation, it is possible to boot 32bit OS when the UEFI is 64bit and vice versa[1]: | | ia32 EFI | amd64 EFI | | BIOS chainloading | no (1) | no (1) | | [...] | [...] | [...] | | FreeDOS | no (1) | no (1) | | Multiboot | yes | yes | | Multiboot2 | yes | yes | | 32-bit Linux (legacy protocol) | no (1) | no (1) | | 64-bit Linux (legacy protocol) | no (1) | no (1) | | 32-bit Linux (modern protocol) | yes | yes | | 64-bit Linux (modern protocol) | yes | yes | | [...] | [...] | [...] | | 32-bit EFI chainloader | yes | no (3) | | 64-bit EFI chainloader | no (3) | yes | | [...] | [...] | [...] | 1. Requires BIOS=20 So there might be a use case here if such machines exist. I'll try to look for infos on that. References: [1]https://www.gnu.org/software/grub/manual/grub/grub.html#Supported-boot-t= argets Denis. --Sig_/t0plz66UENxzCpHjjmOP=xl Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmJ78/YACgkQX138wUF3 4mNnYQ/+ON6o4/+K95KFI/ScJ2DsmrgaM9MSy+ZzuqbwK7SKCeIW+n+lHQksUUoy 2RU/tbAA6w9QwtOlqJ0rTsJpz3H0mwoJdAo1me1xNomFT96TQ4j5R+Wj8qJD3nz9 Te3gY/+gk8hiWJLPGDn2RUVhOPyLWRIn8Z6xSlNbmXi0Ru1KFgMZLsKkLuiWemeK Q7kJEZIdEnyE2uXcu/HlM3E0qDXDk9mlZbDyqSsxzj9NnS9FZwuJnHww4U/N6DzA 1eAb97TGf+3VfanZk8ECfy0nZ5w0LSSKMSvkzDfxJu+9ROhckl4FXbXUBzL5O+10 C5wwK7hNUST7to0LgOTtJeW2SJ/cbrXuZmuqi/VTpK2wH52Ff2C4kAfeMx36Y0Ms kPWG9vk62U5Hmjsyp/lpxqZqi52LWH233cBve/2xevfeVaAFH2KpeHAdXFU7zpT9 dIDFRerHHe83tDSHJGEvgW3pm1edNkCAe2lRFadHonOTGPYTwAwdPHx53wurxfoK ogfREQKsvAK5ySrDsV0kABsQkdvYbQ3NP2nOo/JRuNwvE7FmyIpnlkkSzkNh1ME5 LXGEoPuFxBNnsTzQwXWKCJEVvqD1x1mbJma4Kan7fMEwLJ2m8Hfc23vDQa/NYUSj IeGAbFrgPwMH/PJS+0wTv1Q/Awx6wlwWgx3lIPQcbmt1/3k9rpw= =DwV6 -----END PGP SIGNATURE----- --Sig_/t0plz66UENxzCpHjjmOP=xl--