1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tomato ND USB Mod

Discussion in 'Tomato Firmware' started by teddy_bear, Dec 17, 2008.

  1. teddy_bear

    teddy_bear Network Guru Member

    Yes, the "loopback device support" can be enabled in 2.4.20, it's just that this firmware is compiled with it being turned off.
    I can try to enable it in the next build - hopefully it won't increase the binary size more than one 4K block...
     
  2. go_cp

    go_cp Addicted to LI Member

    Thanks. Will wait for the next build.

    If you are unable to enable it in the next build, can you attach the loop.o file in this thread, so anyone needing it can load it as needed.

     
  3. mstombs

    mstombs Network Guru Member

    and have received the answer

    Now can teddy_bear advise if there is a limit to the Tomato mod web display... from the Tomato side
     
  4. teddy_bear

    teddy_bear Network Guru Member

    No, only the available memory ;).
     
  5. mstombs

    mstombs Network Guru Member

    Just a quick thought - maybe an option to save a few flash bytes - is it possible for miniupnp to link against the iptables shared library on the router /usr/lib/libiptc.so rather than the static included libiptc.a? I'm still surprised the version I have for my adsl router is much smaller at 95KB to start with.
     
  6. teddy_bear

    teddy_bear Network Guru Member

    mstombs,
    You're right, it was using static libiptc.a. When linking against the shared iptables, the binary size goes down to 100K resulting in 8K decrease in the firmware binary size. Thanks!
     
  7. davidehue

    davidehue Addicted to LI Member

    Now my router is upgraded to build 14, still can't access the FTP server from WAN (don't know what's wrong), should I forward port external port 21 to internal port 21?

    And one more problem: Why I can't create a new folder or delete one from the FTP, even it's accessed from LAN?
    Sometimes I can do those create and delete some folder once, but after that it always failed.
    [​IMG]
    [​IMG]

    I already logged on using read/write user access.
    Does memory space very important for this action? My memory space (free memory) is only about 300 KB (2%) after enabling FTP server or File Sharing.

    Also in File Sharing mode, how can I create full access sharing? When I tried to create some policy, I couldn't access the drive anymore.

    Please helpppp :confused:
     
  8. ray123

    ray123 LI Guru Member

    The loop device (loop.o) is 21K. Please let's don't add this into the standard build! This sounds like a good candidate for an external module that can be insmod'ed.

    BTW, it probably isn't a good idea to have an ext3 filesystem (or any other journaling filesystem) on a flash drive. Too much writing to the drive for the journal. Ext2 is preferable, because of fewer writes.
     
  9. teddy_bear

    teddy_bear Network Guru Member

    Sorry guys, the FTP WAN access is still broken - as dadaniel pointed out above, the server returns wrong IP in response to PASV request. I was only using FAR as ftp client from the outside which works in active mode, so I did not notice the problem. Now I believe I figured out what's wrong, and will fix it soon.

    As for the writeable FTP access from LAN - where are you trying to create a new folder? If it's your USB drive and it's not write-protected, you should be able to create new folders/files. However, the most of the router internal filesystem is read-only, you will only have write access under /tmp directory (and any folders symlinked to /tmp and under, i.e. /var or /mnt).
     
  10. davidehue

    davidehue Addicted to LI Member

    I tried to create a folder on my usb HDD. It was succeed for the first time I tried (after rebooting the router), buat after I create a new folder, I can't delete it, and I can't create another new folder. It isn't happened on build 11.
     
  11. NewG

    NewG Addicted to LI Member

    Ok let me chime in and say GIT sucks. Anyone wanna be cool and just host the file like it has been in the past? Is that even possible? I'm on a windows machine and 20 some odd mb into the snapshot download I gave up.

    Also, the reason I want to upgrade is that I'm having sporadic drop off in bandwidth. The stream on the network (over my wireless bridge and on my laptop) seems to go fine and then bandwidth falls to nothing... and then it goes back up. I figured I'd try the update to see if it fixed that... and if not... continue my troubleshooting.
     
  12. teddy_bear

    teddy_bear Network Guru Member

    Could you post your logs showing what happens when you try to delete or create a new folder/file?
    Does unplugging/replugging the drive help to solve the problem?
     
  13. teddy_bear

    teddy_bear Network Guru Member

    Do you really want to recompile, or just upgrade?
    The compiled binaries are still available the "old way" - the links are in the first post.
     
  14. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    To be fair, that has nothing to do with git (or Windows for that matter) - just a site that seems to be running slowly today. If it gets that way often, we might need to find a different place to host the repository. You could also just download the Tomato source and apply the patch to get to the USBmod source.

    But, as teddy_bear has already said, it sounds like you just need the binaries anyway.
     
  15. NewG

    NewG Addicted to LI Member

    oh lord... im sorry guys. I do in fact just need the bins. Sorry bout that. Chaulk it up to lack of sleep I guess.
     
  16. sternem

    sternem LI Guru Member

    WRTSL54GS supported?

    The print support sounds better than what thibor rc3 provides. I started downloading the tomato ND firmware, but couldn't figure out how to get it into my router.

    After some more digging, it doesn't look like I can load this particular firmware into my router. I hope someone tells me otherwise because the features are very cool.

    Am I unable to join in this modded tomato fun (print and storage support are what I'd like to retain) ?
     
  17. teddy_bear

    teddy_bear Network Guru Member

    And why is it so? According to official Tomato homepage the WRTSL54GS is supported. I also think all WRTSL54GS's are capable to run ND version. Please download official Tomato 1.23 release from there and read the README file included in the archive for detailed instructions on how to update.

    If confused, you can always load official Tomato first, and then update to my mod from Tomato GUI.
     
  18. teddy_bear

    teddy_bear Network Guru Member

    Unfortunately, I don't think it will work as the diff doesn't include binary files, and upgrade of Broacom WL drive includes several binaries...
     
  19. teddy_bear

    teddy_bear Network Guru Member

    New update (build 15).

    This update specifically addresses the problem with access to FTP server from WAN in passive mode. No other changes. I hope it now works not only "on my machine" but for others too - but please let me know.

    The loop device module (loop.o) is not included but available as a separate download for those who needs it. The loop.o is 19.4K uncompressed, and adds 8K (2 4K blocks) to the compressed firmware binary size. I agree with ray123 that if only a few people need it, it's better not to include it into the standard build. You can use it as a separate module, or - if you want to recompile the firmware from sources and include loop.o - all you need to do is to comment out (put '#' in front of it) the following line in /release/src/router/Makefile file:
    rm -rf $(TARGETDIR)/lib/modules/2.4.20/kernel/drivers/block || true

    Download links for firmware image are in the first post. Sources are available from git repository - here's the link to the complete archive of v15 sources.
     
  20. george993

    george993 Addicted to LI Member

    teddy_bear,

    Is there any way I can include the loop module with v15 without having to compile it?

    I'm new at this... Thanks btw, this works great on my wl500gp...

    George
     
  21. teddy_bear

    teddy_bear Network Guru Member

    george993,
    Sure, the compiled loop.o is also available for download as a separate file. Just copy it to jffs partition on your router (with your 8MB flash you should have plenty of jffs space), or to the attached USB drive, and load using insmod command.
     
  22. george993

    george993 Addicted to LI Member

    Great, thank you sooooo much....

    George
     
  23. ray123

    ray123 LI Guru Member

    The v14 trx file is quite a big larger than the V11 file. I suspect(ed) that is due to miniupnp. After a bit of poking around, it turnes out that miniupnp is 27KB larger than the original upnp.
    However, when miniupnp is linked with libiptc.so instead of libiptc.a, the size drops down to only 1388 bytes larger. No reason to make a new release just for this, though.

    Great turnaround on the loop.o!
     
  24. teddy_bear

    teddy_bear Network Guru Member

    Old news :).
    v15 corrected this, miniupnpd is now compiled against shared iptables, and is only 100K. The v15 compressed binary is now 8K smaller than v14. It is still 8K larger than v11 though - but that's because of extended inodes support for Ext2/Ext3, and backport of netfilter fixes (significant stability improvement under heavy load) - each added 4K.
     
  25. me2az

    me2az Addicted to LI Member

    When i change Directory Listings to Disable

    v15 & Filezilla 3.2.0
     
  26. teddy_bear

    teddy_bear Network Guru Member

    Geez - who turns off the directoty listings :wink: ?
    But I see where the problem is. Will be fixed in the next build. Until then keep the listings on to avoid the error.
     
  27. me2az

    me2az Addicted to LI Member

    Security concerned user. Thanks for fast answer.

    Does FTP support connection encryption? How to enable?
     
  28. teddy_bear

    teddy_bear Network Guru Member

    No, it's not encrypted. It's possible to compile vsftpd against OpenSSL libraries, but it requires a new, updated version of OpenSSL, and additional OpenSSL library (only one is installed with Tomato now). This will significantly increase the firmware binary size.
    I considered it but then decided against - most home users do not really need that.
     
  29. go_cp

    go_cp Addicted to LI Member

    mount failing on loopback device

    Here is what I did:

    (ASUS) /tmp $ mkdir mnt1
    (ASUS) /tmp $ insmod /mnt/config/loop.o
    (ASUS) /tmp $ echo $?
    0
    (ASUS) /tmp $ mount -t ext3 -o loop /mnt/virtualfs /tmp/mnt1
    (ASUS) /tmp $ echo $?
    111

    The mount of the virtual filesystem is failing. This filesystem mounted without any problems when on DD-WRT. I googled for the error code and could not find any description of the error.

    The only relevent dmesg ouput is :
    loop: loaded (max 8 devices)

    Any thoughts?
     
  30. djinn23

    djinn23 Addicted to LI Member

    issues after update

    Hello Teddy.

    Thanks again for your work on this.

    I recently updated to r15 from 11.

    To my limited perception 11 was working well . I was really stoked when I saw my HDD and Printer mount. . with Samba. Tested and all worked fine

    I have since upgraded and it busted. Without knowing a thing but to tinker. I tried ripping stuff out and making it work. The drive will not mount. The following is a clipping of my log with the last few entries related to my issue

    Code:
    Jan 30 02:13:18 Wart user.info kernel: hub.c: new USB device 00:03.1-1.4, assigned address 6
    Jan 30 02:13:18 Wart user.warn kernel: usb.c: too many interfaces
    Jan 30 02:13:18 Wart user.err kernel: usb.c: unable to get device 6 configuration (error=-22)
    Jan 30 02:13:18 Wart user.info kernel: hub.c: new USB device 00:03.1-1.4, assigned address 7
    Jan 30 02:13:18 Wart user.warn kernel: usb.c: too many interfaces
    Jan 30 02:13:18 Wart user.err kernel: usb.c: unable to get device 7 configuration (error=-22)
    Jan 30 02:16:00 Wart user.info kernel: usb.c: USB disconnect on device 00:03.1-1.3 address 3
    Jan 30 02:16:14 Wart user.info kernel: hub.c: new USB device 00:03.1-1.4, assigned address 8
    Jan 30 02:16:14 Wart user.warn kernel: usb.c: too many interfaces
    Jan 30 02:16:14 Wart user.err kernel: usb.c: unable to get device 8 configuration (error=-22)
    Jan 30 02:16:15 Wart user.info kernel: hub.c: new USB device 00:03.1-1.4, assigned address 9
    Jan 30 02:16:15 Wart user.warn kernel: usb.c: too many interfaces
    Jan 30 02:16:15 Wart user.err kernel: usb.c: unable to get device 9 configuration (error=-22)
    
    Do you have any thoughts. It looks like it tries to increment addresses to the USB object without releasing and it is stacked . . .but keep in mind I do not know what I am talking about.

    Any help would be appreciated.
     
  31. davidehue

    davidehue Addicted to LI Member

    @teddy_bear: how can I enable full access in Samba File Sharing. The default permission is read only, so how should I fill the Network share list? I've tried it but it always failed, I couldn't access the drive.

    Thanks
     
  32. teddy_bear

    teddy_bear Network Guru Member

    djinn23,
    Nothing in USB driver has changed from v11 to v15, but there were some patches applied to support extended inodes on Ext2/Ext3 fs, and a minor correction for FAT support...

    How's your drive formatted? Is it Ext2/3 or FAT? Does the drive show up in the "Attached devices" list on the USB Support page? Do you use USB 2.0 or USB 1.1 - which one is turned on in a GUI? If you have both - USB 2.0 and 1.1 - enabled now, could you try with only one of them activated?
     
  33. teddy_bear

    teddy_bear Network Guru Member

    davidehue,
    What do you specify as the Directory name in you shares list?
    If unsure, try to add share with "/mnt" as a directory name, and read/write as access level...
     
  34. davidehue

    davidehue Addicted to LI Member

    Thanks for your info bro.. it works :thumbup:
    After this I will try the FTP access from WAN and share the result :)
     
  35. teddy_bear

    teddy_bear Network Guru Member

    go_cp,
    I'm not familiar with loopback device, so I can't tell you if your commands are correct and if something extra needs to be done to make it work... I only made sure the compiled module can be loaded - and it can ;).
    I suspect something else may be needed. Or the loop device simply has bugs in kernel 2.4.20 that were fixed in 2.4.37 which DD-WRT uses...
    Are there any messages in log when you're trying to mount the virtual fs?
    What is /mnt/virtualfs - is that the name of your file containing the filesystem?
    I will experiment with it myself - but not sure how soon I'll be able to do that...
     
  36. davidehue

    davidehue Addicted to LI Member

    @teddy_bear: I've tried accessing the FTP from WAN, but still no luck.
    I use no-ip.org and dyndns.org as the DDNS hosting, and forwarding the external port 2500 to internal port 21. I've tried accessing from external port 21 (default ftp port), but no response at all.

    Here's the error logs:

    Code:
    Jan 30 13:47:49 unknown ftp.info vsftpd[1535]: CONNECT: Client "118.136.216.181"
    Jan 30 13:47:49 unknown ftp.info vsftpd[1535]: FTP response: Client "118.136.216.181", "220 (vsFTPd 2.0.7)"
    Jan 30 13:47:49 unknown ftp.info vsftpd[1535]: FTP command: Client "118.136.216.181", "USER david"
    Jan 30 13:47:49 unknown ftp.info vsftpd[1535]: [david] FTP response: Client "118.136.216.181", "331 Please specify the password."
    Jan 30 13:47:49 unknown ftp.info vsftpd[1535]: [david] FTP command: Client "118.136.216.181", "PASS <password>"
    Jan 30 13:47:49 unknown ftp.info vsftpd[1534]: [david] OK LOGIN: Client "118.136.216.181"
    Jan 30 13:47:49 unknown ftp.info vsftpd[1536]: [david] FTP response: Client "118.136.216.181", "230 Login successful."
    Jan 30 13:47:50 unknown ftp.info vsftpd[1536]: [david] FTP command: Client "118.136.216.181", "CWD /"
    Jan 30 13:47:50 unknown ftp.info vsftpd[1536]: [david] FTP response: Client "118.136.216.181", "250 Directory successfully changed."
    Jan 30 13:47:50 unknown ftp.info vsftpd[1536]: [david] FTP command: Client "118.136.216.181", "TYPE A"
    Jan 30 13:47:50 unknown ftp.info vsftpd[1536]: [david] FTP response: Client "118.136.216.181", "200 Switching to ASCII mode."
    Jan 30 13:47:50 unknown ftp.info vsftpd[1536]: [david] FTP command: Client "118.136.216.181", "PASV"
    Jan 30 13:47:50 unknown ftp.info vsftpd[1536]: [david] FTP response: Client "118.136.216.181", "227 Entering Passive Mode (192,168,1,1,238,169)"
    Jan 30 13:47:50 unknown ftp.info vsftpd[1536]: [david] FTP command: Client "118.136.216.181", "LIST"
    Jan 30 13:48:09 unknown ftp.info vsftpd[1525]: [david] FTP response: Client "118.136.216.181", "425 Failed to establish connection."
    Jan 30 13:48:09 unknown ftp.info vsftpd[1525]: [david] FTP command: Client "118.136.216.181", "QUIT"
    Jan 30 13:48:09 unknown ftp.info vsftpd[1525]: [david] FTP response: Client "118.136.216.181", "221 Goodbye."
    

    Any clue?

    Thanks
     
  37. teddy_bear

    teddy_bear Network Guru Member

    Are you running v15? It still sends the local IP address in response to PASV command, although it should not.
    If you're running v15, please post the output of the iptables command:
    iptables -L -n --line-numbers

    EDIT: Just noticed this:
    DO NOT FORWARD FTP port to local IP - remove any forwarding you added for FTP! That's exactly what was wrong in v14. If you forward ftp port to local address, that's the address the ftp server will send back. If you need to use exteral port 2500, just specify this port in FTP settings in the GUI.
     
  38. davidehue

    davidehue Addicted to LI Member

    @teddy_bear:
    UPDATED: It's all work now, after REBOOT the router remotely, now the FTP access from WAN just works great :biggrin:

    I have more question: How to access the shared drive (using SAMBA) from WAN? Last time you said that I have to set up VPN to the router. Is it possible in this build?
    Please tell me how to do it. Thanks a lot :thumbup:
     
  39. djinn23

    djinn23 Addicted to LI Member

    Thanks Teddy.

    Prior to the update both my printer and my Drive showed. I did note that My drive did not mount to the same location and therefore my SMB did not work.

    I am testing with just the drive now. The drive is in EXT3. It does not show, I was using both USB 2.0 and 1.1 and I tried disabling both 1.1 options, rebooting the router and trying again. Same results. I will try to go back to 11 if you think it is best but you seem to want to hunt down issues. . .so I thought I would throw this one at you.

    Thanks again.

    J
     
  40. teddy_bear

    teddy_bear Network Guru Member

    No. Someone has to combine this mod with StPepper's VPN mod to allow VPN on the USB-enabled router. And to fit onto 4MB flash the Samba most probably will have to be removed :(...
     
  41. teddy_bear

    teddy_bear Network Guru Member

    Sure. If you're willing to experiment I'll send you a test version to see if it fixes the issue with your drive. Let me know by PM...
     
  42. teddy_bear

    teddy_bear Network Guru Member

    After Victek ported updated Broadcom WL driver to his RAF mod, some of his users reported flashing power led issue. Is anyone here experiencing the same with this USB mod?
     
  43. davidehue

    davidehue Addicted to LI Member

    I see, the v15 build is the best build so far (according to my opinion :D).
    Btw, I have a little problem when I tried to attach my 80 GB Fujitsu SATA Drive, are there any issues about Fujitsu drive? It's detected but Not Mounted. I've tried rebooting the router, but still the same result.
    Here's the error log:

    Code:
    Jan 31 00:25:50 unknown user.info kernel: usb.c: USB disconnect on device 00:03.1-1 address 9
    Jan 31 00:25:59 unknown user.info kernel: hub.c: new USB device 00:03.1-1, assigned address 10
    Jan 31 00:25:59 unknown user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    Jan 31 00:25:59 unknown user.debug kernel: USB Mass Storage device found at 10
    Jan 31 00:26:01 unknown user.warn kernel: FAT: Did not find valid FSINFO signature.
    Jan 31 00:26:01 unknown user.warn kernel: Found signature1 0x4e0005 signature2 0xd6e80000 sector=1.
    
    Any clue?
     
  44. teddy_bear

    teddy_bear Network Guru Member

    Is it FAT32 formatted?
    If there's nothing important on the drive, try to reformat it again.
    Did it work with previous builds? If it did, we can try to track down the change that made it to stop working. But if it never worked, it'll be very hard if at all possible to figure it out without actually having the drive in my hands to experiment with. The 160GB FAT32 Maxtor and 320GB WD in no-name USB enclosure I have here mount just fine...
     
  45. davidehue

    davidehue Addicted to LI Member

    Silly me, it's NTFS formatted. I've reformatted it to FAT32 file system and now it's mounted well. Thanks again teddy_bear :thumbup:

    Do you have a plan to include some webcam driver so the router can recognize webcam? :biggrin:
     
  46. borosai

    borosai Addicted to LI Member

    I just registered to say thank you for this firmware... so, thank you.

    At the moment, everything is working very well, although my needs are relatively basic: I have an extra USB flash drive connected to the router (WL-520GU, automounted successfully) which is being used to store the router's Bandwidth Monitoring History. I was also hoping to write the router's logs on the flash drive, but I couldn't find a way to configure syslog to do so. Is it possible with this firmware?
     
  47. girevik_moto

    girevik_moto Guest

    I am trying to decide between buying an Asus wl-520gu and the much more expensive Asus wl-500g v2 Premium.

    As far as I can tell the only major difference between the wl-520gu and the wl-500g is additional flash space and an extra usb port... and I can add more usb ports with a usb hub. So I'm really paying an additional 50 dollars for 4mb of flash which is absolutely ridiculous.

    My question is this: Will it be possible to use an attached USB flash drive to load larger firmware builds that don't fit into the flash space of the router?
     
  48. goofytim

    goofytim Addicted to LI Member

    Hi everyone. I just installed tomato for the first time after having used dd-wrt for a while. The quality seems much better than dd-wrt, not so many bugs! Thanks for posting this special build with USB support that works on my 520gu.

    This may be a silly question but I was wondering if there is a way to run a webserver on the router the way I could in dd-wrt? I simply installed thttpd using ipkg-opt and I was able to run a second webserver on the router that I could use externally.

    Is there any way to do this on tomato using a module or plugin or something?

    Thanks
     
  49. SeeFool

    SeeFool Network Guru Member

    Thank you for the firmware; however, I encounter a problem with Windows Vista. I am able to access the usb jumb drive from my Win XP pc, read and write but I can only read from my Vista even though I disable the firewall. Are there any settings that need to be changed?
     
  50. teddy_bear

    teddy_bear Network Guru Member

    borosai,
    Code:
    killall syslogd
    syslogd -O <log_file_name>
    Not sure what's the best place to add this... Try Init script and/or WAN Up script.

    girevik_moto,
    No, loading the firmware itself from the USB drive is not supported. I know Oleg's firmware can boot up from USB partition... But not this one.

    goofytim,
    Sure, just mount one of your USB partitions to /opt, and install Optware exactly the same way you did with DD-WRT. Then use ipkg-opt to install additional packages. Most of the Optware packages for DD-WRT will work with Tomato. A few may require tweaking with settings if some of the directories are not the same...

    SeeFool,
    I think I tried writing files to Samba shares with Vista before, and it worked. The only problem with Vista was that it did not allow to delete folders if they're not empty. I'll try again when my wife brings her Vista laptop back home...
     
  51. teddy_bear

    teddy_bear Network Guru Member

    I figured out what's wrong :)...
    The busybox in Tomato is compiled without support for loop device mounting. I'll change it for the next build. Turning this option on adds 4K to the busybox uncompressed binary, but I think it's acceptable - it does not increase the compressed firmware size.
     
  52. goofytim

    goofytim Addicted to LI Member

    Thanks teddy bear! I'll mount my USB key and give it a go.
     
  53. mstombs

    mstombs Network Guru Member

    Thinking about the mod firmware size - compared to other routers I've played with

    1). dropbear is built with a very full feature set, do you need all the encryption and program options?

    Code:
    lrwxrwxrwx    1 1000     1000           13 Jan 30 23:51 dbclient -> dropbearmulti*
    lrwxrwxrwx    1 1000     1000           13 Jan 30 23:51 dropbear -> dropbearmulti*
    lrwxrwxrwx    1 1000     1000           13 Jan 30 23:51 dropbearconvert -> dropbearmulti*
    lrwxrwxrwx    1 1000     1000           13 Jan 30 23:51 dropbearkey -> dropbearmulti*
    -rwxr-xr-x    1 1000     1000       355780 Jan 30 23:51 dropbearmulti*
    lrwxrwxrwx    1 1000     1000           13 Jan 30 23:51 scp -> dropbearmulti*
    lrwxrwxrwx    1 1000     1000           13 Jan 30 23:51 ssh -> dropbearmulti*
    I only use dropbear as ssh server with scp for access to the router, not sure how you would it as a client - can't the keys be generated/ converted offline?

    2). pppd. There are dozens of versions of this on the net reporting to be version 2.4.1 to 2.4.5, but this hides the patch level. By default it works with serial port modems, multiple kernel versions and different plugins which modify the help and command line options (all unneeded for Tomato?). It has to be manually pruned to remove run-time kernel and version detection etc. Tomato version is clearly not so pruned - the binary still includes this verbose string...

    Code:
    This system lacks kernel support for PPP.  This could be because
    the PPP kernel module could not be loaded, or because PPP was not
    included in the kernel configuration.  If PPP was included as a
    module, try `/sbin/modprobe -v ppp'.  If that fails, check that
    ppp.o exists in /lib/modules/`uname -r`/net.
    See README.linux file in the ppp distribution for more details
    There is ppp support in the Tomato kernel, and there are separate binaries for pppoe and l2tp, so I am not too sure what pppd is used for (used for pppoa on my modem!), but obviously tricky and complicated to change (I only use dhcp...)

    Code:
    -rwxr-xr-x    1 1000     1000         9912 Jan 30 23:51 l2tp-control*
    -rwxr-xr-x    1 1000     1000       124164 Jan 30 23:51 l2tpd*
    -rwxr-xr-x    1 1000     1000       296200 Jan 30 23:51 pppd*
    -rwxr-xr-x    1 1000     1000       171684 Jan 30 23:51 pppoecd*
    -rwxr-xr-x    1 1000     1000        67444 Jan 30 23:51 pptp*
    Note the squashfs-lzma compression is very effective, uncompressed filesizes very muuch bigger than the flash they consume, so better stripping of the binaries may have little effect on repeated strings such as "GCC: (GNU) 3.2.3 with Broadcom modifications" which appears 100s of times in the router binaries - but that's another challenge...
     
  54. goofytim

    goofytim Addicted to LI Member

    Awesome, I took the USB key that I was using for dd-wrt that already had everything loaded and mounted it as /opt as you recommended. All my programs still work as before and my HTTP server is running again!!!

    Thanks for clearing that up.

    One more question, I see that there is an Automount feature in tomato like there was in dd-wrt; however, there is no option to choose whether to mount to /mnt or /opt like I had in dd-wrt. Is there any way to add this feature or will I just have to run a script every time to mount the drive to /opt? This would be nice for anyone who wants to use ipkg-opt to install extra applications on their USB drive.
     
  55. sternem

    sternem LI Guru Member

    This was where I was confused. I thought the ND version drivers were only for certain models. I did as you mentioned, upgraded from thibor to official tomato, and then upgrade again to your mod version with .trx file and it works fine. Thanks teddy_bear!

    Anyone have success with ink level monitoring with the p910nd print server? I hooked up my canon printer (i960) but it doesn't report ink levels. I thought it might have a chance with bidirectional support in the p910nd, but my printer status utility says printer not responding. Could something like this be done with the Tomato firmware http://wiki.openwrt.org/OpenWrtDocs/Kamikaze/Printers#head-db053240c14c85a3e7eaf25b9a354e353f9f31fb?

    The other thing I wanted to play with was a built in media server for content on my hard drive attached via USB. Any ideas?

    Thanks for the USB mod teddy_ bear!
     
  56. jkjkjkjkjk

    jkjkjkjkjk Addicted to LI Member

    hi teddy bear. I see that in your mod, my emule can't forward upnp ports. Why? My Bittorrent can
     
  57. mstombs

    mstombs Network Guru Member

  58. mobidutch

    mobidutch Guest

    I've been a DD-WRT user for a few years, but have run into an issue with the Asus Wl-520GU (2.4SP1 mini build from eko) where the PPTP server is very unreliable, 9 out of 10 times it doesn't get past authentication.

    So, I started looking in Tomato, and was encouraged by the many positive comments on stability and performance compared to DD-WRT. This thread is VERy interesting!

    However...am I understanding it correctly that there is currently NO Tomato build for the WL-520GU that supports both Samba and VPN? I would not even need USB support...all I need is about 100KB jffs space to serve up a few small files via HTTP to the WAN side (with files placed onto jffs via Samba windows share). Possible?
     
  59. dadaniel

    dadaniel Network Guru Member

    I got an Iomega eGo Helium 320GB now and the I/O problems after spindown/spinup seem to have gone.
    The drive has also a spindown-feature like the WD-drive, but a different controller (jmicron).

    I will watch it and report back.
     
  60. ray123

    ray123 LI Guru Member


    At first, I thought Samba on a router was absurd. But now that I've been using it (for program development) it's kind of handy. So I'd now hate to see it removed.

    Possibly a better solution would be to allow insmod'able modules, with some combination of jffs, local USB flash disk, or cifs to get it from. I think that for this it's really necessary to have at least a minimal sized jffs. My jffs[1] fixes will do that, I think. Coming soon, I hope.
     
  61. kallsop

    kallsop Addicted to LI Member

    Just purchased a WL-520GU and it took a while to get Tomato on there. First I held in the router reset as power was turned on, wait for the power light to blink, release the reset and use the Asus firmware restore tool to install dd-wrt.v24-11028_NEWD_mini_asus. If you are using Vista, don't forget to run the firmware tool with Administrator privilege. Reboot the router, tried to install Tomato from inside dd-wrt gui and it wouldn't, complained about incompatible firmware file. Move on then to using tftp. Vista doesn't install tftp by default, so go to Programs and Features and install it. Then start a cmd shell with Administrator privilege, do the router reset and power cycle trick as before, then enter "tftp -i 192.168.1.1 put tomato-ND-USB-v15.trx" and wait a few minutes, cycle power.

    Bingo. Tomato v23 up and running. Set it up as a wireless bridge for my (ethernet) printer and it worked first time. Awesome software. I have a Linksys running Tomato v23 for my main wan+lan+wifi router. Now to buy maybe another Asus and set it up to wirelessly bridge my sons xbox 360.
     
  62. Toastman

    Toastman Super Moderator Staff Member Member

    You can rename the file to the one that DD-WRT expects (bin), makes it easier than tftp...
     
  63. teddy_bear

    teddy_bear Network Guru Member

    mstombs,
    Thanks! Better stripping of executables and getting rid of almost all "with Broadcom modifications" strings was an easy way to gain 4K in the firmware binary size ;). Unfortunately, only 4K...
    I agree that dropbear, pppd and maybe busybox as well can be "tuned" to remove any unused functionality, but I'm no expert in this area, and not sure what's really needed and what's not.

    goofytim,
    Automount in dd-wrt only works for one partition - the first one found. In this mod, all partitions of all USB drives will be mounted if auto-mount is activated. I thought about adding a configuration settings to specify mount points for different partitions, but then decided to not overcomplicate things. Auto-mount is mostly for those who don't care about specific mount points, and use USB drives for additional storage. I fugured if you need to mount an /opt partition, you know what you're doing, and can add one line command to Init or Hotplug script :). Most probably you will need to write scripts anyway - to start additional Optware apps etc.

    sternem,
    For displaying the ink level, additional software is needed (based on http://libinklevel.sourceforge.net). I'm not convinced that it's important enough to include in the firmware. However, if someone else develops this application and integrates it with Tomato GUI, we can as well include it into this mod unless it significantly increases the firmware size.

    mobidutch,
    No, thre's no mod currently with both - Samba and VPN. And I don't believe they both will fit in 4MB flash routers anyway. But you still can use this mod, and install Optware OpenVPN package on the attached USB drive.

    dadaniel,
    Good to know - thanks for the update!

    kallsop,
    The much easier way whould have been to install this mod directly using Asus firmware restoration utility - there's no need to install dd-wrt first, or to use tftp ;))...

    SeeFool,
    I believe I know the reason for your shares being read-only in Vista. They are not really read-only, but Vista, unlike WinXP, requests the free space from Samba before copying the file, and Samba returnes the free space available on the root of the share. If you're sharing, for example, /mnt, the root is still in the read-only router file system, so it returns 0.
    I think a little change I made in v16 (which is out there now) should help with this. If you use new "Auto-share all USB partitions" feature, the shares will be auto-created with root on the usb drive, i.e. disc0_1, disc1_1 etc, and Samba will report correct amount of free space for these shares. Or, if you don't want to share all USB partitions, you can create shares manually - i.e. share "/mnt/disc0_1", "/mnt/disc1_1" etc.
     
  64. NewG

    NewG Addicted to LI Member

    Hey Teddy, Ive been over in another thread concerning unstable bandwidth. After some testing/troubleshooting I think I've found that my drive with the inode 256 is causing bandwidth drops. I'm still testing (going to copy the drive and then reformat it with 128) to rule out a wacko hard drive, but I thought I'd give you a heads up.

    Again man... thanks for the work. And as I told Toastman, if you are ever in the San Francisco area I'll buy ya a beer.
     
  65. dadaniel

    dadaniel Network Guru Member

    Is there a way to disable ftp logging entirely? my whole syslog is filled with ftp messages i am not interested in
     
  66. teddy_bear

    teddy_bear Network Guru Member

    dadaniel,
    Add the line
    syslog_enable=no
    to "Vsftpd Custom Configuration" box.

    NewG,
    Interesting. Please keep us posted whether it's the drive or ext3 with inode size of 256. The support for expanded inodes has been backported from the newer kernel. It was not clear from the other thread if dd-wrt had the same issue using 2.4.37 kernel? Did you run your tests on dd-wrt with or without this drive attached? I only tested expanded inodes with flash drives, not with real HDD, but honestly I did not pay much attention to the bandwith while using these drives...
     
  67. NewG

    NewG Addicted to LI Member

    Hey Teddy, I'll let ya know on the formatting. I had my other drive mysteriously unmount and I checked the logs...

    "user.warn kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 70000"

    Haha the hard drive thats working is going out. Gotta love tech :p
     
  68. me2az

    me2az Addicted to LI Member

    Kingston DataTraveler 2.0 1GB
     
  69. teddy_bear

    teddy_bear Network Guru Member

    Heh... Any issues with this stick besides these log messages?
    I have exactly the same messages with Kingston DataTraveler 2.0 4GB stick when I plug it in - but it's still recognized and mounted properly all the time, no problems with it.
     
  70. zcream

    zcream Addicted to LI Member

    FAT or FAT32

    I missed something here. Are we talking of FAT or FAT32 support with this version ?? Also, is it possible to run any power management for the attached USB HDDs ?
     
  71. dadaniel

    dadaniel Network Guru Member

    Yes, FAT support is ok.

    No, power-managment is not included at this time. You have to use some drive that does power management on its own (like Iomega eGO) or install hdparm as optware (don't ask me how)
     
  72. zcream

    zcream Addicted to LI Member

    I should have rephrased that. I was asking, is FAT32 supported as well ?
     
  73. zcream

    zcream Addicted to LI Member

    Got my answer, the wonderful search feature.
    I'm off to download and replace Oleg firmware with this version.
    The slow USB speeds on Oleg are the reason..
     
  74. tcsoft

    tcsoft Addicted to LI Member

    it seems like wifi is unstable since v11 (tested v11-16).
    i'm running this mod on my wl-520gu in wds-mode.

    following setup:
    wl520gu-pluto [wds, wpa+aes]<------->wr850g-saturn[wds+ap, wpa+aes]<------->wr850g-mars[wireless client, wpa+aes].

    error-case:
    when i do a reboot on saturn, then the connection to pluto will never come up again. in "device list" wds shows to be up, but in fact i cannot reach pluto any more. also, the wds-link seems to be disconnected during last night - so i had no wifi-connection today morning.

    when i reboot pluto the wds-link gets up again. i've already tried it out and found out, that all is working well until v9 (rebooting saturn does not crash wds-link to pluto). so the devil MUST BE the wl-module 4.150.10.5 - introduced in v11.

    can anybody please reproduce/confirm this issue? thanks
     
  75. jnappert

    jnappert LI Guru Member

    As i am experimenting with different versions of WL drivers i can confirm that connecting a device running 4.150.10.5 drivers to a device running the older 3.90 using the encrytion WPA/WPA2-AES can take up to 30 Min.(!) to establish a WDS-Link.

    Once the link is established it is rock solid and stable.
     
  76. tcsoft

    tcsoft Addicted to LI Member

    but my wr850g are running with 4.130.19.0

    edit:
    i will now compile my own tomato-image with the newest driver 4.150.10.5.3 - as i don't need any of the modifications (made by teddy_baer) on my wr850s.
     
  77. jnappert

    jnappert LI Guru Member

  78. absolon

    absolon Addicted to LI Member

    So FAT32 is supported as well? Not only FAT. And if yes it means support for big files (up to 2Gb). Since ext3 is not recommended for flash drivers (pendrives) I'm looking for filesystem with support for bigger files.
    So can you confirm that FAT32 is supported? :)
     
  79. teddy_bear

    teddy_bear Network Guru Member

    FAT32 is supported with files up to 4GB.
    However, if you're going to use your flash drive only on the router and in Linux environment, it's better to use Ext2. The only reason Ext3 is not recommended for flash drives is that journaling causes extra writes to the disc reducing the flash lifetime. Ext2 does not have journaling while still is native filesystem for linux.
     
  80. teddy_bear

    teddy_bear Network Guru Member

    I'm seeing mixed reports regarding the updated WL driver. Some claim the improved performance and less disconnects, while others have various problems.
    Still debating with myself whether to keep the newer driver in the mod releases...
     
  81. davidehue

    davidehue Addicted to LI Member

    @teddy_bear: How can I manage the upload speed of the FTP Server? Can I used QoS, and how to do it. Thanks :)
     
  82. teddy_bear

    teddy_bear Network Guru Member

    davidehue,
    Of course you can use QoS to give ftp traffic a higher or lower priority depending on your needs.
    But if you need to throttle the ftp upload speed, the easiest way is to set maximum allowed bandwidth for anonymous and/or authenticated users on the FTP server configuration page.
     
  83. davidehue

    davidehue Addicted to LI Member

    I must have lost my mind, I didn't read that feature before. Another question is: if I set maximum bandwidth for anonymous and/or authenticaed user on the FTP server configuration page, that means the bandwidth will be limited even if the user access the FTP from LAN. How can I limit the Bandwidth for WAN access only? If I use QoS, how to set it up?
     
  84. absolon

    absolon Addicted to LI Member

    Thank you for quick response and clear explanation.

    Sorry for newbie question but what command should I use to format/create one big ext2 partition on my pendrive? (of course I'll back up all data first). I dont have linux so I'd like to do this directly on router (connected via putty).
     
  85. teddy_bear

    teddy_bear Network Guru Member

    absolon,
    Unfortunately you need a linux system to format your drive. The e2fs utils are not included in the formware to save space.
    You don't have to install linux on a separate machine though - you can either use Knoppix CD distribution, or install linux in a virtual box.
    I believe there might be also some windows utilities to format Ext2/3 partitions, but I'm not sure - try to google them out...

    davidehue,
    Yes, the bandwidth throttle for FTP server is global for WAN and LAN access. I can't tell you how to configure QoS - that all depends on your setup and other needs - besides it'd better for you to understand how QoS works and to be able to use it when needed. Read the FAQ on Tomato official site, and search for QoS on this forum - there are numerous threads here discussing different aspects of QoS in Tomato.
     
  86. SeeFool

    SeeFool Network Guru Member

    teddy bear,
    Thank you for your persistence hard work; after upgrading to v.16, I am able to read/write to disc0_1 using Vista just as you have described. :]
     
  87. tcsoft

    tcsoft Addicted to LI Member

    you can keep it, if i get the new driver to work with my other routers :cool:. the image compiles but the router doesnt respond after flashing. but the original 1.23nd is working with 4.130.x - why 4.150.xx not?
     
  88. goofytim

    goofytim Addicted to LI Member

    My WL-520GU won't accept wireless clients after about a day for some reason. The wired connections work fine. Is this something to do with the driver version 4.15 that everyone is talking about? If so, how do you go to another version?

    Is it possible to get the current firmware built with the older driver so that we could test and compare to the current firmware with the new driver?

    thanks
     
  89. davidehue

    davidehue Addicted to LI Member


    Thanks for the explanation. I've used QoS for my wireless client in my network, using MAC Address of the clients. If I want to limit the FTP server (from WAN), what port I should limit? Is this the same as the port I used for FTP access from WAN?

    Thanks again :)
     
  90. teddy_bear

    teddy_bear Network Guru Member

    davidehue,
    No, I don't think the same port will do... That's the port your FTP server is listening on. Upload traffic uses different ports. You can either limit the range of ports used by FTP server (add pasv_min_port=XXX and pasv_max_port=XXX parameters to the Custom Configuration box) and then set the QoS rules for this port range, or use l7 filter for ftp service (I don't know how reliably l7 recognizes FTP though).

    goofytim, and anyone else having problems with wireless connections,
    What client hardware (wireless cards) are you using? What do you need to do after router stops accepting connections to get it back - reboot the router? What are your wireless security settings? I personally use WPA2 AES with several Atheros and Netgear clients with no issues whatsoever, but of course you may have different results with other hardware...
    I'll consider making 2 separate builds with different WL driver depending on the feedback in this thread, but until I decide to do that you can go back to build 09 if you believe that the wireless driver is the source of your issues.

    tcsoft,
    I do not know why your build doesn't work :) - I don't have wr850g to test it on...
     
  91. davidehue

    davidehue Addicted to LI Member

    OK, I will try it and post the result ASAP :)
     
  92. goofytim

    goofytim Addicted to LI Member

    when I can't connect it doesn't matter what hardware is trying to get to it. I have a couple of Thinkpads, Wii, 2 SMC EZStream Wireless Audio Adapters and a Toshiba Laptop. I have tried both WPA and WPA2. I rebooted the router and so far I have been able to connect again tonight.

    Does any one else have an issue where they lose wireless connectivity with the WL-520gu? Am I doing something wrong here?
     
  93. davidehue

    davidehue Addicted to LI Member

    @teddy_bear: I have succeed setting the limit for FTP access from WAN. I tried to set the min an max port but it didn't work (I couldn't connect to the FTP server after adding the commands). I tried creating some rule on QoS, using L7-FTP and set the limit on QoS-Basic Setting. I set the upload limit for the FTP server 50%-60% of my total upload B/W, and it works :)
    So I don't need to add any commands on custom configuration, it can be done on the QoS GUI only via L7-FTP
     
  94. teddy_bear

    teddy_bear Network Guru Member

    Do you still have that auto spin-down drive drive? I found some patches that may help with the issue - would be interesting to test them :)...
     
  95. Mastec

    Mastec Network Guru Member

    Neighbor just picked up a Toshiba laptop and just reporting in that there are no dropped connection issues between them and my WL-500gP v2.
     
  96. dadaniel

    dadaniel Network Guru Member

    The patch works great, as far as I can see no more errors in the log. Thank you very much!
    Any thoughts about Viteks last LED and SES-Button-patches fore some routers when using new WLAN-driver?
     
  97. teddy_bear

    teddy_bear Network Guru Member

    dadaniel,
    I believe Victek just applied the same fixes as I did - I just talked to him about it last night ;). These fixes are not in v16 yet - and not even in the test build you tried. But they are in git repo, and will be included in the next build. I thought only Linksys owners had issues, that's why I'm not rushing with updating my usb mod...
    Do you have any problems with LEDs/buttons?
     
  98. dadaniel

    dadaniel Network Guru Member

    Yes.

    I discovered that the SES-Button on the Asus WL500gPv1 only executes the first command (wlan on/off).
    It looks like it is not counting.
    And the Power LED starts blinking when pressing shorter than 2 seconds.

    If I press it longer for the second command (shutdown), it only turns wlan on/off.
     
  99. teddy_bear

    teddy_bear Network Guru Member

    dadaniel,
    Please try a new test build - the same location as I PM'd you earlier. I'll release it if it fixes LEDs/buttons...
     
  100. dadaniel

    dadaniel Network Guru Member

    Will try it...
    And I noticed that "Log FTP requests and responses" is default in v17rc2, this fills up the whole log in seconds.
     

Share This Page