Openwrt/target/linux/ramips/image
Szabolcs Hubai ce19571004 ramips: mt7621: use lzma-loader for D-Link DIR-860L B1
This device has trouble extracting big kernel from flash,
and supports LZMA compressed kernels only.

Using OpenWrt kernel loader saves us 64 KB compared to the dictionary
size limiting workaround.

Factory image sizes (commit: 5f126c541a) with "CONFIG_ALL_KMODS=y":
- original ("-d23", default): 4784188 bytes, LZMA ERROR 1
- with "-d19": 4915260, LZMA ERROR 1
- with "-d18": 4915260, diff to original: +128 KB
- with "-d17": 4980796, diff to original: +192 KB
- with this patch: 4849724, diff to original: +64 KB

To save some CPU cycle, use minimal compression ("-a0") for the LZMA
compressed uImage.

The most robust solution would use a different loader,
which reads the compressed kernel directly from the flash.
See the thread at [0] for more details!

[0] http://lists.infradead.org/pipermail/openwrt-devel/2020-April/022926.html

Signed-off-by: Szabolcs Hubai <szab.hu@gmail.com>
Tested-by: Stijn Segers <foss@volatilesystems.org>
[fixed identation]
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-04-27 12:22:02 +02:00
..
lzma-loader
common-tp-link.mk treewide: omit IMAGE_SIZE argument from check-size 2020-03-21 20:02:55 +01:00
Makefile ramips: don't reuse KERNEL_DTB for lzma-loader 2020-04-18 13:40:31 +08:00
mt76x8.mk ramips: fix SUPPORTED_DEVICES for Mercury MAC1200R v2 2020-04-26 21:10:24 +02:00
mt7620.mk ramips: add support for ipTIME A1004ns 2020-04-18 12:35:54 +08:00
mt7621.mk ramips: mt7621: use lzma-loader for D-Link DIR-860L B1 2020-04-27 12:22:02 +02:00
rt288x.mk ramips: disable images for 4M devices 2020-04-12 22:27:18 +08:00
rt305x.mk ramips: remove unnecessary DEVICE_PACKAGES for Belkin F7C027 2020-04-26 21:13:33 +02:00
rt3883.mk ramips: add DTS triggers to USB LEDs for F9K1109v1 2020-04-06 09:57:28 +02:00