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

Tomato ND USB Mod with kernel 2.6 (Tomato-RT)

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

  1. protteus

    protteus Addicted to LI Member

    I have one WL500gp with tomato victek, one WRT54GL also with tomato victek and everything was doing fine.

    I went to buy a RT-N16 as soon as i knew that there was tomato firmware support for it.

    Loaded dd-wrt and next tomato, doing exactly like it was told in the forum.

    No complains, except that part of being impossible to get ionline.pt and correiomanha.pt

    who.is reported those sites being active!!!

    those two sites ip are in the 62.xx.xx.xx area strangely!

    i could ping other ip but those not.


    Very strange indeed

    Instead of loading ASUS original firmware right away i´ve loaded dd-wrt to give it a try.

    With dd-wrt I can load those pages!!!

    I believe it´s not only Tomato related but ALSO Tomato Victek related since the other router (wl500gp) had a little dificulty opening correiomanha.pt (sometimes it would even time out) but if we hit F5 the page would load.
     
  2. soldier

    soldier Addicted to LI Member

    You have PM with step by step tutorial
     
  3. joew333

    joew333 LI Guru Member

    Super Exciting

    20+ pages of discussion is awesome.

    What will be in the next tomato update, and when will it come out? Anything we can do to support the next release?
     
  4. cariyawa

    cariyawa Addicted to LI Member

    Any help?... I am not a hardware guru.. I heard RT-N16 doesn't support >1TB.. that is why I asked it.. may be a stupid question....:)
     
  5. teddy_bear

    teddy_bear Network Guru Member

    I see not reason why... It's a Linux box... The only restrictions are for a partitions size, and that depends on the file system used to format a partition.
     
  6. teddy_bear

    teddy_bear Network Guru Member

    Dude... Don't forget to repost this question one more time when this thread goes onto the next page. And then on the next page... And on the next... :biggrin:
     
  7. barkmann

    barkmann Network Guru Member

    just a quick note of thanks to teddy_bear for his efforts.

    Flashed the firmware onto my new n16 a couple of days ago and its operation has been flawless so far (although i haven't enabled wlan to try that out. Just very grateful I now have a router with gig ethernet and tomato!).

    cheers Chris
     
  8. though

    though Network Guru Member

    it's not the router and it's not tomato. take your router to a friend's house or a different country and it will work.....


     
  9. though

    though Network Guru Member

    just for s%$^& and giggles i tried my old lady's laptop today to transfer an 18gb file over wireless. i have the network set to G-only. her lappy has an Atheros AR5007EG wireless client...

    during the transfer i had a constant ping going to the router from the same laptop to test for dropouts, etc. twice during the transfer i had a 'general failure' happen, i am assuming this is the wireless portion crashing on it??? but it picks right back up after about 3 or 4 ping general failure/timeouts.

    i had my wired desktop pinging at the same time and experienced zero dropped packets or general failures during this time.

    just an fyi...
     
  10. KyleChen

    KyleChen Addicted to LI Member

    lots of reading and learning today...lol

    and abt 10 minutes ago, after i finish reading all the posts, i ordered a n16 from ebay..can't wait now

    but mac qos is a necessary function for me, hope dear teddy bear will fix it asap in next build that will come out asap(hopefully:).

    i am planning to run transmission, mldonkey, php, sql...everything on the n16, downloading dozens of torrents at one time, see how it can go.

    only thing i can support here is a storage page, http://bbs.zh-au.com/filesmgr/, i just put a uploading module in the page. everyone can upload and download fast and freely. it is one of my obsolete sites and i dont mind it being blow up.(left butn is browse files,right butn is upload).
     
  11. soldier

    soldier Addicted to LI Member

    I’m also running WLAN on Atheros AR9285 chip in B/G mode without problem. I also managed to run flawlessly in Auto mode and take advantage of N capable notebook but only in 20 Mhz channel width. But the connection speed of WLAN card is only 65Mbps.:confused::confused::confused:
     
  12. ledan

    ledan Addicted to LI Member

    I tried my 1.5TB and it worked. WD essential external 1.5TB.
     
  13. ledan

    ledan Addicted to LI Member

    Did more testing last night and it appear to be an overheating problem. I put the router on the side with a fan throwing air at it and was able to transfer a 6GB file without connection drop. Even better, the transfer speed was 14MB/s !!!

    Stopped the fan and retested at speed of 9MB/s.....connection drop again.

    I am planning to open it to install better heatsink.
     
  14. Eambo

    Eambo Addicted to LI Member

    That's disappointing to hear, I don't have any spare fans lying around and I don't really want to modify internal components...

    Has anyone else had heat related issues with this router?
     
  15. deboyz1014

    deboyz1014 Addicted to LI Member

    This is interesting, I'm going to have to throw a fan on it to see if there is any improvement.
     
  16. cariyawa

    cariyawa Addicted to LI Member

    I'll try it, once I go home...
     
  17. bigclaw

    bigclaw Network Guru Member

    Static DHCP coupled with IP QOS should get you going in the meantime.
     
  18. ledan

    ledan Addicted to LI Member

    From what I have read on other forum and here, some N16 owner seems to have wireless connection drop but others not. According to the tests I have done and answer from teddy bear and cariyawa, it appear to be related to the wireless speed. At 10MB/s and over, the connection drop occur rapidly and under 8MB/s, it doesn't seems to occur. So, if you cannot obtain speed higher than 8MB/s, there is no need to add fan or heatsink. But if you are close to the router and want to transfer file at higher speed...

    I don't think the fan helped for better speed but it helped to stop connection drop.
     
  19. teddy_bear

    teddy_bear Network Guru Member

    Very interesting observation!

    I guess if this is confirmed, Asus should do a recall and replace heatsinks on all N16's. In the meantime, this kind of mod (below $10) may come handy :)...
     
  20. maurer

    maurer LI Guru Member

    anyone tested this issue with stock/beta asus firmware ?
     
  21. ledan

    ledan Addicted to LI Member

    Yep, it occured with ASUS stock, beta, tomato and dd-wrt
     
  22. maurer

    maurer LI Guru Member

    did something like this happened before ?
    how it can be done?
     
  23. madduru

    madduru Addicted to LI Member

    Few disconnects - my (strange) observations

    Unfortunately I have seen disconnects in the past few days of using N16 with tomato. Here are my observations:

    1. I have seen wireless clients getting disconnected when I turn on my Microwave oven. This happened on my Lenovo Thinkpad and Dell laptop. This was never the case with WL520gU. (Router is on second floor, Microwave is on 1st floor, laptops were located 1 on each floor)

    2. After running N16 for 48 hours continuously (since 1/19/09), today morning I have seen my laptops getting disconnected while my wired clients working fine. When I refresh wireless networks, my laptops tried connecting .... and gave up. Only after rebooting the router, my laptops were able to connect to the wireless network. Wired clients were not affected.

    3. Regarding downloading files from a external USB hard drive, I did not see much improvement over WL520gU speeds.

    Based on these facts I am wondering should I switch back to 520gU?

    Here are my settings:

    Basic/Wireless:
    ============================
    MAC Address 90:E6:BA:8E:5E:0D
    Wireless Mode Access Point
    Wireless Network Mode Auto
    Radio Enabled
    SSID RTN16
    Security WPA / WPA2 Personal + TKIP / AES
    Channel 6 - 2.437 GHz
    Channel Width 40 MHz



    Afterburner
    AP Isolation
    Authentication Type : Auto
    Basic Rate : Default
    Beacon Interval (range: 1 - 65535; default: 100): 100
    CTS Protection Mode : Disable
    Regulatory Mode : Off
    Country / Region : Japan
    Bluetooth Coexistence: Disable
    Distance / ACK Timing meters (range: 0 - 99999; 0 = use default)
    DTIM Interval (range: 1 - 255; default: 1)
    Fragmentation Threshold (range: 256 - 2346; default: 2346)
    Frame Burst : Disable
    Maximum Clients (range: 1 - 255; default: 128): 128
    Multicast Rate : Auto
    Preamble: Long
    802.11n Preamble : Mixed Mode
    RTS Threshold (range: 0 - 2347; default: 2347)
    Receive Antenna : Auto
    Transmit Antenna : Auto
    Transmit Power 42 mW (range: 1 - 251, actual max depends on Country selected; default: 42)
    Transmission Rate : Auto
    WMM: Enable
    No ACK: Disable
    APSD Mode: Enable
     
  24. mstombs

    mstombs Network Guru Member

    Linksys had problems with wireless disconnects oncert WRT54G/GS including my GS1.1 The fix there was to overclock the CPU to 216Mhz as standard...

    I reckon will release a firmware upgrade underclocking the CPU and/or limit the connection speed!

    Will wall mounting the N16 improve heat transfer?
     
  25. Toastman

    Toastman Super Moderator Staff Member Member

    I spoke with my colleague in the UK who has an RT-N16 in the lab on a 50Mbps connection. He's a development engineer - embedded systems design. I asked him to check the temperature of his under load, and also look to see if this router's design is likely to cause overheating. He's busy, but promised to check if he has time. They have a workshop full of tools to do so, so I'm looking forward to his reply. His initial comment was that the staff there stream all sorts of stuff all day long and it's been as solid as a rock. Incidentally, they apparently bought it to replace their Cisco router!

    Incidentally, there have indeed been some reports of problems with ASUS devices before:

    http://vip.asus.com/forum/view.aspx...g&id=20051027103302403&page=1&SLanguage=en-us

    EDIT:

    I had his email back, he had time to run some simple tests over the weekend. His sample of the RT-N16 runs at 45 degrees C which is perfectly normal. He found no evidence of processor failure due to overheating. When the processor temperature was raised it became unstable at 85 degrees C. The router was then placed in a test chamber maintained at 50 degrees C ambient for 2 days.

    No failures, dropouts, or slowdowns were observed.
     
  26. ledan

    ledan Addicted to LI Member

    I sent a first email to Asus support explaining the problem with large file transfer at high speed. Then, I sent another to explain that I added a fan throwing air at the router and it solved the problem. Git this answer...

    Dear Valued Asus Customer,

    Thank you for the additional information, I have passed along the issue to our engineering department and while I am awaiting a reply, I will add this information in as well.

    If you could please reply with your complete contact and shipping information. We will try to duplicate the issue in our lab and if determined an isolated case, we will issue a RMA to replace this unit you have now.

    Best Regards,
     
  27. Troydm

    Troydm Addicted to LI Member

    CPU: 3% usr 3% sys 0% nic 26% idle 0% io 3% irq 63% sirq

    QOS is on. this is printed during iperf tcp test from wireless client to lan server, average speed is 80 MBit/s but the sirq value very high! is this normal?
     
  28. joew333

    joew333 LI Guru Member

    Stable as a Rock

    We have been running the RT-N16 with Teddy Bear Tomato for about 2 weeks now. We have a VOIP adapter connected running continuously, 2 wireless desktops, 2 or 3 portable wireless devices and 3 laptops. All the connections are solid as a rock (G and N speeds). I will play around with a couple of older wireless B devices to see the interoperability, but so far this firmware is darn solid.

    Way to go Teddy Bear.....Totally brilliant. I cannot wait for the next update!!!! Please let us know what you have in mind for the next update.
     
  29. mstombs

    mstombs Network Guru Member

    Oh dear, I have to report my N16 doesn't work with Tomato, or dd-wrt. The WAN port just doesn't work - and doesn't seem to have switched with any other.

    I've been round dd-wrt mini, mega and tomato and soft and hard reset in each.

    The only encouraging news is that the WAN port also doesn't then work in Asus firmware - a little face says the Ethernet cable not connected, and the wan wizard also doesn't get past the request to insert the cable.

    The Asus firmware does work after hard reset to defaults, so it must be down to nvram vars. I noticed a difference in "vlan2 ports" but setting the Asus variant "8u" in Tomato didn't fix the problem.

    These are the working Asus default vlan vars

    Code:
    vlan1hwname=et0
    vlan1ports=1 2 3 4 8*
    vlan2ports=0 8u
    vlan_enable=1
    Here are the Tomato defaults

    Code:
    vlan1hwname=et0
    vlan1ports=4 3 2 1 8*
    vlan2hwname=et0
    vlan2ports=0 8
    vlan_enable=1
    Guess there's something else amiss, is the "1 2 3 4" vs "4 3 2 1" an issue?

    By the way MTU is broken in Asus firmware, on dhcp connections there's no option to set it, and certain web pages, such as Linksysinfo don't work. Workaround is to set the PC interface to the known modem MTU.

    [edit] Later mini and big builds dd-wrt.v24-13637_NEWD-2_K2.6 also worked for a bit

    but not now

    Seems I am stuck with a dog which will only work with Asus firmware.
     
  30. TexasFlood

    TexasFlood Network Guru Member

    That's a pretty big honking heatsink. I haven't had enough time to test and see if I have this issue or not. I'm hoping not, I'd rather not have to crack the case and add a heat sink but probably not too difficult, just a time consuming PITA. It's amazing what mods some will do to their routers, such as this mod to install an internal hard drive that I posted about in the dd-wrt forums a while back. I'm probably not daring enough to try that one but it's kind of cool that somebody did.
     
  31. victorpham

    victorpham Guest

    Dear Soldier,

    Would you mind PM me with step by step tutorial? I'm newbie with N16 and Tomato

    Thanks,
     
  32. maurer

    maurer LI Guru Member

    I also need a tutorial on how to install tomato on RT-N16 with optware - the lack of this tutorial made me install dd-wrt that is very buggy :frown:
     
  33. soldier

    soldier Addicted to LI Member

    Tutorial-Install Tomato on RT-N16 through dd-wrt firmware

    Hopefully no one won’t mind if I put this tutorial here. If there is something I miss please correct me.

    I build this tutorial from my experience and I put some stuff that cariyawa wrote on dd-wrt forum, so thanks cariyawa for some inputs.

    OK let’s do it:

    With this guide you can install Tomato through dd-wrt like I did.

    There are couple of preparations that you have to do first.

    About the computer that you have to use for flashing and is connected to your Asus RT-N16:
    - Set fixed IP address.
    - Use only wired connection (disable wireless to be in the safe side)
    - Make sure you disable firewall
    - Use Internet Explorer, not Firefox or Chrome or other web browsers

    1. Now you have Asus firmware on your router. You need to do a HARD RESET first (while pressing WPS button, plug the power to the router, you will see blinking PWR LED. After a while everything will be settled down... and defaults will be restored)-Note: You can do it also in the web interface of Asus firmware (restore to default settings or something similar).

    2. Then you should use trx file from dd-wrt for initial flashing. Download the file here http://www.dd-wrt.com/dd-wrtv2/down.../dd-wrt.v24-13637_NEWD-2_K2.6_mini_RT-N16.trx

    3. Save this file on the computer, go to Asus router web interface (http://192.168.1.1) and update-upgrade firmware with this file. Wait for all the process to complete and when you see a window with dd-wrt logo and user name and password type admin for username and again admin for password.

    4. You are now in dd-wrt mini firmware, but you want Tomato, right

    5. Then you need to do a HARD RESET again.

    6. Wait for router to reboot and then you will again see username and password window. Type them in and find upgrade firmware (it should be somewhere in Administration or Configuration)

    7. Download this file http://www.mediafire.com/?sharekey=19f5a2ee1929229a91b20cc0d07ba4d2e32bfa663f16ecf0 , extract the "rar" file (it is a compressed file.. You may use Winzip, Winrar or any other file extraction utility) change the extension "trx" to "bin" (DD-WRT takes .bin files) and upgrade firmware with it

    8. Go to firmware interface (http://192.168.1.1) type admin for username and admin for password

    9. Go to Administration, then to Restore Default Configuration, click on select, choose option Erase all data in NVRAM memory (thorough), then click OK, wait for router to reboot, type username and password and you are using Tomato.


    ENJOY and don't forget to thank teddy bear for this nice firmware.
    Many thanks to cariyawa and mstombs for their contribution in this guide.
     
  34. gingernut

    gingernut LI Guru Member

    I've been trying to transfer a 1.5GB file wirelessly using samba from a laptop to the attached usb drive but samba crashes while windows is calculating how long it's going to take.

    Here's a Tomato system status capture. Very high cpu load.

    [​IMG]

    and log out put.

    Code:
    0:00:07 unknown daemon.info dnsmasq-dhcp[11748]: DHCP, IP range 192.168.2.100 -- 192.168.2.149, lease time 1d
    Jan 23 10:00:07 unknown daemon.info dnsmasq[11748]: reading /etc/resolv.dnsmasq
    Jan 23 10:00:07 unknown daemon.info dnsmasq[11748]: using nameserver 80.58.61.254#53
    Jan 23 10:00:07 unknown daemon.info dnsmasq[11748]: using nameserver 80.58.61.250#53
    Jan 23 10:00:07 unknown daemon.info dnsmasq[11748]: read /etc/hosts - 2 addresses
    Jan 23 10:00:07 unknown daemon.info dnsmasq[11748]: read /etc/hosts.dnsmasq - 1 addresses
    Jan 23 10:00:08 unknown daemon.err nmbd[11751]: Samba server UNKNOWN is now a domain master browser for workgroup CASA on subnet UNICAST_SUBNET
    Jan 23 10:00:16 unknown daemon.err nmbd[11751]: Samba server UNKNOWN is now a domain master browser for workgroup CASA on subnet 192.168.2.1
    Jan 23 10:00:31 unknown daemon.err nmbd[11751]: Samba name server UNKNOWN is now a local master browser for workgroup CASA on subnet 192.168.2.1
    Jan 23 10:03:29 unknown daemon.err smbd[11823]: request_oplock_break: no response received to oplock break request to pid 11777 on port 32922 for dev = 801, inode = 370
    Jan 23 10:03:29 unknown daemon.err smbd[11823]: for dev = 801, inode = 370, tv_sec = 4b5abad2, tv_usec = 62619
    Jan 23 10:04:01 unknown daemon.err smbd[11823]: request_oplock_break: no response received to oplock break request to pid 11777 on port 32922 for dev = 801, inode = 370
    Jan 23 10:04:01 unknown daemon.err smbd[11823]: for dev = 801, inode = 370, tv_sec = 4b5abad2, tv_usec = 62619
    Jan 23 10:04:33 unknown daemon.err smbd[11823]: request_oplock_break: no response received to oplock break request to pid 11777 on port 32922 for dev = 801, inode = 370
    Jan 23 10:04:33 unknown daemon.err smbd[11823]: for dev = 801, inode = 370, tv_sec = 4b5abad2, tv_usec = 62619
    Jan 23 10:04:51 unknown daemon.err smbd[11777]: write_socket_data: write failure. Error = Broken pipe
    Jan 23 10:04:51 unknown daemon.err smbd[11777]: write_socket: Error writing 64 bytes to socket 7: ERRNO = Broken pipe
    Jan 23 10:04:51 unknown daemon.err smbd[11777]: Error writing 64 bytes to client. -1. Exiting
    Jan 23 10:05:05 unknown daemon.err smbd[11823]: request_oplock_break: no response received to oplock break request to pid 11777 on port 32922 for dev = 801, inode = 370
    Jan 23 10:05:05 unknown daemon.err smbd[11823]: for dev = 801, inode = 370, tv_sec = 4b5abad2, tv_usec = 62619
    Jan 23 10:05:05 unknown daemon.err smbd[11823]: get_share_modes: process 11777 no longer exists
    Jan 23 10:05:05 unknown daemon.err smbd[11823]: get_share_modes: file with dev 801 inode 370 empty
    Jan 23 10:05:05 unknown daemon.err smbd[11823]: write_socket_data: write failure. Error = Broken pipe
    Jan 23 10:05:05 unknown daemon.err smbd[11823]: write_socket: Error writing 107 bytes to socket 7: ERRNO = Broken pipe
    Jan 23 10:05:05 unknown daemon.err smbd[11823]: Error writing 107 bytes to client. -1. Exiting
    
     
  35. mstombs

    mstombs Network Guru Member

    Comments:-

    Step 7 - you must rename the tomato.trx file to tomato.bin, and if you select the dd-wrt option to reset to defaults after loading firmware step 8 and 10 should not be required. I believe this clears the nvram to allow the new boot to start clean.

    Probably I am not the best guide however, as my RT-N16 WAN port does not work in dd-wrt (or aparently tomato). My router does work with Asus firmware which can be loaded from dd-wrt web interface by

    a) Rename Asus firmware RT-N16_9.9.3.7.trx to RT-N16_9.9.3.7.bin
    b) Select dd-wrt option to reset to defaults after loading firmware.

    No further button pressing or reset to defaults (can't find this in asus web anyway) required.
     
  36. Toastman

    Toastman Super Moderator Staff Member Member

    Does this mean your RT is busted, or there are some variants?

    Easiest way to flash the RT-N16 with anything, is with the ASUS firmware recovery tool. That way you don't get your router infected with DD-WRT at all. <g>
     
  37. TexasFlood

    TexasFlood Network Guru Member

    You could probably do a command line reset from the "hidden" Main_AdmStatus_Content.asp page, if you really wanted to, :smile:
     
  38. call_151

    call_151 Addicted to LI Member

    Problem Accessing NAS-USB page on web gui

    Many thanks to Teddy_Bear in bringing Tomato to the RT-N16.

    I am unable to access the NAS-USB web gui page http://192.168.12.1/nas-usb.asp after installing a Sandisk USB 2.0 Extreme Contour Flash drive. If i unplug the drive, the page comes out fine, however, with the drive connected, the page does not display regardless of the type of browser used (Firefox, Google, IE). There are no issues accessing the http://192.168.1.1/nas-samba.asp and http://192.168.1.1/nas-ftp.asp pages. All the other web gui pages works.

    Partitions on the USB drive are as shown below:

    The USB drive has been formatted with ext3, and mounts are as follows:
    Under the NAS-USB page, USB 2.0 and ext2/3 support has been activated but automount has been turned off. Turning auto-mount back on does not restore the page.

    Under the Administration->Scripts->Init page, the various partitions are mounted as follows:
    Optware has been successfully installed as less and nano have been verified to be working. Copying files to/from /dev/sda1 works fine too.

    I suspect the error might have something to do with the page trying to list all the usb devices connected and something is causing it to fail but am not sure what is failing.

    Is anyone experiencing the same problem?

    Would appreciate any advise / suggestions in troubleshooting this.

    Alternatively, can someone point out the config file(s) / nvram setting(s) that can be modified via the command line as an interim replacement for the nas-usb web gui page?

    Thank you very much in advance.
     
  39. cariyawa

    cariyawa Addicted to LI Member

    This is the procedure I followed...I am putting it in a single place so that people don't have to pick piece by piece from everywhere in the thread. So please, if I am wrong, correct me.. also when you add something, include the whole thing.. not the edited part.. I know it makes this thread longer.. but it will make people's life easier...
    (thanks to soldier and mstombs)

    -------------------------------------------------------------
    Computer Preparation:
    1. Set fixed IP address
    2. Use only wired connection (disable wireless to be in the safe side)
    3. Make sure you disable firewall in Windows
    4. Use Internet Explorer, not Firefox or Chrome or other web browsers


    Flashing Procedure(Asus stock->DD-WRT->Tomato)
    1. Now you have Asus firmware on your router. You need to do a HARD RESET first (while pressing WPS button, plug the power to the router, you will see blinking PWR LED. After a while everything will be settled down... and defaults will be restored)-Note: You can do it also in the web interface of Asus firmware (restore to default settings or something similar).

    2. Then you should use trx file from dd-wrt for initial flashing. Download the file here http://www.dd-wrt.com/dd-wrtv2/downl...ini_RT-N16.trx

    3. Save this file on the computer, go to Asus router web interface (http://192.168.1.1) and update-upgrade firmware with this file. Wait for all the process to complete and when you see a window with dd-wrt logo and user name and password type admin for username and again admin for password.

    4. You are now in dd-wrt mini firmware, but you want Tomato, right

    5. Then you need to do a HARD RESET again. Use above technique.. Just plug the power while pressing WPS

    6. Wait for router to reboot and then you will again see username(root) and password(admin) window. login to DD-WRT using default password(or if you want you can change the password..but it is useless... we are going to install tomato.. right?)

    6.1. Here I did something extra.. I am not sure this is essential.. so if somebody did it differently, put it here..probably hard reset after tomato installation will fix this(i.e. will reset the password)....but for the sake of more information, this is what I did..

    Start a telnet session to your router which has DD-WRT(telnet 192.168.1.1). Then issue the command: "nvram get http_passwd" without quotes. Why? Since DD-WRT use a different password storing mechanism, it encodes our password. we need to retrieve this encoded password. You should save it in a text file, because once you upgrade to tomato, it required this password to enter in to tomato.

    7. Now.. lets download tomato and upgrade: Download this file http://www.mediafire.com/?sharekey=1...2bfa663f16ecf0, change the extension to "bin"(DD-WRT takes .bin files) and upgrade firmware with it

    8. After a little while router will reboot and you will be presented with login screen. In that dialog, you user "root" as the login name and previously retrieved password as the password...Now you are in tomato.

    9. Go to Administration, then Restore Default Configuration, click on select, choose option Erase all data in NVRAM memory (thorough), then click OK, wait for router to reboot, type username and password and you are using Tomato with default config set.

    9.1. After this, step I had this problem: It doesn't take a WAN IP from my cable modem...It just displays renewing and that is it... If it is the case for you, then do a reset again as follows...Now just press the "RESTORE" button on the back for couple of seconds(router must be already up and running...this is not the reset using WPS where you plug the power while pressing WPS) until you see the blinking power LED... wait couple of minutes(2-3 minutes) until it settles down... then router can get a WAN IP.

    Few extra things that I followed:
    * I read it from DD-WRT, thread that even after you see the password change dialog, continue button or upgrade success message, after freshly firmware upgrade, you may want to wait 3-5 minutes without interrupting anyhting. It is mentioned that even it seems all done and good to go, processor may still updating nvram variables. So, as I always do...just to be in the safe side, I always let it run at least 5 minutes, before move on to the next step.
    * DD-WRT always recommends hard resets


    ENJOY and don't forget to thank teddy bear for this nice firmware.
    -------------------------------------------------------------

    Since so many people have RT-N16 and it is better to compile this is a small how to. There is nothing here about directly going from Asus stock->Tomato. Please somebody include it.. I didn't do that.. so I don't have any experience about it...:biggrin:
     
  40. mstombs

    mstombs Network Guru Member

    It is not busted because it always works with Asus firmware with nvram set to defaults. I can't find any other reference to a similar fault though, nor can I explain why it did work for a bit with dd-wrt... can't do that again.

    But probably explains why I got it cheap second hand..., but quite new "Made in China Sept 2009" imported to UK direct from Taiwan, serial No 991TAC025477.
     
  41. TexasFlood

    TexasFlood Network Guru Member

    What version of dd-wrt are you loading? Have you tried different builds? Think I loaded eko_V24-K26_svn13450_Asus_RT-N16 big build, but I'm probably not a good example since I haven't actually connected mine to the wan yet. I'm going to try it today, both because I finally have some time and also now worried that it possibly might not work after reading your posts. Good luck with it anyway.
     
  42. cariyawa

    cariyawa Addicted to LI Member

    There is a newer build of DD-WRT. People have tried that...This is the link...but I am really happy with tomato and not likely to try that.

    http://www.dd-wrt.com/site/support/other-downloads

    Then choose:
    others->eko->BrainSlayer-V24-preSP2->01-16-10-r13637->broadcom_K26
     
  43. TexasFlood

    TexasFlood Network Guru Member

    I've learned over the years that the newest build of DD-WRT is not always the best. It might be the best, but isn't guaranteed to be. What you want is the latest stable build and you need to poke around the peacock thread and the forums to find what that is. If you are on a stable build of DD-WRT and jump to a new one without checking it out first, you may be sorry, you may even (rarely) end up with a brick.
     
  44. mstombs

    mstombs Network Guru Member

    I've tried dd-wrt 13309 which was linked from the router database, and 13637. I've now loaded an update to asus firmware rev 9.9.4.75 from asus.ru, which also seems to work fine and has a clear function to reset to defaults. I'll try going straight to Tomato next using the repair tool, but I have to reboot into windoze for that!
     
  45. barkmann

    barkmann Network Guru Member

    just tried a few transfers via wired connections to the USB interface (wlan is off).

    Samba - a 2 GB file was transfered to an ext3 hard disk attached to the usb interface.
    Router CPU was around 35%, file got around half way through and the router crashed, dumping ppoe session as well. Very slow transfer before it crashed - perhaps 4 mins or more. It did not require a power cycle to come back up.

    ftp - tried setting up ftp instead. Router cpu for the ftp daemon was up around 95%. Transfer speed was OK, levelling out around 11-13 MB/s. But not so useful as the router is very slow for anything else during the transfer.

    I'm not so sure the crashing is due to cpu heat - I did the ftp transfer straight after the crash with no ill effects - and very high cpu load. Ambient temp in the room around 24 celcius.

    cheers Chris
     
  46. cariyawa

    cariyawa Addicted to LI Member

    Seems like different people have their own scenarios. I also think that this is NOT a over heating issue. As "thoug" pointed out in a earlier post, most probably it might be a driver issue from router side or wireless card's side. I used samba to transfer 20GB file using an attached USB hard drive and I didn't have any problem. Even with FTP I don't have any trouble... but If I used SSH....it breaks...
     
  47. mstombs

    mstombs Network Guru Member

    I'm finally up and running in this tomato beta, I was able to fix it by using the tomato web gui to disable auto-negotiation on the WAN port. It starts working if set to 100-full.

    Then as expected tomato won't route through my half-bridge modem, but my usual firewall script fixes that:-

    Code:
    GW=$(nvram get wan_gateway)
    IF=$(nvram get wan_iface)
    route add -host $GW dev $IF
    route add default gw $GW
    
    IP=$(nvram get wan_ipaddr)
    NM=$(nvram get wan_netmask)
    logger New IP $IP NM $NM GW $GW IF $IF
     
  48. TurtleFang

    TurtleFang Addicted to LI Member

    Hey Teddy_bear,

    Just pulled latest source and built a VPN bundled image. I'm posting "through" it right now. All seems well so far.

    Nice job pulling in VPN to the branch and not needing to merge anymore.

    Not sure if you've had a chance to yet, I plan to do some sanity testing of OpenVPN tomorrow and will let you know how it goes.

    Thanks again for all your hard work.

    UPDATE: Excellent, VPN build with no USB/JFFS is less than 4 MB, so it runs on the RT-N12.

    -TurtleFang
     
  49. TexasFlood

    TexasFlood Network Guru Member

    Should have thought of that since I saw that often in the past. Only Gb capable servers were set to auto-negotiate GB since this would so often fail on pre-Gb servers which we'd set to a forced setting, typically 100Mb full.
     
  50. gingernut

    gingernut LI Guru Member

    After re-testing wireless transfers and samba always crashing, using files bigger than about 300MB-400MB, seems it was due to having my usb drive formated in fat32.

    Formated the drive as ext2 and samba now works perfect, no problems at all.
     
  51. ledan

    ledan Addicted to LI Member

    I added a new heatsink on the cpu and tested with a 6GB file transfer. First attemp was successful and during second attemp, connection drop occured. The cpu get really hot but I can go a lot further before the connection drop occur. Speed was between 10MB/s and 13MB/s.

    [​IMG]
     
  52. Credo

    Credo Addicted to LI Member

    sorry for my English.
    Would you do that they will do when connecting l2tp
    server does not form 00:00:00:00 but such l2tp.corbina.net?
     
  53. mstombs

    mstombs Network Guru Member

    Well the mystery deepens. Tomato sets the nvram variable wan_speed, which does not appear to be used anywhere in the firmware.

    The default is wan_speed=4 (displayed as auto). My working router now has wan_speed=2 (displayed as 100Mbps full), but by connecting a computer to the wan port I can see it must still be in auto, as it will connect at 1000 full.

    So I guess as per the warning on that web page, this variable has no effect for this hardware.

    There's a similar web page in asus firmware (maybe hidden?), which sets different nvram vars, whose use is commented out, so I'm sure that's also a red herring.

    The firmware does have an "et" command which can communicate with the ethernet driver:-

    Code:
    Tomato v1.27.9042 RTN16-beta02 ND USB Ext
    
    
    BusyBox v1.14.4 (2010-01-06 13:23:33 EST) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
    root@unknown:/tmp/home/root# et
    usage: et [ [ -a | -i ] interface ] and one of:
            up
            down
            loop <0 or 1>
            dump
            msglevel <bitvec> (error=1, trace=2, prhdr=4, prpkt=8)
            promisc <0 or 1>
            qos <0 or 1>
            txdown
            speed <auto, 10half, 10full, 100half, 100full, 1000full>
            phyrd [<phyaddr>] <reg>
            phywr [<phyaddr>] <reg> <val>
            robord <page> <reg>
            robowr <page> <reg> <val>
    but it doesn't seem to function, maybe not after wan port is in use?

    Code:
    root@unknown:/tmp/home/root# et -i vlan2 speed 10half
    etcspeed: Operation not supported
    root@unknown:/tmp/home/root# et -i vlan2 speed 100half
    etcspeed: Operation not supported
    and internally these flags are used in cfe/cfe/include/cfe_ioctl.h

    Code:
    #define ETHER_SPEED_AUTO    0    /* Auto detect */
    #define ETHER_SPEED_UNKNOWN    0    /* Speed not known (on link status) */
    #define ETHER_SPEED_10HDX    1    /* 10MB hdx and fdx */
    #define ETHER_SPEED_10FDX    2
    #define ETHER_SPEED_100HDX    3    /* 100MB hdx and fdx */
    #define ETHER_SPEED_100FDX    4
    #define ETHER_SPEED_1000HDX    5    /* 1000MB hdx and fdx */
    #define ETHER_SPEED_1000FDX    6
    note they have different meaning to the 'unused' web interface ones. It looks possible to set the switch speed from the bootloader prompt, but as far as I can tell it is a hard-coded default to autonegotiate

    So now I am confused as to why my router didn't work, but does now, it certainly seemed plausible that it was an autonegotiate problem.
     
  54. maurer

    maurer LI Guru Member

    mstombs, you're not the only one - same issue happened to me also yesterday...
    I actually believe it's from dd-wrt build...
    4 days ago i upgraded like this : asus 1.0.0.6 -> ddwrt_13491 -> tomato -> reboot to default. Everything went smooth, tomato was up and running.
    one day after i wanted to check out"optware the easy way" dd-wrt script so I upgraded directly from tomato to ddwrt_13637_latest...
    I wanted again tomato so i tried to go back to tomato so i put it back on.
    I had everything configured (my wan uses static IP) but it just didn't had any connection...after testing every network parameter for 30 minutes I gave up - i wanted asus original - ip pup it back on and it worked - i had internet again.
    I checked your posts and i wanted to test the issue again so i put an older ddwrt, 13575...the issue reproduced...
    the only way i could get connectivity was to use the restore button...
     
  55. joew333

    joew333 LI Guru Member

    Heat Sink

    The RT-N16 comes with a heat sink on the CPU, does it not (in FCC photos and you can see it through the perforations in the top of the case)? It seems sized to do the job. Have I got it wrong? What is the benefit to the mods?
     
  56. cariyawa

    cariyawa Addicted to LI Member

    May be this is related...but anyway I am going to put it here...I went couple of times from DD-WRT to tomato..May be 5-6 times. Whenever I moved from DD-WRT to tomato, everything went smoothly except getting WAN IP(I have DHCP WAN). It just saying "renewing" and that is it.. Even after thorough nvram erase it couldn't be fixed. I had to use restore button to fix it.
     
  57. schweinc

    schweinc Network Guru Member

    "Renewing"

    Here's what happened to me. Never tried the RT-N16 plugged into the cable modem. Plugged it directly to my desktop and flashed dd-wrt and then tomato. Then I plugged it into the cable modem and configured it from the web gui. After several frustrating hours of resetting, reflashing, the "renewing" continued. Removed it and reconnected my WRT-54GS v4 and it also stuck at "renewing." Finally called tech support for the ISP and he said they bind the modem and router. He sent a reset command and it worked -- perfectly. Hope that helps someone.
     
  58. teddy_bear

    teddy_bear Network Guru Member

    Yes, this was an expected FAT behaviour - it fills up the whole file with zeros before it actually starts copying it - this was the same with the main USB mod since the beginning, see this post. Writing zeros to large file may take longer than 30 secs, so Samba times out.
    I'm trying to put a workaround for this into the next build though.
     
  59. teddy_bear

    teddy_bear Network Guru Member

    Yep, a while ago I too looked all over trying to find out whether this nvram variable is used or not. It's not present anywhere in the software including binary drivers, so my guess is that in can only be used by CFE code - and probably only by some routers (possibly some Linksys ones, but not this Asus).
    Have you tried to set it back to "Auto" (4), and reboot?

    Could it be that in reality the value of this variable doesn't matter but the extra reboot does? Like in the following sequence?
    • flash Tomato for the first time, nvram contains a bunch of crap from previously installed Asus or DD-WRT firmware - WAN doesn't work;
    • do a full nvram reset, the router boots up with nvram values from the CFE and does some initialization (still not enough for WAN to work properly) before Tomato has a chance to populate the rest of nvram variables with default values - WAN still doesn't work;
    • reboot one more time (after changing wan_speed it reboots automatically, unlike with most of the other settings changes). This time all correct nvram variables are present very early at the startup time, so the WAN port initializes correctly -WAN works now.

    P.S. Oh, I'm going to add the missing route your modem needs in the next build - doesn't look like it can hurt anyone by being there...
     
  60. teddy_bear

    teddy_bear Network Guru Member

    Using restore button, or erasing nvram via GUI is crucial whenever going from one firmware to another (i.e. Asus -> Tomato -> dd-wrt -> etc). In some cases everything might seem to work properly without resetting, but even so it may cause problems later...
     
  61. teddy_bear

    teddy_bear Network Guru Member

    PM me in russian with your question - I don't really understand what you mean ;)

    Also, is there anyone here who uses L2TP WAN connection with Tomato? If there's a demand for better/faster L2TP support, I may try to port L2TP improvements from Oleg's Asus firmware to Tomato, including using kernel driver - but I need people willing to test and troubleshoot it and provide feedback since I only have DHCP here.
     
  62. teddy_bear

    teddy_bear Network Guru Member

    Hight CPU usage during the transfers is normal and expected - but the router should not crash. I don't think overheating could be as bad with wired transfers as with wireless, so most probably it has nothing to do with your problem.

    It could be the "bad" drive (meaning - not fully compatible with Linux USB driver). Linux driver - even in 2.6 kernel - is still a way more picky to the hardware supported than Windows. I have a bunch of flash drives and a couple of HDDs that all work flawlessly - some are faster, some slower - but one relatively new (a few months old) Lenovo 8GB flash drive causes the router to behave weird - the Samba transfers to this drive always errors out, and the whole router becomes unstable and finally reboots when I unplug the drive. This happens with both - 2.6 kernel, and 2.4 kernel -based Tomato, as well as with dd-wrt. However this drive works perfectly in Windows, and even on the router FTP transfers sometimes work too...

    I'm going to start backporting USB driver updates from newer versions of Linux 2.6 kernel (this firmware uses 2.6.22.19, while the latest it 2.6.32.x) - hopefully this will improve compatibility with different hardware - but it still won't be perfect. Many manufacturers tend to obtain certification from Microsoft for new hardware but don't care about Linux compatibility, so Linux has to catch up (and all on voluntary basis) later...
     
  63. Troydm

    Troydm Addicted to LI Member

    i think that router locking up and then rebooting is more like a wireless driver problem,
    happened to me lately two times in a row within 5 minutes while hd streaming from server connected by lan. (I don't have any usb devices connected to router) also one thing I do see is high cpu usage especially sirq value is very high during hd streaming. can anyone explain me what's sirq means anyway?
     
  64. soldier

    soldier Addicted to LI Member

    OK about USB-NAS
    I managed to mount a USB drive with 3 ext3 partitions and 1 swap on it. Windows recognize the disk as UNKNOWN. When I opened it I see all 4 partitions. Have no authentication set.
    If I set authentication on with user name and password I can’t access the partitions inside. It always reports that username or password is incorrect.
    How can I change the UNKNOWN name and how can I mount just one partition windows to see named like Share Disk or something.
    How do you install packages into swap partition? Can anybody provide a tutorial about mounting USB disk to Asus RT-N16?
     
  65. teddy_bear

    teddy_bear Network Guru Member

    Read the 1st post of the main USB mod thread. It has the description of all features included, and links to some other posts with additional info, in particular this one.
    Also, make sure your computers have the same workgroup name specified, as you specify on the "USB and NAS" -> "File Sharing" page on the router - although this is not absolutely required, it will speed up (and simplify) client connections.
    Basic -> Identification -> Hostname
    Give your partition a label, for example "Share_Disk", then it will mount it to "/mnt/[Label]" and use the label to name the share as well. To share only some partitions, turn autoshare off, and specify shares manually on the "USB and NAS" -> "File Sharing" page, in the "Network Shares List".
    You don't. Swap is for extra memory, not to install anything on it. I don't think with 128MB RAM on N16 swap is needed at all. If you want to install extra applications, again - read the 1st post of the USB mod thread, it has a couple links to Optware installation guides.
     
  66. teddy_bear

    teddy_bear Network Guru Member

    Great! Please keep us posted whether it's actually works or not ;)... Hopefully there's no incompatibility between the new kernel and this OpenVPN version - but nobody tested it yet...
     
  67. mstombs

    mstombs Network Guru Member

    Cheers teddy_bear and the others who may have had similar problems with wan port not initializing. It does look like its not just my router, but is a a combination of router plus environment!. Will have to be more scientific next time it happens - I have tried lots of things that didn't work, power cycling plugging wan into lan of wrt54gs, a hub between asus and router etc. Reloading Asus firmware using dd-wrt "reset to defaults after flashing firmware" always worked first time. I am now a bit unsure how effective the tomato web based "reset to defaults thorough is", certainly comments on dd-wrt site suggest hard-reset is always needed. I don't know anything about the switch in the Asus, but they sometimes have local eprom, maybe a hard-reset or software triggered reset (as in wan port change) tells the switch to reset?
     
  68. bigclaw

    bigclaw Network Guru Member

    I have a dedicated NAS, so the USB-NAS problems don't concern me much. I guess the "only" other problem that's surfaced so far is the instability in large wireless transfers that may be due to overheating or driver problems. In addition, this problem is not unique to the Tomato firmware. Is this a fair assessment for the current state of affairs?

    Still trying to decide whether to pull the trigger. :)

    Thanks.
     
  69. TurtleFang

    TurtleFang Addicted to LI Member

    Hey Teddy_bear,

    Good news... I was able to confirm that openvpn is working on both my RT-N16 and RT-N12.

    It's not working via the web gui, but its working when manually configured via the command line.

    I am unable to save the config for either a server or a client config page. I enter in correct info (even verbatim from my WL500-GPv2) and the webpage gives me the error "invalid ip address". There is no ip address in the VPN config page... there is a subnet and mask for the tunnel interface, but no true ip address. Once the error window pops up, it keeps refreshing after every clear of "ok" acknowledging the error. This is true for both "tun" and "tap" modes.

    So some parameter checking in the webgui is not functioning, but that's just a cosmetic issue.

    The more important fact is that the underlying feature is working.

    I scp'd over the config files from my WL500-GPv2 and started up the openvpn server manually. It works like a charm. To generate traffic over the vpn tunnel I started streaming youtube and hulu videos without any problems at all.

    I had to manually create the /dev/net/tun device, but otherwise it worked with just the config files in the /etc/openvpn directory including the shell command with the iptables entries.

    Thanks for all your hard work putting this release together.

    -TurtleFang

    PS: For those interested my setup consisted of:
    - TomatoVPN kernel 2.6 as the openvpn server
    - Full certificate based TLS as the connection mode
    - AES-128-CBC cipher
    - No compression
    - Tunnel interface
    - push the client to use tunnel as default gateway
    - default for the rest

    - Window XP as connecting client with openvpn application
     
  70. TexasFlood

    TexasFlood Network Guru Member

    Finally switched the RT-N16 with Tomato for my main router. Put it off since it's such a pain transferring over my settings, especially the static DHCP.

    So far so good.
     
  71. oldkuang

    oldkuang Addicted to LI Member

    I have my Tomato RT-N16 running 2 more days. So far so good. Since I am not a Linux guru, I have some questions.
    1. Is it possible to create some ssh users besides root, so I can make the router a ssh forwarding (tunneling) server?
    2. I upload an authorized_keys to /home/root/.ssh directory, but the file is keep being replaced by empty file, even I set it read only. How can I prevent this?
    3. Is it an easy way to create some filter rule to block some IP from Internet to access my network, I noticed some IP is keeping trying to break in.
    4. I use https (443) from my office to access web admin gui, no problem. But when I try add new restriction rule, the page can not be access.

    Thank you so much Teddy_Bear, you are great. And thanks in advance for whoever may give me some advice.
     
  72. TexasFlood

    TexasFlood Network Guru Member

    Found that WDS between my old G routers and the RT-N16 was flakey.

    Well, flakier, was already having issues even before, between my WL500GPv2 & the older WRT54Gv2 vintage stuff, although I'd found workarounds in the form of scripted reboots that would bring everything up working. While always stable once connected, it wasn't always easy to connect initially.

    So I finally took teddy_bear's advice and switched to Wireless Ethernet Bridge which looks very stable so far. I was only using WDS to provide wired ports to places without wiring but with wired devices, not as access points to extend the wireless network. This provides that same functionality with improved stability. I always liked WDS but with my widely different vintages of chipsets and the related drivers, it was getting to be a challenge to keep it stable. I might try again later when I have more time but for now this solution seems fine.

    Thanks for the suggestion teddy_bear.
     
  73. TurtleFang

    TurtleFang Addicted to LI Member

    I see that you already committed a fix for /dev/net/tun. Thanks!

    -TurtleFang
     
  74. iic7371

    iic7371 Addicted to LI Member

    hi, hope someone can help me out with flashing my RT-N16 with Tomato. currently i have DD-WRT built 13637(i think it's the latest build), i tried many times to flash it with tomato but never success, i tried the 30/30/30 reset, also try the telnet to eraser nvram, but always got a message "failed upgrade" from dd-wrt, can someone please help, i am able to flash it to older dd-wrt build, but can not go to tomato( i did change the .rar to .bin), thanks!!!
     
  75. ladysman

    ladysman LI Guru Member

    You changed a rar to a bin? You need to unzip the rar file then change the .trx file to a .bin then finally upload that file.
     
  76. cariyawa

    cariyawa Addicted to LI Member

    Probably my bad, if he/she has followed the edited procedure posted by soldier and me...He/She might have mislead by this step:

    7. Now.. lets download tomato and upgrade: Download this file http://www.mediafire.com/?sharekey=1...2bfa663f16ecf0, change the extension to "bin"(DD-WRT takes .bin files) and upgrade firmware with it

    I'll post a new version...
     
  77. cariyawa

    cariyawa Addicted to LI Member

    Asus RT-N16: Flashing tomato!

    -------------------------------------------------------------
    Computer Preparation:
    1. Set fixed IP address
    2. Use only wired connection (disable wireless to be in the safe side)
    3. Make sure you disable firewall in Windows
    4. Disable the virus guard
    5. Use Internet Explorer, not Firefox or Chrome or other web browsers


    Flashing Procedure(Asus stock->DD-WRT->Tomato)
    1. Now you have Asus firmware on your router. You need to do a HARD RESET first (while pressing WPS button, plug the power to the router, you will see blinking PWR LED. After a while everything will be settled down... and defaults will be restored)-Note: You can do it also in the web interface of Asus firmware (restore to default settings or something similar).

    2. Then you should use trx file from dd-wrt for initial flashing. Download the file here http://www.dd-wrt.com/dd-wrtv2/down.../dd-wrt.v24-13637_NEWD-2_K2.6_mini_RT-N16.trx

    3. Save this file on the computer, go to Asus router web interface (http://192.168.1.1) and update-upgrade firmware with this file. Wait for all the process to complete and when you see a window with dd-wrt logo and user name and password type admin for username and again admin for password.

    4. You are now in dd-wrt mini firmware, but you want Tomato, right

    5. Then you need to do a HARD RESET again. Use above technique.. Just plug the power while pressing WPS

    6. Wait for router to reboot and then you will again see username(root) and password(admin) window. login to DD-WRT using default password(or if you want you can change the password..but it is useless... we are going to install tomato.. right?)

    6.1. Here I did something extra.. I am not sure this is essential.. so if somebody did it differently, put it here..probably hard reset after tomato installation will fix this(i.e. will reset the password)....but for the sake of more information, this is what I did..

    Start a telnet session to your router which has DD-WRT(telnet 192.168.1.1). Then issue the command: "nvram get http_passwd" without quotes. Why? Since DD-WRT use a different password storing mechanism, it encodes our password. we need to retrieve this encoded password. You should save it in a text file, because once you upgrade to tomato, it required this password to enter in to tomato.

    7. Now.. lets download tomato and upgrade: Download this file
    http://www.mediafire.com/?sharekey=19f5a2ee1929229a91b20cc0d07ba4d2e32bfa663f16ecf0, Extract the "rar" file(It is a compressed file.. You may use winzp or any other file extraction utility) , change the "trx" extension to "bin"(DD-WRT takes .bin files) and upgrade firmware with it

    8. After a little while router will reboot and you will be presented with login screen. In that dialog, you user "root" as the login name and previously retrieved password as the password...Now you are in tomato.

    9. Go to Administration, then Restore Default Configuration, click on select, choose option Erase all data in NVRAM memory (thorough), then click OK, wait for router to reboot, type username and password and you are using Tomato with default config set.

    9.1. After this, step I had this problem: It doesn't take a WAN IP from my cable modem...It just displays renewing and that is it... If it is the case for you, then do a reset again as follows...Now just press the "RESTORE" button on the back for couple of seconds(router must be already up and running...this is not the reset using WPS where you plug the power while pressing WPS) until you see the blinking power LED... wait couple of minutes(2-3 minutes) until it settles down... then router can get a WAN IP.

    Few extra things that I followed:
    * I read it from DD-WRT, thread that even after you see the password change dialog, continue button or upgrade success message, after freshly firmware upgrade, you may want to wait 3-5 minutes without interrupting anyhting. It is mentioned that even it seems all done and good to go, processor may still updating nvram variables. So, as I always do...just to be in the safe side, I always let it run at least 5 minutes, before move on to the next step.
    * DD-WRT always recommends hard resets


    ENJOY and don't forget to thank teddy bear for this nice firmware.
    Guide edited by: cariyawa, mstombs and soldier(name are in alphabetical order).
    -------------------------------------------------------------
     
  78. iic7371

    iic7371 Addicted to LI Member

    thank you thank you very much cariyawa, i'm official in Tomato 1.27, just as you thought, i didn't extract the "rar" file, i can finally get some good night sleep, it's been bugging me for days already. and of cos i can't thank you enough for teddy bear for his hardwork, thank you very much all of you!!!
     
  79. cariyawa

    cariyawa Addicted to LI Member

    Here is something I noticed...I hope someone can educate me..

    I checked this site: http://wl500g.info/showthread.php?t=19629

    and it is clear that CPU is Broadcom BCM4718. Even at DD_WRT web site, it is mentioned. But when I check my cpu using "cat cpuinfo", it gives "Broadcom BCM4716 chip rev 1". Even when I had DD-WRT, I noticed the same...Is this something usual or do they have two types of RT-N16s in the market?

    By any chance if that the case, that may explain why some people can't over clock their routers(as mentioned in DD-WRT forum)...and probably why different people have different scenarios for network issues... Just a thought...

    root@mahaweli:/proc# cat cpuinfo
    system type : Broadcom BCM4716 chip rev 1
    processor : 0
    cpu model : MIPS 74K V4.0
    BogoMIPS : 238.59
    wait instruction : no
    microsecond timers : yes
    tlb_entries : 64
    extra interrupt vector : no
    hardware watchpoint : yes
    ASEs implemented : mips16 dsp
    VCED exceptions : not available
    VCEI exceptions : not available

    unaligned_instructions : 148040
    dcache hits : 2147483648
    dcache misses : 4261421321
    icache hits : 2147483648
    icache misses : 4067228721
    instructions : 2147483648
    root@mahaweli:/proc#
     
  80. gingernut

    gingernut LI Guru Member

    Supposedly this is because there are three chips in the same familiy, BCM4716, BCM4717, BCM4718.

    Each chip differes by core clock and features.

    [​IMG]

    Asus had problems with the chip running at it's default 533MHz and underclocked it.
     
  81. soldier

    soldier Addicted to LI Member

    Thanks TB. I managed to do all the stuff.
    I don’t know if that is a bug or….
    I can create, rename, copy, move folders and files in the sharing disk. If the folder contains subfolders or files in it, it CAN’T be deleted. First I have to delete files in subfolders, then subfolders and in the end the folder. It can only be deleted when it’s empty.

    Step-by-step guide (Installing Tomato on Asus RT-N16) is updated.
    Thanks again to mstombs and cariyawa for their help and contribution.
     
  82. soldier

    soldier Addicted to LI Member

    That could be interesting
     
  83. mstombs

    mstombs Network Guru Member

    I wouldn't worry what the BCM patches to the Linux Kernel report as cpuinfo, its clearly a 4718 as it has 2 USB host controllers, but as it is not 5GHz wireless enabled can probably turn off certain features and the cpu itself more like the 4716.

    I wouldn't start playing with clkfreq until JTAG support is proven!
     
  84. n3IVI0

    n3IVI0 Addicted to LI Member

    I just wanted to say thank you, teddy_bear, for this groundbreaking firmware! I read earlier in these posts that you were considering upgrading the firmware to Samba3. Let me encourage you to do so for these reasons: Windows 7 compatibility, and speed. I have been using Samba 3 with DD-WRT, and it works flawlessly with Windows 7, plus it's faster. Also, and this has probably already been covered, but how do you install, load, and manage Optware packages with Tomato? If there's a wiki I should be reading, just give me the link. Can you mount multiple LUNs? I have a dual-bay enclosure, and to access both my drives with a K2.6 version of DD-WRT, I have to issue this command at startup: echo 8 > /sys/module/scsi_mod/parameters/max_luns
    echo "scsi add-single-device 0 0 0 1" > /proc/scsi/scsi

    Last question: what about media servers? Can I run Twonky media server under this firmware?

    Thanks again for providing the router testing community with an alternative to DD-WRT, and on (currently) the fastest router available for under $100!
     
  85. HKPolice

    HKPolice LI Guru Member

  86. TexasFlood

    TexasFlood Network Guru Member

    FYI, I got my RT-N16 to run successfully at 533MHz (or actually guess 532MHz) by doing as described in the DD-WRT forums. Since mine seems fine at 480MHz, I set it back to 480 for now.

    Also be warned that apparently not all RT-N16s will overclock, already seen reports of some locking up when overclocked. This is most likely the reason that Asus decided to clock them at 480. Supposedly can be brought back to life with a hard reset or perhaps just pressing the WPS button but I have no way to know that for sure.

    So having been warned that there is some risk involved and probably minimal reward, here is my original setting and what I changed to overclock it.

    RT-N16 original clock frequency setting:
    nvram get clkfreq
    480,240,120

    Settings to up the clock frequency to:
    nvram set clkfreq=532,266
    nvram commit
    reboot

    Tried it on my and it did work with no issues as evidenced by changes in log:

    From:
    Dec 31 17:00:05 rtn16 user.warn kernel: CPU: BCM4716 rev 1 at 480 MHz
    To:
    Dec 31 17:00:05 rtn16 user.warn kernel: CPU: BCM4716 rev 1 at 532 MHz
     
  87. mstombs

    mstombs Network Guru Member

    Brave man Texasflood - but it does seem Asus routers are more robust than I am used to. Power on holding the WPS button resets the nvram. Power on with the recessed reset button puts it into failsafe mode and you can use the Asus windoze tool to reflash firmware. The clkfreq is set by the CFE after checking the buttons so the only time you should need JTAG is if the CFE is trashed.

    I am also impressed with the fact that Asus ship GPL sourcecode on CD with the router. I haven't been able to build the Asus firmware yet, but I have built a 64 bit toolchain from their sources (32 binaries are supplied), and I've used the toolchain to successfully compile CFEs (which are disturbingly smaller than the originals!). Asus also do the Linux eeepc, and my Asus motherboard has a bios quick boot into a Linux browser...

    Think how long it took for Linksys to understand their GPL obligations - years! The Asus RT-N16 is very new and already it has dd-wrt, tomato etc running. I bet the 5GHz dualband N18? isn't far off...
     
  88. TexasFlood

    TexasFlood Network Guru Member

    I did feel there was some risk. But as you say, based on what I've read these seem to be relatively robust routers. I hoped that worst case I'd have to recover with the WPS button and fall back to 480. I actually planned to fall back to 480 either way. Just wanted to know if it would clock to the originally published specs rather than under so technically not sure this can really be called overclocking. Maybe over the under so back to normal clocking? :smile: Actually I guess maybe it is overclocking since Asus released the router clocked at 480.
     
  89. n3IVI0

    n3IVI0 Addicted to LI Member

    Well mine is on the way from Newegg. Can't wait to give this firmware a go!
     
  90. gingernut

    gingernut LI Guru Member

    It's strange as Netgear's WNR3500L uses the same 4718 cpu and it's also clocked at 480MHz.
     
  91. blackmack

    blackmack Addicted to LI Member

    Im wondering if this is an internal USB connector?


    [​IMG]
     
  92. gingernut

    gingernut LI Guru Member

  93. TexasFlood

    TexasFlood Network Guru Member

    As was already stated, this is a serial port header. If you look at the picture of the internal hard drive mod that I mentioned earlier in this thread, looks like he tapped into the connections to the existing external USB port. I'm not 100% sure where those wires go even if I zoom in on that picture. This mod is probably beyond me but cool that somebody did it.
     

    Attached Files:

  94. oldkuang

    oldkuang Addicted to LI Member

    I am going to put usb drives to my tomato RT-N16, possible install optware in one drive. Can someone tell me if it possible to redirect logs to external drives? I may need to analyze the logs. I know turning on connection log is not recommended because the growing size. But how about if the log can be saved to an external or moved to the usb flash drive?
     
  95. Lost_Animal

    Lost_Animal Addicted to LI Member

    I'm running this Firmware for 2 days, and untill now all goes VERY WELL.
    I came from DD-WRT Eko Frirmware and i can say QOS in Tomato is SUPER.
    The only Problem i have to fix now is make my USB stick which have optware installed from WRT firmware, to run on TOMATO.
    I still searching a GUIDE how can i enable services with Tomato shh....:confused:

    BTW TB u r doing a GREAT JOB m8...:wink:

    My Respects ....
     
  96. n3IVI0

    n3IVI0 Addicted to LI Member

    Here's my wishlist for future builds:

    1) ability to detect multiple luns
    2) ability to specify mountpoint on the automount tab (like /opt for example)
    3) Samba 3
    4) Transmission client
    5) Twonky media server (I realize that's probably a crazy request, since not everybody uses it)

    Cool firmware!

    P.S. Does this firmware have LFS?
     
  97. teddy_bear

    teddy_bear Network Guru Member

    n3IVI0,

    1) Multiple luns are supported
    2) You can use /etc/fstab to specify mountpoints for automount (you can create fstab file in your init script, or store it to nvram via "nvram savefile2nvram" command). Also, if your partition has a label, it's used for a mountpoint instead of /sdaX name. No additional GUI will be added for this.
    3) LFS should be there.

    Samba3, torrent client and media server are all on the list but with a very little time I have now it may take forever :(...
    But of course you can install Optware packages right now - it's all ready for this. And included Samba2 also works with Vista and Win7 with no problems - may need a minor tweak for authenticated access to work though (you can find a link to it on the 1st post of the USB mod thread).

    Everyone,
    I'm not good at writing step-by-step guides or instructions, and, unlike programming the firmware, I have absolutely no fun writing guides :frown:. So please help each other and read/search through the main USB mod thread - it has lots of info regarding Optware, auto-mount, what sripts are executed by Tomato and when (i.e. you can create .autorun script in the root of your partition, and it will be executed after mounting - and that's only one example), how to save system log and bandwidth data to an external folder on USB drive, etc etc.
    I know the search on this forum is rather poorly implemented, but it's still possible to find the info.

    I probably should start a Wiki at some point - just have not gotten around to do this yet...
     
  98. n3IVI0

    n3IVI0 Addicted to LI Member

    Thanks, teddy_bear! Just got my new router, fixin' to install the firmware (rubs hands together with childish glee)...:biggrin:
     
  99. kamatschka

    kamatschka Network Guru Member

    DO you mean the Red and Black wire for Powering the HDD or the other thinner wires for TX and RX ? This HDD-Mod is really simple though.
     
  100. TexasFlood

    TexasFlood Network Guru Member

    It was the thinner wires that were scaring me, yes.
     

Share This Page