X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fimage%2FMakefile;h=09d743c479d5421c1e82c557103b3bd44775d3ab;hb=5959e9f4981b9ad6b97f7c96f9ac8dbf64fd0048;hp=96611bb4706d598d7b0fcdfe2c7849da67308ff1;hpb=001ebd8d90028c583b1e3b2ef40e3a168c6e7b6a;p=librecmc%2Flibrecmc.git diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 96611bb470..09d743c479 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -126,9 +126,13 @@ define Image/Build/WZRHPG300NH -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ -d $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/vmlinux-$(2).uImage; \ ( \ - dd if=$(KDIR)/vmlinux-$(2).uImage bs=1M conv=sync; \ + dd if=$(KDIR)/vmlinux-$(2).uImage bs=1024k conv=sync; \ dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \ ) > $(call imgname,$(1),$(2))-sysupgrade.bin; \ + ( \ + echo -n -e "# Airstation Public Fmt1\x00\x00\x00\x00\x00\x00\x00\x00"; \ + dd if=$(call imgname,$(1),$(2))-sysupgrade.bin; \ + ) > $(call imgname,$(1),$(2))-tftp.bin; \ fi; fi endef @@ -305,7 +309,7 @@ define Image/Build/WNDR3700 $(KDIR)/vmlinux-$(2).uImage.squashfs -rm -f $(KDIR)/vmlinux-$(2).uImage.squashfs.tmp* ( \ - dd if=$(KDIR)/vmlinux-$(2).uImage.squashfs bs=1M conv=sync; \ + dd if=$(KDIR)/vmlinux-$(2).uImage.squashfs bs=1024k conv=sync; \ dd if=$(KDIR)/root.$(1) bs=64k; \ ) > $(call imgname,$(1),$(2))-sysupgrade.bin $(STAGING_DIR_HOST)/bin/mkdniimg \