openwrt/target/linux/ar71xx
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
..
base-files ar71xx: Add support for PISEN TS-D084 2018-05-24 17:24:31 +02:00
files ar71xx: Add support for PISEN TS-D084 2018-05-24 17:24:31 +02:00
generic ar71xx: Add support for PISEN TS-D084 2018-05-24 17:24:31 +02:00
image ar71xx: lzma-loader: move padding workaround to gzip step 2018-06-06 22:27:59 +02:00
mikrotik ar71xx: reorganize kernel configuration 2018-01-13 19:54:45 +01:00
nand ar71xx: reorganize kernel configuration 2018-01-13 19:54:45 +01:00
patches-4.9 kernel: bump 4.9 to 4.9.102 for 18.06 2018-05-24 16:03:58 +02:00
tiny ar71xx: create new ar71xx/tiny subtarget for 4MB flash devices 2018-01-13 19:54:45 +01:00
config-4.9 ar71xx: Add support for PISEN TS-D084 2018-05-24 17:24:31 +02:00
Makefile ar71xx: create new ar71xx/tiny subtarget for 4MB flash devices 2018-01-13 19:54:45 +01:00
modules.mk ar71xx: add LED driver NU801 2015-12-11 15:04:57 +00:00