Hi Maurice,
Yes you are right. I want to configure multiple boot option. I will check QUEMU example.
Thanks
________________________________
[cid:image001.gif@01D501AB.06D81EC0]
Javier Santos Romo
Ingeniero de Telecomunicaciones /
Telecommunications Engineer /
GMV
Juan de Herrera nº17
Boecillo
E-47151 Valladolid
Tel. +34 983 54 65 54
Fax +34 983 54 65 53
www.gmv.com <
http://www.gmv.com/>
[cid:image002.png@01D501AB.06D81EC0]<http://www.facebook.com/infoGMV>
[cid:image003.png@01D501AB.06D81EC0]<http://www.twitter.com/infoGMV_es>
[cid:image004.png@01D501AB.06D81EC0]<https://plus.google.com/+Gmvcompany>
[cid:image005.png@01D501AB.06D81EC0]<http://www.youtube.com/infoGMV>
[cid:image006.png@01D501AB.06D81EC0]<https://www.linkedin.com/company/gmv>
[cid:image007.png@01D501AB.06D81EC0]<http://www.gmv.com/en/RSS>
[cid:image008.png@01D501AB.06D81EC0]<http://www.gmv.com/blog_gmv/language/en/>
De: Ma, Maurice [mailto:maurice.ma@intel.com]
Enviado el: jueves, 2 de mayo de 2019 6:15
Para: Javier Santos Romo <jsantos(a)gmv.com>; sbl-devel(a)lists.01.org
Asunto: RE: [Sbl-devel] Uboot or Grub as SBL Payload
Hi, Javier,
SBL can support multiple boot options. In your case, you can build two boot options with
different partition info. In your platform Stage2BoardInit lib, you can apply certain
logic to select which boot option you want to boot from.
There is an example in QEMU on how to select boot option dynamically. Please refer to
function UpdateOsBootMediumInfo() in file
Platform\QemuBoardPkg\Library\Stage2BoardInitLib\Stage2BoardInitLib.c. You need to update
OsBootOptionList->CurrentBoot accordingly to point to the option you want to boot from.
I am not sure if this solution can satisfy your requirement.
On the other side, Mulitboot is a little bit different. It is not the same as multiple
boot option. It is more of a standard boot protocol defined by
https://www.gnu.org/software/grub/manual/multiboot/multiboot.html<http...;.
From your description below, it seems what you really want is “multiple boot option”
rather than “multiboot”. Is my understanding correct ?
Regards,
Maurice
From: Sbl-devel [mailto:sbl-devel-bounces@lists.01.org] On Behalf Of Javier Santos Romo
Sent: Tuesday, April 30, 2019 12:26
To: sbl-devel@lists.01.org<mailto:sbl-devel@lists.01.org>
Subject: Re: [Sbl-devel] Uboot or Grub as SBL Payload
Hi again,
Ok, I will try using OsLoader to boot Linux directly. If I talked about Grub, it was
because we are looking for a bootloader which can choose between two different linux
Kernel and RFS residing in different partitions what it should be booted. Because of this,
we wanted to use a multiboot bootloader. I have read SBL has support for this feature. Is
there any guideline or POC to can achieve this concept? I have not seen any example on the
online documentation.
Thanks,
Regards
On Tue, Apr 30, 2019 at 7:57 PM +0200, "Rangarajan, Ravi P"
<ravi.p.rangarajan@intel.com<mailto:ravi.p.rangarajan@intel.com>> wrote:
Hi Javier
Yes, SBL was expecting Linux files inside the IAS and it failed because the image format
was not recognized based on the type (type 3) you specified.
How to create an IAS with linux kernel components is provided here.
https://slimbootloader.github.io/how-tos/create-ias-boot-image.html<ht...
bootx64.efi is an UEFI executable file and cannot be supported by SBL OsLoader.
You can use the IAS tool to package Grub as well. It will be a different type.
However, as I mentioned earlier, there are changes in grub source needed to get it working
and so it may not be as simple as just using a grub binary. Our efforts were just to see
if we can launch grub (POC)…and we don’t directly support grub. Grub also has limited
media support and relies on underlying firmware to provide media services. So I would
recommend you to try booting Linux from OsLoader first before evaluating your needs. We
support OsLoader and IAS tool.
Hope this helps.
Thanks
Ravi
P.S
IAS tool command line options are explained here
https://github.com/intel/iasimage/blob/master/README.md<https://urldef...
https://github.com/intel/iasimage/blob/master/docs/51_param.md<https:/...
https://github.com/intel/iasimage/blob/master/docs/11_type.md<https://...
From: Sbl-devel [mailto:sbl-devel-bounces@lists.01.org] On Behalf Of Javier Santos Romo
Sent: Tuesday, April 30, 2019 10:12 AM
To: sbl-devel@lists.01.org<mailto:sbl-devel@lists.01.org>
Subject: Re: [Sbl-devel] Uboot or Grub as SBL Payload
Hi Ravi,
OK, that makes sense. However, I have tried to create an iasimage with next command but
SBL complains:
iasimage create -i 0x30000 -o iasimage.bin -d TestSigningPrivateKey.pem bootx64.efi
SBL log are next when trying to boot from a USB stick:
Try to find boot partition
Partition type: MBR (1 logical partitions)
Find partition success
BootSlot = 0x0
Init File system
Detected FAT on HwDev 0 Part 0
Get file 'iasimage.bin' (size:0xA3304) success.
HASH Verification Success! Component Type (6)
RSA Verification Success!
IAS image is properly signed/verified
IAS size = 0xA3304, file number: 1
One file in IAS file, take it as bzImage ....
Assume BzImage...
Setup bzImage boot parameters ...
This image is not in bzimage format
LoadLinuxCheckKernelSetup Error...Unsupported
Setup BzImage error, Invalid Parameter
SetupBootImage: Status = Invalid Parameter
LoadImage: Status = Invalid Parameter
Reading this information I understand SBL is expecting to find a bzImage format inside
iasimage.bin. However I cannot imagine how you could do it with GRUB. Could you please
share with us how do you tested? I mean, what type of GRUB (EFI or pc platform) and
architecture (ia32 or x64) you tested. Also I would like to know what type of you used
with the iasimage tool.
Thanks,
Regards
________________________________
[cid:image001.gif@01D501AB.06D81EC0]
Javier Santos Romo
Ingeniero de Telecomunicaciones /
Telecommunications Engineer /
GMV
Juan de Herrera nº17
Boecillo
E-47151 Valladolid
Tel. +34 983 54 65 54
Fax +34 983 54 65 53
www.gmv.com <
http://www.gmv.com/>
[cid:image002.png@01D501AB.06D81EC0]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.facebook.com_infoGMV&d=DwMGaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4&r=nR8lHvsaOKyWaZl0oFwReg&m=I_YxrkBpL5cD4k4FitfDW-VGo8d9MBIhVBkze_979hQ&s=EUc4sGfNcnAwx0t8V9f0xXNPXlk7GkFTlFEWVvq4t-U&e=>
[cid:image003.png@01D501AB.06D81EC0]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.twitter.com_infoGMV-5Fes&d=DwMGaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4&r=nR8lHvsaOKyWaZl0oFwReg&m=I_YxrkBpL5cD4k4FitfDW-VGo8d9MBIhVBkze_979hQ&s=_dRqhS_A9RLut1nD4sxVe7Sia-I2hoGkwhD5cgL3Als&e=>
[cid:image004.png@01D501AB.06D81EC0]<https://urldefense.proofpoint.com/v2/url?u=https-3A__plus.google.com_-2BGmvcompany&d=DwMGaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4&r=nR8lHvsaOKyWaZl0oFwReg&m=I_YxrkBpL5cD4k4FitfDW-VGo8d9MBIhVBkze_979hQ&s=fBR6sTvgO1jAvt7dChRLyAH52pgIWz_pdOgFCendq6I&e=>
[cid:image005.png@01D501AB.06D81EC0]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.youtube.com_infoGMV&d=DwMGaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4&r=nR8lHvsaOKyWaZl0oFwReg&m=I_YxrkBpL5cD4k4FitfDW-VGo8d9MBIhVBkze_979hQ&s=b5HSrTV0B6asBcr4tegLjEYVsEDw7-hX9NzkhjQDrPM&e=>
[cid:image006.png@01D501AB.06D81EC0]<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.linkedin.com_company_gmv&d=DwMGaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4&r=nR8lHvsaOKyWaZl0oFwReg&m=I_YxrkBpL5cD4k4FitfDW-VGo8d9MBIhVBkze_979hQ&s=pHseDANTlREOps27EfNuldLoIX7GVR2q48YBJtDmS6I&e=>
[cid:image007.png@01D501AB.06D81EC0]<http://www.gmv.com/en/RSS>
[cid:image008.png@01D501AB.06D81EC0]<http://www.gmv.com/blog_gmv/language/en/>
De: Rangarajan, Ravi P [mailto:ravi.p.rangarajan@intel.com]
Enviado el: lunes, 29 de abril de 2019 22:02
Para: Javier Santos Romo <jsantos@gmv.com<mailto:jsantos@gmv.com>>;
sbl-devel@lists.01.org<mailto:sbl-devel@lists.01.org>
Asunto: RE: [Sbl-devel] Uboot or Grub as SBL Payload
Hi Javier
SBL OsLoader can boot to Linux even in release mode. In release mode, if verified boot is
enabled then OsLoader expects that the Linux kernel and associated files to be packaged in
a SBL custom format called the IAS. This is because in this configuration OsLoader needs
to verify the linux kernel before launching it. The IAS format was defined to include a
signature and public key to enable verification.
Regarding Grub, I want to provide a clarification to my previous response. Our test was to
check if SBL OsLoader can launch grub. We didn’t test grub as a payload launched from
stage 2. Again for this configuration (verified boot is enabled), the grub needs to be
packaged in the IAS format for the OsLoader to verify the boot image.
More information on the IAS format can be found here -
https://slimbootloader.github.io/developer-guides/ias.html<https://url...
Thanks
Ravi
From: Sbl-devel [mailto:sbl-devel-bounces@lists.01.org] On Behalf Of Javier Santos Romo
Sent: Monday, April 29, 2019 12:30 PM
To: sbl-devel@lists.01.org<mailto:sbl-devel@lists.01.org>
Subject: Re: [Sbl-devel] Uboot or Grub as SBL Payload
Hi,
We considered using SBL to boot linux directly, but this feature is only available in
debug mode.
Regarding GRUB integration, could you please provide the command using BuildLoader.py
script to be able to integrate GRUB as a payload?
Grub compilation provides several outputs and I cannot imagine how to include it inside
SBL.
Thanks,
Javier
On Mon, Apr 29, 2019 at 7:11 PM +0200, "Rangarajan, Ravi P"
<ravi.p.rangarajan@intel.com<mailto:ravi.p.rangarajan@intel.com>> wrote:
Hi
SBL can support grub and uboot as payloads.
We have tested multiboot compliant grub payload -
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.gnu.org_software....
The following patch was added to SBL to provide framebuffer info for multiboot payloads -
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_slimbootl....
There are some changes required in grub code as well.
Uboot payload can also be supported by SBL. We have tested this and will try to provide
more information.
However, have you considered using SBL's default OsLoader payload? OsLoader payload
can boot Linux, ELF, multiboot ELF boot images natively without needing an additional
stage like grub or uboot. Please note that when OsLoader is enabled, SBL will not launch
the UEFI payload.
Thanks
Ravi
-----Original Message-----
From: Sbl-devel [mailto:sbl-devel-bounces@lists.01.org] On Behalf Of Javier Santos Romo
Sent: Monday, April 29, 2019 9:36 AM
To: sbl-devel@lists.01.org<mailto:sbl-devel@lists.01.org>
Subject: Re: [Sbl-devel] Uboot or Grub as SBL Payload
Dear Everyone,
Reading Slim Bootloader Documentation I have seen examples where a linux kernel is booted
directly from SBL. However, trying to boot to Grub is always done by using an UEFI Payload
first. Is it possible to boot directly from SBL to GRUB or Uboot directly without using
the UEFI Payload? I know both of them has support to be built as a Coreboot Payload. Are
some of these bootloaders tested to be used in SBL? We are looking for a solution in which
a standard bootloader is used to boot the system.
Thanks,
Javier
P Please consider the environment before printing this e-mail.
--
Sbl-devel mailing list
Sbl-devel@lists.01.org<mailto:Sbl-devel@lists.01.org>
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.01.org_mailman...
P Please consider the environment before printing this e-mail.
P Please consider the environment before printing this e-mail.
P Please consider the environment before printing this e-mail.
P Please consider the environment before printing this e-mail.