Posted: Sun Jun 21, 2009 4:04 Post subject: Re: SD Mod & JFFS
DHC_DarkShadow wrote:
Does DD-WRT use JIFFS on it's own when enabled or is it all for the user?
dd-wrt distinguishes between a usb mounted jffs filesystem and a jffs file system mounted to its internal flash.
The GUI has a setting for storing the lease database in jffs but that only works on the internal flash mounted jffs.
So, to answer your question, your usb mounted jffs file system is all yours for storing program and drivers which you have to startup with scripts in the jffs. _________________ Kernel panic: Aiee, killing interrupt handler!
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Sun Jun 21, 2009 13:38 Post subject:
Yea, one thing I was missing was the BIND command. So it was actually putting the jffs on the router itself and not the SD card. I added the bind command to the "save start up" list so it would run every time. Now that its properly mounted I can run scripts from it.
Yea, one thing I was missing was the BIND command. So it was actually putting the jffs on the router itself and not the SD card. I added the bind command to the "save start up" list so it would run every time. Now that its properly mounted I can run scripts from it.
hmm, the BIND command might be my problem as well
What do you see when you issue the df command?
Are there 2 file systems mounted on /jffs? _________________ Kernel panic: Aiee, killing interrupt handler!
Posted: Sun Jun 21, 2009 15:54 Post subject: WRT54g version 2
hello,
I have a question about this as well..
can anyone point me to a guide to shows step-by-step for the "correct" solder points as I've read the RP3 for the WRT54g solder points are backwards.. and also do you have to run the commands in order for the router to see the MMC card even at first.. also.. do you have to have an orginal Multimedia Card (MMC) 7pin or will a MMCHC work as well..
I appreciate your help in advance..
Yes. Apart from you having somehow succeeded to get your mdc card mounted twice, there is also a mount of the routers internal flash (mtdblock/4) to /jffs, and that's because you enabled jffs2 in the GUI.
The size of the /jffs file system will be reported as the size of the last mounted file system on /jffs.
You really don't have that much space in mtdblock/4 as the df command now displays.
Furthermore, if you now try to use /jffs for storing dnsmasq leases (Services tab in the GUI) then the size of the file systems on /jffs will be reduced to the real size of mtdblock/4.
I am a bit surprised to see that linux allows 2 different filesystems to be mounted under the same mount point.
Disabling jffs2 creation (Administration tab) fixes the problem with double filesystem, but the dnsmasq lease database can not be stored on a usb harddisk/flash stick/mdc mounted /jffs.
The GUI says that there is no jffs2 filesystem mounted. _________________ Kernel panic: Aiee, killing interrupt handler!
I use an old 10GB hard disk in a USB enclosure, partitioned 4+4+2GB.
First partition gets mounted at /jffs and displays correct size with df command.
Now, in order to store the lease database on it, I must enable jffs2 in Administration tab.
Doing that, the GUI shows a 4GB jffs file system and the df command shows 2 mounts at /jffs , the harddisk partition and the internal flash partition mtdblock/4.
These 2 mounted filesystem shrinks down to 1.7Mb as soon as I enable storage of the lease database.
1.7Mb is a correct value for mtdblock/4 but definitely not the correct size for the hard disk partition.
Somehow they collide..
All would be well if I didn't have to enable a jffs from internal flash.
But when I don't enable it, then the tickbox for the lease database says that jffs is not mounted,
the mounted partition from my harddisk is not recognised there even though df says it is mounted. _________________ Kernel panic: Aiee, killing interrupt handler!