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 cGTLHjuiyl99YAAA0tVLHw (envelope-from ) for ; Fri, 04 Dec 2020 20:55:23 +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 iC6YGjuiyl+pVQAAB5/wlQ (envelope-from ) for ; Fri, 04 Dec 2020 20:55:23 +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 1BDD19404FA for ; Fri, 4 Dec 2020 20:55:23 +0000 (UTC) Received: from localhost ([::1]:44830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klI6s-0004vE-0m for larch@yhetil.org; Fri, 04 Dec 2020 15:55:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klG9T-0007Fb-3B for guix-devel@gnu.org; Fri, 04 Dec 2020 13:49:55 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:41208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klG9H-0005QR-PZ for guix-devel@gnu.org; Fri, 04 Dec 2020 13:49:53 -0500 Received: from localhost (80-110-125-229.cgn.dynamic.surfer.at [80.110.125.229]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 1856E3368551 for ; Fri, 4 Dec 2020 19:49:40 +0100 (CET) Date: Fri, 4 Dec 2020 19:49:37 +0100 From: Danny Milosavljevic To: Subject: Question about Guix on Novena - mainly U-Boot Message-ID: <20201204194937.6060a798@scratchpost.org> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/uE73q4QJgSwKqP.GFaRYrGR"; protocol="application/pgp-signature"; micalg=pgp-sha512 Received-SPF: none client-ip=85.13.145.193; envelope-from=dannym@scratchpost.org; helo=dd26836.kasserver.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.39 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 1BDD19404FA X-Spam-Score: -2.39 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: NtwkQ3P6H7ul --Sig_/uE73q4QJgSwKqP.GFaRYrGR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, I'm still in the process of setting up the Novena as a GNU Mes for ARM build machine. Guix system on Novena from sd card finally works. Now I want to make it boot it from SATA instead. So I did the following: (1) Used cp -a to copy over everything from the sd card / to the sata drive partition 2 (ext4 fs). (2) Fixed up /etc/config.scm to say to install u-boot into target "/dev/sda= ". (3) mounted /dev, /dev/pts, /sys, /proc and then chroot /mnt guix system reconfigure /etc/config.scm (4) Used novena-eeprom to enable booting from SATA according to https://novena-guide.readthedocs.io/en/latest/tasks.html (5) Power off (6) Take sd card out (7) Power on (8) u-boot prompt on Novena serial line never appears If I instead try to boot Guix from the SATA drive via the u-boot that's on = the microsd card, that fails too, probably because of the patch https://lists.denx.de/pipermail/u-boot/2008-December/044716.html That attempt was like this: (1) Copy the hard drive's /boot/extlinux/extlinux.conf to the microsd's /boot/extlinux/extlinux.conf, overwriting the latter (2) Reboot into u-boot-from-the-sd-card (3) Wait for autoboot in u-boot to commence (4) It fails to read the initrd (or anything else) from SATA, eventually failovers to sd card boot because there's still an old guix generation for = it So instead I did this: (1) Stop autoboot (2) Execute: sata init (3) Execute: part list sata 0 -bootable devplist (4) Execute: run sata_boot Then it indeed boots Guix from sata starting from the u-boot from microsd. But I cannot keep it like this because if there's a power outage and restor= e, the build server won't come back up correctly. Help? --Sig_/uE73q4QJgSwKqP.GFaRYrGR Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl/KhMEACgkQ5xo1VCww uqW+pgf+Mj7ad+1mvQAgMJKmQBmFx31DNtJRcEjw4vz4Vd2BKMhaWJ1jXGO7MzZf Ti4lIirhyumQeq47IBpXhf2v3tFUfT0Jki03EfCmuPoeFRGMlTm58MqIZXFJN820 RVBIfGqi9JZSf45UKcgJp4kwBT3s1nxzJ9uQBvhy1cvtQxlm37WO/EPz3baHyYvh EzSCXtWrzgZmBnMfqu6X8rC4TWzO0wPoHunWTa3qAqWRqtFy59KfZGnDszKBB8zJ aPmZpNjOdu3WecFj8rRqVznRDMhXVAD7uYj8/NFq90FyTuHX7OeTkZPwdZVbJvB+ hlDCGhQuY0Ns+7/B3a6Ub7vBVGRTuw== =6Wth -----END PGP SIGNATURE----- --Sig_/uE73q4QJgSwKqP.GFaRYrGR--