From: Max Resch Date: Sat, 16 Oct 2021 11:26:21 +0000 (+0200) Subject: [st-stub] documenting the .dtb section X-Git-Tag: v250-rc1~489^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=111c9ba6c22958c0aba6cadd9ec409b7df67befd;p=thirdparty%2Fsystemd.git [st-stub] documenting the .dtb section --- diff --git a/man/systemd-stub.xml b/man/systemd-stub.xml index 2edc64ce176..2a32e05bcc3 100644 --- a/man/systemd-stub.xml +++ b/man/systemd-stub.xml @@ -52,6 +52,9 @@ The initial RAM disk (initrd) will be looked for in the .initrd PE section. + A compiled binary DeviceTree will be looked for in the .dtb PE + section. + The kernel command line to pass to the invoked kernel will be looked for in the .cmdline PE section. @@ -65,6 +68,10 @@ SecureBoot, or don't include a kernel command line PE section in the kernel image file. If a command line is accepted via EFI invocation parameters to the EFI binary it is measured into TPM PCR 8 (if a TPM is present). + + If a DeviceTree is embedded in the .dtb section, it replaces an existing + DeviceTree in the corresponding EFI configuration table. systemd-stub will ask the firmware via the + EFI_DT_FIXUP_PROTOCOL for hardware specific fixups to the DeviceTree. @@ -163,7 +170,8 @@ objcopy \ --add-section .osrel=os-release --change-section-vma .osrel=0x20000 \ --add-section .cmdline=cmdline.txt --change-section-vma .cmdline=0x30000 \ - --add-section .splash=splash.bmp --change-section-vma .splash=0x40000 \ + --add-section .dtb=devicetree.dtb --change-section-vma .dtb=0x40000 \ + --add-section .splash=splash.bmp --change-section-vma .splash=0x100000 \ --add-section .linux=vmlinux --change-section-vma .linux=0x2000000 \ --add-section .initrd=initrd.cpio --change-section-vma .initrd=0x3000000 \ /usr/lib/systemd/boot/efi/linuxx64.efi.stub \