[openwrt/openwrt] ath79: mikrotik: generate a RouterBOOT v7 NOR compatible sysupgrade

LEDE Commits lede-commits at lists.infradead.org
Mon Sep 29 10:49:35 PDT 2025


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/502e6253a1f2cf85727941126413ff6a927f49dc

commit 502e6253a1f2cf85727941126413ff6a927f49dc
Author: John Thomson <git at johnthomson.fastmail.com.au>
AuthorDate: Thu Oct 27 20:56:05 2022 +1000

    ath79: mikrotik: generate a RouterBOOT v7 NOR compatible sysupgrade
    
    RouterBOOT v7 for NOR devices does not support the historic yaffs
    "kernel" ELF boot method.
    Generate a compatible kernel
    
    Signed-off-by: John Thomson <git at johnthomson.fastmail.com.au>
---
 target/linux/ath79/image/common-mikrotik.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/target/linux/ath79/image/common-mikrotik.mk b/target/linux/ath79/image/common-mikrotik.mk
index 94c29d8cb6..1dfd515d25 100644
--- a/target/linux/ath79/image/common-mikrotik.mk
+++ b/target/linux/ath79/image/common-mikrotik.mk
@@ -13,6 +13,10 @@ define Device/mikrotik_nor
   IMAGE/sysupgrade.bin := append-kernel | yaffs-filesystem -M | \
 	pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
 	check-size | append-metadata
+  IMAGES += sysupgrade-v7.bin
+  IMAGE/sysupgrade-v7.bin := append-kernel | kernel-pack-npk | \
+	  yaffs-filesystem -M | pad-to $$$$(BLOCKSIZE) | \
+	  append-rootfs | pad-rootfs | check-size | append-metadata
 endef
 
 define Device/mikrotik_nand




More information about the lede-commits mailing list