summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/image
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-25 09:51:31 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-25 09:51:31 +0000
commita9499f8570ff31ab1b08410cd926b532ea986ef7 (patch)
tree3110307eb9a26b30191ab2d7a40e2ea28c0d9dda /target/linux/ar71xx/image
parent4e8c80cba447f0ace6c68b1355f1fac00eb7d759 (diff)
ar71xx: add sysupgrade support for Ubiquiti XM boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18533 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/image')
-rw-r--r--target/linux/ar71xx/image/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 30663f12cb..b61524ecdb 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -138,7 +138,7 @@ define Image/Build/MyLoader
$(call imgname,$(1),$(2))-16M.img
endef
-ubntxm_mtdlayout=mtdparts=spi0.0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
+ubntxm_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1024k(kernel),6528k(rootfs),256k(cfg)ro,64k(EEPROM)ro,7552k@0x50000(firmware)
define Image/Build/UBNTXM
$(call PatchKernelLzma,$(2),$(3) $(ubntxm_mtdlayout))
mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -e \
@@ -151,7 +151,11 @@ define Image/Build/UBNTXM
-B $(4) -v $(5).$(6).OpenWrt.$(REVISION) \
-k $(KDIR)/vmlinux-$(2).uImage \
-r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
- -o $(call imgname,$(1),$(2)).bin
+ -o $(call imgname,$(1),$(2))-factory.bin
+ ( \
+ dd if=$(KDIR)/vmlinux-$(2).uImage; \
+ dd if=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1); \
+ ) > $(call imgname,$(1),$(2))-sysupgrade.bin
endef
define Image/Build/UBNT