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. occamsrazor

    occamsrazor Network Guru Member

    Hi, I wasn't following this thread as I was using a WHR-G54S with no USB support, but now I have an Asus WL-500GP v2 :)
    I see there's some work going on for adding the OpenVPN GUI of SgtPepper... this is exactly what I am looking for - USB + OpenVPN. Can you tell me if there is a binary containing the OpenVPN WebGUI suitable for flashing onto this router? I can't find a link anywhere and don't have the knowledge to compile myself. Many thanks...
     
  2. teddy_bear

    teddy_bear Network Guru Member

  3. kosiko

    kosiko Addicted to LI Member

    What's the best media server?

    Hi all,

    I tried ushare & mediatomb on this mod, but seems I have the problem with watch video.

    MP3 is ok, but if I watch a video file, seems my upnp player need to download the WHOLE video file before play it, NOT really streaming video.

    Do you have other recommend for:
    1. real streaming media server
    2. better to have webgui to manage the media server

    Thank you
    Kosiko
     
  4. occamsrazor

    occamsrazor Network Guru Member

    Thanks TeddyBear (and SgtPepper)... this mod is fantastic, it has everything I want and so far seems stable. I haven't had a chance to test the VPN remotely but so far all looks good - the server is running.

    Only problem I've found so far is with FTP Server on USB disk - I get a "530 Login incorrect" error in FTP client when accessing via the LAN even though checked user/pass and it's correct, but not a big deal for me.

    One thing I miss from Thor's mod (based on Victek's I believe) was in the Overview GUI it shows some memory usage totals in more detail (cached, buffer, etc if I can recollect) and also the name of the ADSL exchange you're connected to. Again, no big deal.

    Would love to see webcam & usb modem support (have noted your links in 1st post, will play around with that when I can and also try the Optware, though that sounds a bit more complex) but guess that would only be possible for those of us with 8mb flash routers.

    Out of interest, how does one "partition/format drives in Linux native Ext2/Ext3 format or in FAT32 format directly on the router"?

    Keep up the great work, this is a really nice mod for the Asus router, and thanks for including the Absolon theme.
     
  5. occamsrazor

    occamsrazor Network Guru Member

    Just to say I'd be interested in webcam support... curious which webcam and which router you've been trying it on....
     
  6. newsfaq

    newsfaq Addicted to LI Member

  7. occamsrazor

    occamsrazor Network Guru Member

    Thanks newsfaq, I was actually trying to reply to Ray123's post but thought it was a separate thread that had got lost for a time, not a single post within this thread... was just wondering whether he'd had any more luck since his last try which didn't quite sound too successful :) Cheers.
     
  8. teddy_bear

    teddy_bear Network Guru Member

    I have no problems accessing the built-in FTP server via LAN or WAN when configured properly, and since there are no complains for a long time I assume it works for others too. You may want to try another client, and check router logs (turn on additional FTP logging using the setting in the GUI) to see if they show anything interesting.
    This is a feature of "Extras" build only - it includes a set of command line tools to do that. For other builds (including USB+VPN which is based on the USB Std) you'll need to install them separately - check the 1st post for details.
     
  9. kovacsr89

    kovacsr89 Addicted to LI Member

    usb+vpn ftp problem

    I also have problem with the ftp..

    In the USB mod work everything fine but in the USB+VPN mod I cant connect to the ftp server just in anonymus.. :S

    "530 Login incorrect"
     
  10. teddy_bear

    teddy_bear Network Guru Member

    Ok, thanks. Seems that this might be an issue with USB+VPN merged version, since it works fine in regular USB mod (just tested with v25 Ext - no problems).

    Not sure what may cause this - will take a look. I wonder if VPN mod adds some firewall rules that may affect this... But if anonymous login works (does it? please confirm), it's probably something else, not the iptables rules.
     
  11. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    It only adds firewall rules when the server/client is running. The only rules it adds are specific to the tunnel interface and one to open the external port for the server.
     
  12. kovacsr89

    kovacsr89 Addicted to LI Member

    Anonymous login is working, but the admin (root) or custom is not..
     
  13. kosiko

    kosiko Addicted to LI Member

    Nice Torrent client

    Hi Teddy,

    I tried couple torrent clients in these 2 days, the TorrentFlux looks great but I got problem and can't make it download files, the CTCS+enhanced-ctorrent is has no nice WEB UI.

    I found DCTCS from NAS 200 forum and I found this is really simple and nice, check the URL below out:

    http://yodctcs.googlepages.com/home
    http://dsctorrentcontrol.googlepages.com/gui.html (click OK without enter any uid/pwd, very nice)

    I tried to install it manually with the ipkg pkg for openwrt but failed, is there a easy way to install this component to the TOMATO USD MOD / OptWare ?

    Thanks
     
  14. teddy_bear

    teddy_bear Network Guru Member

    kovacsr89 & occamsrazor,

    Please check /etc/vsftpd.users folder on the router - it should contain files named after user logins - a separate file for each user (including "admin" if you have Super User login enabled). Also, the /etc/vsftpd.conf file should have "user_config_dir=/etc/vsftpd.users" line. If anything's not as expected there, check the output of "nvram show | grep ftp" command - the ftp_users key should include all user names with their passwords. Let me know if anything doesn't look right there.

    Does it matter whether or not VPN is started (either client or server or both)?Please confirm that you can't login even if all VPN services are stopped.
     
  15. teddy_bear

    teddy_bear Network Guru Member

    You can easily install any package that exists in Optware. OpenWRT packages however will not work as they are compiled for different kernel/uclibc versions.

    If the product you want does not exist as Optware package, you are pretty much on your own - you'll have to compile it yourself using Tomato toolchain.

    As for torrents, I do not run any torrent app on the router, and don't know much about them. Search this and other forums (try wl500g.info) for more info.
     
  16. kosiko

    kosiko Addicted to LI Member

    Thx TB.

    I found this link this afternoon and I get the rTorrent+nTorrent done, that's exactly what I need, easy to use and simply. I am highly recommend to any one who want a graphic UI torrent client. Of course, the DCTCS above looks good too. I will learn how to compile package later. Can I know if I can compile it on the router? or I have to do that one the regular linux box?

    http://wl500g.info/showpost.php?p=95497&postcount=55
     
  17. occamsrazor

    occamsrazor Network Guru Member

    1. Can't login with VPN started or stopped

    2. /etc/vsftpd.users folder does contain a file with my ftp username. Contents are:

    Code:
    dirlist_enable=yes
    download_enable=yes
    write_enable=yes
    
    3. vsftpd.conf does contain that line:

    Code:
    utf8=yes
    anonymous_enable=no
    dirmessage_enable=yes
    download_enable=no
    dirlist_enable=no
    hide_ids=yes
    syslog_enable=yes
    local_enable=yes
    local_umask=022
    chmod_enable=no
    chroot_local_user=yes
    check_shell=no
    user_config_dir=/etc/vsftpd.users
    passwd_file=/etc/vsftpd.passwd
    log_ftp_protocol=yes
    listen=yes
    listen_port=21
    background=yes
    max_clients=0
    max_per_ip=0
    idle_session_timeout=300
    use_sendfile=no
    anon_max_rate=0
    local_max_rate=0
    

    4. NVRAM dump shows following entries:

    Code:
    ftp_anonrate=0
    ftp_anonroot=
    ftp_anonymous=0
    ftp_custom=
    ftp_dirlist=0
    ftp_enable=1
    ftp_ipmax=0
    ftp_max=0
    ftp_port=21
    ftp_pubroot=/usbdisk
    ftp_pvtroot=/usbdisk
    ftp_rate=0
    ftp_staytimeout=300
    ftp_super=0
    ftp_users=[I]myftpusername[/I]<[I]myftppassword[/I]<Read/Write
    
    5. vsftpd.passwd file has these contents:

    Code:
    ftp:x:0:0:ftp:/tmp/mnt:/sbin/nologin
    admin:x:0:0:root:/:/sbin/nologin
    nobody:x:65534:65534:nobody:/tmp/mnt/:/sbin/nologin
    [I]myftpusername[/I]:$1$$jh3EQaO1QHECmgpPyloq5/:0:0:[I]myftpusername[/I]:/usbdisk:/sbin/nologin
    
    Hope that helps... off for zzzzz now
     
  18. RockT

    RockT Addicted to LI Member

    Hi guys,

    fw: 1.23.8625 vpn3

    it's maybe quite simple and probably the FTP problems are a consequence:
    - Port forwarding is non-functional
    - UPNP works

    I will check back with the non-VPN build.

    btw - thx for this great piece of SW!

    Edit:
    Ok, turns out to be a problem with the portforwarding rules src address:

    On TCP 0.0.0.0 4711 172.27.100.142 < does not work
    On TCP 4711 172.27.100.142 < works

    Thx
    Rainer
     
  19. tstrike2000

    tstrike2000 Network Guru Member

    I've been using this build for a little under a week now and everything's been working good. My only problem is the VPN dns is being used on the client side instead of the client side's DNS, but that's a just a setting I can't quite figure out on the VPN side. Everything else has been running good.
     
  20. kovacsr89

    kovacsr89 Addicted to LI Member

    vsftpd.users

    VPN not run!

    /etc/vsftpd.users -> In the directory: admin,ftp,test

    Code:
    dirlist_enable=yes
    download_enable=yes
    write_enable=yes

    /etc/vsftpd.conf

    Code:
    utf8=yes
    anon_allow_writable_root=yes
    anon_world_readable_only=no
    anon_umask=022
    anon_upload_enable=yes
    anon_mkdir_write_enable=yes
    anon_other_write_enable=yes
    dirmessage_enable=yes
    download_enable=no
    dirlist_enable=no
    hide_ids=yes
    syslog_enable=yes
    local_enable=yes
    local_umask=022
    chmod_enable=no
    chroot_local_user=yes
    check_shell=no
    user_config_dir=/etc/vsftpd.users
    passwd_file=/etc/vsftpd.passwd
    log_ftp_protocol=no
    listen=yes
    listen_port=21
    background=yes
    max_clients=0
    max_per_ip=0
    idle_session_timeout=300
    use_sendfile=no
    anon_max_rate=0
    local_max_rate=0
    

    nvram show | grep ftp

    Code:
    root@asus:/tmp/home/root# nvram show | grep ftp
    ftp_anonrate=0
    ftp_anonroot=/
    ftp_anonymous=1
    ftp_custom=
    ftp_dirlist=0
    ftp_enable=2
    ftp_ipmax=0
    ftp_max=0
    ftp_port=21
    ftp_pubroot=
    ftp_pvtroot=
    ftp_rate=0
    ftp_staytimeout=300
    ftp_super=1
    ftp_users=test<test123<Read/Write
    log_ftp=0
    nf_ftp=1

    vsftpd.passwd

    Code:
    ftp:x:0:0:ftp:/:/sbin/nologin
    admin:$1$$ayMcuU89B3uPjJhVo0mdU.:0:0:root:/:/sbin/nologin
    nobody:x:65534:65534:nobody:/tmp/mnt/:/sbin/nologin
    test:$1$$Lysi9ZQxsGPDnwDFzMz190:0:0:test:/tmp/mnt:/sbin/nologin 
     
  21. i1135t

    i1135t Network Guru Member

    I think I may know why this happens. There were times when I connect through the VPN, I could not ping my router through the VPN connection. I looked at my route statements in Windows XP. It seems that the VPN connection assigns a route statement that is invalid and was the reason why my DNS was not working perfectly. I could ping all my home network devices from the outside fine, but could not ping the router itself.

    For example, I had a setting similar to this:
    Code:
    10.1.1.1     255.255.255.255     192.168.1.1     192.168.1.1     1
    10.1.1.0     255.255.255.0       10.2.2.5        10.2.2.5        1
    So any packets trying to get to my router, 10.1.1.1, was being sent through the wrong interface and network, which explained why I could not ping my router, but could ping my other home network devices. It also explains why my DNS was not working from time to time. I'm not sure if this is an issue with OPENVPN or with the build itself? When the DNS tunnel work perfectly, the rogue route statement is not there, but when it doesn't work, the statement is there. I know I could just delete the statement, but that's beside the point.

    It would be nice if other people could confirm as well so that we will know it's not just me. I did two thorough NVRAM clears on separate occasions and reconfigured from scratch, so I don't think it's something I am doing wrong.
     
  22. teddy_bear

    teddy_bear Network Guru Member

    Update on USB+VPN merge

    Looks like the merge indeed went a little wrong last time - the vsftpd and a few other compiled binaries turned out to have different sizes from the regular USB mod - not sure why...

    Anyway, I did it all over again from scratch, this time merging with sub-branches of VPN mod instead of the main branch, as SgtPepperKSU recommended. The new version is up there - use download links in the 1st post, go to "Experimental" folder, and download tomato-1.23-ND-USB-v25-vpn3.2.rar file. Hopefully it resolves the FTP login and possibly port forwarding issues.
     
  23. dvd-guy

    dvd-guy Guest

    Is there support for USB modems? The ethernet port of my modem just died and it seems wasteful to buy another one.
     
  24. kovacsr89

    kovacsr89 Addicted to LI Member

    Now the FTP is working correctly :)
     
  25. i1135t

    i1135t Network Guru Member

    OK, looks like that is NOT the case... for some odd reason, sometimes it works and sometimes it doesn't, regardless of if the route statement is there or not. Argh, so frustrating... Well, I really liked this firmware (Teddy's latest one), so I will try to reconfigure from scratch again one more time and test it. If it fails me again, I will move onto the VPNonly build by SgtPepper and see how that goes.
     
  26. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    From a few of the different people I've attempted to help with their VPN setup, it almost seems like Windows mistreats 10.x.x.x subnets. It seems to get confused if there is more than one interface with a subnet in that space (even if they are distinct). If you do, indeed, have a 10.2.2.5 interface, try changing either its or the VPN's subnet into the 192.168.0.0/16 or 172.16.0.0/12 address spaces (of course having all subnets distinct).
     
  27. i1135t

    i1135t Network Guru Member

    Nope, I changed the VPN subnet to 172.16.0.0 255.255.0.0 and still the same effect... I will just reconfigure from scratch... thanks for suggestion though.
     
  28. i1135t

    i1135t Network Guru Member

    Hmmm, now it appears to be working properly. The only thing I did differently was that I did a manual reset on the router itself, rather than through the GUI. I guess I should have tried that a while back. Ah well, kekeke, I'm happy, for now, so thanks all for helping!!!
     
  29. occamsrazor

    occamsrazor Network Guru Member

    Only tested over LAN so far, but FTP is now working fine for me... thanks for the quick fix on that, this is really turning into a very nice mod.

    Only thing I notice is Absolon theme (think you called it USB Red) is no longer there. I imagine it's hard to keep track of all the bits and pieces in a build, but if you compile a new version at some point it would be great to have it back...
     
  30. teddy_bear

    teddy_bear Network Guru Member

    Absolon theme was part of the Extras build only. The VPN merge is based on the USB Standard build since "Extras" + VPN would not possibly fit in 4MB flash...
     
  31. occamsrazor

    occamsrazor Network Guru Member

    Hmm... could have sworn the last version of the VPN mod (the one I had problems with FTP on) had the theme... but perhaps I am mistaken. It's not a huge deal, I can load it via script from the JFFS partition...
    Appreciate what you say about 4mb limit, but an "Extras + VPN" build would be fine for those of us with the Asus WL-500GP that has 8mb flash.... though I guess hard for you to test if you don't have that model.
     
  32. kosiko

    kosiko Addicted to LI Member

    If any of you know how can I overclock the router? And what's the safety overclock range? I like to try overclock my ASUS WL500GP V2 for best USB read/write performance.

    Thank you
     
  33. shibby20

    shibby20 Network Guru Member

    v25 extras + vpn for asus wl-500gp - will be GREAT. can you build this teddy_bear?
     
  34. CBR900

    CBR900 LI Guru Member

    What is better is:
    v25 extras + VPN+ bandwidth limiter for asus wl-500gp v1

    thanks
     
  35. mactogo

    mactogo Addicted to LI Member

    Strongly agree with such a build :thumbup: I hope asus wl-500gp users soon reach "critical mass" to provide more support for these 8mb monster builds.
     
  36. occamsrazor

    occamsrazor Network Guru Member

    I was on the other side of the fence with my WHR-G54s until a week ago, but now with the WL-500GP I'd like to see the full use made of this router's 8mb flash...

    Tomato+OpenVPNGUI+PPTPVPN+SNMP+USB+IP/MAC BW Limit+Themes.... anyone? :)
     
  37. CBR900

    CBR900 LI Guru Member

    USB camera support is good also:
    Tomato+OpenVPNGUI+PPTPVPN+SNMP+USB+IP/MAC BW Limit+Themes+USB camera
     
  38. occamsrazor

    occamsrazor Network Guru Member

    "USB camera" would indeed be nice but as far as I know it isn't included in any of the existing mods... so would involve extra work and testing - not that compiling all the existing features into one big mod would be easy at all I imagine :)

    I was only including features found in existing mods which should (I think) be in the git repository. First things first, so to speak...

    If you were to add features that aren't already present, I'd list usb webcam, usb 3G modem, Bittorrent client, etc...
     
  39. occamsrazor

    occamsrazor Network Guru Member

    I've created a new thread on the subject of an all-in-one build containing multiple features for those with 8mb flash routers, so as not to clog up the comments of TeddyBear's mod... Suggest anyone with ideas or suggestions on that particular matter post there.
     
  40. kosiko

    kosiko Addicted to LI Member

    Interesting SAMBA read/write test result

    I just got the HDD docking station, put the old 120gb 3.5" HDD on it run the test, I have another 60GB 2.5" IDE HDD with enclose too, the result below is test over the G wireless network, could be must faster on my PC via LAN cable.

    The P drive is the 3.5" HDD on the new docking, the T drive is the 2.5" HDD with enclosure, their performance are basically same but the read/write performance just reverse, funny:biggrin:

    D:\SOFT\SDCARD_SPEEDTEST>sdspd -d:p -s:128 -b:32
    sdspd [-d:drive] [-s:size(M)] [-b:buffsize(K)] [-NoBuffering]

    Testing drive: [p], MaxFileSize: 128 (MB), BufferSize: 32 (KB), NoBuffering

    Write speed: 1.44 (MB/s)
    Read speed: 1.70 (MB/s)


    D:\SOFT\SDCARD_SPEEDTEST>sdspd -d:t -s:128 -b:32
    sdspd [-d:drive] [-s:size(M)] [-b:buffsize(K)] [-NoBuffering]

    Testing drive: [t], MaxFileSize: 128 (MB), BufferSize: 32 (KB), NoBuffering

    Write speed: 1.76 (MB/s)
    Read speed: 1.43 (MB/s)
     
  41. kosiko

    kosiko Addicted to LI Member

    Is this a multiple lun device?

    Hi Teddy/Ray,

    Please check the output below, I am not sure if my new hdd docking station a multiple lun device:

    -------------------------------------------------------------------------

    [root@WL500 /]$ fdisk -l

    Disk /dev/scsi/host1/bus0/target0/lun2/disc: 2045 MB, 2045247488 bytes
    47 heads, 46 sectors/track, 1847 cylinders
    Units = cylinders of 2162 * 512 = 1106944 bytes

    Device Boot Start End Blocks Id System
    /dev/scsi/host1/bus0/target0/lun2/part1 1 1848 1997188+ 6 FAT16

    Disk /dev/scsi/host2/bus0/target0/lun0/disc: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/scsi/host2/bus0/target0/lun0/part1 1 14593 117218241 83 Linux
    [root@WL500 /]$

    -------------------------------------------------------------------------

    I put 2GB SD card and 120GB SATA HDD on it. When I put the SD card into the slot, it didn't automatically mount the SD card partitions to /tmp/mnt even I have to option enabled, I also can NOT mount it from the WEBGUI. I remember I saw a post before talk about the same issue, is this able to fix? Or let me know if you have any work around.

    PS. I can manual mount it by the cmd below, after that, it show mounted on the WEBGUI:
    mount -o noatime,nodev /dev/discs/disc3/part1 /tmp/mnt/2GB_SD

    Thanks!
     
  42. teddy_bear

    teddy_bear Network Guru Member

    That's correct. There's no hotplug event generated when cards are inserted or removed - no matter whether your docking station is a multi-LUN device, or a hub. Nothing can be done about that - that's how cardreaders work in Linux.

    So when dealing with cardreaders you have to either mount partitions of your card(s) manually, or unplug and replug the whole cardreader (the docking station in your case) to fire off the hotplug event so automount can work. The same is true about unmounting - the card won't unmount automatically when you remove it - only when you unplug the reader.
     
  43. occamsrazor

    occamsrazor Network Guru Member

    Regarding speed, I get about 3MB/sec over ethernet to a rather old USB key stuck in the back of my WL-500GP
     
  44. kosiko

    kosiko Addicted to LI Member

    Thanks Teddy, I can live with that, just manually mount and umount when I use have new cards put into the docking.
     
  45. kosiko

    kosiko Addicted to LI Member

    not bad.. In my past test, I have 4000KB/S WRITE and 2900KB READ over the ethernet too, on my 2.5" HDD/enclosure mentioned above with. I believe the docking will give me 4000KB/S READ and 29XX WRITE, haha:thumbup:

    I hope 4000KB/S read is enough for HD Movies:cool:, I tested last time with 2900KB/READ case, some time it's still lag:frown:
     
  46. kosiko

    kosiko Addicted to LI Member

    Spin off?

    Teddy,

    Another question for you. My 2.5" HDD with enclosure can go to spin off mode when no access to it; but seem the 3.5" SATA on the new docking station will NOT stop spin. I remember your MOD has the software that stop the spin when the HDD is free, not sure why the HDD on the docking station will not stop spin.

    I can see more than 1 software on ipkg that provide the similar feature, if that means I need another software install to the tomato mod in order to get the HDD on the docking station go to spin off? Any way to check or trouble shoot in my case? If you need more information, please let me know and tell me how to grab it for you.

    Thank you very much

    Kosiko
     
  47. teddy_bear

    teddy_bear Network Guru Member

    The scsi-stop command was added in build 19 but it's not automatic - you have to manually run it, or write a script that will do it. Check the link to the other forum in the build 19 post - it has a sample script for automatic spin-down.

    Please note that not all drives are supported - check if scsi-stop works for you before getting through the trouble of setting up the script. The same is true about spinning up - although this is done automatically by the firmware, it doesn't work for all drives.
     
  48. kosiko

    kosiko Addicted to LI Member

    Hi TB,

    Thanks for your reply. I did test the SCSI-STOP/SCSI-START, worked for both of my HDD mentioned above.

    But I do have 2 questions:
    1. After I run scsi-stop, the HDD run into idle, but I can still run some commands on this HDD, like vi, ls, cd and rm etc on them and seems work (maybe that linux file system cash?) ; however, if I run cp to copy file on them, not working (this is what it suppose to be, as the motor is spin down). So, seems I have to manually run the scsi-start to wake the HDD up? the command like CP etc or other running applications will not able to wake the HDD up automatically?

    2. I saw this information:

    Code:
    [root@WL500 sbin]$ ipkg list|grep -i scsi
    scsi-idle - 2.4.23-2 - SCSI disks and a daemon that spins down drives when idle - kernel patch needed for spin-up
    Do you think the current kernel on the USB MOD need to patch to wake the HDD up?

    Thanks

    Kosiko
     
  49. teddy_bear

    teddy_bear Network Guru Member

    kosiko,
    The patch mentioned is only to be able to manually run scsi-start, and it's already in our kernel.

    Additionally, there's another patch already applied (backported from kernel 2.6) that should wake the drive up automatically when you're trying to access it.

    However, both of these features may not work with all drives. I have tried several USB drives that I either own or borrowed, with mixed results.
     
  50. kosiko

    kosiko Addicted to LI Member

    Thanks Teddy. My 2.5" HDD used to able to become idle before with your mod. Seems recently it won't, not sure it's due to I hook the 2nd HDD /w docking or due to I install some app from IPKG. Anyway, not a biggy, I will take time to find out more.

    Recently I found I can't run the "ipkg update" or "ipkg install", even "find" command, and I figure out it's due to the LD_LIBRARY_PATH is set as below:

    LD_LIBRARY_PATH=/opt/lib:

    After I unset this env. var., the ipkg works fine. Seems something changed the root profile:rolleyes:
     
  51. kastytis75

    kastytis75 Addicted to LI Member

    Hello, I'm using 1.23_25 version on asus wl500gu router...and have problem configure FTP server using usb.... from lan it works, but from wan no... it only works when i demilitarize 192.168.1.1 router adress...what I'm doing wrong...show me the way

    PS. Thanks for the cheap NAS solution
     
  52. occamsrazor

    occamsrazor Network Guru Member

    Are you using the very latest version? There was an FTP problem with the previous build. See here:

    http://www.linksysinfo.org/forums/showthread.php?t=60185&page=73

    Post 723 onwards...

    If you are, then (this may be obvious) have you checked your port-forwarding rules to see if there is any existing rule for FTP traffic (ports 20,21)?

    Other than that I'm not sure. It may help if you can specify exactly what kind of error comes up in the log of your FTP client.
     
  53. kastytis75

    kastytis75 Addicted to LI Member

    There is no logo...logo shows only connection time out....no errors simple time out, like there is no ftp server... but from LAN... connecting successfully

    PS. YES it is last firmware...I have installed vpn experimental too... but the same
     
  54. teddy_bear

    teddy_bear Network Guru Member

    That could mean anything ;(...
    All I can say is that FTP from WAN is working now - I'm using it regularly with v25.

    Are you sure you have enabled FTP WAN access via GUI :)?
    Is your Tomato router with FTP server connected directly to the Internet, or is it behind another NAT router?
    Can the same client get to other public FTP servers (if not - it could be a problem with firewall at your client location blocking ftp)?

    And make sure you are NOT forwarding port 21 (or whatever port you specified on FTP configuration page) to anywhere.
     
  55. mitek76

    mitek76 Addicted to LI Member

    Samba interface

    Is samba visible on both LAN and WAN interfaces by default (if enabled)?
    If yes - how to enable LAN only visibility?
    Suppose there are two possibilities - in samba configuration and in firewall settings?
    Could someone describe both with pro & cons (ex. which one is faster, takes less cpu usage)
     
  56. teddy_bear

    teddy_bear Network Guru Member

    Samba is LAN only.
     
  57. kastytis75

    kastytis75 Addicted to LI Member

    Hello,
    I am on real IP address, not behind firewall or other router
    Yes other ftp's is working
    No I have not forwarded 21 port to other ports
    From other pc on lan ftp is working locally and with wan address, when I demilitarize router IP address.
    Yes I have enabled FTP WAN access via GUI

    I have updated from official tomato to tomato_teddy_bear, because this update left setting from older firmware? Maybe this is mine fault?
     
  58. teddy_bear

    teddy_bear Network Guru Member

    Normally you should not need to reset the NVRAM if you're updading to this mod from official Tomato 1.23.
    However, if you have weird problems like this one, and if you ran out of other simple options, full NVRAM reset and manual reconfiguration is what you need to do.
    But before you do this, post the output of
    iptables -L -n
    command when FTP WAN access is enabled - maybe there's something obvious there that causes your issue.
     
  59. i1135t

    i1135t Network Guru Member

    Teddy, is it possible to incorporate the SNMP monitoring feature from Thor's build into your VPN build or would that be too difficult?
     
  60. mw1001

    mw1001 Network Guru Member

    Hi,

    I'm running v1.23.8624 -RAF ND USB Std @ WRTSL54GS.
    Is working very well, including the USB+smb.
    But I'm having a few problems with ftp. Most because of codepage (brazilian characters, lie ó, ú á etc.). I can't list in ftp any directory containing 850 characters (á, é ú etc), or even download a file with this characteristics.
    I believe the RAF's 1.23.8624 is based in v24 USB mod, right? This codepage 850 incompatibility from vsftp is fixed in v25 mod?
    There is any workaround?

    Regards and thanks in advance.
     
  61. i1135t

    i1135t Network Guru Member

    Teddy, any chance you can mod your USB (extras) and the VPN build for the people who can flash beyond the 4MB barrier? I tried to setup my USB NAS but it didn't work because it was in NTFS format and that NTFS module was not included in your current VPN build. I think it's only in your "extras" build. I have a 1TB drive and don't want to reformat.. It would be a pain in the butt, seriously.. hehe. I and others would appreciated it. Thanks and keep fighting the good fight...
     
  62. dadaniel

    dadaniel Network Guru Member

    The button/LED feature is not supported on Asus WL-500gP v2.

    Any chance of adding it?
     
  63. kramed

    kramed LI Guru Member

    Hey Teddy, add a dollar amount for each feature you are willing to implement and that way we can contribute to having that one added more quickly :p
     
  64. Seeker

    Seeker Addicted to LI Member

    I've tested different filesystems supported by this mod. Here's graph from Tomato. Oh and btw: read and write graphs were put together so they aren't in right ratio. There are numbers also to avoid confusion. So... go and reformat to ext2 if you haven't done it yet.

    [​IMG]
     
  65. lukeboy

    lukeboy Addicted to LI Member

    Problem with mounting Printer HL 2140

    Hi,
    First I have to thank to auther Teddy bear for such wonderful mod. it works better than the stock firmware. The only problem I have after trying different ways (including flash back to the original firmware) is that I can't seem to mount my brother HL2140 printer via usb port. There is no mounted device even I reboots and set different refresh time.

    Other settings are fine and internet is working. i can mount the disk. But I just can't mount the printer. It never show up on the list.

    I operate on OS X , can't even find the printer on 192.168.1.1:9100, I wonder if I missed any important step

    Thank you so much
     
  66. CsBubo

    CsBubo Addicted to LI Member

    Serial access problems

    Hi All!

    Has anyone ever tried to access this FW through the serial console?
    Because I'm having problems accessing it. When CFE boots everything seems ok, but when the FW starts, it is drawing crap on the putty window.
    Same devices, with Oleg's last FW, WL500gp-1.9.2.7-10.trx are working quiet well.
    So looking for Your input, if anyone ever succeeded. I see the kernel parameters are passed the same way, but still no good console output.
    My setting was: COM1, speed: 115200,data bits: 8 ,stop bits: 1, parity: None, flow control XON/XOFF and a WL-500G Premium V1.
    Thanks
     
  67. ghostknife

    ghostknife Addicted to LI Member

    Hmm, interesting. What device are you running and how did you test this FTP, SAMBA, other?

    Could you post some info on what ext2 speeds you get with FTP instead of via the bandwidth meter.
    I have Wl-520gu and my (640gb WD Elements) as ext2 and can't get any better than ~1600 kB/s from anything, most annoying as it's really a bit too slow to be that useful.....Oh how I wish EHCI worked, thanks ASUS!
     
  68. occamsrazor

    occamsrazor Network Guru Member

    That doesn't sound right to me.... on my Asus WL-500GPv2 with a simple USB key formatted FAT/FAT32 I was getting around 3MB/sec.... You are testing it via ethernet, not wireless, right?

    PS - Seeker - Thanks for posting the interesting tests you did....
     
  69. ghostknife

    ghostknife Addicted to LI Member

    Yep, through 5m of cable.
    But WL-500GPv2 actually has "full" USB2 support where as I understand WL-520gu doesn't, they call it "USB2 compatible"
     
  70. i1135t

    i1135t Network Guru Member

    Thanks for the info, but I already have tons of data on that drive that I don't want to transfer, reformat, then retransfer back. I also need to to be NTFS (Windows) compatible should I ever need to take it offline and communicate with Windows machines. Thanks anyways.
     
  71. Seeker

    Seeker Addicted to LI Member

    Tests were performed on a Asus WL-500g Premium (266 MHz processor, 32 MB ram) and with Samba. As throughput depends more on hardware than on software, I believe that speeds via FTP would be similar. But my file manager gave me speeds around 10% less than Tomato bw meter.

    On Wl-520gu try to monitor load and ram when transfer is in progress. Load should be 2 or less, and router shouldn't run out of ram (if only 5% ram is left, that's still ok, 0% isn't). Also you can try to use around 256 mb of swap space on your external hdd and see if it helps.

    For people who want to use MS filesystems on networking machines... there ARE good drivers for ext volumes on Windows so your HDD can be compatibile with Windows, but there AREN'T good drivers to mount ntfs on Linux. And we can also see that fat32 drivers aren't the best ones either.
     
  72. ghostknife

    ghostknife Addicted to LI Member

    Thanks, yep CPU at 2% or less and 2-3% free Ram (extras build)
    Have 512 swap available on HDD but haven't figured out how to use it yet, was waiting till I setup Optware. Think just the 520 is a bit too crippled for this NAS/FTP, looking at getting a 500gPv2

    Also for others Ext2IFS (http://www.fs-driver.org/index.html) works great, keep a small FAT partition on your external and then save the driver to that. When you need to plug into another system its available on the FAT and doesn't need a reboot to work. Performance the same over USB as NTFS.
     
  73. lukeboy

    lukeboy Addicted to LI Member

    Well
    Since I found the solution.
    I just answered my own problem.
    The only solution is to connect the printer via a hub that connect the port.
    Strangely, now the firmware can recognize the printer without problem.
     
  74. ghostknife

    ghostknife Addicted to LI Member

    Must be my day - another question.
    When I first tried to enable jjfs I got an error about incorrect size or something similar but unfortunately it's not in the log anymore cause I had to reboot, but now JJFS page says
    Total / Free Size 128.00 KB / 64.00 KB

    I'm running extras so shouldn't there only be 64KB total?
    I disabled/enabled/formated again but the error doesn't happen now, just odd size so wondering if this is a prob or not.

    Thanks
     
  75. mw1001

    mw1001 Network Guru Member

    Hi,

    Before try this mod I was running with DD-WRT whith optware + samba.
    Now, with this mod, everal files that I already have in my HDD aren't showed because of the codepage.
    The Samba configuration only have 4 options, but none of then is the right for me.
    There is any chance to support codepage ISO8859-1?

    I've try manual, but without sucess:

    Code:
    May 23 11:12:12 WRTSL54GS daemon.err nmbd[27448]: [2009/05/23 11:12:12, 0] lib/util_unistr.c:load_unicode_map(435)
    May 23 11:12:12 WRTSL54GS daemon.err nmbd[27448]:   load_unicode_map: filename /usr/codepages/unicode_map.ISO8859-1 does not exist.
    May 23 11:12:12 WRTSL54GS daemon.err smbd[27450]: [2009/05/23 11:12:12, 0] lib/util_unistr.c:load_unicode_map(435)
    May 23 11:12:12 WRTSL54GS daemon.err smbd[27450]:   load_unicode_map: filename /usr/codepages/unicode_map.ISO8859-1 does not exist.
    Regards and thanks in advance.
     
  76. CsBubo

    CsBubo Addicted to LI Member

    New Tomato v1.24 released !!

    Hi Everybody!
    Jon has released the new Tomato FW v1.24.
    The changelog isn't that long, but I suppose there is more under the hood.:)
    Hopefully Teddy will have some time soon to add His excellent mod to it.
    Have a nice day!
     
  77. trevorw

    trevorw LI Guru Member

    Hi TB,

    Just wanted to say a big thanks for doing the VPN integration - I've flashed the build on my router and it seems to be working fine. I have to do some heavy testing (especially in the VPN area) but so far everything is going smooth.
    I see that SgtPepperKSU has some nice plans (http://is.gd/D0o3) for the future wrt to VPN and I hope these will be merged into the USB extra build.

    P.S. as feature request, it would be nice to have more then 24 months of bandwidth history.

    Thanks,
     
  78. teddy_bear

    teddy_bear Network Guru Member

    mw1001,
    Since dd-wrt doesn't have built-in Samba, you were probably using Optware package. You can continue using it with this mod as well, and then everything should work for you as before.

    Unfortunately additional codepages take space (and a lot), so there's simply not enough room on the router to satisfy everybody - and still stay withing 4MB limit to be able to use it on most routers. But I believe the 4 codepages included are enough to cover most if not all european languages.
    What codepage is shown when you run "chcp" in command window in Windows? If it's not one of the 4 included, you can try either 850 or 852 to see if it works for you.

    However, if you have a drive with files written by another version of Samba, they may not be readable by this mod - it all depends on how you configured your Optware Samba. In this mod Samba is configured to use UTF8 code system on the router side, and it only does transcoding according the codepage selected when transferring files or reading directories. This allows files written by this mod to be accesible on almost any system, and be independent of the client side codepage. If you configured your Optware Samba to store files on the drive in the same codepage as on the client (ISO8859-1), then this mod won't see them correctly.

    As for FTP, it also configured to use UTF8 on the router side, but there's no support in FTP daemon to transcode the names on transfer or when reading directories. Depending on FTP client you're using, it may have the ability to do that. If so, configure it to use your local codepage on the client side, and UTF8 on the remote side.
    Again, theoretically the transcoding can be built in into the daemon (and there's actually vsftpd mod that includes it) - but that will take additional space for codepages, and IMHO is really not what FTP server should do.

    ghostknife,
    In the Extras version, there are 128K left for JFFS now. The latest JFFS mod by Ray123 reserves only 64K for internal usage, leaving 64K available. Previous versions reserved 128K for internal usage, so there was no space left at all on 4MB flash with Extras build.

    lukeboy,
    I'm using HL5240, and it works fine with or without the hub. Not sure why in your case a hub is required. It may have something to do with what you have turned on for USB support (usb 2.0, uhci, ohci)... But it probably doesn't really matter since you git it working.

    i1135t,
    NTFS support was never included in the firmware - not even into Extras build. The ntfs.o module is available separately though - you can download it using links from the 1st post (it's in the extras.tar.gz archive), store it on the router on JFFS (if there's room) or USB partition, and manually load it using insmod command.

    dadaniel,
    I'm not aware of any issues with LEDs or buttons on WL500GPv2 - as far as I know it used to work (I think someone reported it as working a while back). But I don't have this router to test myself. Have you tried to erase NVRAM to see if it fixes the issue? Can anyone else with WL500GPv2 confirm that there is (or there's not) a problem with LEDs/buttons on that router?
     
  79. teddy_bear

    teddy_bear Network Guru Member

    I have merged my mod with the official Tomato 1.24, and uploaded Standard and Extras builds 1.24.8627 into "Experimental" folder (links are in the 1st post).

    So far it's "experimental" (and only 2 most popular versions are built) because people reported different issues (see this thread) with official Tomato 1.24, and because the merge was kind of difficult and messy, and may have left something broken.

    EDIT: Jon just released an update - Tomato 1.25 - with fix for connectivity issues. I'm pulling this build off until I do the merge with official 1.25.
     
  80. ghostknife

    ghostknife Addicted to LI Member

    Thanks teddy_bear, that makes sense now.
    just coming to terms with all things Tomato at the moment and didn't fully
    understand what jjfs is actually useful for yet.

    Thanks for all the work on this great mod.
    I'll buy a beer for you when i go out friday but I'm afraid it will not
    post well, so I drink it too, sorry :)
     
  81. shibby20

    shibby20 Network Guru Member

    i`m waiting for 1.25ND USB mod extras + vpn mod for wl500gp :) this will be my favorite mod :) teddy_bear can you build this soft? and if yes, when?
     
  82. Pay87

    Pay87 Addicted to LI Member

    teddy_bear you are the best!
    I was fighting with ddwrt and openwrt for a long time, and even the special version of ddwrt wasn't able to manage qos like tomato.
    And your mod made it possible to use it with USB on my Asus WL500gP V1 :wink:
    Is there a way I can make a donation?

    One question:
    Is there a way to put mac/ip bandwith filter in it?
    I saw that in a other mod but this was not with your great usb support.
    Currently I am using the default QOS Manager with srcmac to use a low classification for the PCs that arent allowed to overload my internet connection :)
     
  83. pandora

    pandora Addicted to LI Member

    TB,

    I'm using your latest firmware and a Linksys WRTSL54GS. Until recently it has worked out great for me.

    Over the past few weeks, I had trouble with my Comcast HSI internet access. I assumed it was a problem with Comcast.

    The first time I noticed the speed problem was when it was raining. It only affected download speed, not upload. After a while it seemed to more or less semi-correct. It was never as good as it had been, but it was within Comcast spec.

    Recently DSL Reports opened a Comcast HSI Direct forum. Where you can talk directly to Comcast techs. I took advantage of this to ask about my connectivity issue.

    Comcast ran some line tests and said my modem looked good. They did a remote reconfigure of my cable modem, but even after that (and after powering off and rebooting everything) my speeds were still not good.

    Comcast asked me to directly connect a PC to my cable modem. When I did this my speeds were 12,000-14,000 kb/sec. On the same modem with the router my speeds were 200kb/sec.

    I've taken all other traffic / devices off my router (leaving only my single PC), and it is still slow.

    I'm not certain when this problem started, and I'm not certain what exactly is wrong.

    I thought it was worth mentioning in the event anyone else has a problem.

    My router is a Linksys WRTSL54GS. If you (or anyone else) has suggestions on what to check out, I'd appreciate them. Currently I'm stumped.

    I still have internet access, but it is slow as heck. I may break down and purchase one of the newer routers.

    Which is the device with memory similar to the WRTSL54GS? I'd like to keep the option for 8MB of flash available to me.

    Thanks
     
  84. teddy_bear

    teddy_bear Network Guru Member

    Update - build 28.

    • Merged with official Tomato 1.25 update.
    • Updated MiniUPnPd to the latest version 20090516.
    • Busybox updated to ver. 1.14.1.
    • FTP Server vsftpd updated to ver. 2.1.1.
    • Minor fixes.
    Links to the firmware binaries and the git repository with sources are in the 1st post. The complete sources of this build can also be downloaded as a git snapshot in tar format.

    NOTE: Some of the UPnP nvram settings have changed, so you will need to reconfigure your UPnP settings after upgrading to this build.

    USB+VPN build is not there yet - I'll do it after SgtPepperKSU merges his VPN mod with Tomato 1.25.
     
  85. ray123

    ray123 LI Guru Member

    QOS has a habit of causing me problems. If you are having any kind of speed issues, the first thing to try is to disable QOS. The 2nd thing to try is reboot your router.
     
  86. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    I've been really busy lately, but I just found some time this evening and implemented a couple of the features I wanted to get in the next release. I've got one more small one to do, and I'll make a 1.25-based release - hopefully in the next few days.
     
  87. freddyspam

    freddyspam Addicted to LI Member

    Hi TB. I hate to bother you again. I just flashed v28 from v25, and I have an issue. I cannot access the USB and NAS configuration page. Everything else seems to be accessible. That page though just hangs. The router itself is functioning including Samba and the FTP server, but none of the drives have been mounted (confirmed through telnet). I also think my mount and unmount scripts are not running. I can manually mount and umount everything. I have not tried resetting to defaults yet, but I really shouldn't have to with these types of upgrades.

    Here is my log after the update:

    Code:
    Dec 31 16:00:15 NAS syslog.info syslogd started: BusyBox v1.14.1
    Dec 31 16:00:15 NAS user.notice kernel: klogd started: BusyBox v1.14.1 (2009-05-28 00:48:42 EDT)
    Dec 31 16:00:15 NAS user.warn kernel: CPU revision is: 00029029
    Dec 31 16:00:15 NAS user.warn kernel: Primary instruction cache 16kb, linesize 16 bytes (4 ways)
    Dec 31 16:00:15 NAS user.warn kernel: Primary data cache 16kb, linesize 16 bytes (2 ways)
    Dec 31 16:00:15 NAS user.warn kernel: Linux version 2.4.20 (root@tomato) (gcc version 3.2.3 with Broadcom modifications) #2 Thu May 28 00:58:23 EDT 2009
    Dec 31 16:00:15 NAS user.warn kernel: Setting the PFC to its default value
    Dec 31 16:00:15 NAS user.warn kernel: Determined physical RAM map:
    Dec 31 16:00:15 NAS user.warn kernel:  memory: 01000000 @ 00000000 (usable)
    Dec 31 16:00:15 NAS user.warn kernel: On node 0 totalpages: 4096
    Dec 31 16:00:15 NAS user.warn kernel: zone(0): 4096 pages.
    Dec 31 16:00:15 NAS user.warn kernel: zone(1): 0 pages.
    Dec 31 16:00:15 NAS user.warn kernel: zone(2): 0 pages.
    Dec 31 16:00:15 NAS user.warn kernel: Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
    Dec 31 16:00:15 NAS user.warn kernel: CPU: BCM5354 rev 3 at 240 MHz
    Dec 31 16:00:15 NAS user.warn kernel: Calibrating delay loop... 197.83 BogoMIPS
    Dec 31 16:00:15 NAS user.info kernel: Memory: 14380k/16384k available (1414k kernel code, 2004k reserved, 108k data, 64k init, 0k highmem)
    Dec 31 16:00:15 NAS user.info kernel: Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
    Dec 31 16:00:15 NAS user.info kernel: Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
    Dec 31 16:00:15 NAS user.warn kernel: Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    Dec 31 16:00:15 NAS user.warn kernel: Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
    Dec 31 16:00:15 NAS user.warn kernel: Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Dec 31 16:00:15 NAS user.warn kernel: Checking for 'wait' instruction...  unavailable.
    Dec 31 16:00:15 NAS user.warn kernel: POSIX conformance testing by UNIFIX
    Dec 31 16:00:15 NAS user.warn kernel: PCI: no core
    Dec 31 16:00:15 NAS user.warn kernel: PCI: Fixing up bus 0
    Dec 31 16:00:15 NAS user.info kernel: Linux NET4.0 for Linux 2.4
    Dec 31 16:00:15 NAS user.info kernel: Based upon Swansea University Computer Society NET3.039
    Dec 31 16:00:15 NAS user.warn kernel: Initializing RT netlink socket
    Dec 31 16:00:15 NAS user.warn kernel: Starting kswapd
    Dec 31 16:00:15 NAS user.info kernel: devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
    Dec 31 16:00:15 NAS user.info kernel: devfs: boot_options: 0x1
    Dec 31 16:00:15 NAS user.info kernel: squashfs: version 3.0 (2006/03/15) Phillip Lougher
    Dec 31 16:00:15 NAS user.warn kernel: pty: 256 Unix98 ptys configured
    Dec 31 16:00:15 NAS user.info kernel: Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
    Dec 31 16:00:15 NAS user.info kernel: ttyS00 at 0xb8000300 (irq = 3) is a 16550A
    Dec 31 16:00:15 NAS user.info kernel: ttyS01 at 0xb8000400 (irq = 0) is a 16550A
    Dec 31 16:00:15 NAS user.warn kernel: HDLC line discipline: version $Revision: 1.1.1.4 $, maxframe=4096
    Dec 31 16:00:15 NAS user.info kernel: N_HDLC line discipline registered.
    Dec 31 16:00:15 NAS user.info kernel: PPP generic driver version 2.4.2
    Dec 31 16:00:15 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x400000 for the chip at 0x0
    Dec 31 16:00:15 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
    Dec 31 16:00:15 NAS user.debug kernel: Physically mapped flash: Found an alias at 0xc00000 for the chip at 0x0
    Dec 31 16:00:15 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
    Dec 31 16:00:15 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x1400000 for the chip at 0x0
    Dec 31 16:00:15 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
    Dec 31 16:00:15 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x1c00000 for the chip at 0x0
    Dec 31 16:00:15 NAS user.notice kernel:  Amd/Fujitsu Extended Query Table v1.1 at 0x0040
    Dec 31 16:00:15 NAS user.notice kernel: number of CFI chips: 1
    Dec 31 16:00:15 NAS user.notice kernel: Flash device: 0x400000 at 0x1c000000
    Dec 31 16:00:15 NAS user.notice kernel: Creating 5 MTD partitions on "Physically mapped flash":
    Dec 31 16:00:15 NAS user.notice kernel: 0x00000000-0x00020000 : "pmon"
    Dec 31 16:00:15 NAS user.notice kernel: 0x00020000-0x003f0000 : "linux"
    Dec 31 16:00:15 NAS user.notice kernel: 0x000cc228-0x003d0000 : "rootfs"
    Dec 31 16:00:15 NAS user.notice kernel: 0x003d0000-0x003f0000 : "jffs2"
    Dec 31 16:00:15 NAS user.notice kernel: 0x003f0000-0x00400000 : "nvram"
    Dec 31 16:00:15 NAS user.err kernel: sflash: found no supported devices
    Dec 31 16:00:15 NAS user.info kernel: NET4: Linux TCP/IP 1.0 for NET4.0
    Dec 31 16:00:15 NAS user.info kernel: IP Protocols: ICMP, UDP, TCP, IGMP
    Dec 31 16:00:15 NAS user.info kernel: IP: routing cache hash table of 16384 buckets, 128Kbytes
    Dec 31 16:00:15 NAS user.info kernel: TCP: Hash tables configured (established 1024 bind 2048)
    Dec 31 16:00:15 NAS user.info kernel: Linux IP multicast router 0.06 plus PIM-SM
    Dec 31 16:00:15 NAS user.warn kernel: ip_conntrack version 2.1 (16384 buckets, 8192 max) - 368 bytes per conntrack
    Dec 31 16:00:15 NAS user.warn kernel: ip_tables: (C) 2000-2002 Netfilter core team
    Dec 31 16:00:15 NAS user.info kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    Dec 31 16:00:15 NAS user.info kernel: NET4: Ethernet Bridge 008 for NET4.0
    Dec 31 16:00:15 NAS user.alert kernel: 802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
    Dec 31 16:00:15 NAS user.alert kernel: All bugs added by David S. Miller <davem@redhat.com>
    Dec 31 16:00:15 NAS user.warn kernel: VFS: Mounted root (squashfs filesystem) readonly.
    Dec 31 16:00:15 NAS user.info kernel: Mounted devfs on /dev
    Dec 31 16:00:15 NAS user.info kernel: Freeing unused kernel memory: 64k freed
    Dec 31 16:00:15 NAS user.warn kernel: Algorithmics/MIPS FPU Emulator v1.5
    Dec 31 16:00:15 NAS user.warn kernel: ip_conntrack_pptp version 1.9 loaded
    Dec 31 16:00:15 NAS user.warn kernel: ip_nat_pptp version 1.5 loaded
    Dec 31 16:00:15 NAS user.warn kernel: ip_conntrack_rtsp v0.01 loading
    Dec 31 16:00:15 NAS user.warn kernel: ip_nat_rtsp v0.01 loading
    Dec 31 16:00:15 NAS user.warn kernel: eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.158.4.0
    Dec 31 16:00:15 NAS user.warn kernel: eth1: Broadcom BCM4318 802.11 Wireless Controller 4.158.4.0
    Dec 31 16:00:15 NAS user.warn kernel: tomato_ct.c [May 28 2009 01:01:58]
    Dec 31 16:00:15 NAS user.info kernel: usb.c: registered new driver usbdevfs
    Dec 31 16:00:15 NAS user.info kernel: usb.c: registered new driver hub
    Dec 31 16:00:15 NAS user.warn kernel: USB20H fcr: 0x64
    Dec 31 16:00:15 NAS user.warn kernel: USB20H shim cr: 0x8f7
    Dec 31 16:00:15 NAS user.warn kernel: USB20H syn01 register : 0xfe00fe
    Dec 31 16:00:15 NAS user.warn kernel: USB20H syn03 register : 0x1
    Dec 31 16:00:15 NAS user.info kernel: ehci_hcd 00:03.1: PCI device 14e4:471a
    Dec 31 16:00:15 NAS user.info kernel: ehci_hcd 00:03.1: irq 6, pci mem b8003800
    Dec 31 16:00:15 NAS user.info kernel: usb.c: new USB bus registered, assigned bus number 1
    Dec 31 16:00:15 NAS user.warn kernel: PCI: 00:03.1 PCI cache line size set incorrectly (0 bytes) by BIOS/FW, correcting to 32
    Dec 31 16:00:15 NAS user.info kernel: ehci_hcd 00:03.1: USB 0.0 enabled, EHCI 1.00, driver 10 Dec 2004/2.4
    Dec 31 16:00:15 NAS user.info kernel: hub.c: USB hub found
    Dec 31 16:00:15 NAS user.info kernel: hub.c: 2 ports detected
    Dec 31 16:00:15 NAS user.info kernel: usb-uhci.c: $Revision: 1.275 $ time 01:01:10 May 28 2009
    Dec 31 16:00:15 NAS user.info kernel: usb-uhci.c: High bandwidth mode enabled
    Dec 31 16:00:15 NAS user.info kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
    Dec 31 16:00:15 NAS user.warn kernel: USB20H fcr: 0x64
    Dec 31 16:00:15 NAS user.warn kernel: USB20H shim cr: 0x8f7
    Dec 31 16:00:15 NAS user.warn kernel: USB20H syn01 register : 0xfe00fe
    Dec 31 16:00:15 NAS user.warn kernel: USB20H syn03 register : 0x1
    Dec 31 16:00:15 NAS user.info kernel: usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
    Dec 31 16:00:15 NAS user.info kernel: usb-ohci.c: usb-00:03.0, PCI device 14e4:471a
    Dec 31 16:00:15 NAS user.info kernel: usb.c: new USB bus registered, assigned bus number 2
    Dec 31 16:00:15 NAS user.info kernel: hub.c: USB hub found
    Dec 31 16:00:15 NAS user.info kernel: hub.c: 2 ports detected
    Dec 31 16:00:15 NAS user.info kernel: SCSI subsystem driver Revision: 1.00
    Dec 31 16:00:15 NAS user.info kernel: Initializing USB Mass Storage driver...
    Dec 31 16:00:15 NAS user.info kernel: usb.c: registered new driver usb-storage
    Dec 31 16:00:15 NAS user.info kernel: USB Mass Storage support registered.
    Dec 31 16:00:15 NAS user.info kernel: Journalled Block Device driver loaded
    Dec 31 16:00:15 NAS user.info kernel: hub.c: new USB device 00:03.0-1, assigned address 2
    Dec 31 16:00:15 NAS user.info kernel: hub.c: USB hub found
    Dec 31 16:00:15 NAS user.info kernel: hub.c: 4 ports detected
    Dec 31 16:00:15 NAS user.info kernel: usb.c: registered new driver usblp
    Dec 31 16:00:15 NAS user.info kernel: printer.c: v0.13: USB Printer Device Class driver
    Dec 31 16:00:15 NAS user.info kernel: hub.c: new USB device 00:03.0-1.3, assigned address 3
    Dec 31 16:00:15 NAS user.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
    Dec 31 16:00:15 NAS user.warn kernel:   Vendor: Generic   Model: External          Rev: 2.10
    Dec 31 16:00:15 NAS user.warn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
    Dec 31 16:00:15 NAS user.warn kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    Dec 31 16:00:15 NAS user.warn kernel: SCSI device sda: 781422768 512-byte hdwr sectors (400088 MB)
    Dec 31 16:00:15 NAS user.info kernel: Partition check:
    Dec 31 16:00:15 NAS user.info kernel:  /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    Dec 31 16:00:15 NAS user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    Dec 31 16:00:15 NAS user.debug kernel: USB Mass Storage device found at 3. Host: 0
    Dec 31 16:00:15 NAS user.info kernel: hub.c: new USB device 00:03.0-1.4, assigned address 4
    Dec 31 16:00:15 NAS user.info kernel: vlan0: dev_set_promiscuity(master, 1)
    Dec 31 16:00:15 NAS user.info kernel: device eth0 entered promiscuous mode
    Dec 31 16:00:15 NAS user.info kernel: device vlan0 entered promiscuous mode
    Dec 31 16:00:15 NAS user.info kernel: printer.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04F9 pid 0x01AB
    Dec 31 16:00:15 NAS user.info kernel: printer.c: usblp0 Device ID string [53]='MFG:Brother;CMD:HBP,BRPJL;MDL:MFC-240C;CLS:PRINTER;'
    Dec 31 16:00:15 NAS user.info kernel: scsi1 : SCSI emulation for USB Mass Storage devices
    Dec 31 16:00:15 NAS user.warn kernel:   Vendor: Brother   Model: MFC-240C          Rev: 1.00
    Dec 31 16:00:15 NAS user.warn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
    Dec 31 16:00:15 NAS user.warn kernel: Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
    Dec 31 16:00:15 NAS user.warn kernel: SCSI device sdb: 62464 512-byte hdwr sectors (32 MB)
    Dec 31 16:00:15 NAS user.warn kernel: sdb: Write Protect is off
    Dec 31 16:00:15 NAS user.info kernel:  /dev/scsi/host1/bus0/target0/lun0: p1
    Dec 31 16:00:15 NAS user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    Dec 31 16:00:15 NAS user.debug kernel: USB Mass Storage device found at 4. Host: 1
    Dec 31 16:00:15 NAS user.info kernel: device eth1 entered promiscuous mode
    Dec 31 16:00:16 NAS user.info kernel: br0: port 2(eth1) entering learning state
    Dec 31 16:00:16 NAS user.info kernel: br0: port 1(vlan0) entering learning state
    Dec 31 16:00:16 NAS user.info kernel: br0: port 2(eth1) entering forwarding state
    Dec 31 16:00:16 NAS user.info kernel: br0: topology change detected, propagating
    Dec 31 16:00:16 NAS user.info kernel: br0: port 1(vlan0) entering forwarding state
    Dec 31 16:00:16 NAS user.info kernel: br0: topology change detected, propagating
    Dec 31 16:00:16 NAS user.warn kernel: vlan1: Setting MAC address to  00 24 8c 00 a6 4a.
    Dec 31 16:00:17 NAS cron.err crond[216]: crond (busybox 1.14.1) started, log level 9
    May 29 00:57:35 NAS user.info init[1]: Tomato 1.25.8628 ND USB Ext
    May 29 00:57:35 NAS user.info init[1]: Asus WL-520GU
     
  88. teddy_bear

    teddy_bear Network Guru Member

    You're running the Ext build on 520gu - the same setup as mine - but I have no issues. Try to unplug and replug your USB drive(s). Yes - you shouldn't need to reset NVRAM - but it's still a last resort option if any other troubleshooting fails...

    I don't know exactly what's wrong - all looks ok in the log. However I noticed you have all - usb 2.0, uhci and ohci - enabled. If usb 1.1 support is required, you should activate only one - either ohci or uhci. IIRC for Asus routers it should be UHCI. Better yet - only activate usb 2.0. You only need to turn on usb 1.1 support if you have devices that do not work without it.

    Does anyone else have USB issues with the latest build that were not there before?
     
  89. Raghnall

    Raghnall Addicted to LI Member

    First off I would like to say thanks for the great firmware.

    But I have the same problem as freddyspam above. I am/was using the 520gu with the std build. I updated to v28 last night and was unable to access the USB and NAS section. A reset of the NVRAM allowed me back in, but once configured for USB 2.0 support only (none of the 1.1 options) along with all other options enabled, I was unable to access the USB an NAS page. I did try without anything plugged in, rebooted the router, unplugging and replugging the HDD, but no luck. Drive does not get mounted, checked via ssh. I downgraded back to V25 as it is more important for me to have working storage than the bleeding edge. I don't know if it is a problem with any of the other options like print support or auto mount as i didn't have time to do that much troubleshooting.
     
  90. teddy_bear

    teddy_bear Network Guru Member

    Strange... Something is definitely wrong then. You didn't have anything interesting in the logs either, did you?
    Do you have a hub connected to the router? Any usb 1.1 devices connected to that hub? Looks to me like another occurance of infamous "usb 1.1 device via usb 2.0 hub" issue - the usb support in 2.4 kernel is too sensitive to any changes in that regard...
    Can you access USB/NAS page with no (or only with some) USB devices connected?
     
  91. freddyspam

    freddyspam Addicted to LI Member

    It is only the USB support page that gets locked up apparently. Unplugging the drive gives me access back to the USB support page. Plugging the drive back in locks it up again. I get the following in my log after plugging in the drive:


    Code:
    May 29 08:39:25 NAS user.info kernel: hub.c: new USB device 00:03.1-1, assigned address 4
    May 29 08:39:25 NAS user.warn kernel:   Vendor: Generic   Model: External          Rev: 2.10
    May 29 08:39:25 NAS user.warn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
    May 29 08:39:25 NAS user.warn kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    May 29 08:39:25 NAS user.warn kernel: SCSI device sda: 781422768 512-byte hdwr sectors (400088 MB)
    May 29 08:39:25 NAS user.info kernel:  /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    May 29 08:39:25 NAS user.warn kernel: USB device connected to the SCSI subsystem
    May 29 08:39:25 NAS user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    May 29 08:39:25 NAS user.debug kernel: USB Mass Storage device found at 4. Host: 0
    May 29 08:39:25 NAS user.debug hotplug[607]: Waiting for device /proc/bus/usb/001/004 [INTERFACE=8/6/80 PRODUCT=13fd/1340/210] to settle before scanning
    With or without a hub, it makes no difference for me.
     
  92. teddy_bear

    teddy_bear Network Guru Member

    freddyspam, do you have access to the USB page with the drive attached, but without the printer connected (which is I believe, usb 1.1 printer)?
     
  93. freddyspam

    freddyspam Addicted to LI Member

    No, I removed the printer for now and am connecting the drive directly to the router with the same problem occurring. And I have disabled all 1.1 support for now.
     
  94. Raghnall

    Raghnall Addicted to LI Member

    Correct, nothing interesting in the logs.
    I am not using a hum, just an 2.5" external HDD that is USB 2.0.

    I don't have v28 on my router at the moment, but I'll save my NVRAM settings without anything enabled on USB and NAS so I can do some rapid troubleshooting without having to reconfigure/reset NVRAM every time it locks up.
     
  95. teddy_bear

    teddy_bear Network Guru Member

    Ok, apparently there's some problem with USB hotplugging and automounting with build 28. So if you didn't flash v28, don't do it yet....
    I'm working on getting the issue resolved.
     
  96. Raghnall

    Raghnall Addicted to LI Member

    Here is the log from my recent tests, or at least the part that matters.
    Code:
    Dec 31 16:00:14 Raghnall-Router user.info init[1]: Tomato 1.25.8628 ND USB Std
    Dec 31 16:00:15 Raghnall-Router user.info init[1]: Asus WL-520GU
    May 29 10:56:06 Raghnall-Router cron.err crond[216]: time disparity of 20726995 minutes detected
    May 29 10:56:19 Raghnall-Router user.info kernel: usb.c: registered new driver usbdevfs
    May 29 10:56:19 Raghnall-Router user.info kernel: usb.c: registered new driver hub
    May 29 10:56:19 Raghnall-Router user.warn kernel: USB20H fcr: 0x64
    May 29 10:56:19 Raghnall-Router user.warn kernel: USB20H shim cr: 0x8f7
    May 29 10:56:19 Raghnall-Router user.warn kernel: USB20H syn01 register : 0xfe00fe
    May 29 10:56:19 Raghnall-Router user.warn kernel: USB20H syn03 register : 0x1
    May 29 10:56:19 Raghnall-Router user.info kernel: ehci_hcd 00:03.1: PCI device 14e4:471a
    May 29 10:56:19 Raghnall-Router user.info kernel: ehci_hcd 00:03.1: irq 6, pci mem b8003800
    May 29 10:56:19 Raghnall-Router user.info kernel: usb.c: new USB bus registered, assigned bus number 1
    May 29 10:56:19 Raghnall-Router user.warn kernel: PCI: 00:03.1 PCI cache line size set incorrectly (0 bytes) by BIOS/FW, correcting to 32
    May 29 10:56:19 Raghnall-Router user.info kernel: ehci_hcd 00:03.1: USB 0.0 enabled, EHCI 1.00, driver 10 Dec 2004/2.4
    May 29 10:56:19 Raghnall-Router user.info kernel: hub.c: USB hub found
    May 29 10:56:19 Raghnall-Router user.info kernel: hub.c: 2 ports detected
    May 29 10:56:20 Raghnall-Router user.info kernel: hub.c: new USB device 00:03.1-1, assigned address 2
    May 29 10:56:20 Raghnall-Router user.warn kernel: usb.c: USB device 2 (vend/prod 0x4b4/0x6830) is not claimed by any active driver.
    May 29 10:56:20 Raghnall-Router user.debug hotplug[325]: Waiting for device /proc/bus/usb/001/002 [INTERFACE=8/6/80 PRODUCT=4b4/6830/1] to settle before scanning
    May 29 11:00:01 Raghnall-Router syslog.info root: -- MARK --
    May 29 11:00:07 Raghnall-Router user.info kernel: SCSI subsystem driver Revision: 1.00
    May 29 11:00:07 Raghnall-Router user.info kernel: Initializing USB Mass Storage driver...
    May 29 11:00:07 Raghnall-Router user.info kernel: usb.c: registered new driver usb-storage
    May 29 11:00:07 Raghnall-Router user.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
    May 29 11:00:07 Raghnall-Router user.warn kernel:   Vendor: SAMSUNG   Model: MP0402H           Rev: 0000
    May 29 11:00:07 Raghnall-Router user.warn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
    May 29 11:00:07 Raghnall-Router user.warn kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    May 29 11:00:07 Raghnall-Router user.warn kernel: SCSI device sda: 78242976 512-byte hdwr sectors (40060 MB)
    May 29 11:00:07 Raghnall-Router user.info kernel: Partition check:
    May 29 11:00:07 Raghnall-Router user.info kernel:  /dev/scsi/host0/bus0/target0/lun0: p1 p2
    May 29 11:00:07 Raghnall-Router user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    May 29 11:00:07 Raghnall-Router user.debug kernel: USB Mass Storage device found at 2. Host: 0
    May 29 11:00:07 Raghnall-Router user.info kernel: USB Mass Storage support registered.
    May 29 11:00:08 Raghnall-Router user.info kernel: Journalled Block Device driver loaded
    May 29 11:03:11 Raghnall-Router user.notice kernel: klogd: exiting
    May 29 11:03:11 Raghnall-Router syslog.info syslogd exiting
    May 29 11:03:12 Raghnall-Router syslog.info syslogd started: BusyBox v1.14.1
    May 29 11:03:12 Raghnall-Router user.notice kernel: klogd started: BusyBox v1.14.1 (2009-05-28 01:13:04 EDT)
    May 29 11:04:44 Raghnall-Router user.info kernel: usb.c: USB disconnect on device 00:03.1-1 address 2
    May 29 11:04:44 Raghnall-Router user.warn kernel: USB device disconnected from the SCSI subsystem
    May 29 11:05:34 Raghnall-Router user.info kernel: hub.c: new USB device 00:03.1-1, assigned address 3
    May 29 11:05:34 Raghnall-Router user.warn kernel:   Vendor: SAMSUNG   Model: MP0402H           Rev: 0000
    May 29 11:05:34 Raghnall-Router user.warn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
    May 29 11:05:34 Raghnall-Router user.warn kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    May 29 11:05:34 Raghnall-Router user.warn kernel: SCSI device sda: 78242976 512-byte hdwr sectors (40060 MB)
    May 29 11:05:34 Raghnall-Router user.info kernel:  /dev/scsi/host0/bus0/target0/lun0: p1 p2
    May 29 11:05:34 Raghnall-Router user.warn kernel: USB device connected to the SCSI subsystem
    May 29 11:05:34 Raghnall-Router user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    May 29 11:05:34 Raghnall-Router user.debug kernel: USB Mass Storage device found at 3. Host: 0
    May 29 11:05:34 Raghnall-Router user.debug hotplug[463]: Waiting for device /proc/bus/usb/001/003 [INTERFACE=8/6/80 PRODUCT=4b4/6830/1] to settle before scanning
    May 29 11:07:17 Raghnall-Router user.info kernel: usb.c: USB disconnect on device 00:03.1-1 address 3
    May 29 11:07:17 Raghnall-Router user.warn kernel: USB device disconnected from the SCSI subsystem
    May 29 11:09:52 Raghnall-Router user.info kernel: hub.c: new USB device 00:03.1-1, assigned address 4
    May 29 11:09:52 Raghnall-Router user.warn kernel:   Vendor: SAMSUNG   Model: MP0402H           Rev: 0000
    May 29 11:09:52 Raghnall-Router user.warn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
    May 29 11:09:52 Raghnall-Router user.warn kernel: USB device connected to the SCSI subsystem
    May 29 11:09:52 Raghnall-Router user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    May 29 11:09:52 Raghnall-Router user.debug kernel: USB Mass Storage device found at 4. Host: 0
    May 29 11:09:52 Raghnall-Router user.debug hotplug[515]: Waiting for device /proc/bus/usb/001/004 [INTERFACE=8/6/80 PRODUCT=4b4/6830/1] to settle before scanning
    I am seeing the same thing as freddyspam.
    I can enable USB 2.0 support, but once I enable file storage, it locks up. If I remove the HDD it doesn't lockup. I also noticed that the hotplug scripts never terminate. So for every plug, unplug I get 2 instances of "/sbin/hotplug usb" running.

    In my tests I tried rebooting after each change and not rebooting, hotpluging after the reboot, etc. but nothing changed the outcome. always a locked up USB storage page and an unmounted HDD. Again did not have this problem in 1.23 v25. It looks the be a hotplug issue, but it may be related to an underlaying USB issue. I have not checked if this problem occurs with mass storage turned off and printing support turned on.

    Hope this helps a little.

    P.S.
    I just did some tests with the USB printing support and the general USB support. I have no difficulties with lockups when I only have printing support enabled after a reboot. Even if I do not have USB storage enable, I still have lockups if the kernel is running [usb-storage-0] and [scsi_eh_0] processes. Also even without the processes running I still have hotplug scripts that do not terminate, but they do not seem to have an affect on the web interface lockups. With this it looks to be more of a USB storage system problem that is being manifest in the hotplug scripts.

    edit: P.P.S
    all these tests were done without even trying the auto-mount features, so it may be able to mount even if the web is locked up, but I somewhat doubt that if there are issues with the hotplug in general
     
  97. teddy_bear

    teddy_bear Network Guru Member

    Thanks. Yes, it helps. I know where it locks up - trying to figure out why...
    Please check your PM.
     
  98. pandora

    pandora Addicted to LI Member

    Ray,

    Thanks. I turned off QOS, and checked my speed tests. The problem continued.

    Then I rebooted my router (keeping QOS disabled), and the problem was resolved. It looks like QOS was doing a number on my performance.

    My concern is I hadn't enabled QOS for download. For upload my performance was normal. I'm wondering if I need to set a QOS for download as some dummy value.

    This seems like a bug in QOS to me, but one beyond any resolution in this thread.

    Thanks again for your suggestion and help.

    EDIT - I thought about it, and in my configuration there were no settings for QOS down. After setting ALL QOS down for up to 100% with QOS enabled and after a re-boot it worked fine.

    It looks like on Tomato QOS, at least with the Tomato we are using in this thread, it may be important to set QOS for down as well as up. In my case setting everything to 100% down did the trick.

    EXTRA Edit - On reviewing the problem, it is clear to me that the defaults for QOS download aren't correct. They should ALL be set to 100%, then lowered as needed by the user. My best guess at this time is QOS will throttle download, which I thought wasn't possible, but appears to have happened.

    TB, you may want to set the download QOS defaults to 100%.
     
  99. pandora

    pandora Addicted to LI Member

    TB and Ray,

    I have a suggestion. Is it possible to flash to RAM and boot as a method to test new firmware?

    This would make it possible for us all to assure new firmware worked on our routers before we flash to flash memory.

    That is to literally flash to RAM and boot from that RAM instead of booting from flash. This would seem to make it much easier to avoid creating a brick.
     
  100. ray123

    ray123 LI Guru Member

    Not really. You'd have to somehow carve out 4MB of ram, and convince the boot code to treat that as if it were ROM. Big big job.

    OTOH, I (and I'm sure TeddyBear, too) test mods to various subsystems by executing the updated programs from /cifs, ramfs (/etc & /tmp), USB drive, etc., instead of flashing a new build. That's how I did all the testing on my upgrade to the USB hotplug code, and the upgraded jffs code.

    I had probably well over 500 compiles & builds of the jffs code while doing that development. Ditto for the USB hotplug stuff. Good thing, too, because when (not "IF" --- "WHEN") the code blew up and crashed the router, it rebooted from the working version in the flash ROM. If I'd been flashing it as a complete frirmware build, I'd have had a brick many dozens of times. Also, it took only a couple of seconds to compile & load the code, vs. several minutes to download and flash firmware.
     

Share This Page