Maximum image size/alternate config storage

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

Post Reply
ezdi
Posts: 5
Joined: Sat Mar 01, 2014 5:35 pm

Maximum image size/alternate config storage

Post by ezdi »

Running on a Dlink DIR-615 E1 using the DIR-600 A1 image. Running 1.6.0 works great, but it loses config because there's not enough blocks for the jffs2 filesystem. From here https://git.kernel.org/cgit/linux/kerne ... ags/v3.3.8 jffs2 requires 5 blocks minimum, so once bootloader, nvram, mac, and art partitions eat up space, max image size would be 3.3MB (53x64kb erase pages).
I don't see anything super-obvious to remove or good ways to free up space, but I haven't been able to successfully build gargoyle so I can only look at packages from within the router. Easy answer is to just say build failed and not post to download section. 1.5.10 is the last version that fits, so maybe it was I18N that kicked it over.
jffs2 isn't super efficient at using space for so few blocks anyway. It could be possible to store the amount required for configuration in a .tgz that could be crammed in a single block. Some of the openwrt guys played with that trying to get 2MB flash models running a while back.

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Maximum image size/alternate config storage

Post by DoesItMatter »

The problem with the D-Link DIR 600/601/615 versions is that
they really don't have 4MB flash available.

These models have a built-in recovery mode so you can recover
even if you do a bad or incorrect firmware flash to the router.

That's why you'll notice the "factory" images are about 3.7MB

And yeah, for these D-Link models, the max size is about 3300KB
for the firmware image file (tested multiple times)

Time for an 8MB flash router or try using some of the
OpenWRT trunk builds you can build your own or download.
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

Post Reply