From: Danny Milosavljevic <dannym@scratchpost.org>
To: <guix-devel@gnu.org>
Subject: Question about Guix on Novena - mainly U-Boot
Date: Fri, 4 Dec 2020 19:49:37 +0100 [thread overview]
Message-ID: <20201204194937.6060a798@scratchpost.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]
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 restore,
the build server won't come back up correctly.
Help?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2020-12-04 20:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-04 18:49 Danny Milosavljevic [this message]
2020-12-04 19:15 ` Question about Guix on Novena - mainly U-Boot Danny Milosavljevic
2020-12-05 0:33 ` Denis 'GNUtoo' Carikli
-- strict thread matches above, loose matches on Subject: below --
2020-12-05 0:08 Stefan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201204194937.6060a798@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.