- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi All,
Iam trying to change the default boot order list variable in Quark edk2 source code, but unable to find where to change the code.I am new to this and i want boot directly from SD card instead of UEFI shell.
Please help me to change this variable.
Regards,
Varalaxmi
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Varalaxmi,
Thank you for contacting us. When you say you want to change the boot order list, are you referring to the order that appears in the GRUB? If that's the case, then, there are 2 documents that I think will be very useful to you. These documents are the Quark BSP and the EDKII Firmware Guide.
The Quark BSP has a section that's specifically about Booting the board from SD card in Section 12 and has lots of information about building the EDKII firmware. Have you already tried this procedure?
You can find it here: https://downloadmirror.intel.com/23962/eng/Quark_BSP_BuildandSWUserGuide_329687_007.pdf https://downloadmirror.intel.com/23962/eng/Quark_BSP_BuildandSWUserGuide_329687_007.pdf
There's also this guide I believe you'll find very useful: https://github.com/tianocore/edk2/tree/master/QuarkPlatformPkg https://github.com/tianocore/edk2/tree/master/QuarkPlatformPkg . Specifically, the section Install, Configure, and Boot Linux has information about the GRUB boot loader that'll allow you to change the configuration file.
Take a look at these documents and let us know your results.
Have a nice day.
-Sergio A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello Sergio,
Thanks for your response.
I want change the boot manger menu options order in code.
Example:
currently I have this order:
F2 to enter Boot Manager Menu.
ENTER to boot directly.
[Bds]OsIndication: 0000000000000000
[Bds]=============Begin Load Options Dumping ...=============
Driver Options:
SysPrep Options:
Boot Options:
Boot0000: UiApp 0x0109
Boot0001: UEFI Shell 0x0001
Boot0002: UEFI Misc Device 0x0001
PlatformRecovery Options:
PlatformRecovery0000: Default PlatformRecovery 0x0001
[Bds]=============End Load Options Dumping=============
So default UEFI shell will be loaded with above and Boot order is 0000,0001,0002.
Now i want load UEFI Misc device as default and i want change the order as 0002,0001,0000 programatically
So, that i can load my operating system from UEFI Misc device directly.
Expected output should be like this:
Boot Options:
Boot0000: UEFI Misc Device 0x0001
Boot0001: UEFI Shell 0x0001
Boot0002: UiApp 0x0109
Thanks & Regards,
Varalaxmi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Varalaxmi
Thanks for your reply. I've found a file of interest. If you take a look at the /media/card/boot/grub/grub.conf file you can see the names of the operating systems you can choose. You'll see something similar to 'title OS name'. You can change the default number from 1 to any number you like. Try using 'default 2'. This chooses the operating system that's going to boot first.
Let us know your results.
-Sergio A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello Sergio,
Thanks for your response and sorry for the late reply.
I was not referring the order in grub. Currently my BIOS image is loading UEFI shell directly and I want to load UEFI Misc device directly.
Example:
F2 to enter Boot Manager Menu.
ENTER to boot directly.
[Bds]OsIndication: 0000000000000000
[Bds]=============Begin Load Options Dumping ...=============
Driver Options:
SysPrep Options:
Boot Options:
Boot0000: UiApp 0x0109
Boot0001: UEFI Shell 0x0001
Boot0002: UEFI Misc Device 0x0001
PlatformRecovery Options:
PlatformRecovery0000: Default PlatformRecovery 0x0001
[Bds]=============End Load Options Dumping=============
[Bds]BdsWait ...Zzzzzzzzzzzz...
[Bds]BdsWait(5)..Zzzz...
5 seconds remained...[Bds]BdsWait(4)..Zzzz...
4 seconds remained...[Bds]BdsWait(3)..Zzzz...
3 seconds remained...[Bds]BdsWait(2)..Zzzz...
2 seconds remained...[Bds]BdsWait(1)..Zzzz...
1 seconds remained...[Bds]Exit the waiting!
[Bds]Stop Hotkey Service!
[Bds]UnregisterKeyNotify: 000C/0000 Success
[Bds]UnregisterKeyNotify: 0000/000D Success
SmmInstallProtocolInterface: 6E057ECF-FA99-4F39-95BC-59F9921D17E4 0
After this if i did not press anything, it is loading UEFI Shell.I want to load UEFI Misc device.Can you please help me how to change that in EDK2 source code?
Regards,
Varalaxmi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Varalaxmi,
We'll do some research and contact you as soon as we have more information. Thank you for your patience.
-Sergio A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello Sergio,
Any update on this?
Thanks & Regards,
Varalaxmi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Varalaxmi,
We're still working on this case. We'll post a reply as soon as we have a suggestion. We really appreciate your patience.
-Sergio A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Varalaxmi,
Please refer to the documentation provided above, it contains important information. Since this topic is out of our scope, Intel will not provide any more updates, however, If you need further assistance, we suggest you keep checking back to this forum, since other users may post more information.
Thank you for your understanding.
Regards,
-Sergio A

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page