ramips: mt7621: fix WF-2881 for ubi split

This patch fix firmware split for WF-2881 which was previously manually partitioned.

Signed-off-by: YounJae Rho <luxflow@live.com>

SVN-Revision: 48908
This commit is contained in:
John Crispin 2016-03-04 08:33:17 +00:00
parent 3b39bf7262
commit 77da9390da
2 changed files with 5 additions and 14 deletions

View file

@ -48,19 +48,9 @@
read-only; read-only;
}; };
firmware {
label = "firmware";
reg = <0x140000 0x6EC0000>;
};
partition@140000 { partition@140000 {
label = "kernel"; label = "firmware";
reg = <0x140000 0x200000>; reg = <0x140000 0x7E40000>;
};
partition@340000 {
label = "ubi";
reg = <0x340000 0x6CC0000>;
}; };
}; };

View file

@ -1115,9 +1115,10 @@ define Device/wf-2881
DTS := WF-2881 DTS := WF-2881
BLOCKSIZE := 128KiB BLOCKSIZE := 128KiB
PAGESIZE := 2048 PAGESIZE := 2048
KERNEL_SIZE := 2097152
FILESYSTEMS := squashfs FILESYSTEMS := squashfs
IMAGE/sysupgrade.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE) IMAGE_SIZE := 132382720
KERNEL := $(KERNEL_DTB) | pad-offset 131072 64 | uImage lzma
IMAGE/sysupgrade.bin := append-kernel | append-ubi | check-size $$$$(IMAGE_SIZE)
endef endef
define Device/ubnt-erx define Device/ubnt-erx