Great work!
I hope I saw your post 2 months ago so that I would not spend much time on this.
Actually I've already compiled the firmware on openwrt 14.07, but after I flashed it, the router kept rebooting.
My firmware is only 3735578 bytes, not 3801088 bytes, there must be some error when composing the image.
I saw the mtd layout has 192k(lang), can it be used as part of openwrt's firmware space ?
can I use just dd command under linux prompt to upgrade the firmware, like this:dd if=firmware-sysupgrade.bin of=/dev/mtd4 bs=64k
I answer my question:
1. The 192k(lang) space can be released and used by openwrt firmware, need to modify mtd_layout definition in target/linux/ar71xx/image/Makefile
#cameo_ap123_mtdlayout_4M=mtdparts=spi0.0:64k(u-boot)ro,64k(nvram)ro,3712k(firmware),192k(lang)ro,64k(art)ro
cameo_ap123_mtdlayout_4M=mtdparts=spi0.0:64k(u-boot)ro,64k(nvram)ro,3904k(firmware),64k(art)ro
2. dd doesn't work here since flash need to be erased before writing.
So openwrt provides a tool "mtd" for this purpose.
But it is not in DLINK's official firmware. I've compiled one and tested OK for dir615i1.
It is static linked and should work on all ar71xx CPU.
If anyone interest, it can be download here
(Last edited by Karl.z on 26 Feb 2015, 11:11)