How I got OpenWrt on a device that costs $8 USD

There are a lot of great recommendations on this forum about the best, fastest, and easiest devices to buy to flash OpenWrt onto, but there’s one superlative that especially interested me: the cheapest.

Let me begin by saying that between the deprecation of 8MB flash/64MB memory devices for future builds and the slow but sure movement toward WiFi 6 and 7, the device I’m going to talk about is not one I would wholeheartedly recommend to just anyone with any use case. That said, it does support 802.11ac (5Ghz) as well as 802.11n (2.4Ghz), and it has just enough space to run OpenWrt 24.10 with LuCI, include translations to a language other than English, and even support WireGuard (that is, if you build these things into your image as I did. Through opkg, it might be a bit of a squeeze).

This isn’t my main OpenWrt router – I found the Xiaomi Mi Router Gigabit to suit my needs years ago, mostly because of its 1000/100Mb Ethernet ports, and also the relative ease of flashing images onto it. However, that device cost me the equivalent of about $27 USD, and where I live in the global south, that’s a prohibitively expensive price for quite a lot of people. That (and a lifetime love of taking things apart to tinker with them) inspired me to buy a few cheap WiFi repeaters and see if I could find one that met the following specifications:

  • Under $10
  • Minimum 8Mb flash/64Mb RAM
  • 5Ghz support
  • Easy to flash without requiring special skills or advanced knowledge

The last one in particular would be tricky, but what good is an under-ten-dollar router if you need $45 worth of soldering equipment, adapters, and to know what UART and baud rates are to upgrade it?

After a few disappointments, this was the one I found that met all of my requirements:

at time of writing, 147 MXN equals $8.01 USD

The vendors of these sorts of cheapo generic products are never going to respond to you asking what chipset it has. They don’t know or care. Luckily, when it arrived, it said right on the box that it contained MT7628A + MT7612E, a combination that several devices in the Table of Hardware contain, so I knew I was on the right track.

I prodded the stock firmware a bit to see if I could access anything unusual. As with many such devices, it came with Telnet enabled, no way to turn it off, and no listed password to access it. According to nmap, it was also probably running kernel 2.6. (This turned out to be correct – kernel 2.6.36, to be exact, built with GCC 4.6.3 in Buildroot 2012.11.1 – in November of 2023. Crazy, right?)

Not wanting to brick my test device, I decided to solder into the UART first so I could experiment with it, and get back to figuring out how to flash from stock firmware later. Ralink MIPS (ramips)’s bootloader lets you interrupt the boot and load another firmware image solely from memory without flashing anything to disk, so I downloaded all of the OpenWrt images for devices with the same internals and tried flashing each of them until I found one where both the 2.4Ghz wifi radio and the 5Ghz wifi “just worked” right away. In this case it was the TOTOLINK LR1200. With that default image flashed, I had just barely 1MB remaining of disk space, so to add some features I built an image.

I followed the instructions on the build system documentation to configure a build with the same packages as the one you’d get in the Downloads section, but before building, I went back into menuconfig to add the wireguard kernel module as built-in, along with Spanish as the default language and the LuCI-proto-wireguard package. The image I built also had wifi “just working” and didn’t seem to have any unforeseen bugs, so I booted the device back into its stock firmware to have a look at where I could get it to flash from.

On the “advanced settings” page, there seemed to be a “firmware update” option, but it didn’t work at all. I checked the source code and realized that the page was creating iFrames for four different .html pages, one of them being called upgrade.html.

So I navigated to http://192.168.168.1/upgrade.html, and lo and behold – it let me flash OpenWrt! Right from the browser!

That was a lot easier than I had expected.

My hope is that someone looking specifically for the cheapest possible option can find this post, and also this same device. If it had a brand name, I’d list it, but hopefully with the information given here you can find it, despite everything being so generic on most online marketplaces when it comes to Wifi routers in the “economic” category.

As for my own device, it’s perfect for a travel router. If I accidentally leave it behind in a hotel room, like so many pairs of sunglasses and Android chargers before it, then I’m out eight bucks – not so bad, really.
*
P.D: There were going to be a lot more images in this post – screenshots, mostly – but I only just created this account so I’m limited to one per post. If possible, I’ll post the others in comments*

8 Likes

Where I found the reference to “upgrade.html” within an iFrame:

1 Like

Attempt to flash from stock firmware:

1 Like

Success

1 Like

joy.png

2 Likes

This AC1200 8/64 "device" is def not worth $8.

1 Like

Do you have any devices that meet the aforementioned requirements for cheapness and baseline usability that I outlined? Or are you just being snooty about hardware for no reason?

1 Like

you mean "unsupportable" since everything 8/64 is getting dropped ?
I could probably find a few ...

Specifically shipped to/sold in MX, no.

I mention that in the first sentence of the second paragraph

but you didn’t, did you?

I understand your personal standards for what hardware you would use are higher than this. So are mine, as I laid out in the post. But that isn’t the point. This is specifically the result of the search for the most dirt-cheap device on the market that still has the most essential features available and is easy to flash.
If you have more than $8 to spend, then by all means, buy a better device, and read any of the thousands of other posts to decide which one is best for you. But why come on the “Here’s how you can be poor and still improve your network security” post and crap all over the poor man’s hardware solution?

1 Like

With that title I was expecting a device similar to a Popstick or Linux Business Card.

We even provide images for the former.

A future proof successor with more memory/storage would be nice.

2 Likes

First time ever hearing about either of these. Pretty cool tech! Definitely not the cheapest options, however – the Popstick costs as much as my Xiaomi router did. That's not to say either of those are wildly expensive, but for me part of the ethos of free software has always been accessibility regardless of income. But free software does you no good unless you have hardware to run it on. This was why I liked the concept of the original raspberry pi so much - a cheap Linux computer students could afford - and why I feel like their constant upgrades, while impressive, get further and further away from their original idea. Oh well, that's a discussion for another forum I suppose ….

Anyway, some years ago most cheapo repeaters were 4Mb/32Mb devices, now they seem to use 8Mb/64Mb as the standard. Hopefully this pattern continues and within a short time they come standard with 16/128, the current OpenWrt minimum.

1 Like

@akabul0us what's the full name of the device, it seems to be missing from your first post?

1 Like

I managed to find a device description from the FCC: https://device.report/shenzhen-urant-technology/u13

Typically sold as AC1200M Wifi Repeater

Nice score!. I always like to read about stuff like this. We don't all need high end largest and greatest. If a low cost solution is all you need then why not right? However, If you don't mind working with used hardware there are some awesome deals out there. A few weeks ago I was cruising the local thrift store and spotted a Netgear R8000 with power supply for $10. I almost bought it just because it is so cheap but I don't have a use for it. If anyone reading this wants some great low cost networking stuff just try out the local thrift stores. You can find some awesome deals if you look around for them.
I did however, pick up a dell small form factor computer to use as a budget router/nas/homelab for $45 with incredible specs.