diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-11-20 23:05:02 +0100 |
---|---|---|
committer | Sungbo Eo <mans0n@gorani.run> | 2022-05-01 13:40:13 +0900 |
commit | 87318eb1793611a5690730ea6e38b168bd7e7355 (patch) | |
tree | 4c550e1226ffba0aaf99d4823011ba20fb32cc95 /target/linux/ipq40xx/patches-5.15/301-arm-compressed-add-appended-DTB-section.patch | |
parent | d806c3caf3170aff6feeb0b2eabf5bb57af3bb53 (diff) | |
download | upstream-87318eb1793611a5690730ea6e38b168bd7e7355.tar.gz upstream-87318eb1793611a5690730ea6e38b168bd7e7355.tar.bz2 upstream-87318eb1793611a5690730ea6e38b168bd7e7355.zip |
ipq40xx: 5:15: copy config and patch from 5.10
Copy config and patch from 5.10 to 5.15
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ipq40xx/patches-5.15/301-arm-compressed-add-appended-DTB-section.patch')
-rw-r--r-- | target/linux/ipq40xx/patches-5.15/301-arm-compressed-add-appended-DTB-section.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/target/linux/ipq40xx/patches-5.15/301-arm-compressed-add-appended-DTB-section.patch b/target/linux/ipq40xx/patches-5.15/301-arm-compressed-add-appended-DTB-section.patch new file mode 100644 index 0000000000..99e33632c4 --- /dev/null +++ b/target/linux/ipq40xx/patches-5.15/301-arm-compressed-add-appended-DTB-section.patch @@ -0,0 +1,48 @@ +From 0843a61d6913bdac8889eb048ed89f7903059787 Mon Sep 17 00:00:00 2001 +From: Robert Marko <robimarko@gmail.com> +Date: Fri, 30 Oct 2020 13:36:31 +0100 +Subject: [PATCH] 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> +--- + arch/arm/boot/compressed/vmlinux.lds.S | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +--- a/arch/arm/boot/compressed/vmlinux.lds.S ++++ b/arch/arm/boot/compressed/vmlinux.lds.S +@@ -101,6 +101,13 @@ SECTIONS + + _edata = .; + ++ .appended_dtb : { ++ /* leave space for appended DTB */ ++ . += 0x100000; ++ } ++ ++ _edata_dtb = .; ++ + /* + * The image_end section appears after any additional loadable sections + * that the linker may decide to insert in the binary image. Having +@@ -138,4 +145,4 @@ SECTIONS + + ARM_ASSERTS + } +-ASSERT(_edata_real == _edata, "error: zImage file size is incorrect"); ++ASSERT(_edata_real == _edata_dtb, "error: zImage file size is incorrect"); |