LukeShortCloud / rootpages

Root Pages is a collection of easy-to-reference tutorials and guides primarily for Linux and other UNIX-like systems.
Other
55 stars 6 forks source link

[storage][bootloaders] Explain DTBs #1123

Open LukeShortCloud opened 4 months ago

LukeShortCloud commented 4 months ago

Device Tree Blobs (DTBs) explain what hardware is available and basic information on how to use it. This is required for the Linux kernel to boot on most Arm devices.

You can manually modify the grub.cfg file manually to include a DTB entry:

    devicetree /path/to/file.dtb

https://android.googlesource.com/device/linaro/hikey/+/2954cd7/bootloader/EFI/BOOT/grub.cfg

Or modify GRUB permanently:

$ sudo vim /etc/default/grub
GRUB_DEFAULT_DTB="dtb/<VENDOR>/<DTB_FILE>.dtb"
$ sudo grub-mkconfig -o /boot/grub/grub.cfg

That will render out to be:

devicetree ($root)/dtb/<VENDOR>/<DTB_FILE>.dtb

https://bugzilla.redhat.com/show_bug.cgi?id=1751307