openwrtv3/target/linux/ar71xx/image
Matthias Schiffer a28e46b7cc
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:25:52 +02:00
..
lzma-loader ar71xx: lzma-loader: move padding workaround to gzip step 2018-06-06 22:25:52 +02:00
common-tp-link.mk ar71xx: create new ar71xx/tiny subtarget for 4MB flash devices 2018-01-13 19:54:45 +01:00
generic-legacy-devices.mk ar71xx: image: move Sitecom WLR-8100 from legacy to generic 2018-01-15 00:12:13 +01:00
generic-senao.mk ar71xx: image: rework EnGenius ENS202EXT factory image 2018-01-15 13:39:54 +01:00
generic-tp-link.mk ar71xx: increase kernel partition size for CPE/WBS 210/510 2018-04-10 18:29:19 +02:00
generic-ubnt.mk ar71xx: Ubiquiti Airmax M: add relocate-kernel to invalidate cache 2018-04-26 20:40:07 +02:00
generic.mk ar71xx: add support for GL.iNet GL-AR750S 2018-05-27 09:26:09 +02:00
legacy.mk build: replace uses of OpenWrt with $(VERSION_DIST) 2018-02-05 10:15:53 +01:00
Makefile ar71xx: create new ar71xx/tiny subtarget for 4MB flash devices 2018-01-13 19:54:45 +01:00
mikrotik.mk ar71xx: fix MikroTik rb-nor-flash-16M-ac image 2018-01-24 01:24:39 +01:00
nand.mk ar71xx: add support for Nokia WI2A-AC200i 2017-10-19 12:27:42 +02:00
tiny-legacy-devices.mk ar71xx: create new ar71xx/tiny subtarget for 4MB flash devices 2018-01-13 19:54:45 +01:00
tiny-tp-link.mk ar71xx: add support for TP-Link TL-WR940N v6 2018-04-06 23:11:00 +02:00
ubinize-nbg6716.ini ar71xx: nbg6716: Enable procd nand sysupgrage 2014-06-26 11:43:38 +00:00
ubinize-wndr4300.ini ar71xx: remove old jffs2 marker from image generation on nand targets 2014-06-24 18:14:18 +00:00