Introduction
Grub is a kind of boot loader to load kernel into RAM and run it.
After rebooting board every time, the UEFI will firstly try to download the grub binary and run it firstly.
Then grub binary will load the kernel and start it with cmdline and dtb file according to the configurations in grub.cfg.
They include:
Where to get them, please refer to Readme.txt.
Grub config file
You can edit a grub.cfg file to support various boot mode or multi boot partitions, follow is an example.
You should change them acoording to your real local environment.
Note: D05 only supports booting system via ACPI mode with Centos, Debian, Ubuntu.
|
|
Note: You should only select the parts from above sample which are suitable for your real situation.
files structure bootable partition
Normally they are placed into bootable partition as following structure.
Note: In case of booting by PXE mode:
- The grub binary and
grub.cfgfiles must be placed in the TFTP root directory. - The names and positions of kernel image and dtb must be consistent with the corresponding grub config file.
- The grub binary name (
grubxxx.efi) must be consistent with the “filename” in/etc/dhcp/dhcpd.conf, for more detail, please refer to Setup_PXE_Env_on_Host.md - If you use D02 board, you should not input DTB in the
grub.cfgbut you must flash the DTB file into spiflash to avoid a known Mac address duplicate issue.
You can get more information from the Deploy_Manual.md guide.
FAQ
If you want to modify grub.cfg command line temporarily. Type “E” key into grub modification menu. You will face problem that the “backspace” key not woking properly. You can fix backspace issue by changing terminal emulator’s configuration.
For gnome-terminal: Open “Edit” menu, select “Profile preferences”.
In “Compatibility” page, select “Control-H” in “Backspace key generates” listbox.
For Xterm: press Ctrl key and left botton of mouse, and toggle on “Backarrow key (BS/DEL)” in mainMenu.