浏览代码

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 <[email protected]>
Chuanhong Guo 5 年之前
父节点
当前提交
75f19deb3a
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      target/linux/ramips/image/Makefile

+ 5 - 0
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
   IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size
 endef
 endef
 
 
+define Device/uimage-lzma-loader
+  LOADER_TYPE := bin
+  KERNEL := $(KERNEL_DTB) | loader-kernel | uImage none
+endef
+
 define Device/seama
 define Device/seama
   SEAMA_MTDBLOCK := 2
   SEAMA_MTDBLOCK := 2
   IMAGES += factory.bin
   IMAGES += factory.bin