From 75f19deb3a0111afde83f5ca4aae4429c2ea9865 Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Tue, 14 Apr 2020 12:01:50 +0800 Subject: [PATCH] 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 --- target/linux/ramips/image/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index bc5de7d8d00..a966ba43490 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -37,6 +37,11 @@ define Device/Default IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-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 -- 2.30.2