From: Efraim Flashner <efraim@flashner.co.il>
To: Tobias Alexandra Platen <guix@platen-software.de>
Cc: guix-devel@gnu.org
Subject: Re: Understanding how guix selects a bootloader variant
Date: Sun, 3 Nov 2024 20:23:21 +0200 [thread overview]
Message-ID: <Zye_mXBCsXcf18Gj@3900XT> (raw)
In-Reply-To: <96bf3465db600e87e3a618aaf93667b46d460804.camel@platen-software.de>
[-- Attachment #1: Type: text/plain, Size: 2148 bytes --]
On Sun, Nov 03, 2024 at 05:38:11PM +0100, Tobias Alexandra Platen wrote:
> I am currently trying to build a virtual machine image for powerpc64le.
> So I intend to fix known errors, starting with the bootloader:
> configure: error: platform "efi" is not supported for target CPU
> "powerpc64le". The right bootloader variant for anything powerpc,
> starting from G4 is openfirmware. Here is some part of my config:
>
> (bootloader (bootloader-configuration
> (bootloader grub-bootloader)
> (targets '("/dev/sda"))))
>
> Now I am trying to understand where guix selects BIOS/UEFI for a VM
> when using grub-bootloader.
From there I'd search in Guix for the code for bootloader-configuration.
I would also start by looking at grub's configure.ac to see what options
exist:
# Specify the platform (such as firmware).
AC_ARG_WITH([platform],
AS_HELP_STRING([--with-platform=PLATFORM],
[select the host platform [[guessed]]]))
# Guess the platform if not specified.
if test "x$with_platform" = x; then
case "$target_cpu"-"$target_vendor" in
i386-apple) platform=efi ;;
i386-*) platform=pc ;;
x86_64-apple) platform=efi ;;
x86_64-*) platform=pc ;;
powerpc-*) platform=ieee1275 ;;
powerpc64-*) platform=ieee1275 ;;
powerpc64le-*) platform=ieee1275 ;;
sparc64-*) platform=ieee1275 ;;
mipsel-*) platform=loongson ;;
mips-*) platform=arc ;;
ia64-*) platform=efi ;;
arm-*) platform=uboot ;;
arm64-*) platform=efi ;;
loongarch64-*) platform=efi;;
riscv32-*) platform=efi ;;
riscv64-*) platform=efi ;;
*)
AC_MSG_WARN([unsupported CPU: "$target_cpu" - only building utilities])
platform=none
;;
esac
else
platform="$with_platform"
fi
I'm pretty sure grub-efi builds for ppc64le, but it looks like you've
selected grub above.
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-11-03 18:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-03 16:38 Understanding how guix selects a bootloader variant Tobias Alexandra Platen
2024-11-03 18:23 ` Efraim Flashner [this message]
2024-11-04 16:59 ` Tobias Alexandra Platen
2024-11-04 20:02 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
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=Zye_mXBCsXcf18Gj@3900XT \
--to=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
--cc=guix@platen-software.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.
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.