[Solved] SD Mod & JFFS

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Mon Jun 15, 2009 0:42    Post subject: [Solved] SD Mod & JFFS Reply with quote
Does DD-WRT use JIFFS on it's own when enabled or is it all for the user?

I have followed the tut

http://www.dd-wrt.com/wiki/index.php/JFFS_File_System

and tryed to read as much as I can about it but it's still a little sketchy to me.



MMC-SD.jpg
 Description:
 Filesize:  61.9 KB
 Viewed:  12111 Time(s)

MMC-SD.jpg



_________________
The New Me


Last edited by DHC_DarkShadow on Thu Jul 02, 2009 2:12; edited 1 time in total
Sponsor
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sun Jun 21, 2009 0:24    Post subject: Reply with quote
Is there something I haven't read?
_________________
The New Me
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7644

PostPosted: Sun Jun 21, 2009 4:04    Post subject: Re: SD Mod & JFFS Reply with quote
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. Sad

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!
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sun Jun 21, 2009 13:38    Post subject: Reply with quote
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.


MMC-SD2.gif
 Description:
JFFS properly Mounted to SD Mod
 Filesize:  7.38 KB
 Viewed:  11996 Time(s)

MMC-SD2.gif



_________________
The New Me
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7644

PostPosted: Sun Jun 21, 2009 13:53    Post subject: Reply with quote
DHC_DarkShadow wrote:
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 Embarassed

What do you see when you issue the df command?
Are there 2 file systems mounted on /jffs?

_________________
Kernel panic: Aiee, killing interrupt handler!
bigdog454
DD-WRT Novice


Joined: 19 Jun 2009
Posts: 6

PostPosted: Sun Jun 21, 2009 15:54    Post subject: WRT54g version 2 Reply with quote
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..
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sun Jun 21, 2009 22:02    Post subject: Reply with quote
This is what I see


mountMMC-SD2.jpg
 Description:
Mounts
 Filesize:  100.04 KB
 Viewed:  11964 Time(s)

mountMMC-SD2.jpg



_________________
The New Me
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7644

PostPosted: Mon Jun 22, 2009 6:06    Post subject: Reply with quote
DHC_DarkShadow wrote:
This is what I see


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!
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Mon Jun 22, 2009 11:16    Post subject: Reply with quote
My Linux knowledge is very limited but will in to play around with it. But I have my client lease db on my jffs.


EDIT: Ohhhhh, your saying if you disable jiffs in the GUI then it won't sore the leases cause its not mounted. Gothcya.

So Mine should not look like that?



clientleasedbMMC-SD2.jpg
 Description:
DHCP Options
 Filesize:  32.52 KB
 Viewed:  11929 Time(s)

clientleasedbMMC-SD2.jpg



_________________
The New Me
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7644

PostPosted: Mon Jun 22, 2009 12:01    Post subject: Reply with quote
Yes, but your outcome looks better than mine..

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!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum