Hi Szabolcs,

On 4/19/20 8:49 PM, Szabolcs Hubai wrote:
-  KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
+  LOADER_TYPE := bin
+  KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | \
+  relocate-kernel | lzma -a0 | uImage lzma

Sorry for going over this one more time. Is there a specific reason
to pack the resulting uImage using lzma? Also the lzma-loader relocates itself afaik, so relocate-kernel shouldn't be necessary when using our own loader (i might be wrong here).

Could you try the attached patch on your device?

Best wishes
David
>From 84171d1f3fcecbf1c377fe1ad51b8087808f05c2 Mon Sep 17 00:00:00 2001
From: David Bauer <m...@david-bauer.net>
Date: Sun, 26 Apr 2020 14:41:55 +0200
Subject: [PATCH] ramips-mt7621: use LZMA loader for DIR-860L

Signed-off-by: David Bauer <m...@david-bauer.net>
---
 target/linux/ramips/image/mt7621.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index d5527cd98d..012996ea8a 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -216,9 +216,9 @@ TARGET_DEVICES += buffalo_wsr-600dhp
 
 define Device/dlink_dir-860l-b1
   $(Device/seama)
+  $(Device/uimage-lzma-loader)
   BLOCKSIZE := 64k
   SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb
-  KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
   IMAGE_SIZE := 16064k
   DEVICE_VENDOR := D-Link
   DEVICE_MODEL := DIR-860L
-- 
2.26.1

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to