bootefi with initramfs
Sughosh Ganu
sughosh.ganu at linaro.org
Mon Sep 25 08:55:58 CEST 2023
hi,
On Fri, 22 Sept 2023 at 16:40, Song Sam <samsong8610 at gmail.com> wrote:
>
> Hi all,
>
> I am currently in the process of booting the Linux kernel using the U-boot
> 'bootefi' command. However, I am facing an issue with the root file system
> (rootfs) disk, which is not functioning properly. As a solution, I am
> considering providing an initramfs to the kernel.
>
> The problem I encountered is that the 'bootefi' command does not accept an
> argument for the initramfs, unlike the 'bootm' command. Upon further
> investigation, I noticed that the kernel attempts to load the initramfs
> from the EFI tables. However, I have been unable to find any information on
> how to define an initramfs table for EFI.
You can add a boot option using the efidebug or (I think) eficonfig
command. The boot option includes the path to the initrd. You can add
the boot option through the 'efidebug boot add' command. Check the
code in cmd/efidebug.c or 'efidebug -h'. Once the boot option has been
added, you can boot with the 'bootefi bootmgr' command.
-sughosh
>
> I would greatly appreciate any suggestions or guidance regarding this
> matter.
>
> Thank you,
> Sam Song
More information about the U-Boot
mailing list