When changing a boot option from a non-RAW type to RAW, the boot command
does not set the valid field of the LbaImage.
Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
Remove clear FSP hob from Uefi payload boot path because Fsp NotifyPhase needs FSP hob to work.
Fixed 32bit address FspHotList in FSP INFO. UEFI payload consumes ths info to clear FSP hob.
Move clear FSP hob at EndOfFirmware for Osloader.
Signed-off-by: Kevin Tsai <kevin.tsai@intel.com>
Currently an ASSERT is triggered halting the system if the
command length is greater than the argv buffer size. Handle this
error gracefully to avoid system halt.
Signed-off-by: Sachin Kamat <sachin.kamat@intel.com>
When OsLoader shell "fs load" tried to free memory, the
assertion happened with the message "CR has Bad Signature".
It's caused when FreePool() tried to free the memory allocated
by AllocatePages(), and the memory signature is not as expected.
So modify the free memory function to FreePages()
Signed-off-by: Vincent Chen <vincent.chen@intel.com>
When editing a boot option entry, new SwPart value is only assgined to
FileImage or LbaImage struct, while BootOption->SwPart is cleared,
breaking traditional linux boot as it uses SwPart there. Assign the
new value to BootOption->SwPart to keep compatibility.
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Add a new entry in CfgData_BootOption.yaml to boot from memory. The boot
device must be 7 (MEMORY), and the address of the container boot image
(CONTAINER_BOOT_SIGNATURE) can be placed at an address specified by
LBA format (i.e., use HEX prefix. EX: #0x12345678).
Example entry of CfgData_BootOption.yaml:
!expand { BOOT_OPTION_TMPL : [ 0 , 0, 0, 7, 0 , 0 , 0xFF , 1 , '#0x47A31000'] }
If the address is not predefined then it can be updated in run time from
SBL shell boot option table.
Validated by loading a container image to the memory by using 'fs load'
command in SBL shell and update the load image address in boot option table.
Signed-off-by: Biswas Arghya <arghya.biswas@intel.com>
Add support to print misc image info in shell. Misc image will only be
printed when BOOT_FLAGS_MISC is set.
Also fixes some minor bugs in 5968cfa919 ("OsLoader: Print all extra
images")
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Currently only PreOs and Extra0 image info is printed in boot options
list, this patch prints all of them.
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
The patch handles EfiResetShutdown. With the patch, one can
test "reset off" under OS Loader.
The patch also
- fixes a wrong reference error in ResetSystemLib.inf.
- add shutdown text in CmdReset.c
Signed-off-by: Stanley Chang <stanley.chang@intel.com>
Change the data type of Width to UINT32 of MmRead() declared in
CmdPci.h to match its definition in CmdMm.c.
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
instance 0 was hardcoded, so not able to read the devices from other
instances. Now read the instances number from the device table and
enumerate all USB instances one by one.
Signed-off-by: Biswas Arghya <arghya.biswas@intel.com>