Hello!

I noticed that on my DIR-615C1 kamikaze prints the following mtd layout:

m25p80 spi0.0: s25sl032a (4096 Kbytes)
6 cmdlinepart partitions found on MTD device spi0.0
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000030000 : "config"
0x000000030000-0x000000110000 : "kernel"
0x000000110000-0x0000003e0000 : "rootfs"
0x000000250000-0x0000003e0000 : "rootfs_data"
0x0000003e0000-0x0000003f0000 : "art"
0x000000030000-0x0000003e0000 : "firmware"


Thus the art partition does not extend all the way to the end of
device. The original firmware defined art as 0x3e0000-0x40000. 

Unless there is some hidden wisdom to defining the art so, here is the
patch. 

Index: target/linux/ar71xx/image/Makefile
===================================================================
--- target/linux/ar71xx/image/Makefile  (revision 20879)
+++ target/linux/ar71xx/image/Makefile  (working copy)
@@ -127,7 +127,7 @@
        fi; fi
 endef
 
-cameo_mtdlayout=mtdparts=spi0.0:128k(u-boot)ro,64k(config)ro,896k(kernel),2880k(rootfs),64k(art)ro,37...@0x30000(firmware)
+cameo_mtdlayout=mtdparts=spi0.0:128k(u-boot)ro,64k(config)ro,896k(kernel),2880k(rootfs),128k(art)ro,37...@0x30000(firmware)
 define Image/Build/Cameo
        $(call PatchKernelLzma,$(2),$(3) $(cameo_mtdlayout))
        if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt 917504 ]; then \

Attachment: signature.asc
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to