openwrt/target/linux/ramips
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
..
base-files/etc ramips: remove set_preinit_iface script 2020-04-04 14:56:14 +08:00
dts ramips: enable SFP port for Ubiquiti ER-X-SFP 2020-04-25 23:48:45 +02:00
files/drivers ramips: ralink-eth: fix leftover dma dev argument 2020-04-13 11:32:50 +08:00
image ramips: mt7621: use lzma-loader for D-Link DIR-860L B1 2020-04-27 12:22:02 +02:00
mt76x8 ramips: remove config-4.14 for mt7621/mt76x8 2020-04-23 18:39:48 +02:00
mt7620 ramips: add support for ipTIME A1004ns 2020-04-18 12:35:54 +08:00
mt7621 ramips: enable SFP port for Ubiquiti ER-X-SFP 2020-04-25 23:48:45 +02:00
patches-4.14 kernel: bump 4.14 to 4.14.176 2020-04-16 13:23:11 +02:00
patches-5.4 ramips: phy: at803x: support RGMII-to-SerDes and SFP support 2020-04-25 23:45:16 +02:00
rt288x ramips: refresh kernel config for 5.4 2020-04-12 22:27:18 +08:00
rt305x kernel: remove non-existant symbols 2020-04-13 22:40:19 +02:00
rt3883 ramips: refresh kernel config for 5.4 2020-04-12 22:27:18 +08:00
Makefile ramips: add 5.4 as testing kernel 2020-04-12 22:27:18 +08:00
modules.mk ramips: fix path for dma-ralink and mtk-hsdma 2020-04-05 18:16:17 +08:00