1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux
Matthias Schiffer e5301885bc
ar71xx: lzma-loader: move padding workaround to gzip step
Some devices (TP-Link TL-WR1043ND v1) don't boot reliably when the
uncompressed loader is too small. This was workarounded in the loader by
adding 512KB of padding to the .data section of the loader binary.

This approach had two issues:

- The padding was only working when .data was non-empty (otherwise the
  section would become NOBITS, omitting it in the binary). .data was only
  empty when no CMDLINE was set, leading to further workarounds like
  fe594bf90d ("ath79: fix loader-okli, lzma-loader"), and this
  workaround was only effective because a missing "const" led to the kernel
  argv being stored in .data instead of .rodata
- The padding was not only added to the compressed .gz loader, but also
  uncompressed .bin and .elf loaders. The prevented embedding the kernel
  cmdline in the loader for non-gz loader types.

To fix both issues, move the creation of the padding from the linker script
to the gzip step.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-06-06 22:27:59 +02:00
..
apm821xx kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
ar7 kernel: bump 4.9 to 4.9.102 for 18.06 2018-05-24 16:03:58 +02:00
ar71xx ar71xx: lzma-loader: move padding workaround to gzip step 2018-06-06 22:27:59 +02:00
arc770 arc770: remove source-only 2018-05-24 17:24:30 +02:00
archs38 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
armvirt arm64: enable harden branch predictor 2018-04-27 21:34:18 +02:00
at91 kernel: bump 4.9 to 4.9.102 for 18.06 2018-05-24 16:03:58 +02:00
ath25 ath25: drop 4.9 kernel support 2018-05-24 17:24:30 +02:00
bcm53xx kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
brcm47xx brcm47xx: add switch port mapping to Asus WL-500W 2018-05-24 17:24:31 +02:00
brcm63xx kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
brcm2708 brcm2708: add squashfs rootfs image 2018-05-24 17:24:30 +02:00
cns3xxx kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
gemini kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
generic kernel: backport patch to fix dst handling for offloaded connections 2018-06-05 10:19:35 +02:00
imx6 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
ipq40xx ipq40xx: add eva-image for FRITZ!Box 4040 2018-05-24 17:24:31 +02:00
ipq806x ipq806x: drop "mtd: nand: add Winbond manufacturer and chip" 2018-05-24 17:24:31 +02:00
ixp4xx kernel: bump 4.9 to 4.9.102 for 18.06 2018-05-24 16:03:58 +02:00
kirkwood kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
lantiq kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
layerscape kernel: bump 4.9 to 4.9.102 for 18.06 2018-05-24 16:03:58 +02:00
malta malta: bump tp v4.14 2018-01-09 10:26:16 +01:00
mediatek kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
mpc85xx kernel: bump 4.9 to 4.9.102 for 18.06 2018-05-24 16:03:58 +02:00
mvebu mvebu: fix broken console on WRT32X (venom) 2018-06-01 21:03:27 +02:00
mxs kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
octeon kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
octeontx kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
omap kernel: enable EXPORTFS by default 2018-05-24 17:24:31 +02:00
orion orion: remove linux 4.4 support 2018-04-19 14:38:57 +02:00
oxnas kernel: bump 4.4 to 4.4.119 2018-03-03 12:58:56 +01:00
pistachio kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
ramips Revert "ramips: Move PCI driver to files directory" 2018-06-01 21:03:27 +02:00
rb532 treewide: move nand_do_upgrade call to platform_do_upgrade 2018-02-16 14:44:02 +01:00
sunxi kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
uml kernel: bump 4.9 to 4.9.102 for 18.06 2018-05-24 16:03:58 +02:00
x86 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
Makefile