JFFS on TL-WR1043ND

Post new topic   Reply to topic    DD-WRT Forum Index -> Qualcomm Atheros based Hardware
Author Message
rocket
DD-WRT User


Joined: 28 Feb 2008
Posts: 111

PostPosted: Mon Oct 31, 2011 8:36    Post subject: JFFS on TL-WR1043ND Reply with quote
Hi to all,

First of all I like to inform that I'm moving from AR670W clone (Ralink SoC 266MHz 32MB RAM 4MB Flash 802.11n) to TL-WR1043ND (Atheros WiSoC 400MHz 32MB RAM 8MB Flash 802.11n USB 2.0 Gigabit Ethernet).

Obviously this change (in the low-cost device range) adds native USB support and more Flash space. As a consequence now I can use CIFS and USB in my device (I continue without understanding why BrianSlayer refuses to create alternative versions of Ralink firmware with some stripped functions and with native CIFS support).

The problem: Neither, the Ralink or Atheros firms, has JFFS support. And I really need it!

The explanation: In the Ralink devices some can argue that 4MB Flash is a very small space. Ok, I agree that is small, but a very minimal version of the firmware can left sufficient space for this function. Nevertheless, why this happens on the Atheros platform?

The suggestion: On the current builds of DD-WRT for Atheros devices with 8MB Flash the JFFS support is broken. The reason is (again) the lack of sufficient space. All binaries and the needed support is included, but you can use it at all. You can think that the problem is again the small Flash. But that is true? After revise the current firm I found the XFS kernel module included in the stock firmware. This module has a length of 719692 bytes on my current build. Who needs "stock" support for the XFS filesystem? I'm sure that if someone needs it, he can load it (the module xfs.ko) form the USB. It's reasonable to waste 3/4 of a Megabyte to include this module and broke the JFFS support?

I think it's not!

Finally, please, think on this: JFFS is a HIGH requirement, don't broke it if you can maintain it!

I hope, that BrianSlayer agree to recover this functionality on Atheros devices.
Thank you very much to all developers of DD-WRT for your huge effort!

Regards,
Rocket.


Last edited by rocket on Thu Nov 03, 2011 10:03; edited 1 time in total
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17613
Location: Hesse/Germany

PostPosted: Mon Oct 31, 2011 10:36    Post subject: Reply with quote
just for for my info.

gimme
Code:

du -c -h /lib/modules/2.6.34.10-svn17742/kernel/fs/

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
rocket
DD-WRT User


Joined: 28 Feb 2008
Posts: 111

PostPosted: Mon Oct 31, 2011 11:23    Post subject: Reply with quote
Hi Sash!

Thank you for your response! But I can't do that because:

1) I'm not using r16785 because the bricks with the last version and the bugs with dyndns in between.

2) Now I have JFFS enabled!! Laughing


Here my research:

1) I extracted the firm with the MDK firmware-mod-kit (http://code.google.com/p/firmware-mod-kit/). The tip is this: you need to use "extract-ng.sh" and "build-ng.sh"; with the last version of MDK you can extract/modify/re-create the dd-wrt firmware for Atheros WiSoC firmwares.

2) I fully removed the XFS module (rm -rf /lib/modules/2.6.34.8-svn16695/kernel/fs/xfs)

3) I re-created the firmware (sudo build-ng.sh ./my-build) and flashed it manually form the commandline (write new-firmware.bin linux)

4) After reboot without reload defaults, JFFS is enabled and working!!!

Capture screen after reboot:

Code:
Space Usage
  CIFS    (Not mounted)
  JFFS2   448.00 KB / 252.00 KB


Now I'm very happy!!! Laughing Laughing Laughing

Your command on my new build:
Code:
$ du -c -h /lib/modules/2.6.34.8-svn16695/kernel/fs/

331.5K  /lib/modules/2.6.34.8-svn16695/kernel/fs/cifs
6.5K    /lib/modules/2.6.34.8-svn16695/kernel/fs/exportfs
99.0K   /lib/modules/2.6.34.8-svn16695/kernel/fs/ext2
185.0K  /lib/modules/2.6.34.8-svn16695/kernel/fs/ext3
99.5K   /lib/modules/2.6.34.8-svn16695/kernel/fs/fat
97.5K   /lib/modules/2.6.34.8-svn16695/kernel/fs/fuse
43.5K   /lib/modules/2.6.34.8-svn16695/kernel/fs/isofs
61.5K   /lib/modules/2.6.34.8-svn16695/kernel/fs/jbd
145.0K  /lib/modules/2.6.34.8-svn16695/kernel/fs/jffs2
21.5K   /lib/modules/2.6.34.8-svn16695/kernel/fs/nls
120.5K  /lib/modules/2.6.34.8-svn16695/kernel/fs/udf
1.2M    /lib/modules/2.6.34.8-svn16695/kernel/fs
1.2M    total


Anyone agree this improvement?


Last edited by rocket on Wed Jul 16, 2014 16:33; edited 1 time in total
rocket
DD-WRT User


Joined: 28 Feb 2008
Posts: 111

