Belkin F9K1102: Tomato bring-up

Discussion in 'Tomato Firmware' started by mdmower, Jan 29, 2015.

  1. filipedonato

    filipedonato Connected Client Member

    If you can solve any of the problems of LAN 4 or Random Restarts put here to see us please.
    I did not know that there was OPENWRT for this device, they should join forces and fix the problems because OPENWRT and TOMATO are both very good.
  2. Scott Phillips

    Scott Phillips New Member Member

    Im a big newbie so please dont shoot.I ran the tomato-K26USB-1.28.AT-RT-N5x-MIPSR2-3.5-140-RT-N53.trx and had 2.4 as well as 5 ghz the problem i ran into was I could not get an ip address from any port has anyone seen this issue?
    or am i just not setting it up correctly? I can only see the wireless connection in the device list but i do see the ports are showing in the overview page with traffic (maybe) on port 3 and 4.
  3. filipedonato

    filipedonato Connected Client Member

    I did not have that problem.
    Remember not to use port 4. She is in trouble.
    I went back to the original version until some solution appeared.
  4. filipedonato

    filipedonato Connected Client Member

    Any update?
  5. tvlz

    tvlz LI Guru Member

    Has anybody looked in/posted the CFE (admin -> debug -> Download CFE) for the reset gpio# ?
  6. Tim007

    Tim007 New Member Member

    Hello, newbie here. I've been having the same problems of restart/losing connection with v3 of this router so I started doing research.

    I read that the FW version 3.03.25 is much more stable than the later versions. I can't post a url for the download or the site that talks about it, but I will be happy to provide if there's someway of doing it...

    I have installed 3.03.25 and concur it is stable.

    I noticed that it seemed to lose a little of the range with the 5ghz connection with this version. The v1 and the v3 of this router are almost identical, the difference being the transmitter chip. V1 uses BCM43236 and V3 uses BCM43236B. The differences in power output are found in Tables 12 and 15.

    I have no idea how to make a tomato, but if anyone can start with this older FW version it may be worthwhile. I plan to stay with 3.03.25 for now.
    Last edited: Aug 24, 2018
  7. filipedonato

    filipedonato Connected Client Member

    There were two new updates and I had not seen this folder.
    For those who want to download, just go to the MEGA link and look for the folder

    freshtomato-mips 2018.3.006-beta

    And also has a newer one than the one in the folder

    freshtomato-mips 2018.3.106-beta

    As soon as possible I will test!
  8. Traace

    Traace New Member Member

    freshtomato-mips 2018.3.106-beta works for me on a belkin F9K1102v1, no crash, all stable so far :)

    Many thanks for this awesome work and install guide.
  9. pedro311

    pedro311 Networkin' Nut Member

    You're welcome.
    Maybe buy me a beer or too?
    kille72 likes this.
  10. Traace

    Traace New Member Member

    Sure I sent you some $ . But its not much, i'm bit poor this month :) later more ^^
  11. pedro311

    pedro311 Networkin' Nut Member

    Thanks ;)
    Will wait for this "later more" :p
    Traace likes this.
  12. filipedonato

    filipedonato Connected Client Member

    On your router does the led on the WPS button always turn on and flash?
    Here it is, I already tried some commands to disable but without success.
    In the last build, 2018.4 deactivated all the logs, web monitoring, until date and time synchronization, but the most I got was 14 hours without restarting.
  13. jheliodoro

    jheliodoro New Member Member

    Just got around to flashing newest toastman based version (freshtomato-K26USB_RT-N5x-MIPSR2-2018.5.083-beta-F9K1102-64K.trx) to a F9k1102v3 and killed the router.. :/

    Any thoughts on how to try to revive it?

    • Modem won't give DHCP to lan (expected, right?)
    • On boot, blue light blinks then remains solid blue, regardless of WAN activity
    • Reset and WPS seem to be ineffective
    • WLAN not available at 2.4 or 5.0 ghz

    Things i've tried so far:

    • Used ipscanner to check for devices on -254, -254, -254, -254 (any other possible gateways for default configuration?)
    • Fixed network IP, subnet and gateways throughout the gateways above
  14. pomidor1

    pomidor1 Networkin' Nut Member

    try to use the putty terminal
    and log in: root / admin
    or early( user/pass) if you did not clean the nvram
    if you succeed, please issue:
    mtd-erase2 nvram

    sory: form mipsel router : mtd-erase -d
    Last edited: Jan 13, 2019
  15. jheliodoro

    jheliodoro New Member Member

    How can i use putty if i cant locate the device in the network? Is there a way to connect directly to it?

    Thanks for the fast reply!
  16. pomidor1

    pomidor1 Networkin' Nut Member

    set ip network card, gate, mask

    ping -t and see what happens, whether pings are coming and how many.
    switch off and turn on the router and watch the pings
  17. filipedonato

    filipedonato Connected Client Member

    Belkin N600 V3
    I installed to test the 2018.5 stable updates and 2019.1.015 beta. I still have the same problem. The router restarts at random times.
  18. filipedonato

    filipedonato Connected Client Member

    This weekend I tried to downclock to see if the problem could be warming up but it was not. "nvram set clkfreq = 300,150,75"
    And remembering that my router has heat sinks I put in, but it still continued the problem, so I do not think it's overheating.

    I deactivated only the small orange led with the command "gpio enable 5", the other LEDs could not deactivate.
    Original firmware:
    Large blue LED - WAN connection
    Large orange LED - No WAN connection, disconnected.
    Small blue LED - wifi
    Small orange LED - WPS

    Tomato Firmware:
    Large blue LED - LAN port 1
    Large orange LED - LAN port 2
    Small blue LED - Always on
    Small orange LED - Always on but can turn off.

    I also tried to disable or change the order of the WAN and LAN ports, I put the LAN1 for the internet cable and LAN2 and LAN3 for the devices, I did not use LAN4 (because it caused a factory reset) and the WAN port. Even then, the router continued to reboot.

    On the wifi, I left only the 2.4GHZ network, I was doing it by deletion, I reduced the transmission power, but even then the router rebooted.

    I looked up the datasheet of the components to find some difference but I did not find it, version 3 is just like an update with a bit more gain in wifi and the cpu a little better, insignificant thing.

    I believe the problem is either in pppoe or DHCP, because I managed to stay up to 3 hours with the router running and downloading torrents, with normal clocks or lowered, but it was just a simple smartphone to connect to the wifi that the router restarts.
  19. afeng11

    afeng11 Network Newbie Member

    anybody can backup F9K1102 V1 or V3 cfe for me?i bricked my router,thank you!
    filipedonato likes this.
  20. filipedonato

    filipedonato Connected Client Member

  21. desertworm

    desertworm New Member Member

    I know that builds have only been produced for v1 and v3.
    About a year ago I loaded freshtomato onto a Belkin N600 so I thought it would be no problem to put it onto another one that someone offered me.
    But it's a F9K1102v4 and when I try to upload the trx file that went just fine onto the 'v1 this new belkin firmware complains with the message:

    Upgrade file is not the correct type or version for this device. Upgrade failed. Please obtain the correct file and try again.​

    So I was hoping to do some opkg experimenting with this device to the end of running bind and sendmail, but I'm stuck on replacing the firmware. Is the hardware different? I haven't dug deep enough to find out.

    I found a place to download belkin firmware version 4.04.01, which is currently running on the device.

    I don't have too much experience in the area of porting for embedded devices, but I have a fair bit of c programming experience and want to learn more about embedded systems.
    I got a jtag somethingorother off kickstarter a while back and have never had a reason to mess with it, but maybe now I do.
    If I had some guidance/advice I would push on the project of freshtomatoing this router.

    I'll start reading the general freshtomato stuff again.
  22. desertworm

    desertworm New Member Member

    I see now the v1/v3 are a broadcom chipset, while the v2/v4 are the realtek 8197D chip. Neat resource that fcc page. The v4 uses the fcc id of the v2 btw.

    I can't post a proper link yet... but here:

    I guess now I'm looking for realtek based routers that have a tomato port...

    Meanwhile, I'll post some pertinent text and numbers

    From the router tag
    N600 DB Wireless N+ Router
    Model: F9K1102v4
    FCC ID: K7SF9K1102V2

    From the software
    Installed firmware version: 4.04.01 (Jul 09, 2016)
    Boot Loader v2.10

    I don't know what else would be interesting about this router. I suppose I could crack it open and post some pictures.
  23. desertworm

    desertworm New Member Member

    I did crack it open. I don't know how interesting the pictures would be. The chip IS IN FACT RTL8197D.

    I soldered some pins into the empty serial port vias, and found that the pinout is the same as for the 'v2, according to wikidevi.

    I captured logs of the normal boot, and for boot with reset button held down.
    It appears that holding the reset button down causes the router to enter a state that waits for firmware to come over http before booting.

    Ok, so if I can't get the web interface to accept an image, I can find a way to deliver it with this http mode, but now the question is, "What do I send to the router?"

    I poked around the freshtomato-mips source and didn't see anything that looked like it was setup to handle a realtek chipset.
    So far I have poked through rtl819x-SDK-v3.4.9.3-full-package-2.tar.gz from the RTL819x sourceforge project. The readme has instructions for Fedora 9 or Ubuntu 8.10/9.10. The menuconfig options don't work in Fedora 29. I am not so in-practice on makefile that I can readily get a compile going here, but I'm not sure the hardware configs are good for this board anyway. There is an rtk_openwrtSDK_v2.5.tar.gz on the sourceforge project that I have yet to look at.

    In summary, two potential firmware injection routes have been identified but the payload is undefined. I suspect the console can be used to glean the necessary insight about this board to construct a new firmware image. I need to poke around the freshtomato source, the rtl sdk and the openwrt sdk and try to figure out what's going on. I don't have a good model of how the nvram interfaces with the software.

    Can someone point me at a resource that explains how these embedded devices work without having /dev/sdaX mounted to /.
    I did see a linux kernel driver document is free online, I think I'll go dig that back up.

    Attached Files:

  24. txnative

    txnative Addicted to LI Member

    You do know that tomato only supports broadcom router chipset, right? If you like to continue to work on this as a project you could look into openwrt project they have some support for reatltek chipset, but you might have a look to make sure as it depends on what version someone is working on, good luck
  25. desertworm

    desertworm New Member Member

    I did see that there were no realtek drivers in the freshtomato-mips repo, but support is provided by supporters.. and I have been putting OSS together for a while, making build environments, dealing with compile errors and the like. I also have a tangential interest (but diminutive experience) in defining the hardware overlays that expose the various subsystems of SoC's like these. That nvidia jetson SoC is a neat piece of gear yeah?

    What I thought would be a brief foray into putting the environment together for building the image for the v1/v3 turned into something of a protracted period spent between waiting for debian to install things and and trying to figure out what errors were halting the build. What I wasn't expecting, and didn't appear to be in the top-level readme of the repo, was that I need to make a uclibc toolchain for the tomato builds... I feel like that should be somewhere in a readme. I did see something in process that looked like it might be the SDK setup for the broadcom embedded boards, and it appears (on the surface) to be quite similar to the SDK for the realtek chipset. Maybe next weekend I will take another stab at setting up the build environment for the v1/v3, just to see what's going on.

    A couple questions for the forum:
    Is there another readme I haven't stumbled across yet with details concerning the uclibc toolchain?
    Maybe there is a virtualbox image I can borrow to get this thing going?

    I appreciate the lookout and I will follow up on that.

    I found the book Building Embedded Linux Systems so I suppose I will spend some time nosing through that so I can try to suss out if it really makes sense to mate the tomato way to the realtek sdk.
  26. txnative

    txnative Addicted to LI Member

    pedro and kille have done a guide that seems pretty self explanatory as it shows how to setup the toolchain path for your OS and a download list to install, in order to compile an image for a supported router, these instructions are on their bitbucket sites. On the freshtomato-mips thread is where you'll find the links for mips and freshtomato-arm thread is where you'll find the links as well.

    A realtek project would be interesting and a great deal of work but not impossible of course, as it may require some research into how much can be supported as far as open source support is there for certain models, drivers, etc. However if you just want to use openwrt that probably be a great place to start and if desire to build a toolchain look into buildroot project as it is a bit easier to get a toolchain started for any project, good luck regards.

    Edited: if you like to discuss something like this, please create a new topic from the this thread, regards.
  27. filipedonato

    filipedonato Connected Client Member

    Good news. I was able to do SYSLOG using the Kiwi syslog program and got the error contained in the image that caused the router to reboot.
    I hope we can now achieve stability and solve this problem. I will continue monitoring to see if this error repeats itself.!AoGazlb0JXmDiq9wQ8-5sKyZGSY_nw
  28. txnative

    txnative Addicted to LI Member

    Have you noticed this model being hot, do you keep is cool? In some post reported that it may have contribute to the sudden reboots.

    Even though you are using the K26RT-N build, you can use the K26 build as there is a smaller build that is 3.4MB, but it doesn't have USB support, the other one is labeled the size is 6.7MB. There really is no difference in performance. I have tested this particular firmware back a couple of years ago when my bandwidth was 25/25/ then later went up to 50/50 the belkin f7d4302 performance was nice for my needs back then, right now I just the f7d4302 for testing mips and circulating my routers around in my network as WAP or testing purposes when compiling tomato. Test the K26 builds one at a time first use the build without the USB and see if reboots if it doesn't reboot, proceed to installing the K26USB, but I'm not sure if these builds are 64K but since you not network isn't complicated or high bandwidth give them a try at least make sure to know how to recovery, usually it's a matter of static ip set up, unplug the router wait for a 5 seconds, hold the reset button, plugin the power wait for the ping response come up then release, go to there you should see the CFE Miniweb server. the rest is self explanatory.

    That log you have, looks like something to with the wan connection or something didn't make a connection. You didn't supply what was being done or add enough information.
  29. filipedonato

    filipedonato Connected Client Member

    Yes, at the time I put a heatsink on both chips and they're there until today. Heat is not the problem, since the reboots happened with little use and CPU.

    Ok friend, did not know that could install versions that do not have the reference (F9K1102), I will test calmly and return to answer the results.

    Usually I'm just using the Internet, watching YouTube or reading things, hence the router restarts without further reasons. The log does not show the error itself, only what happens up to one or two seconds before the random restart.
  30. txnative

    txnative Addicted to LI Member


    I was just wanting to get picture of how this model is being used as it's only 8 flash and 64mb ram, 10/100 but after your feedback the router shouldn't be reacting in this manner, but having you try the K26 should at least give an ideal of something wrong with this model or maybe the firmware buggy for this model but a user, if you have noticed in a post here in this thread had mentioned some success from the reboots? Not sure how far that it ran or if had reverted to rebooting again? Hopefully the K26 will work for you, regards.
  31. filipedonato

    filipedonato Connected Client Member

    K26 bricked my router.
    I tried to fix ip,, gateway
    I started while holding the reset button, I get ping in, but nothing appears in the browser. TFTP also did not recognize.:confused:
    Thanks for the dedication and effort to help me, but I think now I'll have to go look for a new router.:D
  32. txnative

    txnative Addicted to LI Member

    Which version did you flash? the smaller minivpn or k26usb, the driver isn't that much different. The reset technique is suppose to bring up the cfe miniweb server as I'm sure you may have seen or used it, as these belkin routers just don't become so unresponsive enough were you can't recover, try switching the to and try the clear nvram, then reboot. If it fails to respond repeat the procedure and flash the oem firmware and if successful, go and do a reset through the belkin gui to restore the defaults. Decide if you'd like to try it again or just reflash the freshtomato-f9k1102-2019 version you had prior. Unfortunately I don't have this model as I'd more helpful, try switching the gateway ip regards
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice