如何 运行 在 Qemu 的 U-boot 上进行 Grub? (对于手臂)

How to run Grub on U-boot on Qemu ? ( for Arm )

我想知道如何 运行 在 Qemu(用于 Arm)上的 U-boot 上进行 Grub?

I want to know how to run Grub on U-boot on Qemu (for Arm)?

您的问题不正确,或者您可能误解了引导加载程序 arch 支持。

如果你提到 运行在 Qemu 上的 Uboot 上使用 ARM Grub,你的问题会更合适。

GRUB:广泛用于 x86 arch,GRUB 也支持 ARM。你不能在 Uboot 上 运行 (x)GRUB。

OS 需要一个引导加载程序来帮助引导它。在这种情况下,请使用 GRUB 或 U-boot。

It's possible to run ARM GRUB on Qemu follow this link 但这不是直接的方法,您需要调整上面 link.

中的大量参数

如何使用GRUB on ARM

在 U-Boot 中,您可以通过 bootefi 命令将 GRUB 作为 EFI 可执行文件启动。这就是 Suse Linux 发行版在像 Odroid-C2 这样的 arm64 板上启动的方式。

安装 GRUB-EFI 时,您需要将 FAT 分区挂载为 /boot/efi。之后在 Debian 上的安装就像

一样简单
sudo apt-get install grub-efi-arm64
sudo grub-install --target=arm-efi
sudo update-grub