You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
82769186dc
* Add Name field to IMAGE_DATA structure Add a name field to the structure to be used by container parsing functions. It will be useful to determine the name of the container component when dealing with special files like ACPI blobs. Signed-off-by: Atharva Lele <atharva.lele@intel.com> * OsLoader: save the name of the component when creating array of components Saving the name will help us deal with special files like ACPI blobs more easily Signed-off-by: Atharva Lele <atharva.lele@intel.com> * OsLoader: streamline container types Update container functionality to streamline container types: - Normal: PE32, FV, ELF images. Supports ACPI table update. - Classic (Linux): Used for a traditional Linux boot setup. (cmdline, bzImage, initrd). Additionally supports ACPI table update. - Multiboot: Used for Multiboot/Multiboot-2 compliant ELF images. Supports ACPI table update. Signed-off-by: Atharva Lele <atharva.lele@intel.com> * Rename CLASSIC container to CLASSIC_LINUX This type of container is to be used for a traditional Linux boot setup consisting of a cmdline, bzImage, initrd(optional), and other binary blobs or ACPI blobs. Rename it to CLASSIC_LINUX to make the purpose of the container clearer. Signed-off-by: Atharva Lele <atharva.lele@intel.com> * OsLoader: copy Linux ExtraBlobs to reserved mem and add to cmdline Until now, SBL loaded the Extra blobs with the Linux kernel into memory. However, there was no way for the OS to know where these blobs resided in memory. The blobs were also loaded in memory that was not marked as reserved. This patch copies the blobs to reserved memory and adds the blob addresses into an expected placeholder in the Linux cmdline. If the placeholder is not present, nothing related to that blob will be added to the cmdline. Signed-off-by: Atharva Lele <atharva.lele@intel.com> --------- Signed-off-by: Atharva Lele <atharva.lele@intel.com>