ipq40xx: arm: compressed: add appended DTB section
authorRobert Marko <robimarko@gmail.com>
Fri, 30 Oct 2020 12:58:29 +0000 (13:58 +0100)
committerAlexander Couzens <lynxis@fe80.eu>
Sun, 17 Jan 2021 06:43:10 +0000 (07:43 +0100)
commit0b93f783ae369e6710c88e828f569c3451a4cf3d
tree99ec7c802fcf67040f93e8a84ae5b3caf8637e16
parent378c7ff282101b204d2a29fa080ed66f2a14940d
ipq40xx: arm: compressed: add appended DTB section

This adds a appended_dtb section to the ARM decompressor
linker script.

This allows using the existing ARM zImage appended DTB support for
appending a DTB to the raw ELF kernel.

Its size is set to 1MB max to match the zImage appended DTB size limit.

To use it to pass the DTB to the kernel, objcopy is used:

objcopy --set-section-flags=.appended_dtb=alloc,contents \
--update-section=.appended_dtb=<target>.dtb vmlinux

This is based off the following patch:
https://github.com/openwrt/openwrt/commit/c063e27e02a9dcac0e7f5877fb154e58fa3e1a69

Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ipq40xx/patches-5.4/301-arm-compressed-add-appended-DTB-section.patch [new file with mode: 0644]