From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GIWFKDBC8l/bcAAA0tVLHw (envelope-from ) for ; Sun, 03 Jan 2021 22:16:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0GNmJDBC8l8PFgAAB5/wlQ (envelope-from ) for ; Sun, 03 Jan 2021 22:16:16 +0000 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 E4883940222 for ; Sun, 3 Jan 2021 22:16:15 +0000 (UTC) Received: from localhost ([::1]:36636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwBfa-0003Co-Sh for larch@yhetil.org; Sun, 03 Jan 2021 17:16:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwBfO-0003CU-2H for bug-guix@gnu.org; Sun, 03 Jan 2021 17:16:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwBfN-00013N-RZ for bug-guix@gnu.org; Sun, 03 Jan 2021 17:16:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kwBfN-00080O-My for bug-guix@gnu.org; Sun, 03 Jan 2021 17:16:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45517: Failed boot on arm32 with u-boot due to missing requirements with the distro boot protocol Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 03 Jan 2021 22:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45517 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Received: via spool by 45517-done@debbugs.gnu.org id=D45517.160971210730707 (code D ref 45517); Sun, 03 Jan 2021 22:16:01 +0000 Received: (at 45517-done) by debbugs.gnu.org; 3 Jan 2021 22:15:07 +0000 Received: from localhost ([127.0.0.1]:38797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwBeU-0007zD-Vf for submit@debbugs.gnu.org; Sun, 03 Jan 2021 17:15:07 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:58122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwBeT-0007z2-Nw for 45517-done@debbugs.gnu.org; Sun, 03 Jan 2021 17:15:06 -0500 Received: from localhost (80-110-127-104.cgn.dynamic.surfer.at [80.110.127.104]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 1E5D3336579E; Sun, 3 Jan 2021 23:15:04 +0100 (CET) Date: Sun, 3 Jan 2021 23:15:01 +0100 From: Danny Milosavljevic Message-ID: <20210103231501.31267abc@scratchpost.org> In-Reply-To: <87lfdbbpsz.fsf@gnu.org> References: <20201229033439.60b2a9ff@primarylaptop.localdomain> <87sg7n5pkr.fsf@gnu.org> <20210102035440.0d5aacea@primarylaptop.localdomain> <87lfdbbpsz.fsf@gnu.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/+RcF3e6XP5ME.nR1Lwyy6Hv"; protocol="application/pgp-signature"; micalg=pgp-sha512 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: , Cc: 45517-done@debbugs.gnu.org, Denis 'GNUtoo' Carikli Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: E4883940222 X-Spam-Score: -0.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: 363IOHG1dJkd --Sig_/+RcF3e6XP5ME.nR1Lwyy6Hv Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Mathieu, On Sat, 02 Jan 2021 11:23:24 +0100 Mathieu Othacehe wrote: > > Thanks a lot, that works fine. =20 >=20 > Glad it works! Maybe we should consider creating a > gnu/system/images/lime.scm file in the future. Sure. I think that Allwinner boards are all similar enough in booting that we cou= ld just have a gnu/system/images/allwinner.scm to support them all--except for the u-boot package reference they are all the same. Later Allwinner boards added a reference to an alternative boot sector[1] for the first part of u-boot into boot ROM *in addition* to the old one--so even those would still work! Long story short, all of the Allwinner boards can inherit from the same allwinner image type--with only the u-boot package (not even the bootloader-installer) swapped out. We could have a gnu/system/images/olinuxino-lime2.scm which would inherit from that common thing somehow (and which would thus have about two lines of source code total). But there's a reason I added OS-WITH-U-BOOT and that's because of things like this. It can adapt any existing operating-system image, swapping out the bootloader by an u-boot with a random u-boot board config name and compile it for a given architecture. It would be nice to have it integrated into the Guix image generation process somehow, if possible. =20 By automatically calling OS-WITH-U-BOOT (as a fallback), we could avoid end= ing up with 1273 similar files in gnu/system/images. Guix would just call os-with-u-boot dynamically to generate those image types at runtime that don't have a special one in that directory. WDYT? [1] https://linux-sunxi.org/Bootable_SD_card#SD_Card_Layout --Sig_/+RcF3e6XP5ME.nR1Lwyy6Hv Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl/yQeUACgkQ5xo1VCww uqWAEQf+O0ukvdacFZaRtZPxOD1KG5VEgeWV/Rd5XJcgQF+leHiQ3RbVWs7JT1VF yRGSceMeq7JSTkQYpKkTfqgVH3u0LvvV1zH5MC7YT5wiH+7IyZzjw1n+wWuJbwNQ f10oj7b5IJSOMEolPaIdyLaoNoNMscUu39iiwJlIWlNFCkPsB+AQziMmiB83hAj6 DPiMvgNqTjhfJGndOPJM5FfIsAEP32xops5gU+x+IXUSASs1aUVLOOpAWlQje0qX PXSyXWTfEFECiZzyn/uP4aSYqji520PTddVzTGXj6lPxpKg1OiWtu+3L+MbLCRgn 86q1VpaCoyXXaj1Nxov1hZVEddimww== =Sp4Y -----END PGP SIGNATURE----- --Sig_/+RcF3e6XP5ME.nR1Lwyy6Hv--