immortalwrt/target/linux/ramips
Szabolcs Hubai e85d410a79 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-28 10:33:41 +08:00
..
base-files/etc ramips: add kernel 5.4 support 2020-04-16 22:15:27 +08:00
dts ramips: enable SFP port for Ubiquiti ER-X-SFP 2020-04-26 12:02:00 +08:00
files/drivers ramips: add basic support for kernel 5.4 2020-04-16 10:00:29 +08:00
image ramips: mt7621: use lzma-loader for D-Link DIR-860L B1 2020-04-28 10:33:41 +08:00
mt76x8 mt7621/76x8: switch to kernel 5.4 2020-04-25 08:35:17 +08:00
mt7620 ramips: sync upstream source code 2020-04-19 12:29:05 +08:00
mt7621 ramips: enable SFP port for Ubiquiti ER-X-SFP 2020-04-26 12:02:00 +08:00
patches-4.14 Merge Mainline 2020-04-25 11:43:44 +08:00
patches-5.4 ramips: phy: at803x: support RGMII-to-SerDes and SFP support 2020-04-26 11:56:09 +08:00
rt288x ramips: add kernel 5.4 support 2020-04-16 22:15:27 +08:00
rt305x ramips: add kernel 5.4 support 2020-04-16 22:15:27 +08:00
rt3883 ramips: add kernel 5.4 support 2020-04-16 22:15:27 +08:00
Makefile ramips: add kernel 5.4 support 2020-04-16 22:15:27 +08:00
modules.mk ramips: add kernel 5.4 support 2020-04-16 22:15:27 +08:00