📜 ⬆️ ⬇️

Equip a hamster or “OpenWrt does firmware from TP-LINK?”. Part 1 - preparatory


“With this half-chair, Master Gambs begins a new batch of furniture. 1865 St. Petersburg "(I. Ilf, E. Petrov).
You were not mistaken, this is another article about building alternative firmware for home routers, these hot masters of our small local area networks in some places. On a reasonable question, why not immediately write where the material is the place I answer: I want to describe the process starting with preparing a virtual machine for assembly (yes, it will be Ubuntu on VirtualBox), going through the firmware build, connecting an external hard drive and setting up the boot from connect the printer, install and configure packages like a media server and a torrent client, and try to end with a description of such a StrongSwan setting that allows you to connect to it from an IPhone, iPad or Windows Phone without installing third-party clients. At the same time, I would like not to ignore important things like safety, as well as useful trifles like a script that will turn off the blue LEDs of my TL-WDR3600 at night. And I am not at all sure of the fullness of my knowledge on many of the issues that have been voiced now.
In short, at this stage I have a lot of plans and confusion. Therefore, any tips and suggestions are important. The text of the article will be exactly changed and supplemented over time, and the entire article may be hidden in drafts by a vote so as not to litter Habr. If you are interested, you want to help with advice, or you just wanted to throw in the author with a sneaker - welcome. Further on, I will try to describe in detail this promising interesting pastime action, the essence of which was depicted by a medieval Japanese artist.
The essence of the assembly process (Attention! 8+)


“Weapons - To Inspect!”


First, briefly about the features of the standard firmware TL-WDR3600 from the review of the device stated on the manufacturer's website:
From all this magnificence, I would like to separately mention the “ease” of sharing printers, implemented through a scary-looking proprietary utility. Offhand, most of the above is easily implemented using OpenWrt. But let's not forget, our goal is not to catch up with TP-LINK firmware. We want to find out how OpenWrt can bypass it.

The transition to Openwrt can be done in several ways. For supported devices, you can download the finished image, upload it directly from the factory firmware. Further, if there is a USB port, a pre-partitioned and formatted USB flash drive is connected to the router. The boot from the flash drive is configured, the necessary packages are installed. As the saying goes: “Madame! Faustpatron is easy. "
You can build your own image from source with the help of OpenWrt Buildroot , this thing builds the firmware as a Frankenstein monster , collecting pieces of source codes from multiple addresses. The process is often interrupted, the more often, the more time has passed since the release date. Then the newly appeared Victor Frankenstein with the help of adhesive plaster in the form of endless patches and symlinks should make his miracle machine work. This method opens up many possibilities, for example, you can force BusyBox to display Cyrillic characters instead of question marks in file names. But most likely you will have to build all the necessary packages yourself, most of the packages from the OpenWrt repository will become unavailable.
We will try to stay on the middle ground and use Image Builder , which promises us a relatively easy build of firmware from pre-compiled packages and compatibility of our firmware with packages from the OpenWrt repository.

What we will definitely lose, not counting the time spent:

"To the distributor of ammunition, give the change of three live ammunition!"



')

Source: https://habr.com/ru/post/245103/


All Articles