Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Add initrd shell command #6

Closed
JohnAZoidberg opened this issue Aug 12, 2020 · 2 comments
Closed

Add initrd shell command #6

JohnAZoidberg opened this issue Aug 12, 2020 · 2 comments

Comments

@JohnAZoidberg
Copy link
Collaborator

The initrd kernel parameter of the Linux EFISTUB is deprecated.
The preferred method is the EFISTUB invoking the LoadFile2 protocol with a specific GUID.
There's already a UEFI shell command to do that: ardbiesheuvel/edk2@ac8f3dd

@JohnAZoidberg
Copy link
Collaborator Author

diff --git i/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc w/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc
index 73eabe96435b..c48af8d8f37b 100644
--- i/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc
+++ w/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc
@@ -572,6 +572,11 @@ [Components]
   FatPkg/EnhancedFatDxe/Fat.inf
   MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf

+  OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
+    <PcdsFixedAtBuild>
+      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
+  }
+
   ShellPkg/Application/Shell/Shell.inf {
     <LibraryClasses>
       ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
diff --git i/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf w/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf
index 54fd09e38cc8..12e37365eb55 100644
--- i/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf
+++ w/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf
@@ -210,6 +210,7 @@ [FV.DXEFV]

 INF  MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf

+INF  OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf
 INF  ShellPkg/Application/Shell/Shell.inf

 #

@JohnAZoidberg
Copy link
Collaborator Author

Done on riscv-virt-gh-actions branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant