From 2c9a07ed28e87bbe2d221d48aaa19b04672646a5 Mon Sep 17 00:00:00 2001 From: Alan Luck Date: Tue, 20 Apr 2021 19:44:01 +1000 Subject: ramips: add missing information to dlink headers Add additional header information required for newer bootloaders found on DIR-2660-A1 & A2. Also remove the MTD splitter compatible from the second firmware partition, as OpenWrt only supports handling of the first one. Signed-off-by: Alan Luck [rephrase commit message, remove removal of read-only flags] Signed-off-by: David Bauer --- target/linux/ramips/image/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'target/linux/ramips/image/Makefile') diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 3671caef9d..d523a62e0b 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -144,6 +144,12 @@ define Build/uimage-padhdr mv $@.new $@ endef +define Build/uimage-sgehdr + uimage_sgehdr -i $@ -o $@.new -m $(DEVICE_MODEL) \ + -h $(DEVICE_VARIANT) -s V1.00000 + mv $@.new $@ +endef + define Build/umedia-header fix-u-media-header -T 0x46 -B $(1) -i $@ -o $@.new && mv $@.new $@ endef -- cgit v1.2.3