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

    DCX2 Addicted to LI Member

    Hello again. I tried to hack it with sed and cut, but I'm not sure it would have really worked too well, and it was a messy. Then I tried to copy awk from my netbook's ubuntu over to the jffs, but that didn't work either. So I just upgraded to the Extra package.

    I forgot to chmod, and got permission denied when I tried to run the script. I think that if you run the script from a telnet session in the background, the script stops running when you close the session, so I had to use the system menu in the web GUI to start it without rebooting. (I also put it in the init script)

    Here's the final script that I used. I'm not sure why I need to call start after calling stop, or if it's a quirk specific to my enclosure, so if others want to use this script, I recommend testing scsi-stop and scsi-start together first.

    Code:
    #!/bin/sh
    if /usr/bin/[ $# -ne 1 ]; then
            /bin/echo 1>&2 "Usage: $0 <device>"
            exit 1
    fi
    
    PERIOD=30
    BOUNDARY=600
    SCSISTOP=scsi-stop
    SCSISTART=scsi-start
    LOGFILE=/tmp/scsi-stop.log
    
    searchstr="disk_io:"
    devaddr="(`/bin/ls -l $1 | /usr/bin/awk '{print($5 int($6/16))}'`)"
    
    str=`/bin/grep "$searchstr" /proc/stat | devaddr="$devaddr" /usr/bin/awk -v 'RS= |\n' -F : '{ if($1==ENVIRON["devaddr"]) print($2) }'`
    cooltime=0
    stopped=0
    
    while true; do
            /bin/sleep $PERIOD
            newstr=`/bin/grep "$searchstr" /proc/stat | devaddr="$devaddr" /usr/bin/awk -v 'RS= |\n' -F : '{ if($1==ENVIRON["devaddr"]) print($2) }'`
            if /usr/bin/[ "$newstr" = "$str" ]; then
                    cooltime=$(($cooltime + $PERIOD))
                    if /usr/bin/[ $cooltime -ge $BOUNDARY -a $stopped -eq 0 ]; then
                            $SCSISTOP $1
                            $SCSISTART $1
                            time=`/bin/date '+%b %e %H:%M:%S'`
                            /bin/echo "$time: Cooled down..." >> $LOGFILE
                            stopped=1
                    fi
            else
                    if /usr/bin/[ $cooltime -ne 0 ]; then
                            time=`/bin/date '+%b %e %H:%M:%S'`
                            /bin/echo "$time: Disk first used after $cooltime seconds" >> $LOGFILE
                    fi
                    cooltime=0
                    str=$newstr
                    stopped=0
            fi
    done
     
  2. teddy_bear

    teddy_bear Network Guru Member

    DCX2,
    Thanks for sharing your script with us - I linked it from the 1st post.
     
  3. teddy_bear

    teddy_bear Network Guru Member

    Update - build 37

    Bug fix release only. I restrained myself from making any more changes ;) - just trying to work out any remaining issues after kernel update.
    • Fixed DDNS updates not working when using secure SSL connection (broken in the last v36 build).
    • Fixed some wirelesss connectivity issues for "Wireless Client" and "Wireless Bridge" modes.
    • Fixed auto-remount of all USB partitions upon services restarts (i.e. when some settings are changed via GUI), auto-mount on reboots should be more reliable.
    • FTP Server vsftpd updated to ver. 2.2.1.
    Links to the firmware binaries and the git repository with sources are in the 1st post. The complete source code of this build can also be downloaded as a git snapshot in tar format.
     
  4. newsfaq

    newsfaq Addicted to LI Member

    Hi Teddy_bear, I have installed php optware module to a dedicated optware partition , how can I added the link to make 192.168.1.1/exc ( the directory currently support cgi-bin ) to support php ?

    thanks,
     
  5. erikoss

    erikoss Addicted to LI Member

    http://www.myopenrouter.com/forum/thread/12820/Tomato-1.25-issues/ page 2
    wireless connection issues

    Since Jons 1.25 I could not connect to router.
    I found b36 fixed the issue.
    I thought it was due to the wireless driver being regressed in b35.

    I updated to b37 and it broke again - I could not connect.
    I tried to wipe nvram and reentered settings - still could not connect.

    I had to go back to b36 - I wiped nvram, factory reset too and re-entered settings.
    all good again.

    So b37 is breaking WPA2/WPA again. maybe due to your change below
    Fixed some wirelesss connectivity issues for "Wireless Client" and "Wireless Bridge" modes.
     
  6. teddy_bear

    teddy_bear Network Guru Member

    erikoss,
    Interesting... What router do you run my mod on, and what are the clients that were able to connect to v35-v36 builds only? What wireless mode do you use - AP? What are your secutiry settings - "WPA/WPA2" or just "WPA2"?

    Both - v35 and v36 - builds had an updated wireless configuration utility (wlconf) which actually broke "Wireless client" and "Wireless Bridge" modes for some users, and I rolled it back to older version in v37. I might have some ideas of what's wrong with it, but I need to know your exact configuration.
     
  7. erikoss

    erikoss Addicted to LI Member

    1.25 fail to connect issues

    I'm, in Brisbane, QLD. GMT+10
    What router do you run my mod on
    ----Linksys WRT54GL When I ran the check for "ND" I got 9
    ----ASUS 500GP V2 - get same "fail to connect" on it too.
    Running DD-WRT as workaround.


    What are the clients that were able to connect to v35-v36 builds only?
    ----My PC - DLINK adapter.
    ----Students laptops - VISTA - I would have to check each and confirm wireless chip and driver version.
    ---- - They all could not connect to b37 (I think).

    What wireless mode do you use - AP?
    ----Yes the default AP right? (I'm at work - pretty sure that is what the default is)

    What are your secutiry settings - "WPA/WPA2" or just "WPA2"?
    ----WPA2-personnel. I have tried WPA2/WPA-personnel too.

    Both - v35 and v36 - builds had an updated wireless configuration utility (wlconf) which actually broke "Wireless client" and "Wireless Bridge" modes for some users, and I rolled it back to older version in v37.
    I might have some ideas of what's wrong with it, but I need to know your exact configuration.

    At least I can use b36 for now. :)
    This problem has been driving me nuts for a month trying to find a solution.
    DD-WRT was the only solution I had before.
    Perhaps 1.21/1.23 tomato would work - I've only been using WPA2/WPA since last year. Was on WEP. I ran out of time to try older tomato builds.
     
  8. koszpa

    koszpa Addicted to LI Member

    Hi Teddy,

    just a quick status report: since v35 everything is fine with my ASUS WL500gPv2 wireless interface. No other issues as well. :)
    Thank you for the updates and the work you do is simply awesome.

    Keep up the good job bro, you are the best!

    KoszpA
     
  9. Andr0med

    Andr0med Addicted to LI Member

    Hi Teddy,

    Great work! I have a small problem: computer freezes when doing a speed test at speedtest.net or speakeasy.net (it freezes right before starting the upload part). I have a 520GU router with v37lite installed (did the same test with v34 and it works). Can someone else that has this router try to do the speed test please. Thanks guys!
     
  10. teddy_bear

    teddy_bear Network Guru Member

    What does your computer or browser freezing have with the router or firmware you're running on it ;)?
    And yes, I can run speedtests on both of these sites just fine.
     
  11. Andr0med

    Andr0med Addicted to LI Member

    sorry, thought it might be related :( Thanks again for your work!
     
  12. Anzial

    Anzial Addicted to LI Member

    Teddy Bear, would you mind greatly adding 2 hour javascript command to the 24 hour bandwidth window? I'd do it myself but I don't have access to any compilers :)
     
  13. cr00kedview

    cr00kedview Network Guru Member

    I've been having printer issues with Tomato 1.25 and Windows 7..

    The printer I'm using is an HP F4180 (yeah, it's an HP and that's probably my first problem ;) ) connected via USB on my router.

    The F4180 will start printing, but about half way through the page it will stop printing. Doesn't give any specific error, just stops and the power light will flash on the printer. I've tried using two routers, an Asus WL-520GU and an Asus WL-500W, and both routers provide the same result. Tried the usual uninstall/reinstall of the printer drivers and it doesn't change anything.

    I also tried tinkering with the USB support options in Tomato, and I'm pretty sure I've attempted every configuration possible to no avail.

    Previously, I didn't have this issue with Windows XP 32-bit. I'm not sure if it's how Windows 7 handles the printer over the network or if it's something that is awry with Tomato and my routers.

    I guess does anyone have any suggestions?
     
  14. Ranjit

    Ranjit Addicted to LI Member

    hi I need some help under filesharing the permissions are limited to Read/Write how can i enable a delete permission so computers over the network can delete files on the storage.

    If it helps im using the latests build of tomato ND USB mod and windows 7
    thanks
     
  15. Aquafire

    Aquafire LI Guru Member

    Hello All,

    I wanted to ask that what kind of printer support is built in tomato. I have upgraded to its latest last 'Extras' version.

    I am using it on WRTSL54GS which also has a USB port. I am looking to use it a wireless printer port. The USB cable from the printer could be plugged in the router and then the printer can be used and configured over the wireless network.

    But there is a slight twist to it. Does the tomato support utilizing all functions of a multifunction printer when it is attached to the router USB port, or will it only allow the printing feature.

    I have a HP CM1017 multifunction color laser jet printer. There is a specially wireless printer port (like jetdirect) from HP which specifically supports the scanning and faxing features over there wireless as well, in addition to the usual printing.

    Will the tomato also support the multifunction printer in a similar way so we can also utilize scanning and other features.

    Waiting for some input from everyone.

    Thanks.
     
  16. teddy_bear

    teddy_bear Network Guru Member

    Aquafire,
    Only printing support is built-in into firmware. If you want to use scanning functionality of your MFP, you'll need to install Optware sane-backend package on the router, and sane client on your computers (there is a Windows client).
    Not all scanners and MFPs are supported by sane - I don't see the CM1017 in the list of supported devices - but you can still try it. My Epson was not on the list but worked just fine.

    Ranjit,
    Read/Write includes "Delete" priveleges. Probably some new Windows 7 thing. Obviously MS does not care about compatibility with existing Linux software. I do not have Windows 7 installed yet, but you may try to apply Vista recommendations from this post, or just google "samba" and "Windows 7" and see if anything interesting pops up...

    cr00kedview,
    The only way to verify it's a Windows 7 thing and not your router is to try printing from WinXP computer. But I'm almost certain it's Windows 7. Did you expect a major OS upgrade from Microsoft to go without breaking stuff ;)?
    If you're willing to flash your router a couple more times, try to put original Asus firmware back (the latest from their site), and check if it works. Asus uses different printer server (LPRng), and it would be interesting to know if it works with Windows 7.

    Anzial,
    Sure, this is an easy cosmetic addition, and seems to be useful.
     
  17. blackmack

    blackmack Addicted to LI Member

    Is there any chance to make this firmware work with the new Asus RT-N16 router?
    It would be cool becouse of the faster USB interface.
     
  18. kyungjpark

    kyungjpark Addicted to LI Member

    I feel like I am a very newbie compare to all and any of you here in this topic. :)
    Thank you for your hard work on making this version of tomato perfect!


    Here's my question :
    I have Asus WL520GU (latest tomato firmware installed) with HP 1018 printer. I've downloaded "sihp1018.dl" and added the below Hotplug script, but I'm not sure how to copy the sihp1018.dl into the jffs folder.

    How dow I access the jffs folder? I guess I can't upload sihp1018.dl via web GUI I guess.
    (No "upload" button on Administration/JFFS web access)

    I'm using Win7, Vista, and Mac OS X. Not too familiar with Linux. :*(

    if [ $PRODUCT = "3f0/4117/100" ]
    then
    if [ $ACTION = "add" ]
    then
    sleep 5
    cat /jffs/sihp1018.dl > /dev/usb/lp0
    fi
    fi

    Thank you very much for your help!!! :)
     
  19. Ranjit

    Ranjit Addicted to LI Member

    Thanks Teddy your suggestions for Vista work on Windows 7 :)
     
  20. borosai

    borosai Addicted to LI Member

    I finally got around to trying out teddy_bear's solution given in this post a while ago (http://www.linksysinfo.org/forums/showpost.php?p=339498&postcount=251). Maybe someone else will find it useful.

    After testing out a few things, I ended up with the following (in Scripts-->WAN Up):
    Code:
    killall syslogd
    cat /var/log/messages >> /mnt/disc0_1/logs/syslog/messages
    syslogd -O /mnt/disc0_1/logs/syslog/messages
    ln -sf /mnt/disc0_1/logs/syslog/messages /var/log/messages
    
    I'm not sure if this is the best way to handle this problem, so if anyone has some advice, I'm all ears (or eyes). This is my reasoning:
    -- Router boots up and syslogd begins logging to /var/log/messages
    -- At WAN Up, syslogd is killed
    -- The contents of /var/log/messages are appended to my preferred log file
    -- syslogd is started, this time using my preferred log file
    -- A symlink is created in order to be able to read the logs from the Tomato web interface

    As far as I know, syslogd will always write something to the default log file before being killed, so by appending that content to the real log file, nothing is lost. Like I mentioned, the symlink is there because I can't read the logs through Tomato's web interface without it (I guess it always looks at /var/log/messages). syslogd appears to overwrite the symlink during each reboot, so it has to be remade. Is there a way to make a permanent symlink? That would probably be enough on its own.

    Anyways, in the end, Tomato's logs are now mostly written and always stored on my USB flash drive, and accessible from the web interface, which is good enough for me at this point.
     
  21. cr00kedview

    cr00kedview Network Guru Member

    teddy, thanks for the suggestion.. I might try using the original Asus firmware on the WL-520GU tonight or tomorrow and I'll let you know if I have any success with that.

    Also, any plans to utilize the 1.26 betas of tomato for your builds?
     
  22. kyungjpark

    kyungjpark Addicted to LI Member

    Yay...
    Incase anyone (more newbie than me) needs it :) , here's the solution to connecting WL520GU and HP Laserjet 1018 and setting up network printing.

    (1) In windows, download Putty for ssh access from the following site.
    http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
    (2) Enter router's IP address, and login with your router ID and Password
    (3) Type...
    wget http://oleg.wl500g.info/hplj/sihp1018.dl -O /jffs/sihp1018.dl
    This downloads and copies to jffs directory. You should see the jffs directory's free size decreased.
    (4) Enter the Hotplug Script as below, and set up printer in the windows,
    add printer, etc. Instruction's something like below.
    http://uis.georgetown.edu/software/documentation/winxp/winxp.network.printer.html






     
  23. Rasky

    Rasky Addicted to LI Member

    teddy_bear: I suggest you configure default smb.conf to make the route the default master browser for Windows networks. Since the router is probably always on, it is much more reliable to force it to the be the default browser, so that any Windows computer that enters the network immediately and reliably see the whole network. LANMAN sucks, but can suck a little less if there is a server around that is always on :)

    To do this, it is sufficient to add these lines to smb.conf:

    domain master = yes
    local master = yes
    preferred master = yes
    os level = 65

    See for instance:
    http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-samba-network-browsing.html

    There is no conflict problems with this setting, since the master browser selection still goes through the election protocol (so even if you have two tomato-usb routers around with the same setting, nothing weird happens). The above settings just tell tomato to start an election as soon as nmbd is fired up and gives to itself maximum priority (65) so that it will win. In this way, as soon as the router is up, the master browser is immediatly assigned and the windows network can be browsed without hassle.

    For the same reasons as above, it may be convenient to also enable the samba daemon on tomato to be a wins server ("wins support = yes"). Having a wins server around allows names to be resolved without relying on broadcasts, but two Wins servers in a network do some confusion. Maybe configuring samba as wins should be an option (on by default maybe, since having a windows server in the same network of tomato sounds unlikley). I saw that there is a field in the GUI to configure the Wins server advertised by DHCP, so maybe that field could be bound to this samba-as-wins-server setting.
     
  24. teddy_bear

    teddy_bear Network Guru Member

    Rasky,
    Thank you for suggestions!

    Actually, there's already an nvram variable "smbd_master" which - if set to "1" - will include
    local master = yes
    preferred master = yes

    into the samba config file.
    But it's not set by default, and not gui configurable. You're probably right that it has to be enabled by default.

    As for the WINS, I agree that the WINS server address from "Basic - Network" page can be used - and only include "wins support = yes" if WINS IP is not set there. I'm not sure about the "domain master = yes" though... Maybe that should also be bound to the WINS server setting?
     
  25. Rasky

    Rasky Addicted to LI Member

    For each network, there should be one and only one "domain master"; for each subnetwork, there should be one and only one "local master". The domain master should also be the local master for its subnetwork. Detailed information:
    http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetworkBrowsing.html#id2581356

    If you ask me, 99.999% of users will have a single tomato-usb running on a single network with no subnetworks, so it makes sense for tomato to be configured to be a domain master (and local master) by default.

    "preferred master" just tells nmbd to force a new election as soon as it wakes up, instead of waiting several minutes as usual (and you wonder why windows networks without domains are cranky ;).

    I would also put a high "os level", to make sure the router wins the election. It doesn't make sense to do this if any Windows 7 laptop in the network becomes the master as soon as a new election happens.

    All the above settings are for network browsing. WINS is totally unrelated: it just resolves computer names to IPs. If there's no WINS, computers will do a UDP broadcast to resolve the names. It is usually preferrable for the WINS server to be the domain master (as it's meant to be a computer that is always on), but it's not strictly required. IMO, the GUI should work like this:

    * If you tell Tomato to be the WINS server (could be the default), then the manual setting of the IP in the DHCP does not make sense; dnsmasq should just say that tomato is the WINS server. So the manual setting should be greyed out or disabled.
    * If you instead disable the WINS server feature, the manual setting might be useful to advertise a different wins server already existing in your network

    Whatever you do, WINS and network browsing are orthogonal settings, each unrelated with the other.
     
  26. Rasky

    Rasky Addicted to LI Member

    Totally unrelated, but: the following patch disables a sanity check in samba2. This makes it more lenient in face of broken requests, like a hw device (samsung bluray device) I've got right here... It also mimics what Windows does, and in fact that hw device works with Windows just fine, but fails with any samba version (mac osx, linux, tomato, ecc.).

    samba3 has just the same problem, but the code is totally different there, so I need a new gdb session and the patch will be totally different. I plan to eventually submit this upstream.

    I've debugged and tested this against a samba2 build on linux desktop, but I would like this patch to be live on the tomato. If you don't want to apply it, I would appreciate if you could provide me with a new smbd binary so that I can double-check the fix on the live thing, and then I will learn how to compile it myself (doh ;).


    Index: lanman.c
    ===================================================================
    --- lanman.c (revision 26701)
    +++ lanman.c (working copy)
    @@ -1625,7 +1625,7 @@
    int f_len = 0, s_len = 0;

    if (!prefix_ok(str1,"WrLeh")) return False;
    - if (!check_share_info(uLevel,str2)) return False;
    + //if (!check_share_info(uLevel,str2)) return False;

    data_len = fixed_len = string_len = 0;
    for (i=0;i<count;i++)
     
  27. teddy_bear

    teddy_bear Network Guru Member

    I was thinking to use the existing manual WINS IP setting only... I.e. if the address is not specified there (default), then make Samba to serve as WINS server.
    Is there any reason not to use the built-in Samba WINS server if there's no other WINS server on the network?
    I'll apply the patch - I'm always for better compatibility if it doesn't break things ;)...
     
  28. Rasky

    Rasky Addicted to LI Member

    Oh that's right, I can't think of a good reason. At nvram level, that makes sense. At UI level, it is probably better to let the user choose between "This server" and "Another server at this address: ......".

    Great :) I hope the samba developers will agree with me :)
     
  29. DCX2

    DCX2 Addicted to LI Member

    Hello again teddy_bear. The information related to the firmware spin-down was spread out over a few posts here, so I compiled everything into a complete post over at wl500g.info. You may want to link to that post instead of the one with just the shell script.

    Rasky, you say there's a problem with SMB sanity checks? I stream videos to mplayer_ce on my Wii and I noticed that the new version of mce doesn't work with the router's SMB, but older versions do. Someone else using OpenWRT had an identical problem to mine. Is it possible the sanity check you're mentioning might be what causes the new mce to break?

    lib/util_sock.c:read_socket_data(477)
    read_socket_data: recv failure for 4. Error = Connection reset by peer

    EDIT: that is from the Tomato log file, btw
     
  30. greenythebeast

    greenythebeast LI Guru Member

    Hello everybody,

    I had a quick question that I hope someone can answer for me. My university's network authentication scheme is based on MAC addresses which require a login every morning. Currently I have a laptop and a router, the laptop is usually asleep during the reset of the network but the router (which runs Tomato) has a script that autologins every morning. So, I was curious if there's a way to edit my script so that the router changes its MAC address every morning to the laptop's MAC, runs the script, then changes back to its own MAC address and runs the script again. This would essentially activate both devices with only one being on. Thanks for your help.
     
  31. freddyspam

    freddyspam Addicted to LI Member

    This will change the mac address:

    ifconfig eth1 down
    ifconfig eth1 hw ether 00:00:00:00:00:00
    ifconfig eth1 up

    where eth1 is the interface and 00:00:00:00:00:00 is the new mac.

    You can change it back by running this command again or rebooting.
     
  32. greenythebeast

    greenythebeast LI Guru Member

    When I telnet into my router and look at all the options available under ifconfig there are: br0, eth0. eth1, lo, vlan0, and vlan1. The MAC address that my university has in its DHCP registration table is the one for vlan1. What I mean is that the vlan1 is getting an IP address from the university. Is that the one I should be changing?
     
  33. TexasFlood

    TexasFlood Network Guru Member

    FYI, here is what I have in my notes as the definitions:

    vlan1—The WAN port to your broadband ISP.

    eth1—Wireless, including wireless clients sending and receiving data to the Internet plus sharing with one another.

    br0—The bridge between the wireless eth1 and the router's hardwired LAN ports vlan0, combined traffic from both your wireless and hardwired connections to the router, both to the Internet and within the LAN.

    eth0—All of the router's hardwired ports, traffic flowing through both the LAN via Ethernet plus the Internet via the WAN port.

    vlan0—The router's hardwired LAN ports, traffic to the Internet and within the LAN.

    And on my router, the MAC associated with my WAN corresponds to the nvram variable wan_hwaddr and the ifconfig interface vlan1.
     
  34. greenythebeast

    greenythebeast LI Guru Member

    So it seems that vlan1 would be the correct option to choose. So it would look something like this:

    ifconfig vlan1 down
    ifconfig vlan1 hw ether 00:00:00:00:00:00
    ifconfig vlan1 up

    Correct?

    This is what my script would look like:

    . /etc/profile
    /opt/bin/curl https://resnet.netsec.umn.edu/2007/?original=http://www.cnn.com/ -F username=**** -F password=**** -c /opt/script/resnet-cookie -L -o /dev/null &> /dev/null;
    sleep 7;
    /opt/bin/curl https://resnet.netsec.umn.edu/2007/ -b /opt/script/resnet-cookie -L -o /dev/null &> /dev/null;
    sleep 3;
    ifconfig vlan1 down;
    ifconfig vlan1 hw ether 00:1f:f3:d8:22:2a;
    ifconfig vlan1 up;
    sleep 3;
    /opt/bin/curl https://resnet.netsec.umn.edu/2007/?original=http://www.cnn.com/ -F username=**** -F password=**** -c /opt/script/resnet-cookie -L -o /dev/null &> /dev/null;
    sleep 7;
    /opt/bin/curl https://resnet.netsec.umn.edu/2007/ -b /opt/script/resnet-cookie -L -o /dev/null &> /dev/null;
    sleep 3;
    ifconfig vlan1 down;
    ifconfig vlan1 hw ether 00:24:8c:65:e3:a8;
    ifconfig vlan1 up;

    Does that seem like it would work?
     
  35. Rasky

    Rasky Addicted to LI Member

    What you mean by "doesn't work" exactly? What are the symptoms?

    In my case, the device was failing to enumerate the shares available on the network (the moral equivalent of smbtree). The bug is in the firmware of the device (it sends a packet with an invalid field), but the samba code is too picky and refuses to answer; Windows native SMB doesn't really care and replies.

    If your problem is related to the enumeration of shares, my patch could help. Otherwise, it's unlikely to make any difference. In fact, I believe it is very unlikely to be of any effect but to Samsung BluRay users :)
     
  36. Aquafire

    Aquafire LI Guru Member

    Tomato : HP CM1017 MFP Printer : Trying to use with WRTSL54GS as a Wireless Printing/Scanning Port

    Thanks Teddy,

    I have tried to install SANE from the Optware packages. Can you please mention a step by step guide about how to do it and how to enable it during the router startup by some automatic or manual script.

    Secondly if install SANE Windows drivers on my PC, can I still use HP Scanning Software which comes with printer (on CD/DVD) or would it interfere or mess the settings of it. In case of any alternative is SANE package compatible with all TWAIN based clients for running the scanner from the PC .

    Thanks for your support.
     
  37. DCX2

    DCX2 Addicted to LI Member

    Whenever I try to access the router's SMB share from my Wii using the newer versions of mce, it fails on the Wii end after what feels like a network time-out, and the router logs a "connection reset by peer" (the two lines in my previous post). Older versions of mce do not cause this problem. All versions of mce work with Windows shares.

    This actually does sound quite similar to your situation. I have some hope that this patch works, and teddy_bear said it is now incorporated, so when he lets out a new build, I'll come back and let you know.

    Another person on the mce code site is having the exact same problem as me - connection reset by peer - but he is using OpenWRT (still samba2). I wonder if this sanity check is what is giving the other guy grief.
     
  38. greenythebeast

    greenythebeast LI Guru Member

    Alright, so I tried this script out and even though the MAC address is changed it doesn't seem to request a new IP address. When I change the MAC address through the admin page by clicking Clone PC and pressing save, it changes the MAC address and requests a new IP address. How is changing the MAC address through the admin page and doing it through telnet different?
     
  39. Rasky

    Rasky Addicted to LI Member

    To further debug this, the first step is sniffing the samba traffic. Install wireshark from optware, then run it like this:

    Code:
    tshark -i br0 host 192.168.X.X -w dump.pcap
    
    where 192.168.X.X is the IP address of the Wii. Give tshark about 20-30 seconds to start, it's very slow on the router. When it starts, it prints "Capturing on br0". At this point, tell the Wii to access the share. After Wii showed the error, stop tshark by pressing ctrl+c, and compress the log file "dump.pcap" and send it over, I'll have a quick look.

    Fair note: it's really unlikely this would be enough to fix it, but it can be a first step to analyze the problem.
     
  40. freddyspam

    freddyspam Addicted to LI Member

    It's different because when you do it through the GUI, it changes the mac address and then reestablishes the internet connection. When you do it with your script, you are taking down the wan port (which disconnects your internet), changing the mac, and re-enabling the wan, but you are not reestablishing the internet connection.

    I actually don't know how to reestablishes the internet connection through the script. I'm sure someone on here can help you.
     
  41. TexasFlood

    TexasFlood Network Guru Member

    maybe "service wan stop|start|restart" ?
     
  42. greenythebeast

    greenythebeast LI Guru Member

    I tried doing the following:

    ifconfig vlan1 down
    ifconfig vlan1 hw ether 00:1F:F3:D8:22:2A
    ifconfig vlan1 up
    service wan restart

    But when WAN restarts it changes the MAC address back to the default. What am I doing wrong?
     
  43. freddyspam

    freddyspam Addicted to LI Member

    Try:

    nvram set mac_wan="00:1F:F3:D8:22:2A"
    service wan restart

    I think this will do the same thing as the UI is doing.

    To go back to the default mac run:

    nvram set mac_wan=""
    service wan restart

    (i.e. clearing the value)
     
  44. greenythebeast

    greenythebeast LI Guru Member

    Worked like a charm! I'm going to set up the script as follows:

    . /etc/profile
    /opt/bin/curl https://resnet.netsec.umn.edu/2007/?...//www.cnn.com/ -F username=**** -F password=**** -c /opt/script/resnet-cookie -L -o /dev/null &> /dev/null;
    sleep 7;
    /opt/bin/curl https://resnet.netsec.umn.edu/2007/ -b /opt/script/resnet-cookie -L -o /dev/null &> /dev/null;
    sleep 3;
    nvram set mac_wan="00:1F:F3:D8:22:2A";
    service wan restart;
    sleep 3;
    /opt/bin/curl https://resnet.netsec.umn.edu/2007/?...//www.cnn.com/ -F username=**** -F password=**** -c /opt/script/resnet-cookie -L -o /dev/null &> /dev/null;
    sleep 7;
    /opt/bin/curl https://resnet.netsec.umn.edu/2007/ -b /opt/script/resnet-cookie -L -o /dev/null &> /dev/null;
    sleep 3;
    nvram set mac_wan="";
    service wan restart

    It'll run this morning and I'll report back the results!
     
  45. greenythebeast

    greenythebeast LI Guru Member

    *sigh*
    Didn't seem to work. It worked last night through telnet so I'm not sure what the problem is :(
     
  46. ivanmmj

    ivanmmj Addicted to LI Member

    I've been using one of the older version of this for several months and it's been great (with the occasional issue where I can no longer create any type of remote connection to any of my PC's until I reboot the modem.) I plan to update to the newest build today but I wanted to throw something out there...

    How about switching to the BFScheduler? I would think that with the type of work that the router does and the low power of the CPU, it would be perfect for this scheduler.

    Also, how about adding a compcache module to increase available RAM?
     
  47. freddyspam

    freddyspam Addicted to LI Member

    When you said "Worked like a charm!" before, how did you verify that? By looking at the UI page for changing the mac address? Or by running ifconfig? Also, was the internet connection functional after resetting the wan?
     
  48. greenythebeast

    greenythebeast LI Guru Member

    After I did as you had suggested I check ifconfig and the WAN port had received a different IP address (the one that is assigned for my computer)
     
  49. Rasky

    Rasky Addicted to LI Member

    I installed a HTTP proxy on the router. What is the best way to serve the proxy.pac file for automatic proxy configuration? httpd is run from within /www, but that directory is not writable.
     
  50. freddyspam

    freddyspam Addicted to LI Member

    If it is changing your mac and being assigned an IP from resnet, then the script is working correctly in that regard. They make you do this to make sure only one device can use any ethernet port, correct? So that you can't attach a wireless router to it and share your connection with the whole floor, correct? So maybe they only allow the a single mac address for each ethernet port. Have you been able to wake up in the morning, login with the router and your laptop, and then later in the day use both? It maybe giving permission only to the last device to login.
     
  51. greenythebeast

    greenythebeast LI Guru Member

    They make you sign in so only approved computers/routers can access the network. I can get different IP addresses from the same ethernet port no problem. I can use both all day.
     
  52. freddyspam

    freddyspam Addicted to LI Member

    V37 not automounting

    To TB:

    The v37 is still having issues where the USB drives don't auto remount when the setting are saved in the UI. Saving the Basic-Network Settings as well as the Advanced-Mac Address causes this to occur. Here is my log after rebooting, going into the UI and saving the Network settings:

    Code:
    Dec 31 16:00:13 NAS syslog.info syslogd started: BusyBox v1.14.4
    Dec 31 16:00:13 NAS user.notice kernel: klogd started: BusyBox v1.14.4 (2009-10-25 13:29:25 EDT)
    Dec 31 16:00:13 NAS user.warn kernel: CPU revision is: 00029029
    Dec 31 16:00:13 NAS user.warn kernel: Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
    Dec 31 16:00:13 NAS user.warn kernel: Primary data cache 16kB, 2-way, linesize 16 bytes.
    Dec 31 16:00:13 NAS user.warn kernel: Linux version 2.4.37.6 (root@tomato) (gcc version 3.4.6) #1 2009-10-25 13:43:07 EDT
    Dec 31 16:00:13 NAS user.warn kernel: Setting the PFC to its default value
    Dec 31 16:00:13 NAS user.warn kernel: Determined physical RAM map:
    Dec 31 16:00:13 NAS user.warn kernel:  memory: 01000000 @ 00000000 (usable)
    Dec 31 16:00:13 NAS user.warn kernel: On node 0 totalpages: 4096
    Dec 31 16:00:13 NAS user.warn kernel: zone(0): 4096 pages.
    Dec 31 16:00:13 NAS user.warn kernel: zone(1): 0 pages.
    Dec 31 16:00:13 NAS user.warn kernel: zone(2): 0 pages.
    Dec 31 16:00:13 NAS user.warn kernel: Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
    Dec 31 16:00:13 NAS user.warn kernel: CPU: BCM5354 rev 3 pkg 0 at 240 MHz
    Dec 31 16:00:13 NAS user.warn kernel: Using 100.000 MHz high precision timer.
    Dec 31 16:00:13 NAS user.warn kernel: Calibrating delay loop... 198.24 BogoMIPS
    Dec 31 16:00:13 NAS user.info kernel: Memory: 14364k/16384k available (1410k kernel code, 2020k reserved, 100k data, 80k init, 0k highmem)
    Dec 31 16:00:13 NAS user.info kernel: Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
    Dec 31 16:00:13 NAS user.info kernel: Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
    Dec 31 16:00:13 NAS user.info kernel: Mount cache hash table entries: 512 (order: 0, 4096 bytes)
    Dec 31 16:00:13 NAS user.info kernel: Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
    Dec 31 16:00:13 NAS user.warn kernel: Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Dec 31 16:00:13 NAS user.warn kernel: Checking for 'wait' instruction...  unavailable.
    Dec 31 16:00:13 NAS user.warn kernel: POSIX conformance testing by UNIFIX
    Dec 31 16:00:13 NAS user.warn kernel: PCI: no core
    Dec 31 16:00:13 NAS user.warn kernel: PCI: Fixing up bus 0
    Dec 31 16:00:13 NAS user.info kernel: Linux NET4.0 for Linux 2.4
    Dec 31 16:00:13 NAS user.info kernel: Based upon Swansea University Computer Society NET3.039
    Dec 31 16:00:13 NAS user.warn kernel: Initializing RT netlink socket
    Dec 31 16:00:13 NAS user.warn kernel: Starting kswapd
    Dec 31 16:00:13 NAS user.info kernel: devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
    Dec 31 16:00:13 NAS user.info kernel: devfs: boot_options: 0x1
    Dec 31 16:00:13 NAS user.info kernel: squashfs: version 3.0 (2006/03/15) Phillip Lougher
    Dec 31 16:00:13 NAS user.warn kernel: pty: 256 Unix98 ptys configured
    Dec 31 16:00:13 NAS user.info kernel: Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
    Dec 31 16:00:13 NAS user.info kernel: ttyS00 at 0xb8000300 (irq = 3) is a 16550A
    Dec 31 16:00:13 NAS user.info kernel: ttyS01 at 0xb8000400 (irq = 3) is a 16550A
    Dec 31 16:00:13 NAS user.warn kernel: HDLC line discipline: version $Revision: 3.7 $, maxframe=4096
    Dec 31 16:00:13 NAS user.info kernel: N_HDLC line discipline registered.
    Dec 31 16:00:13 NAS user.info kernel: PPP generic driver version 2.4.2
    Dec 31 16:00:13 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x400000 for the chip at 0x0
    Dec 31 16:00:13 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
    Dec 31 16:00:13 NAS user.debug kernel: Physically mapped flash: Found an alias at 0xc00000 for the chip at 0x0
    Dec 31 16:00:13 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
    Dec 31 16:00:13 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x1400000 for the chip at 0x0
    Dec 31 16:00:13 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
    Dec 31 16:00:13 NAS user.debug kernel: Physically mapped flash: Found an alias at 0x1c00000 for the chip at 0x0
    Dec 31 16:00:13 NAS user.notice kernel:  Amd/Fujitsu Extended Query Table v1.1 at 0x0040
    Dec 31 16:00:14 NAS user.notice kernel:  Flash Id: Vendor: 0x00c2 Device: 0x00a8
    Dec 31 16:00:14 NAS user.notice kernel: number of CFI chips: 1
    Dec 31 16:00:14 NAS user.notice kernel: cfi_cmdset_0002: Disabling fast programming due to code brokenness.
    Dec 31 16:00:14 NAS user.notice kernel: Flash device: 0x400000 at 0x1c000000
    Dec 31 16:00:14 NAS user.notice kernel: Creating 5 MTD partitions on "Physically mapped flash":
    Dec 31 16:00:14 NAS user.notice kernel: 0x00000000-0x00020000 : "pmon"
    Dec 31 16:00:14 NAS user.notice kernel: 0x00020000-0x003f0000 : "linux"
    Dec 31 16:00:14 NAS user.notice kernel: 0x000c8220-0x003d0000 : "rootfs"
    Dec 31 16:00:14 NAS user.notice kernel: 0x003d0000-0x003f0000 : "jffs2"
    Dec 31 16:00:14 NAS user.notice kernel: 0x003f0000-0x00400000 : "nvram"
    Dec 31 16:00:14 NAS user.err kernel: sflash: found no supported devices
    Dec 31 16:00:14 NAS user.info kernel: Initializing Cryptographic API
    Dec 31 16:00:14 NAS user.info kernel: NET4: Linux TCP/IP 1.0 for NET4.0
    Dec 31 16:00:14 NAS user.info kernel: IP Protocols: ICMP, UDP, TCP, IGMP
    Dec 31 16:00:14 NAS user.info kernel: IP: routing cache hash table of 16384 buckets, 128Kbytes
    Dec 31 16:00:14 NAS user.info kernel: TCP: Hash tables configured (established 1024 bind 2048)
    Dec 31 16:00:14 NAS user.info kernel: Linux IP multicast router 0.06 plus PIM-SM
    Dec 31 16:00:14 NAS user.warn kernel: ip_conntrack version 2.1 (16384 buckets, 8192 max) - 332 bytes per conntrack
    Dec 31 16:00:14 NAS user.warn kernel: ip_tables: (C) 2000-2002 Netfilter core team
    Dec 31 16:00:14 NAS user.info kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    Dec 31 16:00:14 NAS user.info kernel: NET4: Ethernet Bridge 008 for NET4.0
    Dec 31 16:00:14 NAS user.info kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
    Dec 31 16:00:14 NAS user.info kernel: All bugs added by David S. Miller <davem@redhat.com>
    Dec 31 16:00:14 NAS user.warn kernel: VFS: Mounted root (squashfs filesystem) readonly.
    Dec 31 16:00:14 NAS user.info kernel: Mounted devfs on /dev
    Dec 31 16:00:14 NAS user.info kernel: Freeing unused kernel memory: 80k freed
    Dec 31 16:00:14 NAS user.warn kernel: Algorithmics/MIPS FPU Emulator v1.5
    Dec 31 16:00:14 NAS user.warn kernel: ip_conntrack_pptp version 1.9 loaded
    Dec 31 16:00:14 NAS user.warn kernel: ip_nat_pptp version 1.5 loaded
    Dec 31 16:00:14 NAS user.warn kernel: ip_conntrack_rtsp v0.01 loading
    Dec 31 16:00:14 NAS user.warn kernel: ip_nat_rtsp v0.01 loading
    Dec 31 16:00:14 NAS user.debug kernel: PCI: Setting latency timer of device 00:01.0 to 64
    Dec 31 16:00:14 NAS user.warn kernel: eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.29
    Dec 31 16:00:14 NAS user.debug kernel: PCI: Setting latency timer of device 00:05.0 to 64
    Dec 31 16:00:14 NAS user.warn kernel: eth1: Broadcom BCM4318 802.11 Wireless Controller 4.150.10.29
    Dec 31 16:00:14 NAS user.warn kernel: tomato_ct.c [Oct 25 2009 13:50:20]
    Dec 31 16:00:14 NAS user.info kernel: usb.c: registered new driver usbdevfs
    Dec 31 16:00:14 NAS user.info kernel: usb.c: registered new driver hub
    Dec 31 16:00:14 NAS user.info kernel: SCSI subsystem driver Revision: 1.00
    Dec 31 16:00:14 NAS user.info kernel: Initializing USB Mass Storage driver...
    Dec 31 16:00:14 NAS user.info kernel: usb.c: registered new driver usb-storage
    Dec 31 16:00:14 NAS user.info kernel: USB Mass Storage support registered.
    Dec 31 16:00:14 NAS user.info kernel: Journalled Block Device driver loaded
    Dec 31 16:00:14 NAS user.debug kernel: PCI: Setting latency timer of device 00:03.1 to 64
    Dec 31 16:00:14 NAS user.info kernel: ehci_hcd 00:03.1: PCI device 14e4:471a
    Dec 31 16:00:14 NAS user.info kernel: ehci_hcd 00:03.1: irq 6, pci mem b8003800
    Dec 31 16:00:14 NAS user.info kernel: usb.c: new USB bus registered, assigned bus number 1
    Dec 31 16:00:14 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:14 NAS user.info kernel: hub.c: USB hub found
    Dec 31 16:00:14 NAS user.info kernel: hub.c: 2 ports detected
    Dec 31 16:00:14 NAS user.info kernel: usb.c: registered new driver usblp
    Dec 31 16:00:14 NAS user.info kernel: printer.c: v0.13: USB Printer Device Class driver
    Dec 31 16:00:14 NAS user.info kernel: hub.c: new USB device 00:03.1-1, assigned address 2
    Dec 31 16:00:14 NAS user.info kernel: hub.c: USB hub found
    Dec 31 16:00:14 NAS user.info kernel: hub.c: 4 ports detected
    Dec 31 16:00:14 NAS user.debug kernel: vlan0: dev_set_promiscuity(master, 1)
    Dec 31 16:00:14 NAS user.info kernel: device eth0 entered promiscuous mode
    Dec 31 16:00:14 NAS user.info kernel: device vlan0 entered promiscuous mode
    Dec 31 16:00:14 NAS user.info kernel: device eth1 entered promiscuous mode
    Dec 31 16:00:14 NAS user.info kernel: hub.c: new USB device 00:03.1-1.2, assigned address 3
    Dec 31 16:00:14 NAS user.debug kernel: vlan1: dev_set_promiscuity(master, 1)
    Dec 31 16:00:14 NAS user.info kernel: device vlan1 entered promiscuous mode
    Dec 31 16:00:14 NAS user.info kernel: vlan1: attempt to add interface with same source address.
    Dec 31 16:00:14 NAS user.info kernel: br0: port 3(vlan1) entering learning state
    Dec 31 16:00:14 NAS user.info kernel: br0: port 2(eth1) entering learning state
    Dec 31 16:00:14 NAS user.info kernel: br0: port 1(vlan0) entering learning state
    Dec 31 16:00:14 NAS user.info kernel: br0: port 3(vlan1) entering forwarding state
    Dec 31 16:00:14 NAS user.info kernel: br0: topology change detected, propagating
    Dec 31 16:00:14 NAS user.info kernel: br0: port 2(eth1) entering forwarding state
    Dec 31 16:00:14 NAS user.info kernel: br0: topology change detected, propagating
    Dec 31 16:00:14 NAS user.info kernel: br0: port 1(vlan0) entering forwarding state
    Dec 31 16:00:14 NAS user.info kernel: br0: topology change detected, propagating
    Dec 31 16:00:14 NAS user.info kernel: br0: port 3(vlan1) entering disabled state
    Dec 31 16:00:14 NAS user.warn kernel: vlan1: Setting MAC address to  00 24 8c 00 a6 8a.
    Dec 31 16:00:14 NAS user.info kernel: br0: port 3(vlan1) entering learning state
    Dec 31 16:00:14 NAS user.info kernel: br0: port 3(vlan1) entering forwarding state
    Dec 31 16:00:14 NAS user.info kernel: br0: topology change detected, propagating
    Dec 31 16:00:14 NAS user.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
    Dec 31 16:00:14 NAS user.warn kernel:   Vendor: Generic   Model: External          Rev: 2.10
    Dec 31 16:00:14 NAS user.warn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
    Dec 31 16:00:14 NAS user.warn kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    Dec 31 16:00:14 NAS user.warn kernel: SCSI device sda: 781422768 512-byte hdwr sectors (400088 MB)
    Dec 31 16:00:14 NAS user.info kernel: Partition check:
    Dec 31 16:00:14 NAS user.info kernel:  /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    Dec 31 16:00:14 NAS user.debug kernel: WARNING: USB Mass Storage data integrity not assured
    Dec 31 16:00:14 NAS user.debug kernel: USB Mass Storage device found at 3. Host: 0
    Dec 31 16:00:14 NAS user.warn kernel: SCSI device sda: 781422768 512-byte hdwr sectors (400088 MB)
    Dec 31 16:00:14 NAS user.info kernel:  /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    Dec 31 16:00:14 NAS user.info kernel: kjournald starting.  Commit interval 1 seconds
    Dec 31 16:00:14 NAS user.warn kernel: EXT3-fs warning: mounting fs with errors, running e2fsck is recommended
    Dec 31 16:00:14 NAS user.info kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
    Dec 31 16:00:14 NAS user.info kernel: EXT3-fs: mounted filesystem with ordered data mode.
    Dec 31 16:00:14 NAS user.info hotplug[102]: USB ext3 fs at /dev/discs/disc0/part2 mounted on /tmp/mnt/Linux-Part
    Dec 31 16:00:14 NAS user.warn kernel: MSDOS FS: IO charset utf8
    Dec 31 16:00:15 NAS user.info hotplug[102]: USB vfat fs at /dev/discs/disc0/part3 mounted on /tmp/mnt/Fat-Part
    Dec 31 16:00:15 NAS cron.err crond[235]: crond (busybox 1.14.4) started, log level 9
    Dec 31 16:00:20 NAS user.info init[1]: Tomato 1.25.8737 ND USB Ext
    Dec 31 16:00:20 NAS user.info init[1]: Asus WL-520GU
    Dec 31 16:00:21 NAS user.info kernel: Adding Swap: 1052216k swap-space (priority -1)
    Dec 31 16:00:39 NAS daemon.err nmbd[240]: [1969/12/31 16:00:39, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(405)
    Dec 31 16:00:39 NAS daemon.err nmbd[240]:   *****
    Dec 31 16:00:39 NAS daemon.err nmbd[240]:   
    Dec 31 16:00:39 NAS daemon.err nmbd[240]:   Samba name server NAS is now a local master browser for workgroup WORKGROUP on subnet 192.168.10.2
    Dec 31 16:00:39 NAS daemon.err nmbd[240]:   
    Dec 31 16:00:39 NAS daemon.err nmbd[240]:   *****
    Nov  5 16:06:10 NAS user.info ntpc[101]: Time Updated: Thu, 05 Nov 2009 16:06:10 -0800 [+1257465598.328s]
    Nov  5 16:06:59 NAS cron.err crond[235]: time disparity of 20957760 minutes detected
    Nov  5 16:19:39 NAS user.info hotplug[359]: USB partition unmounted from /tmp/mnt/Linux-Part
    Nov  5 16:19:40 NAS user.info hotplug[359]: USB partition unmounted from /tmp/mnt/Fat-Part
    Nov  5 16:19:44 NAS user.notice kernel: klogd: exiting
    Nov  5 16:19:44 NAS syslog.info syslogd exiting
    Nov  5 16:19:54 NAS syslog.info syslogd started: BusyBox v1.14.4
    Nov  5 16:19:54 NAS user.notice kernel: klogd started: BusyBox v1.14.4 (2009-10-25 13:29:25 EDT)
    Nov  5 16:19:54 NAS user.info kernel: br0: port 3(vlan1) entering disabled state
    Nov  5 16:19:54 NAS user.info kernel: br0: port 2(eth1) entering disabled state
    Nov  5 16:19:54 NAS user.info kernel: br0: port 1(vlan0) entering disabled state
    Nov  5 16:19:54 NAS user.info kernel: br0: port 1(vlan0) entering disabled state
    Nov  5 16:19:54 NAS user.info kernel: device vlan0 left promiscuous mode
    Nov  5 16:19:54 NAS user.info kernel: br0: port 2(eth1) entering disabled state
    Nov  5 16:19:54 NAS user.info kernel: device eth1 left promiscuous mode
    Nov  5 16:19:54 NAS user.info kernel: br0: port 3(vlan1) entering disabled state
    Nov  5 16:19:54 NAS user.info kernel: device vlan1 left promiscuous mode
    Nov  5 16:19:54 NAS user.warn kernel: SCSI device sda: 781422768 512-byte hdwr sectors (400088 MB)
    Nov  5 16:19:54 NAS user.info kernel:  /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    Nov  5 16:19:54 NAS user.info kernel: usb.c: deregistering driver usblp
    Nov  5 16:19:54 NAS user.info kernel: usb.c: registered new driver usblp
    Nov  5 16:19:54 NAS user.info kernel: printer.c: v0.13: USB Printer Device Class driver
    Nov  5 16:19:54 NAS user.info kernel: device eth1 entered promiscuous mode
    Nov  5 16:19:54 NAS user.info kernel: vlan1: attempt to add interface with same source address.
    Nov  5 16:19:54 NAS user.info kernel: br0: port 3(vlan1) entering learning state
    Nov  5 16:19:54 NAS user.info kernel: br0: port 2(eth1) entering learning state
    Nov  5 16:19:54 NAS user.info kernel: br0: port 1(vlan0) entering learning state
    Nov  5 16:19:54 NAS user.info kernel: br0: port 3(vlan1) entering forwarding state
    Nov  5 16:19:54 NAS user.info kernel: br0: topology change detected, propagating
    Nov  5 16:19:54 NAS user.info kernel: br0: port 2(eth1) entering forwarding state
    Nov  5 16:19:54 NAS user.info kernel: br0: topology change detected, propagating
    Nov  5 16:19:54 NAS user.info kernel: br0: port 1(vlan0) entering forwarding state
    Nov  5 16:19:54 NAS user.info kernel: br0: topology change detected, propagating
    Nov  5 16:19:54 NAS user.debug kernel: vlan1: dev_set_promiscuity(master, 1)
    Nov  5 16:19:54 NAS user.info kernel: br0: port 3(vlan1) entering disabled state
    Nov  5 16:19:54 NAS user.info kernel: br0: port 3(vlan1) entering learning state
    Nov  5 16:19:54 NAS user.info kernel: br0: port 3(vlan1) entering forwarding state
    Nov  5 16:19:54 NAS user.info kernel: br0: topology change detected, propagating
    Nov  5 16:19:55 NAS cron.err crond[634]: crond (busybox 1.14.4) started, log level 9
    Nov  5 16:19:56 NAS user.info init[1]: Asus WL-520GU
     
  53. teddy_bear

    teddy_bear Network Guru Member

    Rasky,
    /www/ext and /www/user are writable - will it work for you to put proxy.pac there? Of course, you'll need to have a script to copy it (or create a symlink) after every reboot since these directories are in tmpfs.

    freddyspam,
    I'll look into remounting issue. Remind me what you have the WAN mode set to - I believe it was either Static or Disabled?

    ivanmmj,
    You are certainly welcome to port both - BFScheduler and compcache - from kernel 2.6 to 2.4, research the possible benefits and disadvantages of using them on our platform, compile the version of firmware with them, test it and analyze the test results. After that's done, I'll be happy to work with you to include your changes into this mod :rolleyes:...

    greenythebeast,
    Indeed your script seems to work correctly to change the MAC and obtain a new IP address. Maybe it's a timing issue? Try increasing the delay after restarting WAN and before calling curl from 3 secs to a larger value. Also, test your script in a telnet/SSH session with output redirections to /dev/null removed to see the curl output - maybe it will tell you something...
     
  54. freddyspam

    freddyspam Addicted to LI Member

    It was disabled, but recently I changed it to "Use WAN port for LAN".
     
  55. Aquafire

    Aquafire LI Guru Member

    Hello Teddy,

    Waiting for just a bit of the push start support i need :), as in my previous quoted message.

    Thanks.
     
  56. ivanmmj

    ivanmmj Addicted to LI Member

    Yea, I forgot you guys used 2.4. Too bad.
    As far as benefits, so far I've found that on every ARM based device I've used BFS in, the multitasking performance has increased exponentially. The Compcache module isn't really useful with the firmware as is, since it doesn't require much ram anyways, but it's been nice on devices with low RAM like the HTC Herald when porting Android to it. Much faster than using a swap partition.
    Before you mentioned the 2.4, I was thinking of just compiling my own.
     
  57. were55

    were55 Addicted to LI Member

     
  58. greenythebeast

    greenythebeast LI Guru Member

    Well I changed the sleep time to 10 seconds and it still didn't work. So sad :(
     
  59. teddy_bear

    teddy_bear Network Guru Member

    Aquafire, were55,
    You need to install xinetd first.
    After xinetd is installed, verify if the /opt/etc/xinetd.d directory exists. If it's not there - just create it. Then install or reinstall sane-backends. It should create
    /opt/etc/xinetd.d/saned file. First line in this file will be "service saned" - if you are running build 37 or earlier version of this mod modify it to say "service sane-port" (this is no longer needed starting from build 38).

    To start/restart saned/xinetd use the following commands:
    Code:
    killall xinetd 2>/dev/null
    /opt/sbin/xinetd
    Add these commands to any of the your existing scripts that you use to auto-start Optware applications on boot-up. If you don't have this set up yet - you can add them to WanUp or after-mount script.

    There are other ways to auto-execute various scripts - including ones located on your usb drive - on startup, mount and other events (thanks to Ray123). Basically, all scripts with pre-defined extensions (see the list below) in the following folders:

    /etc/config/
    /jffs/etc/config/
    /opt/etc/config/
    /mmc/etc/config/
    /tmp/config/


    are getting executed automatically on certain events. Here's the list of supported events - to get executed the script extension must match the event name:

    .fire - When firewall service has been started or re-started.
    .shut - At system shutdown, just before wan/lan/usb/etc are stopped.
    .init - At system startup, just before wan/lan/usb/etc are started.
    .usbmount - After an auto-mounted USB drive is mounted.
    .usbumount - Before an auto-mounted USB drive is unmounted.
    .usbhotplug - When any USB device is attached or removed.
    .wanup - After WAN has come up.


    Hopefully that will get you started. Ask more specific questions if you run into issues - step-by-step guides is definitely not my thing ;)...
     
  60. Rasky

    Rasky Addicted to LI Member

    Alas, no, the file should be on the root of the http server (also, the file should be available both as wpad.dat and proxy.pac). A quick workaround would be to ship two broken symlinks:

    /www/proxy.pac -> /www/ext/proxy.pac
    /www/wpad.dat -> /www/ext/proxy.pac

    So if the user creates those files, they will be available from the root as well.

    Going into further details, the proxy autodiscovery protocol is very complicated and involves both DHCP and DNS:
    http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol

    It would be nice if tomato allowed to make it easy to configure the autodiscovery part of the proxy (even up to the creation of the proxy.pac itself through the web interface). So that if someone wants to install any proxy on its network (whether on the router itself, or onto another computer), tomato can do everything necessary to make the proxy be auto-discovered.

    I use privoxy (optware) on my Asus router to filter advertisement on all computers and browsers, and it works very well, its default set of rules is good enough.
     
  61. muratremix

    muratremix Addicted to LI Member

    I would like to know if it is possible to determine & show ADSL PPPoE connection speed. Currently, I couldn't log in to my zyxel modem because it is connected to Wan port although it is on same Vlan (192.168.2.x) and my connection speed declines sometimes. Is there a way to learn PPPoE connection speed? Maybe Line attitude values aswell?
     
  62. Toastman

    Toastman Super Moderator Staff Member Member

  63. gchick96

    gchick96 Guest

    WAN FTP access

    fixed thanks for the great FW
     
  64. nyonya

    nyonya Addicted to LI Member

    Is anyone who's using Windows 7 able to access a USB hard drive mounted through the router? It shows up fine on my Vista computer, but I don't see anything in 'Network' on Windows 7.

    Thanks!
     
  65. Bill_S

    Bill_S Network Guru Member

    I am using Win 7 Ultimate and have no problems accessing a USB drive attached to my router.
     
  66. nyonya

    nyonya Addicted to LI Member

    What did you do to make it show up? Maybe there's a step I skipped.
     
  67. teddy_bear

    teddy_bear Network Guru Member

    Update - build 38

    Another bug fix release.
    • Fixed execution of .autostart and after-mount scripts (in previous releases not all scripts were always executed when multiple USB drives/partitions are attached to the router).
    • Fixed bug in a wireless configuration utility compile options. This may resolve some of the weird wireless connectivity issues.
    • Fixed "service net restart" command to bring up wireless.
    • Fixed remounting of all USB partitions when saving some settings in the GUI.
    • Samba compatibility fix (disable sanity check, thanks Rasky).
    • Busybox: added blkid applet, added "label" option to mkswap, replaced mkdosfs in Extras build by busybox applet (reduce size).
    • Added "Master Browser" and "WINS Server" configuration settings for Samba (both are on by default, thanks Rasky for suggestions).
    • Linux kernel 2.4.37.7.
    • MiniUPnPd updated to version 1.4 (20091106).
    • Optimization to reduce size, minor bug fixes, cosmetics.

    Known issues with this build:
    This build has compatibility issues with BCM4704 chipset.

    Links to the firmware binaries and the git repository with sources are in the 1st post. The complete source code of this build can also be downloaded as a git snapshot in tar format.
     
  68. cr00kedview

    cr00kedview Network Guru Member

    Build 38 (extras version) didn't play nice with my WL-500W, nor my WL-520GU. Flashed fine, but was unable to access the router's interface (or telnet), even after multiple reboots of the router. Used the Asus utility to flash back to build 37 and all is well again.

    I'll try again in the morning to see if it works the second time around.
     
  69. ghostknife

    ghostknife Addicted to LI Member

    Stupid question and I should probably know the answer (or search) but it's really damn hot here now [39 Celsius] and brain not working. So anyway can I upgrade from the WAN side or is that not a good idea?
    If it fails I will be in the ~!@# but I can't get there till next week and want to try this for the wireless connectivity fixes.
     
  70. ghostknife

    ghostknife Addicted to LI Member

    Hey on a side note, when did the PayPal donation link appear in the first post, I never noticed it before?
    Next pay day, donation pending for virtual beer.
     
  71. ghostknife

    ghostknife Addicted to LI Member

    Not sure I want to try the 520gu via WAN then yet, no problem on 500gpv2 (LAN)
     
  72. borosai

    borosai Addicted to LI Member

    I just flashed Build 38 Std on my WL-520gU without any problems.
     
  73. george993

    george993 Addicted to LI Member

    teddy_bear,

    Is there any way you could update the vpn version?

    Thanks,
    George
     
  74. michalg

    michalg Addicted to LI Member

    Tomato Firmware v1.25.8738 ND USB Ext - NOT WORKING :(

    Tomato Firmware v1.25.8738 ND USB Ext is not working on my ASUS WL-500gP v1 :(
    After flashing my router with new firmware version 38, power LED blinking and router don't boot up.
    I'm try many times :(

    Tomato Firmware v1.25.8737 ND USB Ext works fine.
     
  75. greenythebeast

    greenythebeast LI Guru Member

    build 38 worked fine on the WL500gP v2 for me
     
  76. kelvin

    kelvin Guest

    v.38 is working fine on asus wl-500gp v2, Thx!
     
  77. horhe

    horhe Addicted to LI Member

    Flashed Build 38 (extra version) on my WL-520gU, so far so good...
     
  78. jnappert

    jnappert LI Guru Member

    Same here. WL-500GP v1 stops working with v1.25.8738 ND USB Ext.
     
  79. viralmind

    viralmind Addicted to LI Member

    Hey!

    I tried Tomato Firmware v1.25.8738 ND USB Ext is not working on my ASUS WL500W.
    8737 works fine. I will rollback 8737 till come 8739.
     
  80. TexasFlood

    TexasFlood Network Guru Member

    Might not be related but similar thing happened when I loaded, I think it was a build 36 beta, on my Motorola WR850G routers (have two of them). Had to TFTP a known good (official 1.23) to revive them.
     
  81. teddy_bear

    teddy_bear Network Guru Member

    Did the last build work for anyone on WL-500gPv1 or WL-500W? These 2 models have different processor than 520gu and gPv2 where it apparently works fine...

    In case if it didn't work - did everyone get the same symptoms - blinking LED and the router not booting up?
     
  82. cr00kedview

    cr00kedview Network Guru Member

    The previous build (37) works great on my WL-500W.

    I incorrectly stated before that build 38 didn't work on my 520GU - it does, I was just not doing things correctly :).
     
  83. eRd12

    eRd12 LI Guru Member

    I can only confirm that on WL-500gP v.2 it's working ok and without any problem.
     
  84. apparissus

    apparissus Addicted to LI Member

    Upgraded two routers to v38:

    WL-500GPv2 upgrade went fine, router's back up and performing admirably.

    WZR-RS-G54 went down and didn't come back, restoring the previous firmware via tftp brought it back.
     
  85. DCX2

    DCX2 Addicted to LI Member

    Short story: WL-500W worked with build 38 extra

    Long story: It just so happens that I have a WL-500W lying around that I hadn't opened yet, and the recent issues with build 38 encouraged me to finally cut open the shrink-wrap to help support the cause. I didn't so much as touch the stock firmware, I used the Asus Recovery Tool over LAN1 with the latest ddwrt-mini-asus to clean it out (didn't even have to do a 30/30/30, just held restore while plugging it in and waited for a DHCP address). That went quickly and painlessly, no power cycles or anything.

    From there, I used the web GUI to upgrade to the latest Tomato (renaming it from trx to bin), with "Reset to Defaults". A 300s counter went by, then another dd-wrt progress bar went by, after which a refresh failed to connect.

    I noticed there was no DHCP address, and a static address didn't work. Power and Air were on steady. By this point it had been like 10 minutes since I hit upgrade in the web GUI, so I unplugged the router. After plugging it back in, DHCP worked and Tomato came right up just as expected.
     
  86. teddy_bear

    teddy_bear Network Guru Member

    Thanks for trying it! So if it does work at least on one WL-500W (which has BCM4704 chipset, the same as WL-500gPv1 and WZR-RS-G54), I don't see why it wouldn't work on others as well...
    Can anybody else try v38 one one of these routers with 4707 chipset, but this time doing thorough nvram erase prior to the upgrade?
     
  87. cr00kedview

    cr00kedview Network Guru Member

    I tried doing the thorough NVRAM erase then flashing, but still can't get build 38 to work. The only thing I haven't tried thus far is going back to either an Asus flash, or DD-WRT, then going back to Tomato.

    Edit: Alright, figured what the heck.. Flashed to the latest suggested DD-WRT firmware for the WL-500W using the Asus restore utility. Performed a reset (via router button), then again used the Asus tool to flash to teddy's build 38. The initial flash took, and I was able to access the web interface for the router (yay!), but once I did a thorough NVRAM clear, then I ran into the issue of not bring able to access the router/internet (boo!).
     
  88. teddy_bear

    teddy_bear Network Guru Member

    After you cleared the NVRAM, did you remember to restart your browser (to clear the old login out), and to use the default admin/admin login? And also - if normally you change the router's LAN IP to something else - to use the default 192.168.1.1 address?
    Sorry if I'm stating the obvoius - but I saw it too many times when these simple things are forgotten...
     
  89. Victek

    Victek Network Guru Member

    TB, yes, I can confirm, 8738NDUSB-Std release is not booting up in ASUS WL500gP v1. Power LED blinks (but not as in the recover mode frequency, it seems a reboot of the unit) I go to use recover utility to go back.

    Edit: I had to ground down pin9 in the flashram in order to recover the unit.
     
  90. freddyspam

    freddyspam Addicted to LI Member

    I've also found it necessary to physically unplug and replug the computer to router ethernet cable to get assigned a new IP. This has caused me some confusion in the past, where I thought the router was not booting up correctly.
     
  91. jnappert

    jnappert LI Guru Member

    I tried 8738 NDUSB-Ext version again with my ASUS WL500gP v1. Before I cleared NVRAM using clear.trx and flashed it with tftp. Same effect - startup ends in a reboot loop before WLAN is enabled. No access at all.

    I had to press the restore button and tftp back to 37.
     
  92. cr00kedview

    cr00kedview Network Guru Member

    Yeah, tried closing browsers, restarting the computer, power cycling the router etc. It doesn't even connect to the router to enter any username or password, and yes, it's still at the default 192.168.1.1 IP.
     
  93. DCX2

    DCX2 Addicted to LI Member

    Oops, I should have been more clear in my initial post...I only needed the Asus utility because the stock firmware wouldn't let me upgrade to non-Asus firmwares. You probably also have to use the restore utility if you semi-brick.

    I don't know if it helps to use the asus-mini vs. various ways to clear NVRAM. But in general I prefer the web GUI to flash new firmwares whenever possible, and always let every progress bar run to completion or time-out.
     
  94. eRd12

    eRd12 LI Guru Member

    I have [jffs_gcd] process in top 99-100% after switching on jffs partition. Is it ok ?:confused:
     
  95. teddy_bear

    teddy_bear Network Guru Member

  96. were55

    were55 Addicted to LI Member

    Hi TB, sorry to bother you with this, I know you are bussy with other stuff (by the way, last firmware works fine in two WL-520 in bridge configuration). I re-installed sane-backends after xinetd, now I didn't receive some errors (also I modified saned file):

    root@ZERA-DISC:/opt/etc/xinetd.d# ipkg status sane-backends
    Package: sane-backends
    Version: 1.0.20+git20091022-1
    Depends: libjpeg, libtiff, libusb
    Suggests: xinetd, inetutils
    Status: install user installed
    Architecture: mipsel
    Installed-Time: 1257955812

    Successfully terminated.

    I did a "ps" command and I don't see any other process running after /opt/sbin/xinetd was ejecuted, also I'm not sure if I have to reconfigure any file to indicate wich USB port is my MF connected (I have an USB hub with a Samsung MF and an external HD).

    Regards
     
  97. teddy_bear

    teddy_bear Network Guru Member

    were55,
    You should see xinetd in the process list. If it's not there, it did not start. Look in the system log after starting xinetd - it should have a line like that:
    daemon.notice xinetd[2824]: Started working: 1 available service
    or an error message.

    What version of this mod you're running? If you're already on v38, you no longer need to modify /opt/etc/xinetd.d/saned file - it should say "service saned" in the 1st line.
     
  98. were55

    were55 Addicted to LI Member

    Hi TB,

    I followed your recommendations and a guide found it in: http://wl500g.info/showthread.php?t=21162, this is what I did:

    - I've installed some libraries.

    ipkg install libusb
    ipkg install libtiff
    ipkg install libjpeg
    ipkg install libieee1284
    ipkg install sane-backends

    - I've modified "saned" file:

    root@ZERA-DISC:/opt/etc/xinetd.d# cat saned
    service saned
    {
    socket_type = stream
    server = /opt/sbin/saned
    user = root
    group = root
    wait = no
    disable = no
    }

    - execute:
    killall xinetd 2>/dev/null
    /opt/sbin/xinetd

    - Verify scanner is found:
    root@ZERA-DISC:/opt/etc/xinetd.d# sane-find-scanner

    found USB scanner (vendor=0x04e8 [Samsung], product=0x342e [SCX-4300 Series]) at libusb:001:004

    root@ZERA-DISC:/opt/etc/xinetd.d# scanimage -L
    device `xerox_mfp:libusb:001:004' is a SAMSUNG ORION multi-function peripheral

    - Front-End -
    I used xsane in my PC running windows xp.
    I've modified c:/sane/etc/sane.d/net.conf adding "192.168.1.1".

    Now my scanner is working fine.

    TB, thanks for that, this is a great router with better software. :)
     
  99. nyonya

    nyonya Addicted to LI Member

    After upgrading my WL-520gU to v38, still can't get my USB hard drive to shop up in 'Network' under Windows 7, but I've gotten around that by using the FTP server. Still don't know why it works on one computer but not the other, but no matter - thanks for all your hard work TB!
     
  100. viralmind

    viralmind Addicted to LI Member

    Thx for ur work !

    Unfortunately Not working on wl500w same effect blinking power led ,unreachable router.
     

Share This Page