aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-11-28 13:49:17 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-11-28 13:49:17 +0000
commit80266fc74cf4d99b71586877537e14191da8ee85 (patch)
treef136f90e7a580f600c1ded461b93ae5f82a67f6c /target/linux/ar71xx
parent1104a67439395584fd559d5da88ab102e31cfc48 (diff)
downloadupstream-80266fc74cf4d99b71586877537e14191da8ee85.tar.gz
upstream-80266fc74cf4d99b71586877537e14191da8ee85.tar.bz2
upstream-80266fc74cf4d99b71586877537e14191da8ee85.zip
ar71xx: override mtd partitions for the TEW-632BRP family
SVN-Revision: 18578
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/image/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 04629ffd54..6f913f5ec8 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -77,11 +77,12 @@ define Image/Build/WRT400N
fi; fi
endef
+cameo_mtdlayout=mtdparts=spi0.0:128k(u-boot)ro,64k(config)ro,896k(kernel),2880k(rootfs),64k(art)ro,3776k@0x30000(firmware)
define Image/Build/Cameo
- $(call PatchKernelLzma,$(2),$(3))
- if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt 851968 ]; then \
+ $(call PatchKernelLzma,$(2),$(3) $(cameo_mtdlayout))
+ if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt 917504 ]; then \
echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
- else if [ `stat -c%s $(KDIR)/root.$(1)` -gt 3014656 ]; then \
+ else if [ `stat -c%s $(KDIR)/root.$(1)` -gt 2949120 ]; then \
echo "Warning: $(KDIR)/root.$(1) is too big"; \
else \
mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -e \
@@ -89,8 +90,8 @@ define Image/Build/Cameo
-n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
-d $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/vmlinux-$(2).uImage; \
( \
- dd if=$(KDIR)/vmlinux-$(2).uImage bs=832k conv=sync; \
- dd if=$(KDIR)/root.$(1) bs=2944k conv=sync; \
+ dd if=$(KDIR)/vmlinux-$(2).uImage bs=896k conv=sync; \
+ dd if=$(KDIR)/root.$(1) bs=2880k conv=sync; \
echo -n $(4); \
) > $(call imgname,$(1),$(2)).uni; \
fi; fi