Posted: Fri Oct 24, 2014 18:38 Post subject: can't write to JFFS filesystem
I have a TP-Link TL-WDR4300 with DD-WRT firmware v24-sp2 (12/24/13) std. I want to use lancethepants' binaries for DNSCrypt. I enabled JFFS2 in DD-WRT and used Telnet on my home network to log in to my WDR4300. I went in to /jffs and tried to use wget to get files from http://files.lancethepants.com/Binaries/dnscrypt-proxy/dnscrypt-proxy%201.4.1%20-%20libsodium%201.0.0/ but no file was copied to /jffs. I tried using wget while in /tmp and a file was copied so I know I can get the files. I used ls -ld /jffs to check permissions and found drwxr-xr-x 2 root root I tried using chmod 777 /jffs but permissions didn't change. In the DD-WRT Web GUI -> Administration -> Management -> JFFS2 Support I see Total / Free Size 6,784.00 KB / 0.
Thank you. I looked at that earlier but didn't go through all of it. I used only the first part about enabling JFFS. I went back for another look. The remainder is about adding more storage. I have about 6 MB of JFFS to work with after following only the instructions for enabling JFFS. That's not much but should be enough for the small DNSCrypt binaries. The third time I tried enabling JFFS I used the Directions for (freaky) Linux Gurus: CLI instructions but got the same result. Even after using chmod again I can't change the permissions for /jffs and can't save anything in the folder.
I tried to find a feature list for the firmware I'm using. Maybe JFFS isn't supported but the option to switch it on is still in the web GUI. I forgot when I installed it but looks like the firmware I'm using isn't an official release, yet. Maybe it's a brainslayer test build. I'm not sure.
Last edited by Lancaster on Sat Oct 25, 2014 4:01; edited 2 times in total
You have 6MB of RAM which jffs2 can use but jffs2 would be worthless if it only resided in RAM - you would lose the content as soon as you did a reboot of the router.
The jffs2 filesystem is stored in flash and copied to RAM after booting, will be accessed in RAM but any changes you do will updated to flash as well, that is how jffs2 can be non-volatile .
Your 8MB flash is already fully occupied by the dd-wrt firmware, there is no room for the backup of the jffs2 file system.
You have a USB port on the WDR4300 and a 2-4GB USB flash stick can be bought for next to nothing - you don't need internal jffs2 storage! _________________ Kernel panic: Aiee, killing interrupt handler!
You have a USB port on the WDR4300 and a 2-4GB USB flash stick can be bought for next to nothing - you don't need internal jffs2 storage!
I was at a thrift store today and saw a new 2 GB micro SD card with USB adapter for $3. It was small- great for plugging in to the back of a home router. Unfortunately, someone else grabbed it first.