@@ -224,6 +224,16 @@ define Device/uimage-lzma-loader
KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | uImage none
endef
+define Device/uimage-okli-loader
+ LOADER_TYPE := bin
+ LOADER_FLASH_OFFS := 0x51000
+ COMPILE := loader-$(1).bin
+ COMPILE/loader-$(1).bin := loader-okli-compile
+ KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
+ KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
+ IMAGE/sysupgrade.bin := append-loader-okli $(1) | pad-to 16k | lzma | pad-to 4032 | append-kernel | uImage lzma | append-rootfs | pad-rootfs | append-metadata | check-size
+endef
+
include $(SUBTARGET).mk
$(eval $(call BuildImage))
@@ -599,6 +599,7 @@ endef
TARGET_DEVICES += lb-link_bl-w1200
define Device/lenovo_newifi-y1
+ $(Device/uimage-okli-loader)
SOC := mt7620a
IMAGE_SIZE := 16064k
DEVICE_VENDOR := Lenovo
@@ -614,7 +614,7 @@ TARGET_DEVICES += jcg_jhr-ac876m
define Device/lenovo_newifi-d1
$(Device/dsa-migration)
- $(Device/uimage-lzma-loader)
+ $(Device/uimage-okli-loader)
IMAGE_SIZE := 32448k
DEVICE_VENDOR := Newifi
DEVICE_MODEL := D1