mirror of https://github.com/hak5/openwrt.git
ar71xx: nbg6716: Enable procd nand sysupgrage
This enables the procd nand upgrade for ZyXEL NBG 6716. Also the ubi config is cleaned up to match the wndr4300. Signed-off-by: André Valentin <avalentin@marcant.net> SVN-Revision: 41346lede-17.01
parent
d3be71e141
commit
baa534a8b7
|
@ -305,6 +305,7 @@ platform_check_image() {
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
nbg6716 | \
|
||||||
wndr4300 )
|
wndr4300 )
|
||||||
nand_do_platform_check $board $1
|
nand_do_platform_check $board $1
|
||||||
return $?;
|
return $?;
|
||||||
|
|
|
@ -923,7 +923,6 @@ define Image/Build/ZyXELNAND
|
||||||
$(eval kernelsize=$(call mtdpartsize,kernel,$(4)))
|
$(eval kernelsize=$(call mtdpartsize,kernel,$(4)))
|
||||||
$(eval imageraw=$(KDIR_TMP)/$(2)-raw.img)
|
$(eval imageraw=$(KDIR_TMP)/$(2)-raw.img)
|
||||||
$(CP) $(KDIR)/root.$(1) $(KDIR_TMP)/ubi_root.img
|
$(CP) $(KDIR)/root.$(1) $(KDIR_TMP)/ubi_root.img
|
||||||
echo -ne '\xde\xad\xc0\xde' > $(KDIR_TMP)/jffs2.eof
|
|
||||||
$(call ubinize,ubinize-$(2).ini,$(KDIR_TMP),$(KDIR_TMP)/$(2)-root.ubi,128KiB,2048,-E 5)
|
$(call ubinize,ubinize-$(2).ini,$(KDIR_TMP),$(KDIR_TMP)/$(2)-root.ubi,128KiB,2048,-E 5)
|
||||||
( \
|
( \
|
||||||
dd if=$(KDIR_TMP)/$(2)-kernel.jffs2; \
|
dd if=$(KDIR_TMP)/$(2)-kernel.jffs2; \
|
||||||
|
@ -931,10 +930,7 @@ define Image/Build/ZyXELNAND
|
||||||
) > $(imageraw)
|
) > $(imageraw)
|
||||||
dd if=$(imageraw) of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory.bin \
|
dd if=$(imageraw) of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-factory.bin \
|
||||||
bs=128k conv=sync
|
bs=128k conv=sync
|
||||||
( \
|
$(call Image/Build/SysupgradeNAND,$(2),squashfs,$(KDIR_TMP)/$(2)-kernel.jffs2)
|
||||||
dd if=$(KDIR_TMP)/$(2)-kernel.jffs2; \
|
|
||||||
dd if=$(KDIR)/root.$(1) bs=128k conv=sync \
|
|
||||||
) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1)-sysupgrade.bin
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,15 +9,10 @@ vol_id=0
|
||||||
vol_type=dynamic
|
vol_type=dynamic
|
||||||
# Volume name
|
# Volume name
|
||||||
vol_name=rootfs
|
vol_name=rootfs
|
||||||
# Autoresize volume at first mount
|
|
||||||
# vol_flags=autoresize
|
|
||||||
vol_size=40MiB
|
|
||||||
|
|
||||||
[rootfs_data]
|
[rootfs_data]
|
||||||
# Volume mode (other option is static)
|
# Volume mode (other option is static)
|
||||||
mode=ubi
|
mode=ubi
|
||||||
# Source image
|
|
||||||
image=jffs2.eof
|
|
||||||
# Volume ID in UBI image
|
# Volume ID in UBI image
|
||||||
vol_id=1
|
vol_id=1
|
||||||
# Allow for dynamic resize
|
# Allow for dynamic resize
|
||||||
|
@ -25,5 +20,5 @@ vol_type=dynamic
|
||||||
# Volume name
|
# Volume name
|
||||||
vol_name=rootfs_data
|
vol_name=rootfs_data
|
||||||
# Autoresize volume at first mount
|
# Autoresize volume at first mount
|
||||||
vol_size=100MiB
|
vol_size=1MiB
|
||||||
#vol_flags=autoresize
|
vol_flags=autoresize
|
||||||
|
|
Loading…
Reference in New Issue