PostPosted: Mon Oct 31, 2011 11:27    Post subject: Reply with quote
Hi, I post my build if someone likes it!

MD5 Checksum: 51f6aa728e877f682b2b48e9c6c02bc1



new-no_xfs-tl-wr1043nd-webflash-r16785.bin
 Description:
r16785 without XFS and with JFFS

Download
 Filename:  new-no_xfs-tl-wr1043nd-webflash-r16785.bin
 Filesize:  7.69 MB
 Downloaded:  71 Time(s)

Boompje
DD-WRT Novice


Joined: 01 Nov 2011
Posts: 11

PostPosted: Tue Nov 01, 2011 16:34    Post subject: Reply with quote
Would this be ok/safe to flash through the web interface of a different build?
I've been wanting jffs on my TL-WR1043ND forever, even if its just a little bit (without external usb space)

ps. You wrote TL-WR1040ND.. did you mean TL-WR1043ND?
Boompje
DD-WRT Novice


Joined: 01 Nov 2011
Posts: 11

PostPosted: Tue Nov 01, 2011 16:36    Post subject: Reply with quote
And thank you a lot for your efforts Smile

I'm an (almost) complete rookie when it comes to dd-wrt (not so much as a user, but as a programmer) so I need people like you - otherwise I would be nowhere.

Thank you
rocket
DD-WRT User


Joined: 28 Feb 2008
Posts: 111

PostPosted: Thu Nov 03, 2011 10:05    Post subject: Reply with quote
Boompje wrote:
Would this be ok/safe to flash through the web interface of a different build?
I've been wanting jffs on my TL-WR1043ND forever, even if its just a little bit (without external usb space)

Absolutely safe! I'm using it on my current device without any trouble.

Boompje wrote:
ps. You wrote TL-WR1040ND.. did you mean TL-WR1043ND?

Fixed! Thank you. Wink

Boompje wrote:
And thank you a lot for your efforts Smile

Also thanks to BrianSlayer and the other developers!
I hope that in the next version this "fix" will be incorporated in the main branch.
Boompje
DD-WRT Novice


Joined: 01 Nov 2011
Posts: 11

PostPosted: Fri Nov 04, 2011 18:19    Post subject: Reply with quote
Perfect! Works like a charm and it does indeed give me jffs space Smile

The truth is, fixing this problem with jffs space only brought me to the next.

I'm trying to set up a printerserver through the USB.

- enabled JFFS (thanks to your firmware!)
- ipkg not working properly, cant update (fixed by copy ipkg to jffs and use vi to remove wget passive command. Also fixed)
- do: ipkg -force-depends install kmod-usb-printer
- "dmesg | grep usb" shows printer is connected
- "ls -la /dev/usb/" however shows NOTHING.
I can install the printer daemon, but printing simply doesn't work.

I've found 3 tutorials (including one on the dd-wrt website. it just doesn't work.)

oh well.. thank you again Smile
i'll look into these problems later

best

/edit: just read that you actually dont need to install a printserver on later builds lol (which I guess includes this build). Guess i'll clean jffs and go figure that printserver stuff out later Smile
thanks again. I'll get out of this topic now!
rocket
DD-WRT User


Joined: 28 Feb 2008
Posts: 111

PostPosted: Mon Nov 07, 2011 7:16    Post subject: Reply with quote
Hi,

My suggestion is simple: BrianSlayer, please, remove the XFS module from the build for Atheros devices with 8MB Flash !

If the next build includes this "fix" you can use JFFS with last functions.

I hope this helps to improve DD-WRT ! Very Happy
Slippy66
DD-WRT Novice


Joined: 05 Jan 2013
Posts: 1

PostPosted: Sat Jan 05, 2013 11:26    Post subject: Reply with quote
thanks for effort, this worked a treat for me!
TP-Link TL-WR1043ND
eeff11
DD-WRT User


Joined: 23 Jan 2013
Posts: 116

PostPosted: Wed Jan 23, 2013 5:35    Post subject: Reply with quote
Hi, Rocket,

Totally agree with you.

JFFS matters so much, check my case, I need JFFS also,but seems no firmware available.

http://www.dd-wrt.com/phpBB2/viewtopic.php?p=735814#735814

Let's make suggestions to BrainSlayer and other developers who can make DD the best and dominant OS in the world of routers.

Thanks so much for your efforts.
rocket
DD-WRT User


Joined: 28 Feb 2008
Posts: 111

PostPosted: Thu Apr 11, 2013 13:04    Post subject: Reply with quote
eeff11 wrote:
Totally agree with you.

Unfortunately, BR and his friends think that JFFS2 support is pure IRRELEVANT!

See, for example: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=745177#745177

I repeat: one stupid and obtuse point of view!
Sad Sad Crying or Very sad Crying or Very sad
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17613
Location: Hesse/Germany

PostPosted: Thu Apr 11, 2013 17:51    Post subject: Reply with quote
a usb stick is just a few bugs and it does the same...i have tons of them around.
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Qualcomm Atheros 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 cannot attach files in this forum
You cannot download files in this forum