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

Shibby or Victek or Toastman - Please help => Tomato for Netgear WNDR3700v3 or WNDR4000 or WNDR4300

Discussion in 'Tomato Firmware' started by jilebi, Aug 24, 2013.

  1. Victek

    Victek Network Guru Member

    Look in repo.cz how we upgraded wireless driver in these directories...

    release/src-rt/wl/config/
    release/src-rt/wl/linux/

    These are the places.
     
  2. arrmo

    arrmo Addicted to LI Member

    Hi,

    OK, my apologies, but a bit of a long-winded story here - have spent some time at this, hoping others may have some thoughts of how to correct this. Thanks in advance!

    1) I have confirmed that loading the (Broadcom) wl driver is what causes the issue - if I comment out modprobe for wl ... no longer a kernel oops. So that's it, and it seems to be related to PIO vs. DMA (and it's for the external 5 GHz radio).
    2) I am not able to move to the wl_apsta.o file from Netgear (WNDR3400 source). It causes compile errors (just trying to use this object file).
    3) The information under "Wireless Support" in http://wiki.openwrt.org/toh/netgear/wndr3400 does seem to be right - I tried different drivers (recompiled, running OpenWRT), and pretty much confirmed what they say here (at least for b43, broadcom-wl and brcmsmac). b43 does work, just not scanning, and broadcom-wl doesn't work for 5 GHz (as above). brcmsmac works, but only client mode for 5 GHz. BTW, this pretty much also matches http://wireless.kernel.org/en/users...b43.2C_STA.2C_brcm80211.2C_..._the_full_story.

    So I can see a few options to get this working,
    a) Force wl to use PIO mode? I have seen some information on this (like http://ubuntuforums.org/showthread.php?t=1266620), but can't seem to get the right parameters (manually loading the wl driver). Has anyone done this before?
    b) Rebuild the Broadcom STA driver (source code here, http://www.broadcom.com/support/802.11/linux_sta.php), forcing PIO mode.
    c) Move to the b43 driver. This may be a pretty substantial change, and it would be nice to stick with the driver from the hardware vendor, no?

    Thoughts? And perhaps the first step ... for now I have not inserted the wl driver, but the rest of the network configuration doesn't seem to proceed - and suggestions? Shibby, how did you avoid this kernel issue before (or did you)?

    Thanks!!!
     
  3. arrmo

    arrmo Addicted to LI Member

    FYI, just a tidbit of good news ... WNDR3700v3 up and running, in a couple hours ... :). Still to check it all out, but it's just the 5 GHz on the WNDR3400 that is grief.
     
    shibby20 likes this.
  4. arrmo

    arrmo Addicted to LI Member

    FYI, still working on it. WNDR3400 ... the following fixes the crash, http://svn.dd-wrt.com/changeset/17554. I admit, not quite sure what it does yet, but it let's me keep moving forward. Any explanation would be much appreciated ... ;). And is it safe?

    External wireless chip is now recognized as "Broadcom BCMa8d8" ... doesn't come up automatically, but can bring it up (eth2). Getting closer, but can't get out of the switch now, guessing the boot is not fully coming up yet. Again, any pointers would be appreciated.

    Thanks!
     
    shibby20 likes this.
  5. shibby20

    shibby20 Network Guru Member

    oO this one :D i know that but i thought you know about this "trick" :D

    btw: Is Broadcom BCMa8d8 recognized by wl_high module or maybe wl_apsta? Do you compile tomato with USBAP=y? If you do, then all should works, because second radio is up after enabling USB support.
    http://repo.or.cz/w/tomato.git/blob...4b7589812b5d0d70:/release/src/router/rc/usb.c

    full commit of wl_high support:
    http://repo.or.cz/w/tomato.git/commit/1858f85c6132e4b3548e955f4b7589812b5d0d70

    and (for example) support second radio in RT-N53 and some others routers:
    http://repo.or.cz/w/tomato.git/commit/711bff01e859df0a5cf928c98732604895ba31e5
     
  6. shibby20

    shibby20 Network Guru Member

  7. arrmo

    arrmo Addicted to LI Member

    Thanks! Will dig into this more, try what you suggest. I didn't know about the trick - no biggie though, did try some other drivers and learned a few things in the process ... ;).

    Why does the sta (Broadcom) driver not recognize the device? And what is special about wl_high (vs. wl)? Just trying to understand, that's all.

    Thanks again!
     
  8. arrmo

    arrmo Addicted to LI Member

    Sorry, one more ... why do I have to remove 3g support for USBAP to work? Is it not possible to have both? And also ... why is it USBAP? It's not for USB only, right?

    Thanks!
     
  9. shibby20

    shibby20 Network Guru Member

    we don`t have to remove 3G suport but we have to revert only this one commit (support new LTE modems), because this commit makes some changes in structure usb_device_id and precompiled module wl_high is using this structure. With this patch compilation will fail because we will have mismatch of this structure.

    wl_apsta is module supported AP mode and APClient (sta).
    wl_high support wireless USB card only. USB2.0 support has to be included!

    USBAP it`s TCONFIG added support of wl_high module
    NO_USBAPP=y remove all USB feature WITHOUT USB support (because we need this for wl_high module). Well if router needs WL_HIGH but does not have external USB port (like Asus RT-N53) we have to compile image with:
    USB="USB" to add usb support
    USBAP=y to add wl_hogh module
    NO_USBAPP=y to remove all USB aplication like samba, ftp server and USB&NAS pages from GUI.
     
  10. arrmo

    arrmo Addicted to LI Member

    Thanks for all the help! Will dig into this, give it a try and let you know.

    Is the source code for wl_high available? Again, curious to see how it works. And I admit, a bit confused here as both wl and wl_high will be enabled, not sure how to apply one to each, when they are both non-USB.

    Thanks!
     
  11. shibby20

    shibby20 Network Guru Member

    RT-N53 is also non-USB router but please look one more time here:
    http://repo.or.cz/w/tomato.git/commit/1af0f512b564b46e94a5fb6910cf729f233c0d2c

    ETH0 (lan - detected by et driver) and ETH1 (2,4ghz - detected by wl_apsta driver) are detected fast. Then USB modules are loaded and after that router found new device (Dongle Connected) and now we have ETH2 (5GHz - detected by wl_high driver):
    eth2: Broadcom BCMa8e4 802.11 Wireless Controller 5.100.138.20

    This is how it works.

    Broadcom wireless modules are precompiled (no sources available - this is the reason why we have still use old kernel version).
     
  12. arrmo

    arrmo Addicted to LI Member

  13. arrmo

    arrmo Addicted to LI Member

    Well, actually got a chance to work on it tonight - did as you suggested, added in the wl_high driver. It works - thanks! I have dual band running on the WNDR3400 now .. :).

    I did find that a 30-30-30 reset breaks things - so I manually set the nvram variables back to what is there when I start from Netgear, and upgrade (no reset) to Tomato. So the issue is some variable that's not set - just need to figure out which one(s) it is, add this to the code. So that and making sure the LED's, buttons, etc. are all working ... but that should all be solvable. The good thing is that dual-band WiFi is working on the 3400 (or at least, I'm using 5 GHz right now, and it works ... need to check 2.4 GHz, assuming that part is OK).

    Thanks again!
     
    koitsu and shibby20 like this.
  14. arrmo

    arrmo Addicted to LI Member

    Hi,

    All fixed ... :). WNDR3400 is up and running, listed below is what works, what doesn't (in my opinion, what doesn't is very minor, but feel free to disagree).

    What works ...
    - Dual Band (and wireless scan, survey)
    - WAN, LAN
    - USB
    - LEDs
    - Buttons (reset, SES)
    - Checksum

    What doesn't ...
    - Dome LED (same as Shibby posted before) and Dome button (just not desired, could be set up)
    - LAN Order (needs to be inverted in GUI, not sure why reordering the ports in vlan1ports doesn't impact this ... :()
    - 5 GHz radio for first reboot after 30-30-30 reset. Just reboot again, and it's fine after than. I tried to set the key variable (wl1_ifname), but it seems to have to fail once, then is fine after that (multiple reboots tried after, no issues)

    The code has been pushed to git, with some partial WNDR3700v3 updates (this is next up - finishing this, then finalizing the Makefile updates to generate the chk file ... this works, with manual switching currently).

    Thanks for all the help!
     
    Elfew and shibby20 like this.
  15. arrmo

    arrmo Addicted to LI Member

    FYI, WNDR3700v3 is now up and running also ... :). If anyone has the desire to test any of these out (WNDR4000, WNDR3700v3, WNDR3400), please do and let me know if you see any issues. I'm running all three here, and no complaints from the family - and they tend to be fussy ... ;).

    Also, if anyone is able to share the board_data partition from their router (any of the three) I'd appreciate it - the earlier version of Tomato (before the mods I added) trashed this partition on my routers. It may be that I can remove some of the PCI or SB settings (as they seem to be in this partition, on the one router I have that isn't messed up in this partition).

    Thanks!
     
  16. ghoffman

    ghoffman Addicted to LI Member

    arrmo - i have a wndr3400v2 and i'd like to test a tomato build. can you point me to the binary? i'll get boarddata for you. thanks!
     
  17. arrmo

    arrmo Addicted to LI Member

    Hi,

    I can get you a build, just need to figure out how (as I don't have a web site currently for this) - any thoughts?

    But also ... do you have serial port access? I ask because the build I have tested is for the WNDR3400v1, not v2. Just in case it doesn't work right, I want you to be able to go back to Netgear firmware (then we can work any issues in parallel).

    Thanks!
     
  18. arrmo

    arrmo Addicted to LI Member

    FYI, just so others don't have this problem - I stumbled on to bit of an issue when building an image for the WNDR3400 (or WNDR4000/WNDR3700v3 also). The checksum is at an offset of 0x6CFFF8 for the WNDR3400 (0x6FFFF8 for the others), so if the image is larger than ~ 6.8 MB (7.0 MB for the others) the checksum overwrites part of the image ... and then the checksum is broken / incorrect, and the router won't boot.

    Just a warning ... :). I'll try to have the Makefile flag this (if it crosses this threshold).
     
  19. leandroong

    leandroong Addicted to LI Member

    Try to check https://shared.com/. They give free 100GB.
     
  20. J Wallace

    J Wallace Reformed Router Member

    I see you two are quickly moving forward. Well I'm taking a evening course in Linux,"The deeper I get into computers the more I need to learn." Anyway while checking out a src file "WNDR4000-V1.0.0.94_91_81.src" I found
    a image folder "bcm94702ap.txt. The board id for Wndr4000 and files I think will be best understood by you then me.
    If you do check this out let me know if it helps.
    You guys made me take that course...... Glad your routers are working fine. Mine is still going . Extract 1st file,read txt file then extract the src_tar file in the folder, it's bcm4718 folder, open read txt file.
     
  21. J Wallace

    J Wallace Reformed Router Member

    armo if you do figure out a way to put your build on the net I still want to try it. I'll be looking for it.


    Thanks
     
  22. J Wallace

    J Wallace Reformed Router Member

    armo if you do figure out a way to put your build on the net I still want to try it. I'll be looking for it.


    Thanks
     
  23. arrmo

    arrmo Addicted to LI Member

    Hi,

    Just sent it to someone else via email, don't have a great way to do this currently. I did send you a PM, can email it to you as well.

    Thanks.
     
  24. arrmo

    arrmo Addicted to LI Member

  25. szpunk

    szpunk Networkin' Nut Member

    It‘s working perfect on my WNDR3700 v3, all LED(include USB), LAN,WAN working:

    [​IMG]

    [​IMG]
     
  26. szpunk

    szpunk Networkin' Nut Member

    Later i will check 3400 and 4000(on the way...)
     
  27. arrmo

    arrmo Addicted to LI Member

    Excellent - glad it's working! Let me know on the others when you can.

    FYI, the latest build as a new feature in the Device List ... ;-). It turns IP addresses in to device names (using nslookup).
     
  28. zekev

    zekev Reformed Router Member

    Hi Folks,

    To make a long story... long, I have a Netgear wndr3700v3 it was running with tomato RAF 1.28.9013. It was stable for 3 months. But after that my internet connection was always dropping !!!

    I wanted to restore it to the factory default (netgear) but I messed up somewhere. I bricked it. Unbricked it with a serial cable.

    Re-install the netgear firmware but still internet connection was dropping !!!

    I retried dd-wrt but no luck still dropping.

    I telnet to the dd-wrt and did : mtd erase linux... (note here that with telnet the user name is root not admin)

    After I rebooted and used tftp2.exe to flash shibby's firmware tomato-Netgear-WNDR3700v3-1.28.RT--108-VPN.chk

    In the shibby's firmware, I used the GUI to upgrade to tomato-WNDR3700v3-1.28.9013MIPSR2-RAF-V1.2f2.trx (I checked the erase nvram option).

    After that... no wired connection was possible, I did try a 30/30/30 reset but no luck.

    Now the only way to acces the web gui is by wifi ?!?!?!

    This last flash worked I was able to see under "About" (in the GUI) saying Tomato RAF Firmware v1.28.9013MIPSR2-RAF-V1.2f2 K26 USB.

    Thanks to arrmo modified firmware based on shibby/victek : tomato-K26USB-NVRAM64K-1.28.0058MIPSR2-RMo-WNDR-WNDR3700v3.chk. It relived my router.

    Even though it's not really safe to upgrade a firmware over wifi, I did it.

    With this firmware everything works perfectly.

    I use all the 4 wired ports, 5 wifi connections. have all the leds working. I use this router as a NAS with a 3Tb HDD plugged in the USB port.

    Previously with DD-WRT, my HDD was not recognized and couldn't be mounted. Without this last arrmo firmware the NAS was not stable and I was not able to see it from my ubuntu computer. Now i can access my NAS from all my machines (windows, linux, media player...).

    I'm now having a connection uptime of almost 4 days.

    Thanks again to shibby victek and arrmo.
     
  29. szpunk

    szpunk Networkin' Nut Member

    WNDR4000 flash succes,USB LED not work,other thing look fine till now:

    [​IMG]

    [​IMG]

    [​IMG]
     
  30. arrmo

    arrmo Addicted to LI Member

    Glad the WNDR4000 is working also - appreciate the update!

    Let me check on the USB LED. I thought I checked it, but it's entirely possible that I missed it.
     
  31. arrmo

    arrmo Addicted to LI Member

    Sorry for the delay - tied up with kids this week.

    I checked my router, and the USB LED is working correctly. Can you try manually turning it on and off? Log in to the router (telnet or ssh), and execute the command below. Does it work for you?

    led usb on
    led usb off

    This will manually drive the LED (i.e. override automatic controls).

    Thanks!
     
  32. J Wallace

    J Wallace Reformed Router Member



    I got it ,will flash it later on,,,so thanks in advance. Neat way to pass it on, I'll have to look into drop box app. Again thanks for all your work.. Now I can use the 4000 and rest my 3500.
     
  33. J Wallace

    J Wallace Reformed Router Member



    I got it ,will flash it later on,,,so thanks in advance. Neat way to pass it on, I'll have to look into drop box app. Again thanks for all your work.. Now I can use the 4000 and rest my 3500.
     
  34. J Wallace

    J Wallace Reformed Router Member

    Thanks arrmo , I got the firmware and I'm one happy camper. Like how you did that, I'll have to check out dropbox closer. Again thanks for all your hard work....
     
  35. J Wallace

    J Wallace Reformed Router Member

    Thanks arrmo , I got the firmware and I'm one happy camper. Like how you did that, I'll have to check out dropbox closer. Again thanks for all your hard work....
     
  36. J Wallace

    J Wallace Reformed Router Member

    Thanks arrmo , I got the firmware and I'm one happy camper. Like how you did that, I'll have to check out dropbox closer. Again thanks for all your hard work....
     
  37. J Wallace

    J Wallace Reformed Router Member

    Sorry for the repeated replays,,,my system (IE) is going nuts....
     
  38. szpunk

    szpunk Networkin' Nut Member

    I reboot the router, it's working now! Thanks!
     
  39. Trunkz

    Trunkz LI Guru Member

    Do these builds include VPN support? Sorry if i missed anything armo.
     
  40. dfgas

    dfgas Network Newbie Member

    which do we use for wndr3700v3 if we are currently on dd-wrt?
     
  41. zekev

    zekev Reformed Router Member

    dfgas likes this.
  42. dfgas

    dfgas Network Newbie Member

    what power strength are people setting for their wndr3700v3 for wireless?

    btw is there any newer versions that will work now? or who do we watch and where for newer builds?
     
  43. rickbronson

    rickbronson Network Newbie Member

    Last edited: Aug 4, 2014
  44. dfgas

    dfgas Network Newbie Member

    how do we compile the one for version 3? so that way we get the newest updates when there are any?
     
  45. mikechun

    mikechun Network Newbie Member

    Arrmo, I noticed that pptp-client feature is missing.
    Could you post again your latest including pptp-client?

    Thank you!!
     
  46. mikechun

    mikechun Network Newbie Member

    I thought pptp-client was missing, because I couldn't get pptp client to work.
    However, looking at it more closely, it seems like I am missing

    /etc/vpn/options.vpn.

    Anyone else have this problem?
     
  47. mikechun

    mikechun Network Newbie Member

    It's embarrassing, but I found the configs in
    /rom/etc/vpn

    Now having trouble finding the configuration documentations to deal with "idle 0" causing error.

    If anyone knows where to get it, please help me out and post a link.
     
  48. Tim.LSR

    Tim.LSR Reformed Router Member

    Hi Arrmo,

    Thanks for your work on these boxes. I rescued a WNDR4000 from our companies recycling bin and was able to get your firmware working on it. Foolishly I tried using one of Shibby's other firmwares just for a kick and now have a brick! :) I am a silly person sometimes, but that is how I learn. I am awaiting delivery of a TTL-USB adapter to recover as the unit will not go into TFTP recovery mode. If all goes well it will be working again in a couple of weeks and I will report any issues I encounter. Perhaps your work can be integrated into Shibby's builds and add some more devices to his impressive list.

    Tim
     
  49. warsev

    warsev Networkin' Nut Member

    All, particularly Shibby, is there any prospect of a version of Tomato(USB) for Netgear WNDR4300 any time soon? I see there is a version of DD-WRT but it is fairly old and probably lacks some recent security updates (like openssl). The reason I ask is that a major electronics outlet here in the U.S. has them for $60 for next few days and if there was a version of tomato coming for it I'd hop on over and get one.

    (I've been using Shibby tomatousb versions on several routers for many years. Thanks!!)
     
  50. Tim.LSR

    Tim.LSR Reformed Router Member

    Recovery went fine, I will be deploying this unit as an additional access point in our house.
     
  51. zekev

    zekev Reformed Router Member

    Hi guys, on my router, uncer VPN Tunneling there is no openVPN setup submenu. Anyone know how I can configure this with a script ?

    My version is one made by arrmo with "Arrmo" feature:
    - Added Netgear WNDR Support (select routers)
     
  52. arrmo

    arrmo Addicted to LI Member

    Hi,

    Exactly which build are you running (look at About page)? You may have a build without OpenVPN - that would explain it.
     
  53. zekev

    zekev Reformed Router Member

    I'm on :
    Built : 2014 March 05, 17:55 pm
    Build Machine: Linux vm-mint 3.11.0-12-generic x86_64
     
  54. arrmo

    arrmo Addicted to LI Member

    Sorry, I meant at the top of the page ... for example,
    Tomato Firmware 1.28.0094 MIPSR2-RMo K26 USB Std
     
  55. zekev

    zekev Reformed Router Member

    Ha ok I'm on : Tomato Firmware 1.28.0058 MIPSR2-RMo K26 USB WNDR.
     
  56. arrmo

    arrmo Addicted to LI Member

    OK, that's a very old build, and one without OpenVPN support - that's why it's not present. What router are you after? I can build a more current version (with OpenVPN support, if it fits).
     
  57. zekev

    zekev Reformed Router Member

  58. arrmo

    arrmo Addicted to LI Member

    Hi,

    OK, new build out there, with OpenVPN - try it out, let me know. Note that to get it to fit I had to remove a few things (any of these an issue?): NTFS, IPv6, SNMP, UPS.
     
  59. zekev

    zekev Reformed Router Member

    I dont use IPv6 nor anything you mentionned, my usb drive is ext3.

    But where do I download your new built from ?
     
  60. arrmo

    arrmo Addicted to LI Member

  61. zekev

    zekev Reformed Router Member

    Great, thanks !

    I'll try this later, my GF really needs internet access ;o) so, just in case I'll do this later!
     
  62. zekev

    zekev Reformed Router Member

    Sorry, it's been 2 years since my last upgrade, should I click the option "After flashing, erase all data in NVRAM memory" ? I can search but you would probably answer this before I'm done with my refreshment research.
     
  63. beerg33k

    beerg33k New Member Member

    @arrmo I downloaded the build for the WNDR4000. My build is Tomato Firmware 1.28.0094 MIPSR2-RMo K26 USB Std. Does this build have openvpn support? I just flashed it, but I am not seeing it. Maybe I am doing something wrong. Thanks in advance for your time!
     
    Last edited: May 13, 2016
  64. arrmo

    arrmo Addicted to LI Member

    Hi,

    No, this does not have OpenVPN support - no room left with the other items enabled. Sorry!
     
  65. beerg33k

    beerg33k New Member Member

    Ok, no problem. Thank you for the response, I appreciate it! :)
     
  66. tvlz

    tvlz Addicted to LI Member

Share This Page