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

    Hmm... It's already there - in vanilla Tomato and hence in this mod. When was the last time you checked ;)?
     
  2. i1135t

    i1135t Network Guru Member

    Sorry, got it working now. I was reading from an old post and the command to initiate it wasn't working. I found it after doing some searching. Thanks.
     
  3. xdrag

    xdrag Addicted to LI Member

    Hey Teddy_bear,

    would you mean helping me trouble shoot WDS with a WRT54GL and a WL-500W. I can't seem to get them to transmit data between each other. I'm running your modded firmware (41).
     
  4. ImGeo

    ImGeo Addicted to LI Member

    First off, I just want to say thanks for doing this, for continual updates (though I'm still at 1.25), and for continual support on the forums!

    My question is: is this running FTP (unsecure) or SFTP (secure). All the implications say vsftp (SFTP), but the page just says FTP, and it seems to only work over WAN on port 21. If I try any other port than 21 over WAN (all ports work on LAN), it connects but fails to list files. So...
    1. SFTP?
    2. How can I connect to FTP over WAN using some other port than 21. I want some random high number port so typical port scans won't easily detect it (and try to hack me).

    Thanks!

    Code:
    Status:	Connecting to 169.20.10.30:4001...
    Status:	Connection established, waiting for welcome message...
    Response:	220 (vsFTPd 2.2.1)
    Command:	USER ftpuser
    Response:	331 Please specify the password.
    Command:	PASS *********
    Response:	230 Login successful.
    Command:	SYST
    Response:	215 UNIX Type: L8
    Command:	FEAT
    Response:	211-Features:
    Response:	 EPRT
    Response:	 EPSV
    Response:	 MDTM
    Response:	 PASV
    Response:	 REST STREAM
    Response:	 SIZE
    Response:	 TVFS
    Response:	 UTF8
    Response:	211 End
    Command:	OPTS UTF8 ON
    Response:	200 Always in UTF8 mode.
    Status:	Connected
    Status:	Retrieving directory listing...
    Command:	PWD
    Response:	257 "/"
    Command:	TYPE I
    Response:	200 Switching to Binary mode.
    Command:	PASV
    Response:	227 Entering Passive Mode (169,20,10,30,49,250).
    Command:	LIST
    and then it just stops there and eventually times out/disconnect
     
  5. freddyspam

    freddyspam Addicted to LI Member

    From my experience setting it up, when you are inside the network, use the local lan ip of your ftp server. You cannot use your wan IP from within your network for ftp. I had the same issue until TB set me straight. When you are outside your network (and have port forwarding setup if necessary) then it should work without issue.

    Here is what teddy told me: http://www.linksysinfo.org/forums/showpost.php?p=341024&postcount=444
     
  6. ImGeo

    ImGeo Addicted to LI Member

    I knew that from failed trials. Thanks though! However, I am trying to connect from WAN. The connection must be from the WAN port (physical ethernet port on the router), because I'm not within the LAN wireless or ethernet ports.

    Connecting from port 21 works without a problem (using WAN IP when from WAN, using LAN IP when inside the LAN). Switching to a different high-number port results in working FTP within LAN, but a failed connection (see quoted info 2 posts up).
     
  7. teddy_bear

    teddy_bear Network Guru Member

    ImGeo,
    Do you have port forwarding set up manually for the FTP port you're trying to use? If so, you need to remove it - the required IP tables rules are configured automatically when you specify the port number on the "FTP Server" page.

    If you didn't set manual port forwarding, but still can't get it to work, post the output of the following commands:
    iptables -L
    netstat -an


    Of course, since you're on a campus network, it could be that your WAN connection is actually behind a campus firewall, and if so they might be blocking some port ranges...

    xdrag,
    I have nothing to add to what has been already said on your other thread. In my experience WPA PSK (or WPA/WPA2 PSK) and AES settings worked the best - but your mileage may vary... Also, depending on your needs, you may try to configure your network with one main AP router, and other routers in Wireless Ethernet Bridge or Client mode.
     
  8. rasa

    rasa LI Guru Member

    Thanks for new usbserial module.

    Is there possibility to run usb 1.1 modem using ehci driver?
    I still get error using ohci module:

    Code:
    Jan  1 01:33:39 unknown user.err kernel: usb-ohci.c: OHCI Unrecoverable Error, controller usb-00:03.0 disabled
    Jan  1 01:33:39 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:39 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:39 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:39 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:39 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:39 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:39 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:39 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:39 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:39 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:45 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:33:55 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    Jan  1 01:34:05 unknown user.err kernel: usbserial.c: generic_write - port 0: failed submitting write urb (-143)
    More information about this error can be found here.
     
  9. ImGeo

    ImGeo Addicted to LI Member

    Wow, thanks for your fast reply! Also, just to confirm, FTP in this build is always SFTP (secure), even though it's not really referenced anywhere?

    Code:
    Chain INPUT (policy DROP)
    target     prot opt source               destination         
    DROP       all  --  anywhere             fre-10-30.ResHall.Berkeley.EDU
    DROP       all  --  anywhere             anywhere            state INVALID 
    ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
    ACCEPT     all  --  anywhere             anywhere            
    ACCEPT     all  --  anywhere             anywhere            
    ACCEPT     icmp --  anywhere             anywhere            
    ACCEPT     tcp  --  anywhere             RT-002618AAB159     tcp dpt:10739 ;;this port used for web admin over https
    ACCEPT     tcp  --  anywhere             RT-002618AAB159     tcp dpt:ssh ;;ssh usually not enabled
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:10740 ;;port I'm trying to FTP with
    
    Chain FORWARD (policy DROP)
    target     prot opt source               destination         
    ACCEPT     all  --  anywhere             anywhere            
    DROP       all  --  anywhere             anywhere            state INVALID 
    TCPMSS     tcp  --  anywhere             anywhere            tcp flags:SYN,RST/SYN tcpmss match 1461:65535 TCPMSS set 1460 
    restrict   all  --  anywhere             anywhere            
    ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
    wanin      all  --  anywhere             anywhere            
    wanout     all  --  anywhere             anywhere            
    ACCEPT     all  --  anywhere             anywhere            
    upnp       all  --  anywhere             anywhere            
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain rdev01 (1 references)
    target     prot opt source               destination         
    RETURN     all  --  anywhere             anywhere            source IP range 192.168.1.11-192.168.1.20  ;;static DHCP IP range (regular ones are assigned 21-100)
    rres01     all  --  anywhere             anywhere            [goto] 
    
    Chain rdev02 (1 references)
    target     prot opt source               destination         
    RETURN     all  --  anywhere             anywhere            source IP range 192.168.1.11-192.168.1.20 
    rres02     all  --  anywhere             anywhere            [goto] 
    
    Chain restrict (1 references)
    target     prot opt source               destination         
    rdev01     all  --  anywhere             anywhere            
    rdev02     all  --  anywhere             anywhere            
    
    Chain rres01 (1 references)
    target     prot opt source               destination         
    DROP       all  --  anywhere             anywhere            ipp2p v0.8.1_rc1 --ipp2p 
    DROP       tcp  --  anywhere             anywhere            mport ports 411 
    DROP       udp  --  anywhere             anywhere            mport ports 411 ;; blocking via IPP2P and port 411 (for DC++ filesharing app)
    
    Chain rres02 (1 references)
    target     prot opt source               destination         
    REJECT     tcp  --  anywhere             anywhere            web --hore "torrent" reject-with tcp-reset  ;;block HTTP request with torrent
    
    Chain upnp (1 references)
    target     prot opt source               destination         
    ACCEPT     udp  --  anywhere             192.168.1.101       udp dpt:62401 
    ACCEPT     tcp  --  anywhere             Geo-Thinkpad     tcp dpt:24459 
    ACCEPT     udp  --  anywhere             Geo-Thinkpad     udp dpt:24459 
    
    Chain wanin (1 references)
    target     prot opt source               destination         
    
    Chain wanout (1 references)
    target     prot opt source               destination         
    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       
    tcp        0      0 0.0.0.0:2053            0.0.0.0:*               LISTEN      
    tcp        0      0 192.168.1.1:139         0.0.0.0:*               LISTEN      
    tcp        0      0 0.0.0.0:9100            0.0.0.0:*               LISTEN      
    tcp        0      0 0.0.0.0:10739           0.0.0.0:*               LISTEN      
    tcp        0      0 0.0.0.0:10740           0.0.0.0:*               LISTEN      
    tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      
    udp        0      0 192.168.1.1:2049        0.0.0.0:*                           
    udp        0      0 192.168.1.1:137         0.0.0.0:*                           
    udp        0      0 0.0.0.0:137             0.0.0.0:*                           
    udp        0      0 192.168.1.1:138         0.0.0.0:*                           
    udp        0      0 0.0.0.0:138             0.0.0.0:*                           
    udp        0      0 127.0.0.1:34954         0.0.0.0:*                           
    udp        0      0 0.0.0.0:53              0.0.0.0:*                           
    udp        0      0 0.0.0.0:67              0.0.0.0:*                           
    udp        0      0 0.0.0.0:1900            0.0.0.0:*                           
    raw        0      0 0.0.0.0:255             0.0.0.0:*               255         
    Active UNIX domain sockets (servers and established)
    Proto RefCnt Flags       Type       State         I-Node Path
    unix  6      [ ]         DGRAM                     35212 /dev/log
    unix  2      [ ]         DGRAM                     38675 
    unix  2      [ ]         DGRAM                     36740 
    unix  2      [ ]         DGRAM                     35578 
    unix  2      [ ]         DGRAM                     35214 
    unix  2      [ ]         DGRAM                      7002 
    unix  2      [ ]         DGRAM                      6794 
     
  10. ray123

    ray123 LI Guru Member

    Teddy Bear,
    Here are the two patch subsets to replace my previous one large one.

    The 1st one fixes the major kernel bug. This is stand-alone and other than the fix everything else works (or fails to work, as the case might be) the same way.

    The 2nd does the rest of the fixes and cleanup. It is to be applied after the 1st patchset.

    The usb_lock is now gone, except for the kinky little bit that allows a holdoff of automounts during startup. I've tested it pretty hard, and have not seen any untoward occurrences.

    http://www.mediafire.com/file/ynmxjmztj1j/rvt-v41-usbfix-subset1.patch
    http://www.mediafire.com/file/ngahaknmkek/rvt-v41-usbfix-subset2.patch
     
  11. TurtleFang

    TurtleFang Addicted to LI Member

    Hey Teddy_Bear,

    Just a quick clarification... Does Tomato ND USB Mod support sftp (secure ftp)? It's listed as supported in the Tomato Wikibooks entry, but you only mention vsftpd (traditional cleartext ftp) support in the first post.

    I also don't see anywhere in the GUI that you can configure sftp, so I'm guessing that the WikiBooks (and Wikipedia for that matter) are incorrect.

    Please let me know for sure.

    Thanks,
    -TurtleFang
     
  12. hypermood

    hypermood LI Guru Member

  13. teddy_bear

    teddy_bear Network Guru Member

    rasa,
    Yes, it should be possible in most cases. Try to disable USB 1.1 and only allow USB 2.0 - it either will work, or won't ;).

    ImGeo,
    Everything looks good. And I just tested FTP on port 10740 from WAN, and it works fine here. So probably the problem is in your campus network restrictions... For example, my office network only allows FTP on port 21 - I wouldn't be surprised if your IT admins do the same.

    TurtleFang,
    Yep, it's regular FTP (don't be confused by the name vsftpd which states for "very secure" - although it really is secure in terms of managing connections, the data transfers are unencrypted). SFTP is absolutely different animal and, as hypermood noted above, can be installed separately if needed as Optware package.
     
  14. greenythebeast

    greenythebeast LI Guru Member

    Is there any way to set the Scheduler to activate at a time other than every 15 minutes? I want the Scheduler to run the script at 04:50 but that isn't an option in the pull down menu. Thanks for your help.
     
  15. ernstblaauw

    ernstblaauw Addicted to LI Member

    Hi, how do you install an Optware package? I cannot find documentation for it, and I would really love to have sftp support :).
     
  16. xppx99

    xppx99 Addicted to LI Member

    Hi there! Yes there's the manual way, using the cru utility . From the tomato's official FAQ:

    Code:
    # cru
    add:    cru a <unique id> <"min hour day month week command">
    delete: cru d <unique id>
    list:   cru l
    
    # cru a TwiceMonthlyReboot "0 3 1,15 * * reboot"
    (03:00, 1st and 15th of every month)
    
    # cru a SundayWanRestart "0 2 * * 0 service wan restart"
    (02:00, every Sunday)
    
    # cru a NightLightOn "0 20 * * * led white on aoss on"
    (20:00 everyday)
    
    # cru a NightLightOff "0 6 * * * led white off aoss off"
    (06:00 everyday)
     
  17. teddy_bear

    teddy_bear Network Guru Member

    Really? What about:
    • reading (and re-reading) the 1st post - I put links there for a reason;
    • searching this thread and this forum for "Optware" and "ipkg";
    • googling?
     
  18. ernstblaauw

    ernstblaauw Addicted to LI Member

    Sorry, you're totally right. I did not read the 1st post (googling did not showed the first post). Thanks for your pointers.
     
  19. Maxwell

    Maxwell Addicted to LI Member

    Thank you teddy_bear and ray123 for your continued hard work on this mod!

    I hate to stand in the bread line and ask for toast, but is there any possibility of integrating the latest version of SpeedMod (119) into a future release?
     
  20. teddy_bear

    teddy_bear Network Guru Member

    Maxwell,
    The latest SpeedMod is already included. The only difference between 118 and 119 is that Murmur Hash is rolled back and replaced by Jenkins lookup3.

    However, I and lly from the Asus forum ran some tests indicating that Murmur hash was actually slower on MIPS platform, so I rolled it back in this mod even before 119 came out.
     
  21. nyonya

    nyonya Addicted to LI Member

    Is there any way to schedule the router to send out an email showing its WAN IP address on any sort of schedule? Thanks!
     
  22. karogyoker

    karogyoker Addicted to LI Member

    lol, use dyn-dns
     
  23. nyonya

    nyonya Addicted to LI Member

    Elaborate?
     
  24. Engineer

    Engineer Network Guru Member

    Create a free account at WWW.DYNDNS.COM. You can create a hyperlink from there that can be updated with your Tomato router using DDNS (Dynamic DNS) service of the router. Provide your login and password to the router for your DYNDNS account as well as your hyperlink (for example: Engineer.dyndns.org) and also how often to update the account and the Tomato router will login to the DYNDNS service and update the hyperlink with your currently assigned WAN IP.

    You can then use your hyperlink to go to your WAN IP address.
     
  25. nyonya

    nyonya Addicted to LI Member

    Wow, that's more convenient than I could ever imagine. All set up now, seems to be working great! Thanks a ton.

    There's nothing about this firmware that needs change! Finally got my Windows 7 box to see my hard drive (my fault, of course), and everything is working so well. Of course, faster transfer speeds would be nice - has anyone put out a list of settings that would streamline file transfer speeds and (wireless) network performance in general?
     
  26. Engineer

    Engineer Network Guru Member

    YMMV, but I actually get faster transfer speeds from a PC on wireless to another on the lan by turning on Afterburner and enabling Frame Burst. I average about 25Mbps transfer from one Ethernet bridge to my access point (upstairs to downstairs). If your wireless card supports Afterburner, you might give it a shot (Go to Advanced menu and then to Wireless).
     
  27. nyonya

    nyonya Addicted to LI Member

    Wow, that is some impressive speed. I haven't really done much transferring from PC to PC, but from my hard drive on USB to a wireless PC I get at most 850Kbps, and usually closer to 800. As far as I understand, Afterburner is only supported by Broadcom wireless cards, correct? My laptop has an Intel chipset and my desktop uses a Ralink, so I don't think Afterburner would help. I do have Frame Burst enabled.

    Any other suggestions for settings to maximize my bandwidth?
     
  28. Rasky

    Rasky Addicted to LI Member

    Try with Linux: AFAIK, Afterburner on Linux is supported on more chips than on Windows. The fastest test is to download the Ubuntu ISO, burn a CD, and boot the live version from it. Then, without installing anything, try doing a file transfer and see if there's a difference in speed.
     
  29. Ranjit

    Ranjit Addicted to LI Member

    Hi i wanted to are there any ways to speed up nas transfers? currently im getting 1.98MB/sec which is very slow considering the usb port is supposed to be usb 2.0. Thanks
     
  30. ghostknife

    ghostknife Addicted to LI Member

    Question, I upgraded a WRT54G today and using it in WET mode to another tomato router and I tried to do WinXP PPPoE connection through it, doesn't work just sits on 'Connecting WAN Miniport PPPoE' then fails. Plug back in through LAN cable and it's fine.
    Maybe that's normal and it's not supposed to but I never tried to do it while using in WET mode before. Should PPPoE session pass through or not?

    Probably needs some script entered but I have no idea, I don't recall seeing any other reports of people using M$ PPPoE sessions in the last 164 pages, could be wrong, search was not enlightning.
     
  31. ghostknife

    ghostknife Addicted to LI Member

    On what hardware, 520gu? Then that's normal and about all you'll get. I recall reading somewhere it's USB2 compatible not compliant, there's a difference.
     
  32. TurtleFang

    TurtleFang Addicted to LI Member

    Hey teddy_bear,

    I really like your mod, and am running the lastest VPN build (41) on my Asus 500GPv2 now.

    Following your pointers on the 1st post, I pulled the source code to have a peek under the hood so to speak and tried to build a VPN image. Looks like I'm missing something in the process and want to check with you.

    The question I have is what is needed to build the VPN image equal to that of the 41 release from source? Do I need any additional code beyond what is in the git tarball pulled in from SgtPepperKSU's branch? (I don't see much openvpn files in the tarball that I downloaded.)

    The problem I'm seeing is that the std build and the vpn build are the exact same size, so I know that I'm doing something wrong. As a test in search of another datapoint, I built an extras build and it was a larger size so that image appears ok.

    The 1st post in the thread mentions that as of build 41 that the VPN image is based off of extras now. Given that my VPN image build attempt resulted in an image the same size as std and not extras, I think that I've got at least two problems attempting to build VPN right now.

    I'm using the makefile options in /tomato/release/src/Makefile to dictate the image to build. "e" for the VPN build and "m" for the extras.

    I've not attempted to load any of the private rebuilds on my router yet as I wanted to check with you on the build process first in an effort to reduce my chances of bricking my setup.

    So in summary my main two questions are:
    - is any additional code needed to build any of the images supported beyond what is in the tarball listed in your 1st post ?
    - what are the exact commands that you use to build each of the released feature-set images.

    Again, thanks for all your work on these images. I'm hoping to better understand the packaging a build process and hopefully others will jump into the code too.

    Thanks,
    -TurtleFang
     
  33. dadaniel

    dadaniel Network Guru Member

    There are some problems with vpn packets and wlan driver. (not only linksys or tomato specific)

    Try WDS AP + WDS Client mode. It will work like a transparent bridge and the problems should go away.
     
  34. trevorw

    trevorw LI Guru Member

    Map network hdd as a USB drive

    Hi guys,

    I have an LCD with a movie player and USB port that I'd like to connect to my computer. However due to the distance between the two, using an HDMI cable is close to impossible.
    And since the router (Asus WLPv1) is close to the TV and has two USB ports I was wondering whether it's possible to create a virtual drive (with the PC content) and then show that as an HDD device to the TV.
    That is, rather then plugging an USB stick/hdd in the TV, plug in the router which will act as a driver that will redirect to a PC connected (wired) through it.

    Do you know if that's possible and if so, how can I achieve this setup? Is there any way to make the router show up as virtual hdd over the USB?
     
  35. acollado

    acollado Addicted to LI Member

    USB is designed for a host to end device connection, so the standard USB cable won't work between the router and the TV. Besides, most devices won't accept a host-to-host connection out of the box, they need a special adapter and drivers.

    Like this:
    http://www.datapro.net/products/usb-2-0-host-to-host-cable.html

    Since you can't install drivers on the TV I doubt this would work.
     
  36. TurtleFang

    TurtleFang Addicted to LI Member

    Ok, so I've been dumpster diving and think that I have it figured out.

    You need to:
    - clone the git repository
    - pull a label of the tomato-ND-USBmod
    - merge a label of openvpn
    - manually resolve the handfull of conflicts
    - build

    That appears to get the openvpn source into the tree, compiled, and linked into the image.

    Though I think that the correct branch to merge is tomatovpn and not the core openvpn branch. I've not loaded up an image yet to confirm though. My guess is that with the setup I listed above (merging openvpn straight in) that I only have command line sslvpn and not the webgui.

    Maybe I'll try merging tomatovpn next instead. Not sure what kinda conflicts that operation will create.

    I'd appreciate points/comments/confirmations as to my progress so far.

    Thanks,
    -Turtlefang
     
  37. teddy_bear

    teddy_bear Network Guru Member

    Almost :wink:...
    Sorry, I simply forgot to push one of my other branches into the git repo.
    It's there now - called "tomato-ND-usbmod-mixvpn". You need to checkout tomato-ND-USBmod, merge tomato-ND-usbmod-mixvpn into it (there should be no conflicts, or just one or two easy to resolve ones, AFAIR), and build.

    This is still at the vpn3.4 version - I haven't gotten around to merge with the latest VPN mod yet.
     
  38. dadaniel

    dadaniel Network Guru Member

    @teddy_bear:

    Is it possible to get a output like in 'QOS-View Details', but with all current connections?

    This would be great for debugging.
     
  39. teddy_bear

    teddy_bear Network Guru Member

    dadaniel,
    Not sure I understand what you need exactly. Does "cat /proc/net/ip_conntrack" give you the desired output?
     
  40. dadaniel

    dadaniel Network Guru Member

    Yes, but that is hardly readable. And name resolution (possible in 'QOS-View Details') would be great.
     
  41. TurtleFang

    TurtleFang Addicted to LI Member

    Thanks. That works better. Didn't have any problems building.

    One additional question now though. You note that for the latest build (41) that VPN is now built off of extras:
    In release/src/Makefile the profile for VPN (build 'e') is still "normal + VPN", and I don't see an updated profile for extras + VPN.

    I can make a profile myself in my branch which would be close, but maybe not exactly what you use.

    It's not a big issue. I just was wondering what you used and just a polite suggestion to capture this new released image in the makefile for consistency. In case you one day quit in disgust or get hit by lightning. :razz:

    Thanks,
    -TurtleFang
     
  42. ghostknife

    ghostknife Addicted to LI Member

    Yes I'm aware of that but I said PPPoE (not PPTP), this is not VPN.
    As in a PC is doing a PPPoE dial in to the ISP (through bridged modem) to get it's WAN IP. It just happens to be hanging off the tomato router now instead of plugged in through cable going through the house on the floor.
     
  43. trevorw

    trevorw LI Guru Member

    @acollado
    Thanks. I was hoping the drivers are needed only on one end so Tomato ends up as a client (when in fact it's not). But I guess this requires a lot of hacking and probably it's hard to achieve hardware wise (w/o the other party cooperating - having a compatible driver).
     
  44. nyonya

    nyonya Addicted to LI Member

    If this is with a 520GU, it's much higher speeds than I'm getting. Ranjit, what are your settings that would pertain to file transfers? I haven't gone above 800 KB/sec. Thanks.
     
  45. Ranjit

    Ranjit Addicted to LI Member

    Yes it is the 520GU, my settings are the standard default NAS settings, i was looking for any speed tweaks but i guess 1.98MB/sec is very good considering your going at max 800KB/sec
     
  46. nyonya

    nyonya Addicted to LI Member

    Is this over a wired connection or wireless? Are frame burst / afterburner enabled? What's the wireless adapter of the computer that's getting this speed, if it is wireless? Thanks.
     
  47. Ranjit

    Ranjit Addicted to LI Member

    Its over wired connection. But ill test how fast the wifi goes in a bit
     
  48. babydragon

    babydragon Addicted to LI Member

    I use auto-share usb storage option using the lastest firmware tomato-1.27-NDUSB-8741-vpn3.4. Whenever I plug or unplug a usb drive, the shared folders of another usb device become unavailable. This cause troubles if I am using another shared folder at that instance. Can some one shed light on this issue? is it me or is it supposed to be like this? Thanks.
     
  49. ray123

    ray123 LI Guru Member

    Please be more specific on how it fails. What happens? Exactly what are your settings? Does anything get printed to the logfile?

    FWIW, I didn't have any problems, but I get something wierd in the logfile.
    "daemon.err smbd[4748]: open_directory: unable to stat name = ext_160/etc. Error was No such file or directory"

    ext_160 is my external harddrive, but etc is only under /opt.
     
  50. teddy_bear

    teddy_bear Network Guru Member

    When you unplug a drive, Samba and FTP servers are restarted, so all other shares could become temporarily unavailable. If you're doing file transfers at the moment, they will be interrupted. But all shares should become available again in a second or so. (In the next build I'm going to change it so Samba will not restart if you manually unmount your drive before unplugging - via GUI or "umount" command).

    However, nothing like that should happen when you just plug the drive in - Samba is not getting restarted, and you should be able to access other shares with no disruption.

    If this doesn't explain what happens, then - as Ray suggested - provide more details.
     
  51. babydragon

    babydragon Addicted to LI Member

    thank you, ray123 and teddy_bear. I guess teddy_bear's answer partly explain the puzzle.

    My router has standard settings in usb section: auto-mount, share the folder /mnt/ and /.

    after more experiments, I find that the shared folder becomes unavailable some times after I plug in another usb device. it looks like the usb devices umounted and then mount again. but at other times, it's ok. I'm not sure what happened. I guess it might have something to do with my usb external hard drive or the usb hub. here is a sample log when the error happens:

    Dec 29 18:47:15 unknown daemon.err smbd[2549]: read_socket_data: recv failure for 4. Error = Connection reset by peer
    Dec 29 18:47:19 unknown user.err kernel: hub.c: already running port 1 disabled by hub (EMI?), re-enabling...
    Dec 29 18:47:19 unknown user.info kernel: usb.c: USB disconnect on device 00:03.0-1.1 address 23
    Dec 29 18:47:19 unknown user.warn kernel: Unable to disconnect USB device from the SCSI subsystem
    Dec 29 18:47:19 unknown user.info kernel: Device 08:01 not ready.
    Dec 29 18:47:19 unknown user.warn kernel: I/O error: dev 08:01, sector 2
    Dec 29 18:47:20 unknown user.info hotplug[2550]: USB partition unmounted from /tmp/mnt/Optware
    Dec 29 18:47:20 unknown user.info kernel: Device 08:03 not ready.
    Dec 29 18:47:20 unknown user.warn kernel: I/O error: dev 08:03, sector 2
    Dec 29 18:47:20 unknown user.info hotplug[2550]: USB partition unmounted from /tmp/mnt/Shared
    Dec 29 18:47:20 unknown user.notice kernel: sda: Unit Not Ready, sense:
    Dec 29 18:47:20 unknown user.warn kernel: Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
    Dec 29 18:47:20 unknown user.warn kernel: Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
    Dec 29 18:47:20 unknown user.warn kernel: sda : READ CAPACITY failed.
    Dec 29 18:47:20 unknown user.warn kernel: sda : status = 1, message = 00, host = 0, driver = 08
    Dec 29 18:47:20 unknown user.warn kernel: Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
    Dec 29 18:47:20 unknown user.warn kernel: Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
    Dec 29 18:47:20 unknown user.warn kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
    Dec 29 18:47:20 unknown user.warn kernel: sda: test WP failed, assume Write Enabled
    Dec 29 18:47:20 unknown user.info kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
    Dec 29 18:47:20 unknown user.warn kernel: I/O error: dev 08:00, sector 0
    Dec 29 18:47:20 unknown user.warn kernel: unable to read partition table
    Dec 29 18:47:20 unknown user.notice kernel: sda: Unit Not Ready, sense:
    Dec 29 18:47:20 unknown user.warn kernel: Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
    Dec 29 18:47:20 unknown user.warn kernel: Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
    Dec 29 18:47:20 unknown user.warn kernel: sda : READ CAPACITY failed.
    Dec 29 18:47:20 unknown user.warn kernel: sda : status = 1, message = 00, host = 0, driver = 08
    Dec 29 18:47:20 unknown user.warn kernel: Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
    Dec 29 18:47:20 unknown user.warn kernel: Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
    Dec 29 18:47:20 unknown user.warn kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
    Dec 29 18:47:20 unknown user.warn kernel: sda: test WP failed, assume Write Enabled
    Dec 29 18:47:20 unknown user.info kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
    Dec 29 18:47:20 unknown user.warn kernel: I/O error: dev 08:00, sector 0
    Dec 29 18:47:20 unknown user.warn kernel: unable to read partition table
    Dec 29 18:47:20 unknown daemon.err nmbd[2554]: load_client_codepage: filename /usr/share/codepage.936 does not exist.
    Dec 29 18:47:20 unknown daemon.err smbd[2556]: load_client_codepage: filename /usr/share/codepage.936 does not exist.
    Dec 29 18:47:20 unknown daemon.err nmbd[2555]: Samba server UNKNOWN is now a domain master browser for workgroup HOME on subnet UNICAST_SUBNET
    Dec 29 18:47:20 unknown user.info kernel: hub.c: new USB device 00:03.0-1.1, assigned address 24
    Dec 29 18:47:21 unknown user.warn kernel: Unable to connect USB device to the SCSI subsystem
    Dec 29 18:47:21 unknown user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    Dec 29 18:47:21 unknown user.debug kernel: USB Mass Storage device found at 24. Host: 0
    Dec 29 18:47:21 unknown user.debug hotplug[2559]: Waiting for device /proc/bus/usb/002/024 [INTERFACE=8/6/80 PRODUCT=90c/1000/1100] to settle before scanning
    Dec 29 18:47:22 unknown user.info kernel: hub.c: new USB device 00:03.0-1.3, assigned address 25
    Dec 29 18:47:23 unknown user.warn kernel: Vendor: Maxtor 6 Model: L200P0 Rev: 0000
    Dec 29 18:47:23 unknown user.warn kernel: Type: Direct-Access ANSI SCSI revision: 02
    Dec 29 18:47:23 unknown user.warn kernel: Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
    Dec 29 18:47:23 unknown user.warn kernel: SCSI device sdb: 398297088 512-byte hdwr sectors (203928 MB)
    Dec 29 18:47:23 unknown user.info kernel: /dev/scsi/host1/bus0/target0/lun0: p1
    Dec 29 18:47:23 unknown user.warn kernel: USB device connected to the SCSI subsystem
    Dec 29 18:47:23 unknown user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    Dec 29 18:47:23 unknown user.debug kernel: USB Mass Storage device found at 25. Host: 1
    Dec 29 18:47:23 unknown user.debug hotplug[2560]: Waiting for device /proc/bus/usb/002/025 [INTERFACE=8/6/80 PRODUCT=4b4/6830/1] to settle before scanning
    Dec 29 18:47:25 unknown user.warn kernel: SCSI device sda: 494592 512-byte hdwr sectors (253 MB)
    Dec 29 18:47:25 unknown user.warn kernel: sda: Write Protect is off
    Dec 29 18:47:25 unknown user.info kernel: /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    Dec 29 18:47:25 unknown user.warn kernel: SCSI device sda: 494592 512-byte hdwr sectors (253 MB)
    Dec 29 18:47:25 unknown user.warn kernel: sda: Write Protect is off
    Dec 29 18:47:25 unknown user.info kernel: /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    Dec 29 18:47:25 unknown user.info hotplug[2559]: USB ext2 fs at /dev/discs/disc0/part1 mounted on /tmp/mnt/Optware
    Dec 29 18:47:25 unknown user.warn kernel: EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
    Dec 29 18:47:26 unknown user.warn kernel: EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
    Dec 29 18:47:26 unknown user.info hotplug[2559]: USB ext2 fs at /dev/discs/disc0/part3 mounted on /tmp/mnt/Shared
    Dec 29 18:47:27 unknown user.warn kernel: SCSI device sdb: 398297088 512-byte hdwr sectors (203928 MB)
    Dec 29 18:47:27 unknown user.info kernel: /dev/scsi/host1/bus0/target0/lun0: p1
    Dec 29 18:47:28 unknown daemon.err nmbd[2555]: Samba server UNKNOWN is now a domain master browser for workgroup HOME on subnet 192.168.1.2
    Dec 29 18:47:36 unknown user.info hotplug[2560]: USB ntfs fs at /dev/discs/disc1/part1 mounted on /tmp/mnt/NAS
    Dec 29 18:47:36 unknown daemon.notice ntfs-3g[2593]: Version 2009.11.14 integrated FUSE 27
    Dec 29 18:47:36 unknown daemon.notice ntfs-3g[2593]: Mounted /dev/scsi/host1/bus0/target0/lun0/part1 (Read-Write, label "NAS", NTFS 3.1)
    Dec 29 18:47:36 unknown daemon.notice ntfs-3g[2593]: Cmdline options: iocharset=utf8,noatime,nodev
    Dec 29 18:47:36 unknown daemon.notice ntfs-3g[2593]: Mount options: iocharset=utf8,nodev,silent,allow_other,nonempty,noatime,fsname=/dev/scsi/host1/bus0/target0/lun0/part1
    Dec 29 18:47:36 unknown daemon.notice ntfs-3g[2593]: Ownership and permissions disabled
    Dec 29 18:47:44 unknown daemon.err nmbd[2555]: Samba name server UNKNOWN is now a local master browser for workgroup HOME on subnet 192.168.1.2

    also, after I umount the usb hard drive, the shared folder becomes unavailable for like 10 seconds. So this is normal. But after I unplug it afterwards, the shared folder becomes unavailable again. Here is the log when the error happens:

    Dec 29 18:38:59 unknown daemon.err smbd[2225]: read_socket_data: recv failure for 4. Error = Connection reset by peer
    Dec 29 18:39:09 unknown user.err kernel: hub.c: already running port 1 disabled by hub (EMI?), re-enabling...
    Dec 29 18:39:09 unknown user.info kernel: usb.c: USB disconnect on device 00:03.0-1.1 address 19
    Dec 29 18:39:09 unknown user.warn kernel: Unable to disconnect USB device from the SCSI subsystem
    Dec 29 18:39:09 unknown user.info kernel: Device 08:01 not ready.
    Dec 29 18:39:09 unknown user.warn kernel: I/O error: dev 08:01, sector 2
    Dec 29 18:39:09 unknown user.info hotplug[2226]: USB partition unmounted from /tmp/mnt/Optware
    Dec 29 18:39:09 unknown user.info kernel: Device 08:03 not ready.
    Dec 29 18:39:09 unknown user.warn kernel: I/O error: dev 08:03, sector 2
    Dec 29 18:39:09 unknown user.info hotplug[2226]: USB partition unmounted from /tmp/mnt/Shared
    Dec 29 18:39:09 unknown user.notice kernel: sda: Unit Not Ready, sense:
    Dec 29 18:39:09 unknown user.warn kernel: Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
    Dec 29 18:39:09 unknown user.warn kernel: Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
    Dec 29 18:39:09 unknown user.warn kernel: sda : READ CAPACITY failed.
    Dec 29 18:39:09 unknown user.warn kernel: sda : status = 1, message = 00, host = 0, driver = 08
    Dec 29 18:39:09 unknown user.warn kernel: Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
    Dec 29 18:39:09 unknown user.warn kernel: Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
    Dec 29 18:39:09 unknown user.warn kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
    Dec 29 18:39:09 unknown user.warn kernel: sda: test WP failed, assume Write Enabled
    Dec 29 18:39:09 unknown user.info kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
    Dec 29 18:39:09 unknown user.warn kernel: I/O error: dev 08:00, sector 0
    Dec 29 18:39:09 unknown user.warn kernel: unable to read partition table
    Dec 29 18:39:09 unknown user.notice kernel: sda: Unit Not Ready, sense:
    Dec 29 18:39:09 unknown user.warn kernel: Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
    Dec 29 18:39:09 unknown user.warn kernel: Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
    Dec 29 18:39:09 unknown user.warn kernel: sda : READ CAPACITY failed.
    Dec 29 18:39:09 unknown user.warn kernel: sda : status = 1, message = 00, host = 0, driver = 08
    Dec 29 18:39:09 unknown user.warn kernel: Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
    Dec 29 18:39:09 unknown user.warn kernel: Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
    Dec 29 18:39:09 unknown user.warn kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
    Dec 29 18:39:09 unknown user.warn kernel: sda: test WP failed, assume Write Enabled
    Dec 29 18:39:09 unknown user.info kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
    Dec 29 18:39:09 unknown user.warn kernel: I/O error: dev 08:00, sector 0
    Dec 29 18:39:09 unknown user.warn kernel: unable to read partition table
    Dec 29 18:39:10 unknown user.info kernel: hub.c: new USB device 00:03.0-1.1, assigned address 21
    Dec 29 18:39:10 unknown daemon.err nmbd[2230]: load_client_codepage: filename /usr/share/codepage.936 does not exist.
    Dec 29 18:39:11 unknown daemon.err nmbd[2231]: Samba server UNKNOWN is now a domain master browser for workgroup HOME on subnet UNICAST_SUBNET
    Dec 29 18:39:11 unknown daemon.err smbd[2233]: load_client_codepage: filename /usr/share/codepage.936 does not exist.
    Dec 29 18:39:11 unknown user.warn kernel: Unable to connect USB device to the SCSI subsystem
    Dec 29 18:39:11 unknown user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    Dec 29 18:39:11 unknown user.debug kernel: USB Mass Storage device found at 21. Host: 0
    Dec 29 18:39:11 unknown user.info kernel: usb.c: USB disconnect on device 00:03.0-1.3 address 20
    Dec 29 18:39:11 unknown user.warn kernel: USB device disconnected from the SCSI subsystem
    Dec 29 18:39:11 unknown user.debug hotplug[2235]: Waiting for device /proc/bus/usb/002/021 [INTERFACE=8/6/80 PRODUCT=90c/1000/1100] to settle before scanning
    Dec 29 18:39:11 unknown daemon.err nmbd[2240]: load_client_codepage: filename /usr/share/codepage.936 does not exist.
    Dec 29 18:39:12 unknown daemon.err smbd[2242]: load_client_codepage: filename /usr/share/codepage.936 does not exist.
    Dec 29 18:39:12 unknown daemon.err nmbd[2241]: Samba server UNKNOWN is now a domain master browser for workgroup HOME on subnet UNICAST_SUBNET
    Dec 29 18:39:14 unknown user.warn kernel: SCSI device sda: 494592 512-byte hdwr sectors (253 MB)
    Dec 29 18:39:14 unknown user.warn kernel: sda: Write Protect is off
    Dec 29 18:39:14 unknown user.info kernel: /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    Dec 29 18:39:14 unknown user.warn kernel: SCSI device sda: 494592 512-byte hdwr sectors (253 MB)
    Dec 29 18:39:14 unknown user.warn kernel: sda: Write Protect is off
    Dec 29 18:39:14 unknown user.info kernel: /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    Dec 29 18:39:14 unknown user.warn kernel: EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
    Dec 29 18:39:14 unknown user.info hotplug[2235]: USB ext2 fs at /dev/discs/disc0/part1 mounted on /tmp/mnt/Optware
    Dec 29 18:39:15 unknown user.info hotplug[2235]: USB ext2 fs at /dev/discs/disc0/part3 mounted on /tmp/mnt/Shared
    Dec 29 18:39:15 unknown user.warn kernel: EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
    Dec 29 18:39:20 unknown daemon.err nmbd[2241]: Samba server UNKNOWN is now a domain master browser for workgroup HOME on subnet 192.168.1.2
    Dec 29 18:39:35 unknown daemon.err nmbd[2241]: Samba name server UNKNOWN is now a local master browser for workgroup HOME on subnet 192.168.1.2

    I guess my problem might be related to my hardware as well...
     
  52. parkhaus

    parkhaus Addicted to LI Member

    Hi TeddyBear!
    Great great firmware mod!! Absolutely love it.
    I just read that a NEW NTFS-3G driver is available, dated November 14th.
    It is available here:
    http://www.tuxera.com/ntfs/release-ntfs-3g-2009-11-14/

    Can you please include that one in the Extras build? It seems to have many improvements implemented.
    Thanks and happy new year!
     
  53. jinx

    jinx Addicted to LI Member

    It's already included as of build 39.
     
  54. dswo

    dswo Addicted to LI Member

    Teddy_bear, I've been using your version of Tomato since this fall. Thank you, thank you, thank you. Today I moved a step closer to getting a networked backup solution by mounting a USB hard drive to my router. I set up two FAT32 partitions, and they can both mount and unmount. I can move files on and off, but I can't delete directories via a Windows client unless they're empty. If I try, I get the message "Folder Access Denied... You require permission from ROUTER/root to make changes to this folder." Is there a workaround for this? I've tested this with a flash drive, and it's the same.

    I can delete files, and once a directory is empty, I can delete it then.

    On Tomato's "File Sharing" page, I have "Enable File Sharing: Yes, no authentication," so I'm not sure why there's a permissions issue. (I tried the Vista instructions anyway, but that didn't help.)

    When I telnet into the router directly, I can look at the partition permissions in /tmp/mnt and they are both drwxrwxrwx. Via telnet, I can also brute-force delete the directories with "rm -rf".

    I think this question was raised before, but I'm not sure it was ever answered: http://www.linksysinfo.org/forums/showpost.php?p=348019&postcount=923.

    Thank you again for any help you can offer, and for creating and updating this version of Tomato.
     
  55. ray123

    ray123 LI Guru Member

    That's correct.
    Works as designed.
    "It always never worked that way."

    Even in Dos/Windows, you cannot delete a directory unless it is empty. In every OS I've ever seen you have to first delete all the files in a directory, and then and only then can you delete the directory itself. (FWIW, explorer in Windows does this behind the scenes, without telling you. You can see this if you do it on a really slow drive, like a floppy.)

    If you think about it, it has to work that way. A directory is just a set of links or pointers to the actual files. If you destroy the directory, the files still exist but there is nothing that points to them. They are now lost-----they exist but there is no way to get to them.

    Linux (Tomato) is giving you an "invalid permissions" error code because there isn't a code for "hey, you have to delete the files first". Or, you can squint your eyes and read the permission code error as saying "You don't have permission to delete this non-empty directory because NOBODY is allowed to delete a non-empty directory."
     
  56. johnny2002

    johnny2002 LI Guru Member

    my wl-500gd flashed, can't start up.
    Flashed back to dd.
    Does it support wl=500gd?
     
  57. mctel

    mctel LI Guru Member

    Is there any mod of Tomato for WRT54G with SpeedMod and VPN but with no usb support?
     
  58. hypermood

    hypermood LI Guru Member

  59. mctel

    mctel LI Guru Member

    thx
    This one tomato-ND-8741-VPN.trx - Non-USB + VPN build (Perfect for a WRT54G-TM) ?

    But does it fit for my WRT54G 4MB flash/16mb ram ? WRT54G-TM have 8/32MB
     
  60. hypermood

    hypermood LI Guru Member

    Yes, it will work.
     
  61. menses

    menses Addicted to LI Member

    How to re-install firmware through serial console?

    Hi,

    I installed teddy bear's Tomato Mod on my Asus WL-500g Premium V1 a couple of months ago. Something went wrong in the firmware upgrade because I could not access the router afterwards. Also the Asus recovery mode stopped working (the press-reset-while-plugging-power-on -method didn't work).

    However this week I set up a serial port on the Asus and finally I can see what's happening inside.
    Here's the output:
    Code:
    CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
    Build Date: §@  6§Î 12 16:31:07 CST 2006 (root@localhost.localdomain)
    Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.
    
    Initializing Arena
    Initializing Devices.
    et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.23.0
    rndis0: Broadcom USB RNDIS Network Adapter (P-t-P)
    CPU type 0x29006: 264MHz
    Total memory: 33554432 KBytes
    
    Total memory used by CFE:  0x80800000 - 0x8089B670 (636528)
    Initialized Data:          0x808317E0 - 0x80833EC0 (9952)
    BSS Area:                  0x80833EC0 - 0x80835670 (6064)
    Local Heap:                0x80835670 - 0x80899670 (409600)
    Stack Area:                0x80899670 - 0x8089B670 (8192)
    Text (code) segment:       0x80800000 - 0x808317E0 (202720)
    Boot area (physical):      0x0089C000 - 0x008DC000
    Relocation Factor:         I:00000000 - D:00000000
    
    Device eth0:  hwaddr XX-XX-XX-XX-XX-XX, ipaddr 192.168.1.1, mask 255.255.255.0
            gateway not set, nameserver not set
    Null Rescue Flag.
    Reading :: TFTP Server.
    Failed.: Timeout occured
    Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
    Loading: .... 1646592 bytes read
    Entry at 0x80001000
    Closing network.
    Starting program at 0x80001000
    CPU revision is: 00029006
    Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
    Primary data cache 16kB, 2-way, linesize 16 bytes.
    Linux version 2.4.37.7 (root@tomato) (gcc version 3.4.6) #2 2009-11-07 16:29:02 EST
    Setting the PFC to its default value
    Determined physical RAM map:
     memory: 02000000 @ 00000000 (usable)
    On node 0 totalpages: 8192
    zone(0): 8192 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
    CPU: BCM4704 rev 9 pkg 0 at 264 MHz
    Using 132.000 MHz high precision timer.
    Calibrating delay loop... 3.27 BogoMIPS
    Memory: 30572k/32768k available (1410k kernel code, 2196k reserved, 100k data, 80k init, 0k highmem)
    Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
    Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
    Mount cache hash table entries: 512 (order: 0, 4096 bytes)
    Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
    Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Checking for 'wait' instruction...  unavailable.
    POSIX conformance testing by UNIFIX
    PCI: Initializing host
    PCI: Fixing up bus 0
    PCI: Fixing up bridge
    PCI: Fixing up bus 1
    Linux NET4.0 for Linux 2.4
    Based upon Swansea University Computer Society NET3.039
    Initializing RT netlink socket
    Starting kswapd
    devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
    devfs: boot_options: 0x1
    squashfs: version 3.0 (2006/03/15) Phillip Lougher
    pty: 256 Unix98 ptys configured
    Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
    ttyS00 at 0xb8000300 (irq = 3) is a 16550A
    ttyS01 at 0xb8000400 (irq = 3) is a 16550A
    HDLC line discipline: version $Revision: 3.7 $, maxframe=4096
    N_HDLC line discipline registered.
    PPP generic driver version 2.4.2
     Amd/Fujitsu Extended Query Table v1.3 at 0x0040
     Flash Id: Vendor: 0x0001 Device: 0x007e
    number of CFI chips: 1
    cfi_cmdset_0002: Disabling fast programming due to code brokenness.
    Flash device: 0x800000 at 0x1c000000
    Creating 5 MTD partitions on "Physically mapped flash":
    0x00000000-0x00040000 : "pmon"
    0x00040000-0x007f0000 : "linux"
    0x000e8200-0x003b0000 : "rootfs"
    0x003b0000-0x007f0000 : "jffs2"
    0x007f0000-0x00800000 : "nvram"
    sflash: found no supported devices
    Initializing Cryptographic API
    NET4: Linux TCP/IP 1.0 for NET4.0
    IP Protocols: ICMP, UDP, TCP, IGMP
    IP: routing cache hash table of 16384 buckets, 128Kbytes
    TCP: Hash tables configured (established 2048 bind 4096)
    Linux IP multicast router 0.06 plus PIM-SM
    ip_conntrack version 2.1 (16384 buckets, 8192 max) - 332 bytes per conntrack
    ip_tables: (C) 2000-2002 Netfilter core team
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    NET4: Ethernet Bridge 008 for NET4.0
    802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
    All bugs added by David S. Miller <davem@redhat.com>
    VFS: Mounted root (squashfs filesystem) readonly.
    Mounted devfs on /dev
    Freeing unused kernel memory: 80k freed
    
    
    Hit ENTER for console...
    
    Algorithmics/MIPS FPU Emulator v1.5
    No change was necessary.
    Oops in traps.c::do_be, line 390:
    $0 : 00000000 10008c00 00004321 00004318 801d2600 00000004 00040000 0c040083
    $8 : 00000000 00420000 00000000 7ffefda8 00401043 fffffff9 0000000a 2aaacb18
    $16: 801d2600 c015e000 00000096 00000001 801d1ea8 00000000 00000000 00008914
    $24: 00000000 80112174                   801d0000 801d1d50 7ffefd28 800a8b50
    Hi : 00000663
    Lo : 3376ab00
    epc   : 800a8b90    Tainted: P 
    Status: 10008c03
    Cause : 0000001c
    PrId  : 00029006
    Process init (pid: 1, stackpage=801d0000)
    Stack:    c00ad170 000001f0 00000001 00000003 81904000 81904000 801d2420
     00000000 c008b388 00000003 8104f618 8190bd3c 800253c4 00000001 801eea60
     c008b550 00000000 801d1de0 8002617c 80026148 00000000 801d1e38 801a0000
     8002ca68 00000000 00000000 8190bd3c 00000000 8190bd3c 8190bc80 811b50f8
     00000000 00000000 00000000 8190bc80 00000000 801eea60 801eea60 801d2420
     00000000 ...
    Call Trace:   [<c00ad170>] [<c008b388>] [<800253c4>] [<c008b550>] [<8002617c>]
     [<80026148>] [<8002ca68>] [<c00ead9c>] [<c00ea0b0>] [<800c9870>] [<800cb094>]
     [<80110350>] [<8004ec80>] [<800494b4>] [<800c2ac0>] [<80008c00>] [<80008c00>]
     [<8005c3fc>]
    
    Code: 10400002  00000000  ae250028 <8e220004> 00461024  10400027  00000000  8e020010  2842000a 
    Kernel panic: Aiee, killing interrupt handler!
    In interrupt handler - not syncing
     <0>Rebooting in 5 seconds..Please stand by while rebooting the system...
    And this kernel panic -> reboot -> kernel panic -> reboot -> kernel panic -> ... goes on forever

    I can access the console and play around by pressing enter when it says: "Hit ENTER for console..."
    Though I can't get any network access working: et module refuses to load. wl module does load but I don't know how to configure wireless access through console without iwtools?
    Luckily I can get usb modules loaded so I can use USB disks to transfer stuff into the flash. BUT I don't know how to install new firmware through the console?

    The Tomato inside is v1.25.8738 ND USB Std.
     
  62. ray123

    ray123 LI Guru Member

    I think you can use the native Asus recovery upgrade method. IIRC, they have a protected block of the flash that cannot be overwritten/erased which contains a bare-bones bootstrap.

    I used this method once a long time ago, and it worked. It's a pain to do, but it'll get you going.
     
  63. menses

    menses Addicted to LI Member

    Thanks for the reply ray,

    What is the native Asus recovery upgrade method?

    Is it different from the standard recovery mode, which can be enabled by pressing the reset button while powering on the router? This stopped working after the failed Tomato firmware upload.

    However from the serial console I can see that the bare-bones bootloader has TFTP listening
    Code:
    Device eth0:  hwaddr XX-XX-XX-XX-XX-XX, ipaddr 192.168.1.1, mask 255.255.255.0
            gateway not set, nameserver not set
    Null Rescue Flag.
    Reading :: TFTP Server.
    Failed.: Timeout occured
    But it waits maybe one second and then timeouts.

    So what is the safest way to completely unbrick my router?
    1. the native Asus recovery upgrade method??
    2. the one second TFTP window
    3. transferring the new firmware through USB disk

    Of these three options, I only know how to do number 2, but the timeout is too short. Please feel free to elaborate on options 1. and 3. or tell me about other options I've missed :)
     
  64. ray123

    ray123 LI Guru Member

    Right---it's the software that listens to the button. Dead software = nothing listening. When they say "brick", that's exactly what they mean. Fastastic imagery, no?

    I don't recall, but google is your friend. IIRC, you have to have something running on your PC *before* you powerup the router.

    Ah-ha! I have this page saved in my PC: "C:\asus_router\Recover from a Bad Flash - DD-WRT Wiki.mht". So google that.

    BTW, I envy you that you can see the console output. I've got a 520-GU and can't----but it would have been *really* nice if I could have while I was working on kernel issues.
     
  65. teddy_bear

    teddy_bear Network Guru Member

    menses,
    Yep, the build 38 had compatibility issues with BCM 4704 chip - that was fixed in the next build 39.

    The "native Asus recovery upgrade method" is using the Asus Firmware Restoration Utility - I believe that's what Ray meant. I have not seen this method failing yet - always worked for me many times on different Asus routers. Sometimes you have to try several times before it works though.

    What you can also try is hitting "Ctl+C" in console window as soon as you power up the router to interrupt the bootloader, and to get the CFE prompt. In the CFE prompt type "nvram erase" to clean up the nvram, and then "reboot" - it might let you to enter the restoration mode and/or use TFTP. Theoretically it's possible to flash the firmware via serial console (although it's very slow b/c of the speed of the serial port) - but I have never used this method and can't advise on it.

    Also, check out this OpenWRT wiki which describes several restoration methods.

    johnny2002,
    wl-500gd (Deluxe) was never supported - neither by original Tomato, nor by this mod. A while ago I made an attempt to add support for this model, but could not make it without the actual hardware on hands.
     
  66. toolbox

    toolbox Addicted to LI Member

    Don't know if anyone mentioned this or not. Been running tomato-1.27-NDU SB-8741-vpn3.4 for almost a month and noticed VPN won't start by itselft at router restart. I have to manually start it. Otherwise, it has been great.
    Thanks.
     
  67. teddy_bear

    teddy_bear Network Guru Member

    toolbox,
    Looks like it happens with the original VPN mod as well. Try asking in the VPN thread - maybe the VPN mod author or someone else can assist there.
     
  68. menses

    menses Addicted to LI Member

    Thanks ever so much for the reply!

    Good to hear it's fixed :) I was just about to post the log what happens when I run:
    Code:
    insmod wl && wl radio on
    Is this also the reason why the router was bricked? It tries to load the wireless and the kernel panics? (Oops in traps.c::do_be, line 390: etc)

    I have tried this many times, without success... this is what forced me to solder the serial port & converter :biggrin:

    Thanks, I will keep this trick in mind.

    Luckily the speed of the serial port is not a problem in this case, because I can copy the new firmware from USB disk. The only problem is that I don't know how to update a new firmware through the tomato command line.
    I found this command from the old OpenWRT wiki:
    Code:
    mtd -r write firmware.trx linux
    And this is from the new OpenWRT wiki you just posted
    Code:
    mtd write openwrt-brcm-2.4-squashfs.trx linux && reboot
    But before I run the commands I would like to make sure this also applies in Tomato? Which command is right?
     
  69. teddy_bear

    teddy_bear Network Guru Member

    menses,
    Yes, the reason why that build bricked the router is that the kernel panics trying to load wireless. Unfortunately there're no sources for the wireless driver, so the "fix" is not really a fix but a workaround. But hey, it works -)...

    Are you saying that you can still get to the Linux/Tomato command prompt in console, before kernel panic? If so, the Tomato command to write the firmware image is:
    Code:
    mtd-write -w -i firmware.trx -d linux
     
  70. menses

    menses Addicted to LI Member

    Yes, there is time (about one second) to press enter when it says "Hit ENTER for console..."

    Thanks! This worked like a charm! Now I have a fully working router again.
     
  71. parkhaus

    parkhaus Addicted to LI Member

    I just bought a Transcend 2.5" external HDD case, seems to work perfectly with scsi-stop and scsi-start (spindown to save energy).
    Also, there are scripts available at the links teddybear provided.
    But: where do I put these? Under "USB&NAS-USB Support-Run after mounting"? Is that the right place?

    edit: just found something in this thread. JFFS-is that the place to put the script? Would the run-after-mounting not work?
     
  72. dswo

    dswo Addicted to LI Member

    Thank you, Ray123, for the explanation of why I can't delete a folder. If anyone knows of a workaround, I'd be grateful.
     
  73. dswo

    dswo Addicted to LI Member

    I have an external USB drive working pretty well, but there are still a couple of things I'm trying to iron out:

    1. Whenever I try to unmount the shared drive, I get this pop-up: "The device is busy. Please make sure no applications are using it, and try again." This seems to happen whether or not I have even looked at the drive from one of my clients. Initially, I formatted the drive as one NTFS partition. That didn't unmount, so I tried two FAT32 partitions. That did unmount. Then I decided I wanted to try NTFS again. That didn't unmount, so I went back to FAT32; now that doesn't unmount either. (I have a thumb drive that unmounts almost instantly, so something works.)

    2. One of my Windows XP boxes can't see the router. I have another one that does, same workgroup, same network protocols installed, so I'm not sure what the problem is. My Win 7 box can see the router too.
     
  74. vyrticl

    vyrticl Addicted to LI Member

    I just switched over from speedmod to v41 non-USB on my WRT54GS v1.0. Everything has gone smoothly except for one thing.

    I'm not able to SSH to my router remotely. It works fine locally but I'm not able to connect to it remotely. I've enabled remote SSH and I've tried with multiple different ports, 2222, 443, 49152, etc. All I get when I try to SSH to my router remotely via PuTTy is a blank screen that eventually pops up an error "Network error: Connection timed out". I'm using a RSA-Key instead of password login and yes I have the correct password file on the other end.

    ssh.jpg

    Before switching mods I had SSH working with no issues.

    Anyone else experiencing this issue?
     
  75. pawlowski

    pawlowski Addicted to LI Member

    Hi, guys.

    I have a little trouble.
    I've recompiled tomato for my d-link dir-320.
    Everything works great except leds and buttons.
    Reset button doesn't work, wifi led works as status led, usb led doesn't work at all.

    How i can add config for my router?
    Thank you for reply.
     
  76. teddy_bear

    teddy_bear Network Guru Member

    When testing remote access, make sure you're actually doing it from outside of your LAN - not just using public IP locally. I recently retested the SSH access, and it worked in all combinations - locally or remotely, with key or password authorization, from Windows or Linux box. So the problem - if there's one - must be in your setup.
     
  77. cadteach

    cadteach Addicted to LI Member

    Setting up print server

    OK, so I just received the ASUS 520GU and was able to flash this wonderful firmware. I am hoping to use it to hookup 2 usb printers and print to them wirelessly.

    I was able to learn how to attach USB drive and see them, and I've been able to attach a printer and print to it when connected to the router via ethernet cable. I have a seperate wireless router that we use for DSL internet access.

    How do I set this router up to be able to see the printers wirelessly? What setting do I use to allow this router to attach to my network? Where do I set up the SSID/ WEP password?
     
  78. ray123

    ray123 LI Guru Member

    #1: This is standard Linux behavior. You undoubtly have a file open on the partition. One common occurance is to execute a program that's on a partition. As long as that program is active, the partition is busy and can't be unmounted. What I do in this case is copy the program to /tmp and execute it from there.
    Try using "lsof" to see what files are open. You can get this by installing the ipkg "lsof".

    #2: You need to look at the log files and see if there are any error messages.
     
  79. vyrticl

    vyrticl Addicted to LI Member

    Yay for phantom issues.

    I reflashed back to speedmod and it worked perfectly. Then I reflashed back to your mod and just enabled SSH and it worked... Very strange because I tried reflashing your mod twice and it didn't work either time.

    Anyways, I made all the rest of my normal changes to the router and it's still working so...

    Although one thing I noticed was that when it wasn't working, I kept getting an error in the log saying dropbear couldn't find /etc/dropbear/dropbear_dss_host_key so it was disabling DSS. I'm not getting that error anymore, so that must've been the issue. Why that was happening then and not now I'm not sure since I definantly didn't just randomly delete that file :)
     
  80. johnny2002

    johnny2002 LI Guru Member

    WL-500Gd, or namely WL-500Gx should have the same hardware with WL-500GP, CPU:BCM5356, Wireless:BCM4306, but don't know why it cannot startup after flashed tomato.
    Now I have to flash back to DD-WRT.:mad:
     
  81. teddy_bear

    teddy_bear Network Guru Member

    pawlowski,
    Yes, I only included the basic support for DIR-320 - the code for buttons/leds is simply not in the firmware. If you're recompiling the sources from git anyway, try to apply the following patch to the current code - this may fix the buttons if I got the GPIO values right (but not the leds though). Please report your results if you do that.
    Code:
    diff --git a/release/src/router/rc/buttons.c b/release/src/router/rc/buttons.c
    index a9a4f91..9853743 100644
    --- a/release/src/router/rc/buttons.c
    +++ b/release/src/router/rc/buttons.c
    @@ -120,6 +120,10 @@ int buttons_main(int argc, char *argv[])
     		reset_mask = reset_pushed = 1 << 6;
     		ses_mask = ses_pushed = 1 << 7;
     		break;		
    +	case MODEL_DIR320:
    +		reset_mask = 1 << 7;
    +		ses_mask = 1 << 6;
    +		break;		
     	case MODEL_WL520GU:
     		reset_mask = 1 << 2;
     		ses_mask = 1 << 3;
    diff --git a/release/src/router/rc/init.c b/release/src/router/rc/init.c
    index 7c2c4a6..757dc7e 100644
    --- a/release/src/router/rc/init.c
    +++ b/release/src/router/rc/init.c
    @@ -738,7 +738,7 @@ static int init_nvram(void)
     	case MODEL_DIR320:
     		mfr = "D-Link";
     		name = "DIR-320";
    -		//	features = ?;
    +		features = SUP_SES;
     		if (nvram_match("wl0gpio0", "255"))
     		{
     			nvram_set("wl0gpio0", "8");
    diff --git a/release/src/router/shared/led.c b/release/src/router/shared/led.c
    index 7ac3e6b..0918fd1 100644
    --- a/release/src/router/shared/led.c
    +++ b/release/src/router/shared/led.c
    @@ -247,6 +247,10 @@ int led(int which, int mode)
     		if (which != LED_DIAG) return 0;
     		b = -5;	// power light
     		break;
    +	case MODEL_DIR320:
    +		if (which != LED_DIAG) return 0;
    +		b = -1;
    +		break;
     	case MODEL_WL520GU:
     		if (which != LED_DIAG) return 0;
     		b = 0;	// Invert power light as diag indicator
    
    cadteach,
    What do you mean by this question: "How do I set this router up to be able to see the printers wirelessly?" If they are wireless, network-enabled printers, it has nothing to do with the firmware on the router - follow your printer manual to set it up. If however you're connecting them to the router's USB port, then your router doesn't need to see them "wirelessly" - just follow the links from the 1st post to configure your Windows clients. The only catch is that if you have 2nd printer connected to the USB port, you'll need to run 2nd instance of p910nd printer server on the router listening on 9101 port, and configure your clients to use that port for the 2nd printer instead of default 9100.

    vyrticl,
    Glag it's resolved. Don't worry about DSS messages - they are normal. Tomato doesn't provide DSS key to dropbear, so it always uses RSA only.

    johnny2002,
    No, it's not the same hardware. The Deluxe is the only Asus model with 5365 CPU, the GP uses 4704, and GPv2 uses 5354. Support for 5365 is simply not in the firmware.
     
  82. cadteach

    cadteach Addicted to LI Member

    teddy,

    I'm sorry I wasn't more clear. I have 2 older model HP printers that are USB, and are not wireless. I am running wireless on my DSL connection, using a "2WIRE" (brand name) wireless router to connect my PC's (2 desktop, 2 laptop) to the internet. I bought the ASUS and flashed it to Tomato hoping to be able to connect these 2 USB printers to the ASUS to allow me to print from any of the PC's. I had previously only been able to print to them as shared printers attached to a PC, which required the one PC that they were connected to to always be powered on.

    So the "2WIRE" is still providing internet access to the PC's, I simply want to use the ASUS to connect to the existing network, and allow me to print from any of the printers in the house.

    What I am unsure of is the settings in Tomato to allow me to do this. In one of the settings, it is asking me which mode I should be running in, and has choices such as "Access Point", "Ethernet Bridge", "Access Point + WDS", etc. I am assuming that I don't want this set up as an access point, I am unsure if it should be a bridge or one of the other settings. I basically want it to connect to the home network, although I am assuming it doesn't get a IP address from the other router because it already has one? I am also unsure how to see the router wirelessly from the other machines.

    I have been successful in connecting one of the printers to the new ASUS router, can see the printer in the router via the webinterface, and can print to that printer from a computer connected to the ASUS via a ethernet cable.

    I am unsure how to see the new ASUS router if not connected directly to it via ethernet cable?
     
  83. teddy_bear

    teddy_bear Network Guru Member

    cadteach,
    This is much bigger question of how to configure your network in general with 2 routers connecting between each other (using wired or wireless connection - depending on your needs). The simpliest way is to bridge two routers via a network cable between 2 LAN ports of the routers, specifying a LAN address for the 2nd router outside of the 1st router DHCP range. But I suggest you search this forum, google, DD-WRT wiki etc for this, and possibly start another thread with your questions as it has very little to do with this specific mod.

    Once you configure the network so you can see the Asus router from client machines (i.e. can access the Asus Tomato web GUI by typing its IP address in the clien't web browsers), then accessing the printers should not be an issue - just use the correct IP address of the Asus router when setting up the client.
     
  84. parkhaus

    parkhaus Addicted to LI Member

    BTW, I solved the problem myself. The Transcend 2.5" external case already has a power management built-in which spins down the HDD after 10min of inactivity. No script needed. (Still, I managed to copy the script to JFFS :) not needed anymore. had about 3MB JFFS with the Extras build on my Wl-500gV2P)
     
  85. cadteach

    cadteach Addicted to LI Member

    Thanks!

    Thanks for your help. I will do that, as your are correct. Thanks again, as it really was pretty easy to flash and configure, and I was able to print to the printer via the router.

    I will be back again soon enough, with questions as to how to detect which of the two printers if connected through 1 usb port (will I have to assign a specific port for each, and how would I do that? )

    Thanks again and great job on making this easy enough for a casual user/hobbyist to implement.

    Ed
     
  86. pawlowski

    pawlowski Addicted to LI Member

    Yeah, you got right gpio settings.
    Here's led map:

    Code:
    static int dir320[]	= { -0,    -1,    4,  3,  255,  255,  255,  -5	};
    To make led on|off work right everything have to be inverted, I don't know whatever this is bug or feature.

    Buttons works great, but with your patch, diag led turned off by default, wlan led work as supposed to work, but I can't control any led, except diag, with led command.

    When i add this
    Code:
    	case MODEL_DIR320:
    		b = dir320[which];
    		break;
    I can control any led, diag led turned off by default and wlan led blinking according to wifi activity, but doesn't respond for turning off wifi.
     
  87. teddy_bear

    teddy_bear Network Guru Member

    Great, thanks for the map!

    Let's clarify what's working and what's not now:
    - before your patch the wlan led worked properly, but after the patch it stopped responding to turning wifi off;
    - diag led turned off by default with or without your patch, but you want it to be "on" by default.

    Have I misunderstood anything?
     
  88. pawlowski

    pawlowski Addicted to LI Member

    I want diag led to work as it should, if this is normal behavior -- it's ok, but in dd-wrt it was turned on all the time after boot, so i assumed it should work here that way.

    And yes, with your patch wlan led work properly, but I can't control any led except diag, with mine I can switch any led in map, but wlan led doesn't respond to turning off wifi.
     
  89. teddy_bear

    teddy_bear Network Guru Member

    Ok, try the following then, on top of previous patches:
    Code:
    static int dir320[]	= { -99,   1,     4,    3,  255,  255,  255,   -5	};
    Code:
    --- a/release/src/router/shared/led.c
    +++ b/release/src/router/shared/led.c
    @@ -207,7 +211,7 @@ int led(int which, int mode)
     	}
     
     	if (b < 0) {
    -		if (b == -99) b = 1; // -0 substitute
    +		if (b == -99) b = 0; // -0 substitute
     			else b = -b;
     	}
     	else if (mode != LED_PROBE) {
     
  90. pawlowski

    pawlowski Addicted to LI Member

    Yep, now everything works like a charm.

    Reset and SES button works. All leds work properly.
    Thank you.
     
  91. teddy_bear

    teddy_bear Network Guru Member

    Update - build 42
    • USB kernel fixes, USB hotplug code clean-up and optimization, got rid of the USB hotplug locks (patches by ray123).
    • Basic Wireless-N mode support (single band only, the only currently supported models witn N capability are WL-500W, and - via a new experimental build - RT-N16).
    • Improved support for wireless client modes (wireless eyhernet bridge and wireless client) - now it should automatically restore lost connections within 30 seconds.
    • Do not restart Samba/vsftpd on USB drives disconnect if disconnected drive didn't have any mounted partitions.
    • Proper support for buttons and leds on D-Link DIR-320 (thanks pawlowski for the help) and Asus WL-500GPv2.
    • Various Busybox fixes from trunk: ash, tar, awk, crond, grep, mount, wget.
    • MiniUPnPd updated to version 1.4 (20091222).
    • Minor fixes and code clean-up.
    Links to the firmware binaries and the git repository with sources are in the 1st post. The complete source code of this build can also be downloaded as a git snapshot in tar format.

    USB+VPN combined build is also available - based on the SgtPepperKSU' last released vpn3.4 mod and Extras version of the USB mod. USB+VPN build is untested - use at your own risk.

    And finally, separate (EXPERIMENTAL) build is available for Asus RT-N16 in the "Experimental" section of the download area (mirror) - based on build 42 of this mod, and Linux Kernel 2.6.22. This is an early beta, so please treat is as such. I started a separate thread for this with more details - to not mix it with stable USB mod.
     
  92. muratremix

    muratremix Addicted to LI Member

    Is it possible to have K2.6 builds for WL-520GU ?
     
  93. teddy_bear

    teddy_bear Network Guru Member

    muratremix,
    It's possible, yes. However it doesn't make any sense:
    - the new Broadcom wifi driver is huge, so to fit the firmware image into 4MB flash all extra features, including USB support, will have to be removed;
    - the new kernel and new wifi driver require more resources to run, so with the slower CPU and less memory of 520GU the performance of the 2.4-based firmware is much better.

    Although at some point I'll probably make a K26 build for older compatible routers with 8MB flahs/32MB RAM - such as WL-500W/GPv1/GPv2, I think only units with high-power CPU and lots of RAM will really benefit from new kernel.
     
  94. freddyspam

    freddyspam Addicted to LI Member

    Just tried it out, and it worked flawlessly. Great job!
     
  95. pawlowski

    pawlowski Addicted to LI Member

    Maybe you should add support for 2-chip flash interleave in the kernel, so people with dir-320 can use your firmware without recompiling.

    But i don't know how much jffs space this will consume.

    Code:
    Memory Technology Devices (MTD) -->
    Ram/Rom/Flash chip drivers -->
    Support 2-chip flash interleave
     
  96. Borisbme

    Borisbme Addicted to LI Member

    Hi!

    I've just flashed my Asus 520GU the new firmware (Extended version) and it's not able to start. The first LED (power) is off, the 2nd (Air) and the 3rd (WAN) is on, and the WAN LED keeps blinking (as usual). I can't access the router. I tried to unplug it and plug it back, but it didn't help. I tried to use Asus Firmware restoration utility with FW 8742 Ext, but the result is the same. Finally I restored FW 8740 Ext, and now it's working. Anybody else had problem with the latest firmware and Asus 520GU?
     
  97. gulag

    gulag Addicted to LI Member

    Asus wl-500 gP V1 Work fine.
     
  98. Dent

    Dent LI Guru Member

    I am using the newest FW 8742 (standard version though) with an Asus 520GU with no problem whatsoever.
     
  99. teddy_bear

    teddy_bear Network Guru Member

    Hmm... I thought all necessary options are already turned on in kernel config. Have you tried to load the firmware without recompiling?
    Isn't that enough: http://repo.or.cz/w/tomato.git/blob...7281db372f21:/release/src/linux/linux/.config ?
    I'm running this build (Extras) on my 520GU with no problems. I believe freddyspam (2 posts above) also runs it on 520GU.
     
  100. pawlowski

    pawlowski Addicted to LI Member

    According to this
    Code:
    CONFIG_MTD_CFI_I2=y
    is needed.

    And yes, I was trying to flash stock tomato (not your mod), and had bricked the router.
     

Share This Page