Dir-615 E4 8Mb flash OpenWrt 15.05.1

Greetings to the community. Thank you for your hard work. Faced with a problem, I will try to describe it.
I have a rather old device d-link Dir-615 E4 4/32, wanted to raise a mini web server on the basis of this device for one very light task. Installing Openwrt 15.05.1 with the original uboot goes well, the device boots and works fine, but the 4mb flash is very small to install the required packages. I found a 8MB flash, and on the net I found a boot loader to support 8mb flash drive http://texnikk.blogspot.com/2014/02/dir-615-e4-16m-flash-64m-ram-usb-mod.html . I flashed the suggested package and it worked fine. The available memory is more than enough for my needs. But when I tried to update to the current Openwrt 15.05.1 version the device stopped booting. And on the version in the article, the distributions are no longer supported. Please help me to solve this problem. Maybe there is an image with the latest version of Openwrt 15.05.1 for 8mb flash drive ?

only if you create your own, with the modified flash size.
you could also try Increasing flash size without build my own firmware

I built my own image for an 8MB flash. Problem solved.

diff --git a/target/linux/ar71xx/image/legacy.mk b/target/linux/ar71xx/image/legacy.mk
index c94bc26e38..7068d71db2 100644
--- a/target/linux/ar71xx/image/legacy.mk
+++ b/target/linux/ar71xx/image/legacy.mk
@@ -240,7 +240,7 @@ ap152_mtdlayout_16M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14528k(root
 bxu2000n2_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),8448k(rootfs),6016k(user),64k(cfg),64k(oem),64k(art)ro
 cameo_ap81_mtdlayout=mtdparts=spi0.0:128k(u-boot)ro,64k(config)ro,3840k(firmware),64k(art)ro
 cameo_ap91_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,3712k(firmware),64k(mac)ro,64k(art)ro
-cameo_ap99_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,3520k(firmware),64k(mac)ro,192k(lp)ro,64k(art)ro
+cameo_ap99_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),64k(mac)ro,192k(lp)ro,64k(art)ro
 cameo_ap121_mtdlayout=mtdparts=spi0.0:64k(u-boot)ro,64k(art)ro,64k(mac)ro,64k(nvram)ro,192k(language)ro,3648k(firmware)
 cameo_ap121_mtdlayout_8M=mtdparts=spi0.0:64k(u-boot)ro,64k(art)ro,64k(mac)ro,64k(nvram)ro,256k(language)ro,7680k@0x80000(firmware)
 cameo_ap123_mtdlayout_4M=mtdparts=spi0.0:64k(u-boot)ro,64k(nvram)ro,3712k(firmware),192k(lang)ro,64k(art)ro
@@ -418,7 +418,7 @@ Image/Build/CameoAP91/buildkernel=$(call MkuImageLzma,$(2),$(3) $(cameo_ap91_mtd
 Image/Build/CameoAP91=$(call Image/Build/Cameo,$(1),$(2),$(3),$(cameo_ap91_mtdlayout),$(4),65536)
 Image/Build/CameoAP91/initramfs=$(call MkuImageLzma/initramfs,$(2),$(3) $(cameo_ap91_mtdlayout))
 
-Image/Build/CameoAP99/buildkernel=$(call MkuImageLzma,$(2),$(3) $(cameo_ap99_mtdlayout))
+Image/Build/CameoAP99/buildkernel=$(call MkuImageGzip,$(2),$(3) $(cameo_ap99_mtdlayout))
 Image/Build/CameoAP99=$(call Image/Build/Cameo,$(1),$(2),$(3),$(cameo_ap99_mtdlayout),$(4),65536)
 Image/Build/CameoAP99/initramfs=$(call MkuImageLzma/initramfs,$(2),$(3) $(cameo_ap99_mtdlayout))
1 Like

awesome, then mark your thread as solved.

might want to include some details on how you did it.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.