mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-12 07:53:39 +03:00
ar71xx: add sysupgrade support for Ubiquiti XM boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18533 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4e8c80cba4
commit
a9499f8570
@ -68,7 +68,7 @@ platform_check_image() {
|
|||||||
[ "$ARGC" -gt 1 ] && return 1
|
[ "$ARGC" -gt 1 ] && return 1
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
ap83 | mzk-w04nu | mzk-w300nh | tew-632brp | wrt-400n)
|
ap83 | mzk-w04nu | mzk-w300nh | tew-632brp | wrt-400n | bullet-m | nano-m | rocket-m)
|
||||||
[ "$magic" != "2705" ] && {
|
[ "$magic" != "2705" ] && {
|
||||||
echo "Invalid image type."
|
echo "Invalid image type."
|
||||||
return 1
|
return 1
|
||||||
|
@ -138,7 +138,7 @@ define Image/Build/MyLoader
|
|||||||
$(call imgname,$(1),$(2))-16M.img
|
$(call imgname,$(1),$(2))-16M.img
|
||||||
endef
|
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
|
define Image/Build/UBNTXM
|
||||||
$(call PatchKernelLzma,$(2),$(3) $(ubntxm_mtdlayout))
|
$(call PatchKernelLzma,$(2),$(3) $(ubntxm_mtdlayout))
|
||||||
mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -e \
|
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) \
|
-B $(4) -v $(5).$(6).OpenWrt.$(REVISION) \
|
||||||
-k $(KDIR)/vmlinux-$(2).uImage \
|
-k $(KDIR)/vmlinux-$(2).uImage \
|
||||||
-r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
|
-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
|
endef
|
||||||
|
|
||||||
define Image/Build/UBNT
|
define Image/Build/UBNT
|
||||||
|
Loading…
Reference in New Issue
Block a user