From: Reza Alizadeh Majd <r.majd@pantherx.org>
To: Stefan <stefan-guix@vodafonemail.de>
Cc: help-guix@gnu.org
Subject: Re: U-Boot for Raspberry Pi
Date: Wed, 16 Feb 2022 19:25:40 +0330 [thread overview]
Message-ID: <20220216192540.13fdd4b5@pantherx.org> (raw)
In-Reply-To: <6B4DB50F-085E-416D-A643-68BAE94B88AD@vodafonemail.de>
Hi Stefan,
First of all, thanks for your great work to bring the Guix for RPi.
>Your troubles might indicate that you didn’t properly mount the ext4
>and FAT file systems below /mnt. You should follow the manual
>regarding an EFI system¹: Mount the ext4 partition of the microSD card
>at /mnt and the FAT partition of the microSD card at /mnt/boot/efi –
>you will have to call ‘mkdir -p /mnt/boot/efi’ after mounting the ext4
>partition and before mounting the FAT partition.
>
>> Do you have different suggestion on how to invoke the guix system
>> init command?
>
>Please separate build and installation. First build guix as described
>in the manual² without any sudo but inside its build environment with
>the amount of cores you like to use:
>
>$ guix environment --pure guix
>$ ./bootstrap
>$ ./configure --localstatedir=/var
>$ make -j 4
>$ exit
>
>Then use the new guix outside its build environment to initialize the
>system with sudo:
>
>$ sudo -E ./pre-inst-env guix system init --system=aarch64-linux
>gnu/system/examples/raspberry-pi-64.tmpl /mnt
I just followed your instructions from Guix host machine, but I faced
following error during the `guix system init process:
--8<---------------cut here---------------start------------->8---
@ unsupported-platform /gnu/store/4dc56sq286h0pdvs0s6917vvzlr9xsrg-module-import-compiled.drv aarch64-linux
while setting up the build environment: a `aarch64-linux' is required to build `/gnu/store/4dc56sq286h0pdvs0s6917vvzlr9xsrg-module-import-compiled.drv', but I am a `x86_64-linux'
--8<---------------cut here---------------end--------------->8---
it seems that the `--system=aarch64-linux` doesn't work as expected to
cross-compile the image for RPi.
here is more details about my build process:
- I tried to build the Guix for RPi compute module 4 with embedded 32GB
emmc.
- identified the `rootfs` and `boot` partitions using usbboot [1].
- mounted the `rootfs` to the `/mnt`
- created the `/mnt/boot/efi` prior to mounting the `boot` partition
there.
- added following required initrd modules to the system configuration.
--8<---------------cut here---------------start------------->8---
(initrd-modules (append (list "uas" "usb_storage")
%base-initrd-modules))
(initrd-modules (append (list "uas" "usb_storage")
%base-initrd-modules))
--8<---------------cut here---------------end--------------->8---
1. https://github.com/raspberrypi/usbboot
Best,
Reza
--
Reza Alizadeh Majd
PantherX Team
https://pantherx.org
next prev parent reply other threads:[~2022-02-16 16:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-31 23:09 U-Boot for Raspberry Pi Stefan
2021-11-02 11:00 ` phodina
2021-11-02 13:24 ` Stefan
2022-02-16 15:55 ` Reza Alizadeh Majd [this message]
2022-02-18 23:12 ` Ricardo Wurmus
2022-02-21 11:08 ` Reza Alizadeh Majd
2022-02-21 11:14 ` Ricardo Wurmus
2022-02-22 7:36 ` Reza Alizadeh Majd
2022-02-22 8:30 ` Ricardo Wurmus
2022-02-22 9:05 ` Vincent Legoll
2022-02-22 9:07 ` Vincent Legoll
-- strict thread matches above, loose matches on Subject: below --
2021-10-30 21:39 phodina via
2021-10-30 22:05 ` Vagrant Cascadian
2021-10-31 6:47 ` phodina
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220216192540.13fdd4b5@pantherx.org \
--to=r.majd@pantherx.org \
--cc=help-guix@gnu.org \
--cc=stefan-guix@vodafonemail.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).