riscvarchive / riscv-edk2-platforms

Port of EDK2 implementation of UEFI to RISC-V. See documentation at:
https://github.com/riscv/riscv-uefi-edk2-docs
Other
18 stars 7 forks source link

Make EFI/BOOT/BOOTRISCV64.EFI autostart #12

Open JohnAZoidberg opened 3 years ago

JohnAZoidberg commented 3 years ago

See: https://github.com/riscv/riscv-edk2-platforms/issues/7#issuecomment-787461881

JohnAZoidberg commented 3 years ago

Not sure what's required for this. The filename is correct and MdePkg/Include/Uefi/UefiSpec.h already has it. We include BdsDxe in our image. Not sure what conditions it needs to trigger it. Can you please help with this, @changab?

JohnAZoidberg commented 3 years ago

As a workaround you can create startup.nsh with the content: FS0:\EFI\BOOT\BOOTRISCV64.EFI. cc @kallisti5

changab commented 3 years ago

Hmm, same thought here. We already have bootriscv64.efi defined in UEfiSpec.h. Boot manager suppose will find the boot image from the storage automatically. Have to check it.

JohnAZoidberg commented 3 years ago

DSC is here: https://github.com/riscv/riscv-edk2-platforms/tree/riscv-virt-540-mod/tree/master/v/edk2-platform-riscv/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc FDF is here: https://github.com/riscv/riscv-edk2-platforms/blob/riscv-virt-540-mod/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf

howdou commented 3 years ago

It sounds like you need to configure the BootOrder.

JohnAZoidberg commented 3 years ago

Yep, correct. With BoorOrder set to 2 it works.