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 with kernel 2.6 (Tomato-RT)

Discussion in 'Tomato Firmware' started by teddy_bear, Jan 8, 2010.

  1. TexasFlood

    TexasFlood Network Guru Member

    Good points. I'll have to check if I'm set to US or not, I really don't know, had missed that discussion apparently. In the past I had to test channels as well for best results and had previously ended up on channel 9. However after extensive upgrades over time I had never retested this and in the meantime read that channel 1 is the least likely to suffer from microwave interference. So I tested 1 and it now worked find and also eliminated the interference I'd been experiencing from my microwave.
     
  2. though

    though Network Guru Member

    yes, use the N16!

    don't set them up as WDS, leave your main router as-is and set the 2nd to 'wireless ethernet bridge'.



     
  3. cheebster

    cheebster Addicted to LI Member

    Ok. What's the difference between using wds and the 'wireless bridge mode' ?
     
  4. ladysman

    ladysman LI Guru Member

    you lose throughput with WDS which is why i dont use it. I will find the thread you need on bridge mode. :biggrin:
     
  5. TexasFlood

    TexasFlood Network Guru Member

    I always liked WDS, never noticed the throughput loss even though it might have been happening. As most of my access it to the Internet not between boxes on my LAN, the cable modem was always the bottleneck for me anyway. That being said, I finally gave up on WDS and went to wireless ethernet bridge for stability. WDS was just getting too flakey with all the different generations of hardware & software drivers in my mix.
     
  6. though

    though Network Guru Member

    WDS is much, MUCH slower, trust me....


     
  7. ladysman

    ladysman LI Guru Member

    If you aren't streaming media, you won't notice it. Try streaming HD video....you won't like it. :wink:

    I had also read (might have even been you :biggrin: ) that said it was flaky. I think it's fllakey on the RTN16 as well. I didn't use it long enough to notice it was flakey.
     
  8. though

    though Network Guru Member

    WDS with N16's is flawless from my testing, BUT speed suffers BIG time. use the 2nd N16 as a bridge, it should be just as stable as WDS and a zillion times faster....
     
  9. ladysman

    ladysman LI Guru Member

    I remember reading something and that was it. Thanks for the clarification.:)
     
  10. teddy_bear

    teddy_bear Network Guru Member

    Please post the output of
    Code:
    cat /proc/bus/usb/devices
    command with the modem attached (but before you try to access the USB page).
    Also, I believe there's a Windows utility for these modems that allows you to change the "default" mode of the device. If so, try to set the default to "modem", and then try connecting it to the router again...
     
  11. mountain

    mountain Addicted to LI Member

    thx teddy_bear

    Rebootet - see the log:
    Code:
    / # modprobe option                                                             
    
    / # dmesg | tail -10                                                            
    vlan2: add 01:00:5e:00:00:01 mcast address to master interface                  
    scsi 0:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2    
    usb-storage: device scan complete                                               
    usbcore: registered new interface driver usbserial                              
    drivers/usb/serial/usb-serial.c: USB Serial support registered for generic      
    usbcore: registered new interface driver usbserial_generic                      
    drivers/usb/serial/usb-serial.c: USB Serial Driver core                         
    drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1)
    usbcore: registered new interface driver option                                 
    drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.2                  
    
    / # lsusb                                                                       
    Bus 001 Device 002: ID 19d2:2000                                                
    Bus 001 Device 001: ID 0000:0000                                                
    
    / # cat /proc/bus/usb/devices                                                   
                                                                                    
    T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 2               
    B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0                                  
    D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1                    
    P:  Vendor=0000 ProdID=0000 Rev= 2.06                                           
    S:  Manufacturer=Linux 2.6.22.19 ehci_hcd                                       
    S:  Product=EHCI Host Controller                                                
    S:  SerialNumber=0000:00:04.1                                                   
    C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA                                          
    I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub               
    E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms                                   
                                                                                    
    T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0               
    D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1                    
    P:  Vendor=19d2 ProdID=2000 Rev= 0.00                                           
    S:  Manufacturer=ZTE,Incorporated                                               
    S:  Product=ZTE CDMA Technologies MSM                                           
    S:  SerialNumber=P673M2TMOBLCDROM                                               
    C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=500mA                                          
    I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage       
    E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                     
    E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                     
                                                                                    
    / # usb_modeswitch -W                                                           
    Reading config file: /etc/usb-modeswitch.conf                                   
                                                                                    
     * usb-modeswitch: handle USB devices with multiple modes                       
     * Version 1.1.0 (C) Josua Dietze 2010                                          
     * Based on libusb 0.1.12                                                       
                                                                                    
     ! PLEASE REPORT NEW CONFIGURATIONS !                                           
                                                                                    
    DefaultVendor=  0x19d2                                                          
    DefaultProduct= 0x2000                                                          
    TargetVendor=   0x19d2                                                          
    TargetProduct=  0x0031                                                          
    TargetClass=    not set                                                         
                                                                                    
    DetachStorageOnly=0                                                             
    HuaweiMode=0                                                                    
    SierraMode=0                                                                    
    SonyMode=0                                                                      
    GCTMode=0                                                                       
    MessageEndpoint= not set                                                        
    MessageContent="5553424312345678000000000000061b000000030000000000000000000000" 
    NeedResponse=0                                                                  
    ResponseEndpoint= not set                                                       
    Interface=0x00                                                                  
                                                                                    
    InquireDevice enabled (default)                                                 
    Success check disabled                                                          
    System integration mode disabled                                                
                                                                                    
    libusb:error [usbi_sanitize_device] too many configurations                     
    libusb-compat error: find_busses: get_device_list failed with error -1          
    libusb-compat error: usb_find_busses: find_busses failed with error -5          
    libusb:error [usbi_sanitize_device] too many configurations                     
                                                                                    
    Looking for target devices ...                                                  
     No devices in target mode or class found                                       
    Looking for default devices ...                                                 
     No default device found. Is it connected? Bye.  
    Any ideas ?
     
  12. Lost_Animal

    Lost_Animal Addicted to LI Member

    Teddy, i also had some Broken function on ACCESS Restrictions on Beta5 u Firmware....

    I use WAN Denny roules with MAC Adresses and on Time based Schedule....

    When start the Roule its ok.... Pauses the WAN ACCESS.
    But when the DENY Period is OVER, WAN ACCESS didnt recover at all and i must to Reboot.....

    BTW, still waiting for RT-N16 Replacement......:frown:
     
  13. Isildur

    Isildur Addicted to LI Member

    teddy_bear or someone else please respond to this post.
     
  14. teddy_bear

    teddy_bear Network Guru Member

    Lost_Animal,
    Are any other time-based rules working? Or all of them do not switch off when the scheduled period ends?

    mountain,
    All looks fine in the /proc/bus/usb/devices - no idea why usb_modeswitch is failing. Try to change the default mode to "modem" as I suggested in the previous post - then you won't need the usb_modeswitch...
    Also, if you google ZTE modems, Linux and usb_modeswitch, a lot of conflicting (and interesting) info comes out. Maybe you can make something out of it. For example, this thread...

    Isildur,
    Not a bug since you're testing access to your external WAN address from your LAN computers. This is not guaranteed to work. As long as you can use your WAN address for access from WAN, there's no problem. That said, there's another bug in enabling Jumbo Frame support (will fix in the next build).

    And yes - you can install mc via Optware.

    As for your other questions, they are generic questions for any Tomato version, and are out of scope of this thread. Post them in separate thread, and maybe someone will be willing to give you step-by-step instructions (although you'd be better off searching and learning it yourself).
     
  15. bigclaw

    bigclaw Network Guru Member

    Thanks. I don't know how I missed that. Mine is Jan, 2010.

    I've successfully switched to using this new router. Everything seems to be working OK. Thanks for the mod!
     
  16. Lost_Animal

    Lost_Animal Addicted to LI Member

    Didnt tested my friend other rules than MAC ...

    But i feel that Beta2 is far best for my general usage.
    Also sometimes on beta5 after a nvram commit (Aply) my router was Blocked (Freeze)..

    I cant imagine what broken on beta5 but dont count to my opinion because my Router CPU was DEAD after a heavy dutty.
    So maybe was CPU related problems those i describe here. :frown:
     
  17. teddy_bear

    teddy_bear Network Guru Member

    Confirmed - there's apparently a problem with deleting scheduled rules.
    Did it work for you by any chance in beta2?
     
  18. Lost_Animal

    Lost_Animal Addicted to LI Member

    On Beta2 all rules was fine...:wink:
     
  19. ledan

    ledan Addicted to LI Member

    Follow-up on my issue...

    Requested RMA from the store and got another one. This second router is a lot better. Did test large file transfer again and got better results...
    Transferred a 12GB file two times at speed around 14MB/s without connection drop but just after the second transfer, the wireless signal was visible from my laptop but was unable to connect.

    Added a new heatsink and tested gain...
    Transferred a 12GB file three times at speed around 15MB/s without connection drop or wireless freeze !
    [​IMG]
    [​IMG]
     
  20. teddy_bear

    teddy_bear Network Guru Member

    Lost_Animal,
    Thanks for reporting this bug! Found and fixed it - next build will include the fix.

    ledan,
    Glad to hear your new router performs better :). What version are you running now?
    The problem with wireless disconnects during large transfers was resolved in beta05u - but even with beta02 not everyone experienced the issue. If you're still running beta02, and no longer experience disconnects, it means it depends on the hardware...
     
  21. ledan

    ledan Addicted to LI Member

    I am running beta02. It is only my opinion but I have done a lot of testing with large file transfer and I think it's been related to the hardware since the beginning for me. I have also tested with beta05 and had wireless freeze that I mentionned although I didn't experienced connection drop. I experienced connection drop with dd-wrt and asus firmware also. I also played a lot with settings without improvement.
     
  22. RobertHW

    RobertHW LI Guru Member

    installed dd-wrt and installed after that beta 5 following the instructions in topic start on a RT-N16. But it's not able to acquire an WAN ip through dhcp from my cable provider. It keeps renewing forever. I noticed from the instructions in topic start(http://www.linksysinfo.org/forums/showpost.php?p=358080&postcount=278) that I have to press the restore button but did this multiple times, multiple reboots with thorough clean nvram and without. Tried the obvious iptables -I INPUT -p udp --dport 68 -j ACCEPT killed the dhcp process, started it again. No luck either. As an first time user am I missing something obvious.?
     
  23. Lost_Animal

    Lost_Animal Addicted to LI Member

    Just TRY THIS... and report if fixed..... :wink:
     
  24. RobertHW

    RobertHW LI Guru Member

  25. Toastman

    Toastman Super Moderator Staff Member Member

    RT-N16 thrashed to death ...

    73,854 connections...

    What is the point of this? A reflection on OEM's advertising campaigns :eek:

    Today I managed to get a few people interested in uTorrent v2.0 (with uTP used to replace TCP connections). After giving them copies, I was pleased to see a sudden surge in activity on one of the routers. Looked like about 8 or more people using P2P, so I fired mine up too. I set maximum connections on that router to 100,000 and rather long conntrack timeouts, and waited. The idea was just to see what happened when the conntrack table filled up. Class E (Crawl) was used for P2P (uTP) via dest. UDP ports 1-65535.

    After a few hours:

    [​IMG]

    [​IMG]

    Just after this last shot, with less than 4MB memory left, possibly none, the router refused to respond to the GUI or telnet and did not recover. After 30 minutes I assumed it was not going to, and rebooted it.

    At all times web browsing was quite fast, test page http://touregypt.net opening in 2-3 seconds, and there was never any noticeable slowdown. The CPU Load when the router was left alone for a while was very low, but rose to 0.75 - 1.5 when asked to deliver a page such as piecharts or conntrack count.

    The incoming data was around 11-14 Mbps most of the time and outgoing around 400-480kbps. T/B v1.27.9044 MIPSR2-beta06u.01 ND USB Ext was used for the test.

    I just want to point out that with normal conntrack timeouts it would probably be impossible to reach anywhere near this number of connections, so for all intents and purposes this router is bombproof.

    Anyway, the end conclusion was - there's no real point in setting the number of connections higher on this router, it won't ever be reached anyway unless your conntrack timeouts are stupid. In general, you should leave the max. total connections at 3000-4,000. If you have a slower router, then 1000-2000 is actually much better. Following common advice to increase the limit to 8192 usually causes severe problems with slower routers. Keep the limit LOW if possible. When the limit is reached, the router can gracefully handle it instead of running out of resources and rebooting with a kernel panic.

    As you'll see, the bulk of the bandwidth was used by uTorrent DHT/UTP traffic, but actually this resulted in very little download of files. The bulk of the download was by TCP connections. Dumping DHT and UTP altogether made almost no difference in uTorrent's download speed. uTP and DHT are resource hogs, and we get best downloads when these are disabled, and our bandwidth useage is around a third :)

    FYI - one of my routers has 140 users, maybe around 20+ may be online using P2P software in the evenings. With no QOS and normal conntrack timeouts the internet is unuseable. With QOS everyone can use the web. With short conntrack settings, it becomes more responsive, and normally we have around 1000 - 1200 open connections perhaps rising to 2000 or so if very busy.

    Hope you find this interesting!

    ADDED OCTOBER 2011

    If you are a big P2P sufferer, set your conntrack timeouts to the minimum, (10 is usually the minimum) and you will immediately see that it is extremely hard to bust your router. Leave established TCP connections at 1800 or whatever. You may need assured UDP timeout of 25 plus to avoid VOIP disconnection problems if they occur. You'll probably be surprised to see that you P2P continues to download at exactly the same speed as before but now you have 350 connections instead of 3,500.
     
  26. mstombs

    mstombs Network Guru Member

    Impressive, but can anyone explain why it consumes so much memory. If it is 400 Bytes per conntrack entry, 100,000 only adds up to 40MB or is there a leak? I assume dnsmasq also has a big dns cache? Shouldn't you also increase hash sizes etc for this number of connections - or does the 2.6 kernel do this automagically
     
  27. Toastman

    Toastman Super Moderator Staff Member Member

    Hash size should be adjusted, I suppose, but I did not do anything with it for this experiment, I just wanted to see if anything broke! I think for normal use I would use set around 3000 maximum, any more is pointless, so what should the hash size be set to? The most commonly used setting is conntrack_max/8.

    Would the missing memory have been allocated to connections that have timed out, but the memory not yet recovered?
     
  28. RobertHW

    RobertHW LI Guru Member

  29. teddy_bear

    teddy_bear Network Guru Member

    It's already getting compiled - just removed from the firmware (and moved to "extras" catalog) at the last moment before building the image.
    All you need to do to is to find and comment out (or remove) the following line from the src/router/Makefile:
    Code:
    @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/ftdi_sio.*o $(PLATFORMDIR)/extras/ || true
     
  30. RobertHW

    RobertHW LI Guru Member

    thanks for the quick response. Found ftdi_sio in linux/linux-2.6/.config to be enabled so already wondered where it went. ;-) Anyhow bit of a suprise to see that the extra's were copied in the src tree instead of the src-rt tree. scp(ied) the ftdi_sio.ko module to the RT-N16 and put it on sda (stick). Insmodded fine from there just to make sure things work this way before flashing.

    usbcore: registered new interface driver usbserial
    drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
    usbcore: registered new interface driver usbserial_generic
    drivers/usb/serial/usb-serial.c: USB Serial Driver core
    drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device
    ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected
    drivers/usb/serial/ftdi_sio.c: Detected FT232BM
    usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0
    usbcore: registered new interface driver ftdi_sio
    drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver

    And I can acces the serial-usb device without issues. I was not sure if the usb ports provided enough juice but apparently they are. Only got this rt_n16 for 24 hours but amazed to see what is possible with these devices, highly configurable/customizable. Haven't explored the ipkg possibilities yet but should be fun. Thanks all for the effort and for providing this firmware and sources
     
  31. bub181

    bub181 Addicted to LI Member

    Hi Teddy_Bear,
    I was wondering if there's any chance of getting a version of the RT-N16 firmware with optware and transmission already integrated? Since we have 32mb of flash available and even with the USB and VPN modules there is still plenty of space. It would be great to have a torrent client in your mod, since the original ASUS firmware had it.
    Thanks for all your help and great work so far! I really appreciate it!
    bub
     
  32. bub181

    bub181 Addicted to LI Member

    Hi Teddy_Bear,
    I was wondering if there's any chance of getting a version of the RT-N16 firmware with optware and transmission already integrated? Since we have 32mb of flash available and even with the USB and VPN modules there is still plenty of space. It would be great to have a torrent client in your mod, since the original ASUS firmware had it.
    Thanks for all your help and great work so far! I really appreciate it!
    bub
     
  33. cariyawa

    cariyawa Addicted to LI Member

    I believe there is a reason for not integrating all the optwares. We need to have a more stable system rather than have a system overloaded with many different features + lot of bugs. Then we can always install optwares without tainting the system. Also different people use different optwares for the same thing get done. i.e. User has the option to choose what he wants instead of forcing to use a built in one. Further it saves resources too.
     
  34. Lost_Animal

    Lost_Animal Addicted to LI Member

    This is not quite right my friend.....
    It could be a special version with OPT installed for all those who want it.
    And believe me are many many people aout there who beg for this release...:wink:

    Maybe an tomato_ND_USB_OPT.trx must be created ASAP... :biggrin:
     
  35. cariyawa

    cariyawa Addicted to LI Member

    Yes. That is true..but as you said... it is better to have a special version.. rather than a single version with all the stuff
     
  36. Credo

    Credo Addicted to LI Member

  37. Lost_Animal

    Lost_Animal Addicted to LI Member

    Its Not that Simple...
    This script is fine for OLEG - ASUS firmware but on Tomato nvram and boot / shutdown / Firewall / usbmount procedures are completely different.

    I was trying to fix it but my Router DIED ..... :biggrin:

    Lets hope i will get a new replacement this week.... :frown:
     
  38. phdeez

    phdeez Addicted to LI Member

    teddy_bear: What are your thoughts of the 520gU with K2.6 & USB with no wireless?

    I'm sure this is a stupid question, but what's the biggest advantage of K2.6 over K2.4 (in your 'regular' Tomato FW thread)? Bug Fixes, or BIG Fixes?
     
  39. EricCartman

    EricCartman Addicted to LI Member

    Right now i have WRT54GL with Tomato 1.27 which I'm going to sell on Saturday and next Monday I will buy Asus RT-16N I need USB support and a Gigabit network for my NAS device.

    Q for teddy, is you version in beta or full version? and where can I download Asus RT-16N version of your firmware???


    Thank you so much on your time its greatly appropriated you guys are doing great work here :)

    LINUX rulez
     
  40. though

    though Network Guru Member

    read the 1st post!

     
  41. 56kb

    56kb Addicted to LI Member

    +1 I'm sure we can remove which ever package we don't need.
     
  42. bub181

    bub181 Addicted to LI Member

    Yeah, I think it would be a great idea to have a special version with optware and transmission already integrated into the firmware. We already have versions for VPN, USB, no USB, lite, standard, extras, etc.

    I just think that the majority of people that own one of these routers have bought it to do P2P and torrents. So I'm sure the majority of people would like that functionality built-in. Plus now that the RT-N16 has 32mb of flash and 128mb of RAM there is no issue in installing and running those programs on the router.

    I know it will take time and effort to make a version with this feature, but I think it will be very useful. Just imagine that all you would have to do to download a torrent is plug in a USB memory stick with a .torrent file on it and then transmission which is already installed on the router can start downloading the torrent onto the USB stick straight away. Then when it is done, all you have to do is unplug the USB stick and plug it into your computer to access the file.

    Just some ideas...

    bub
     
  43. Catalin

    Catalin Addicted to LI Member

  44. Lost_Animal

    Lost_Animal Addicted to LI Member


    LOL..... :biggrin:

    This is NOT a COMMON problem.
    This is an exception and probably my router was defective on arrival.

    Asus RT-N16 is still a nice product and very popular, and Transmission is NOT the KIILER app who will kill our routers....:biggrin:

    My friends router are downloading Torrents via transmission since first boot for over a month now and still are Alive.

    So Dont stay confused,,, :wink:
     
  45. Credo

    Credo Addicted to LI Member

    how to connect webcam to Tomato?
    is there a manual?
     
  46. myersw

    myersw Network Guru Member

    Check the first page of this thread. Will see everything you want to know. --bill
     
  47. rhester72

    rhester72 Network Guru Member

    teddy_bear,

    You are no longer welcome in our home - because of your amazing work, I have stuck my toe in the water (by upgrading my 54GL - never thought I'd see a 2.6 kernel on it!) and decided to dive right in (by ordering a RT-N16). As my wife has decided I am going to spend entirely too much time and money on this project, and that you're nuts for even having come this far (and thus I am as well by extension/association), your open dinner invitation has been revoked. ;)

    I'll be picking up the toolchain and such in the next few days and hope to be in a position to actively test and help out soon.

    Any word from Jon on all of this? Having 2.6 available across the spectrum (minus those devices that don't grok ND, of course, but to call those "legacy" would be charitable at this point) is *huge* in terms of future opportunities.

    Rodney

    P.S.: OK, maybe she'll feed you, but it'll likely be McDonald's *LOL* Congrats again on the amazing results thus far! This is something I *really* wanted to work on a year ago but could not muster the time or energy, because quite frankly, I would have bet against it being made to work. Great job!
     
  48. rhester72

    rhester72 Network Guru Member

    Seems maybe Vegas should be taken off the QoS web GUI page:

    charon:/proc/sys/net/ipv4# cat tcp_allowed_congestion_control
    reno

    (And I would not be at all sad to see it go :)

    Rodney
     
  49. though

    though Network Guru Member

    Teddy or Anyone else in the know--

    my buddy wants to switch from DD-WRT to Tomato and has this question:

    How about if your DHCP server is on a different subnet and the router connects to that subnet through Openvpn? - I did this with dd-wrt by using dhcp-fwd to forward dhcp requests through the vpn connection to the main dhcp server. I notice however dhcpfwd is not in the tomato vpn firmware I have.. Anyone know what my options are?
     
  50. rhester72

    rhester72 Network Guru Member

    There is no pragmatic means of accomplishing this without either dhcp-fwd or dhcrelay. Either should be reasonably trivial to compile with the toolchain.

    Rodney
     
  51. though

    though Network Guru Member

    thanks rodney. can you or someone explain to him how to accomplish this? he's pretty bright with this sort of thing...


     
  52. jnappert

    jnappert LI Guru Member

    I tested beta05 (Release1) on my ASUS WL500gp v1. After i did a nvram-reset it works stable with all connected USB devices (250GB harddrive with ext3 fs and swap partition and USB stick with ext2 fs with optware packages).

    There are two little things i noticed:

    - WAN connection (PPPOE) is established (Status connected, dnsmasq with no errors, dns servers are there) but Internet is not accessible (nothing special on log). A cold boot solves the problem immediately or a "service wan restart" in most cases.
    - My 7 WDS-Routers run rock solid using "WPA/WPA2 AES" with vanilla Tomato ND. BTW vanilla ND-Tomato 1.28 beta is the first version to establish the link reliable. All former versions needed in most cases one or two reboots.
    -> The teddy_bear USB 2.6 mod (beta05) gets only connected to these routers using "WPA AES", "WPA/WPA2 AES" doesnt work at all for WDS-Links.

    If a can help with more infos - please let me know. Keep on the good work - never thought i would see kernel 2.6 on my ASUS.
     
  53. chriswieringa

    chriswieringa Addicted to LI Member

    teddy_bear,

    Awesome job getting this ported to the Asus RT-N16. I just got mine yesterday to upgrade from a WRT54GL Tomato 1.27ND, and got beta5 installed on it no problem. After re-doing all my settings, things look to be going pretty well.

    One issue, although very minor, I have been saving off my bandwidth usage to a CIFS share on my local network. I re-setup everything just as I had it on my old WRT54GL, pointed to the same share, but it does not see/use the statistics that are stored there (it did mount correctly). Is there an incompatibility between stats stored from a WRT54GL Tomato 1.27 being imported into a RT-N16 beta5? Again, a minor issue, but I like seeing a several years of bandwidth usage.
     
  54. rhester72

    rhester72 Network Guru Member

    I had the same issue at first on my WRT54GLs, a power cycle on both solved the issue (for WPA2 AES, I didn't try mixed-mode WPA/WPA2 as I don't need that in my environment).

    Rodney
     
  55. marumari

    marumari Addicted to LI Member

    Yeah, I think it's come up in the thread a couple times now that WPA/WPA2 does not work for WDS - it took me hours before I figured out that was a problem with my own routers.

    Either WPA or WPA2 alone work fine, however - just make sure to power cycle your routers if you're using WDS and you make network changes, as WDS links have trouble reconnecting except on startup (at least for me).

    WPA + TKIP has already shown signs of weakness; I just go straight out WPA2 Personal + AES as my only allowed protocol, and everything seems to function properly (except the DS and PSP).
     
  56. teddy_bear

    teddy_bear Network Guru Member

    Great! I'd be happy to get help from a developer, especially as experienced as you - I don't have enough time to even address all the current problems/issues myself, let alone new features and enhancements. In exchange I'm willing to forget about revoked dining invitation ;)... ray123 is helping with K24 builds from time to time, but of course the more the better.
    Jon always responded to all patches/fixes I sent to him, but he tends to ignore emails about kernel updates and N-mode support ;).
    Actually, Vegas "works" (well, at least it's getting activated) when you enable it in the GUI, reno is just the default. Whether or not it makes any sense to have it is a separate question - it probably doesn't but for now I left it up to Jon to remove it.
    Yep - WPA/WPA2 mixed security doesn't work with WDS now. The question came up a few times already (maybe I need to add this info to the 1st post) - it appears to be a bug in the new wireless driver (activating the WPA/WPA2 causes kernel oops). Either WPA2 or WPA work fine though.
    Tomato generates unique name for the bandwidth file for each router. Take a look at your syslog - it should have messages saying something like "Can't open <filename>, still trying...". Rename your old bandwidth file to the name found in the log, and restart the router - it will pick it up then.
     
  57. ladysman

    ladysman LI Guru Member

    So far, i've had pretty good luck with all versions that TB has posted. I still get occasional wireless "freakouts" where the connection drops for a minute or two but immediately comes right back. I've done everything I can to narrow it down to something on my network but honestly it happens more when there is no activity via wireless. I should note that I stream via wireless 50-100GBs of data a day and haven't had one issue (trust me, I would know, my wife would yell at me). :)

    The other thing is I have an Epson R340 printer and it works fine on windows, however, I can't get it to connect to my iMac for the life of me. Any ideas on this on?
     
  58. rhester72

    rhester72 Network Guru Member

    Has anyone had any luck cross-compiling with this toolchain on 64-bit Linux? My Ubuntu Server 9.10 install seems to be having some issues with mtd-abi, wanted to see if anyone else had success before I dig further.

    Rodney
     
  59. teddy_bear

    teddy_bear Network Guru Member

    Rodney - are you trying to use the compiled toolchain from git?
    Or do you have issues with rebuilding the toolchain?
     
  60. mstombs

    mstombs Network Guru Member

    I'm not quite up-to-date but have been using the Git 32-bit toolchain on Ubuntu 9.10 64 bit. I did compile the slightly older Asus toolchain as native 64 bit, but haven't tried the git version. I have found that Ubuntu 9.10 works better with dash rather than bash so can't be sure right now which one my system was set to... but I did also have a problem earlier in this thread with mtd.c - that was my bad trying to build the 2.4 kernel with 2.6 toolchain...
     
  61. rhester72

    rhester72 Network Guru Member

    I've switched to using the git toolchain for now and all is well, thanks. This is a new development VM and I was definitely missing some boneheaded dependencies. =)

    Rodney
     
  62. Toastman

    Toastman Super Moderator Staff Member Member

    Can anyone offer some help? I can't download the RT snapshot from repository, seems to timeout before the download begins - the USB branch is smaller and is OK. So I am trying to use a local git.

    git clone git://repo.or.cz/tomato.git /root/tomato.git produces the following:

    remote: Counting objects: 113885, done.
    remote: Compressing objects: 100% (63961/63961), done.
    remote: Total 113885 (delta 46196), reused 113761 (delta 46084)
    Receiving objects: 100% (113885/113885), 370.16 MiB | 507 KiB/s, done.
    Resolving deltas: 100% (46196/46196), done.
    warning: remote HEAD refers to nonexistent ref, unable to checkout.

    And the local git seems to be unuseable.

    EDIT: A 4th retry has finally produced a tomato tree in the correct directory. Maybe it's worked this time, but I still get the message "warning: remote HEAD refers to nonexistent ref, unable to checkout"

    Is this going to be a problem?
     
  63. teddy_bear

    teddy_bear Network Guru Member

    I suppose it could have happened because I just recreated the head - possibly after you started cloning the repo, and before it's finished.
    If that's the case, you may need to clone it again :(. But first try "git fetch" - maybe that will resolve the issue - and then "git checkout tomato-RT".

    EDIT: Just saw your last edit ;). Try "fetch" - I believe it should update the head and get rid of the warning.
     
  64. Toastman

    Toastman Super Moderator Staff Member Member

    Tried that, it worked. I just did git checkout -b tomato-RT origin/tomato-RT and have a local tree that does something. Thanks!
     
  65. MarcelE

    MarcelE Addicted to LI Member

    Just wanted to say that all Test versions work great.
    I have a WNR3500L and USB and Samba is working great.
    I had some problems though streaming a movie with my ubuntu 64bit and xbmc and it seems it has nothing to do with teddy's firmware. If you have an intel wireless card (mine is a iwlagn 5100) some of them have problems with wpa2/aes.
    After disconnect when you do dmesg | grep error you get a iwlagn microcode error.
    Connection is randomly lost. Chased it back to a problem with wpa2. When adjusted to wpa everything is working smooth again.
    Anybody else ever came across this? (and possibly a solution...would like to use wpa2).
     
  66. teddy_bear

    teddy_bear Network Guru Member

    Usually WPA2+AES is the combination that works best for most devices. But with Intel cards you never know :mad:...
    Some of the Intel cards only work with 20MHz bandwidth - have you tried that? And updating the driver to the latest?
     
  67. teddy_bear

    teddy_bear Network Guru Member

    By the way, what builds have you tried? If it was beta06u.03 or beta06u.04 - how do the LEDs behave in these builds on 3500L? Does the power led change color to green after the router boots up? Or still stays orange? Does WPS led blink while you press the WPS/SES button? Anything weird about the leds?
     
  68. 56kb

    56kb Addicted to LI Member

    According to wl500g.info
    WPA+TKIP is prohibited by 802.11n final.

    wpa+tkip/aes works fine with 802.11b/g
    wpa+aes works fine with 802.11n
    wpa2+tkip/aes doesn't work yet
     
  69. teddy_bear

    teddy_bear Network Guru Member

    Yep. And it's already disabled in this firmware for N-mode.
    What do you mean? Worked for me just fine... That said, I'm now using wpa2+aes only, no tkip.
     
  70. phdeez

    phdeez Addicted to LI Member

    teddy_bear: Is it possible to produce a firmware for the 520gu that does not include the wireless driver but does include USB drivers with K2.6?
     
  71. 56kb

    56kb Addicted to LI Member

    deleted duplicate
     
  72. 56kb

    56kb Addicted to LI Member

    It is works on Oleg rtn-r
     
  73. teddy_bear

    teddy_bear Network Guru Member

    phdeez,
    There's not much sense in using kernel 2.6 builds on 520GU with only 16MB of RAM and relatively slow CPU. And I definitely won't be making any builds without wireless driver. However, I will make a MIPSR1 USB Lite build next time which will fit into 4MB flash, and you'll be able to flash your 520GU with it if you want.

    56kb,
    I don't understand what point you're trying to make... Is something not working for you the way you expect?
     
  74. maurer

    maurer LI Guru Member

    Teddy_bear
    He wanted to say that wpa2+aes is not working only for rt-n oleg version - the one from code.google.com/p/wl500g/.
    on your fw (tomato rt) there is no problem with wpa2+aes.
     
  75. greenythebeast

    greenythebeast LI Guru Member

    teddy_bear,

    Did you ever figure out what the problem is with WL-500gPv2 and USB?
     
  76. MarcelE

    MarcelE Addicted to LI Member

    Yes I noticed with the older beta's that all leds were orange but everything functioned so I didn't gave it any attention. The leds are are okay now.
    Power on is orange, when wan/internet is found it becomes green and wireless is blue. WPS blinks when you keep it pressed, when released it blinks one time more and then stays on.
    I'll test some more with wpa2 (as I would like to use that but as you said with intel you never know).
    I'm using beta06u.04.
     
  77. MarcelE

    MarcelE Addicted to LI Member

    Yes I noticed with the older beta's that all leds were orange but everything functioned so I didn't gave it any attention. The leds are are okay now.
    Power on is orange, when wan/internet is found it becomes green and wireless is blue. WPS blinks when you keep it pressed, when released it blinks one time more and then stays on.
    I'll test some more with wpa2 (as I would like to use that but as you said with intel you never know).
    I'm using beta06u.04.
     
  78. MarcelE

    MarcelE Addicted to LI Member

    Yes I noticed with the older beta's that all leds were orange but everything functioned so I didn't gave it any attention. The leds are are okay now.
    Power on is orange, when wan/internet is found it becomes green and wireless is blue. WPS blinks when you keep it pressed, when released it blinks one time more and then stays on.
    I'll test some more with wpa2 (as I would like to use that but as you said with intel you never know).
    I'm using beta06u.04.
     
  79. MarcelE

    MarcelE Addicted to LI Member

    sorry for the same messages but I got a database error.
    Lots of times this forum is not reachable (server busy or internal database error).
    Hope this comes through once.
     
  80. teddy_bear

    teddy_bear Network Guru Member

    Yep. It's fixed in git, and the next build will include the fix.
     
  81. phdeez

    phdeez Addicted to LI Member

    As always, thank you. All valid points, and honestly if I would have investigated a little more and realized the RT-N16 was such a powerhouse I would have gone with it instead. I just happened to find a good deal on the 520gu...

    Only reason I asked for a non-wireless build is b/c I figured it would free up enough room to put the full usb 2.0 drivers in... that and in my particular setup, wireless is disabled anyhow (using another AP in a better location in my house)- but I realize that is probably not the case for most of the users...
     
  82. soldier

    soldier Addicted to LI Member

    Hi there
    Just want to add my part of the story with beta05 and RT-N16. My wireless card doesn't connect any more no matter what settings I try and I think I tried everything. Other thing seems to work fine. I switched back to beta02 and my WiFi works again. I already mention somewhere in the forum about some issues with connection speed (it is N capable card). Hopefully another version will fix my problem, until then I'm staying with beta02.
     
  83. Edrikk

    Edrikk Network Guru Member

    Wrt610nv2

    Hi Teddy_Bear,

    Any chance that you (or anyone else) has reported success on the WRT610Nv2?

    cpuinfo for this router gives:

    Code:
    system type             : Broadcom BCM4716 chip rev 1
    processor               : 0
    cpu model               : MIPS 74K V4.0
    BogoMIPS                : 239.20
    wait instruction        : no
    microsecond timers      : yes
    tlb_entries             : 64
    extra interrupt vector  : no
    hardware watchpoint     : yes
    ASEs implemented        : mips16 dsp
    shadow register sets    : 1
    VCED exceptions         : not available
    VCEI exceptions         : not available
    
     
  84. prito

    prito Addicted to LI Member

    I have the latest running on my RT-16. I want to add some extra Linux packages and tools. NMAP is one, Lynx is another. I would also like to have man pages for the tools. Is there anyway to get this done? Also, I would like to disallow root login for ssh and create a user to login with. Lastly, how do I configure bit torrent downloads for the router itself?
     
  85. mstombs

    mstombs Network Guru Member

    I see I'm not quite up to date with Git - but wanted to feedback that the script you provide to build the toolchain worked fine first time on my PC:, file reports

    Code:
    opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/mipsel-linux-uclibc-gcc-4.2.4: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
    so, THANKS, I now have a native 64 bit toolchain for your code that seems to work...
     
  86. teddy_bear

    teddy_bear Network Guru Member

  87. MarcelE

    MarcelE Addicted to LI Member

    Well it seems I hurraid to soon as it also got disconnected with wpa.
    I changed it back to wpa2/aes as I wanted the best security (as wpa didn't seem the answer).
    I digged a little deeper and dmesg | grep iwlagn (or put in your wireless card) gave me a message that I really should use API V2. Seems it used API V1 (this api is used out-of-the-box so I guess a lot of people should have this).
    The API V2 was in a folder level up so I did a symlink to the right folder and so far no problems.
    In my case it was: sudo ln -s /lib/firmware/iwlwifi-5000-2.ucode /lib/firmware/2.6.31-19-generic/lbm-iwlwifi-5000-2.ucode

    Any way, it's got nothing to do with Tomato but I just thought I'd share.
     
  88. Rasky

    Rasky Addicted to LI Member

    Just install optware, after which is just a matter of "ipkg install lynx nmap".
     
  89. prito

    prito Addicted to LI Member

    Thanks, is there a guide for this build do it? I'm totally new to these router firmwares.
     
  90. stallmen

    stallmen Addicted to LI Member

    Just installed this build on a WNR3500L. It's working very well. Thank you for the hard work teddy_bear!
     
  91. KyleChen

    KyleChen Addicted to LI Member

    Prito: google dd-wrt and optware. there is a good guide for optware on dd's site.


    Can anyone please figure out a way to set up Qos for router itself. N16 is powerful and running torrents/web/ftp server, need Qos very much. I tried to put "192.168.1.1", router's Lan Mac, Wan Mac, Wl Mac into Qos Classification, none of them works.

    Is it possible that set a word e.g."Localhost" in the Qos Classification to representing router itself, or something like that. Work out a way to define the router itself in the Qos from Web interface?
     
  92. jnappert

    jnappert LI Guru Member

    Did some more testing concerning this: This happens if RIPv1 & v2 protocol is enabled für WAN/LAN. I some cases the default route in routing table to ppp0 disappears/is not set.

    @TeddyBear: Since i try to adapt/optimize squid 3.0stable24 (optware) to kernel 2.6, could you tell me if epoll-functionality is available in kernel 2.6.22.19?
     
  93. Catalin

    Catalin Addicted to LI Member

    My RT-N16 is running on 1.27.9044 MIPSR2-beta07 ND USB Ext for a few hours already, no problems so far. :) Thanks Teddy Bear.
     
  94. Rasky

    Rasky Addicted to LI Member

    Yes: a guide is linked in the first post of the general Tomato ND USB thread (not this specific to kernel 2.6).

    Basically, you will need to decide a storage (either the internal JFFS partition made on the free space in the flash, but it gets reformatted at each firmware update so you always need backups; or an external USB key), mount it as /opt (ext2 suggested for highest speed) and run an optware bootstrap script. The router firmware is already configured to find stuff in /opt/bin and /opt/sbin, so whatever you install there through the optware package manager (ipk) will be readily available. You can even install complete versions of builtin commands (eg: a full blown ps, etc.) and they will shadow the original ones, to your pleasure.
     
  95. cariyawa

    cariyawa Addicted to LI Member

    Just flashed beta07. I didn't have that WAN IP problem which was in earlier versions. Once the router was restarted, it got a WAN IP automatically. Thanks T.B.:biggrin:
     
  96. pandora

    pandora Addicted to LI Member

    Teddy Bear,
    Thanks for this update, I purchased the necessary router and overall its very nice.

    I'm having a significant issue with access restrictions ...

    I set my kids up to have internet until 8PM, after that it goes off.

    When they get home, just about every day, I'm told they have no internet access. I block their access mostly by IP, but one is by IP and a MAC address. It doesn't matter which method is used, all have the same issue.

    Without making any change, just saving the same access restriction on ANY of my access restrictions and the kids have appropriate access. It always turns off, the problem is it doesn't turn on.

    I'm uncertain what the problem is. This worked for me with the prior non 2.6 version. I know you are busy, and this is probably going to be near the bottom of your pile, but if you wouldn't mind when you get a chance please take a look.

    Thanks
     
  97. teddy_bear

    teddy_bear Network Guru Member

    jnappert,
    I do not have PPPoE, and do not use RIP v1 & v2... But since you're having routing issues only when RIPv1 & v2 protocol is enabled, I suppose it's a problem with Zebra daemon. The version of Zebra used by Tomato - 0.92a - is very old - from 2002. There're several updates since then - one of them includes "Fix route-map problem". There's also a new active fork of Zebra called Quagga...
    Maybe we just need to update the RIP v1/v2 software. Do you have any experience with Quagga?

    As for the epoll, the kernel is compiled with epoll enabled:
    CONFIG_EPOLL=y.

    pandora,
    Yes, there was a bug in scheduled access restrictions (reported here) preveting them from being deactivated. Update to beta07 - it's fixed now.
     
  98. greenythebeast

    greenythebeast LI Guru Member

    teddy_bear,

    Having trouble mounting my USB drive to /opt. In the 2.4 firmware the USB drive was labeled as such /dev/discs/disc0/part1 and I could use the following Init script to mount it to /opt:

    sleep 3
    mount /dev/discs/disc0/part1 /opt
    sleep 1
    swapon /dev/discs/disc0/part2

    But in the 2.6 firmware the USB drive is labeled /dev/sda1 and when I replace that in the script it doesn't work. When I do a manual command through telnet such as:

    mount /dev/sda1 /opt
    swapon /dev/sda2

    It works fine. But when I do the exact same script in the Init section it doesn't work. Perhaps there is something wrong with the Init section?
     
  99. teddy_bear

    teddy_bear Network Guru Member

    greenythebeast,
    Do not use Init script for mounting! It may work (but in kernel 2.6 you'll have to use much longer delay - say 10 secs or more instead of 3) - but it's a bad idea anyway.
    The proper way - which will work universally across 2.4 and 2.6 builds - is to label the partition, add an entry to /etc/fstab, and let it auto-mount by label. The same for swap - label it, and use an fstab entry.

    Search the main USB mod thread, and the transmission thread for my and ray123' posts (and google for general info) about fstab - you will find more details there.
     
  100. peyton

    peyton LI Guru Member

    Great thanks you ! :)
     

Share This Page