ramips: define image recipe for uncompressed uimage with loader

Some devices have bootloaders with broken lzma code resulting in failed
decompression or corrupted kernel code.
This image recipe allows to sacrifice 5KB for OpenWrt LZMA loader and
take over the task of decompress kernel.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
This commit is contained in:
Chuanhong Guo 2020-04-14 12:01:50 +08:00 committed by CN_SZTL
parent 7237a93e72
commit de6e7cb5d8
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -32,6 +32,11 @@ define Device/Default
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
endef
define Device/uimage-lzma-loader
LOADER_TYPE := bin
KERNEL := $(KERNEL_DTB) | loader-kernel | uImage none
endef
define Device/seama
SEAMA_MTDBLOCK := 2
IMAGES += factory.bin