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 13:23:05 +0000 (14:23 +0100)
commitb6461e46549b613480c1516d42527a6756ec7df7
treebd9be5e429b02cbac36001c40e1440a4194507fc
parent43539a6aabbee86b5fb2fbb5c36c477407d98765
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]