Re: [OpenWrt-Devel] Fw: Dlink DIR-615C1: small mistake in mtd layout?
Hi Yury, > Just to make sure: you didn't want to increase the size of the > *-factory.bin (by 64k - 24 bytes) because its size is hardcoded in the > uboot's emergency reflasher? The board id must exist at offset 0x3B in the firmware image. It is hardcoded in the U-Boot, and in the factory firmware. Although we can pad that, so it would end on a 64KB boundary but it is not needed. Regards, Gabor ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Fw: Dlink DIR-615C1: small mistake in mtd layout?
On Tue, 20 Apr 2010 10:09:59 +0200 Gabor Juhos wrote: > The size of the 'art' partition is 64K in real, but in the original firmware > it > covers the previous erase block which contains the 'board id'. It is not used > in > OpenWrt, so we can use that space to extend the rootfs partition a bit. > > Thanks for reporting, it has been fixed with: > https://dev.openwrt.org/changeset/21036 Hello Gabor! Just to make sure: you didn't want to increase the size of the *-factory.bin (by 64k - 24 bytes) because its size is hardcoded in the uboot's emergency reflasher? Thanks for such a quick response! Y signature.asc Description: PGP signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Fw: Dlink DIR-615C1: small mistake in mtd layout?
Yury Polyanskiy írta: > 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": > 0x-0x0002 : "u-boot" > 0x0002-0x0003 : "config" > 0x0003-0x0011 : "kernel" > 0x0011-0x003e : "rootfs" > 0x0025-0x003e : "rootfs_data" > 0x003e-0x003f : "art" > 0x0003-0x003e : "firmware" > > > Thus the art partition does not extend all the way to the end of > device. The original firmware defined art as 0x3e-0x4. The size of the 'rootfs' and the 'firmware' partition is wrong in the cameo_mtdlayout variable. > Unless there is some hidden wisdom to defining the art so, here is the > patch. The size of the 'art' partition is 64K in real, but in the original firmware it covers the previous erase block which contains the 'board id'. It is not used in OpenWrt, so we can use that space to extend the rootfs partition a bit. Thanks for reporting, it has been fixed with: https://dev.openwrt.org/changeset/21036 Regards, Gabor ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Fw: Dlink DIR-615C1: small mistake in mtd layout?
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": 0x-0x0002 : "u-boot" 0x0002-0x0003 : "config" 0x0003-0x0011 : "kernel" 0x0011-0x003e : "rootfs" 0x0025-0x003e : "rootfs_data" 0x003e-0x003f : "art" 0x0003-0x003e : "firmware" Thus the art partition does not extend all the way to the end of device. The original firmware defined art as 0x3e-0x4. 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...@0x3(firmware) +cameo_mtdlayout=mtdparts=spi0.0:128k(u-boot)ro,64k(config)ro,896k(kernel),2880k(rootfs),128k(art)ro,37...@0x3(firmware) define Image/Build/Cameo $(call PatchKernelLzma,$(2),$(3) $(cameo_mtdlayout)) if [ `stat -c%s "$(KDIR)/vmlinux-$(2).bin.lzma"` -gt 917504 ]; then \ signature.asc Description: PGP signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel