📜 ⬆️ ⬇️

Ubiquity RouterStation Pro: a small overview and installation of Debian GNU / Linux

Greetings, habracheloveki.
I bring to your attention a brief overview of one of the devices of the Ubiquity company in the embedded systems lineup, namely, RouterStation Pro (hereinafter referred to as rspro). Comparing with other products on the market, it can be said that this is an extremely functional and productive router . The Pro version also has a younger sister, with more modest technical specifications. But first things first.



Hardware


The products of the RouterStation line itself are interesting for geeks not only for technical goodies: both models took part in the RouterStation UI / Firmware Challenge and were developed together with the community. This means that we have the ability to install almost any software on hardware, including the native AirOS, OpenWRT, DD-WRT, and even FreeBSD, and for those who don’t like to tinker with the console, several teams have drawn quite good webmords instead of default ones.
')
Let's take a look at the specifications of both devices.



As you can see, the two sisters differ quite seriously: in addition to gigabit ports and twice the amount of memory, the elder has a large number of various ports. For tests, I got the older model, we will look at it in a little more detail, and then replace the default OpenWRT with Debian GNU / Linux.





To begin with, it immediately catches the eye when unpacking. The embedded systems category device has a scanty bundle: we will not find a power supply unit for the device in the set, we will not find a beautiful glossy case, in short, we will not get a ready-to-use device. RouterStations are not equipped with any wireless module (and their cards support up to three pieces) and do not have a built-in one. Thus, for the consumer who decides to apply it, the costs are quite large.

For a start, it would be nice to turn on rspro - on the board, unlike the younger version, there is a rather ordinary DC jack, and the input voltage range is large enough to allow us to experiment. Ubiquity recommends not to go too far and use a high-voltage power supply unit, arguing for a reduced amperage. In stock, there was a power supply from a 24 volt HP printer. It should be noted that it is still not enough and problems will come out sooner or later - either with all three wireless modules, or with powerful USB devices like HDDs, which I encountered later. Nevertheless, the total consumption of the board itself in idle time is quite small, which allows it to work quite stably.



Do not forget about the wireless modules. Ubiquity recommends using your own SuperRange & XtremeRange cards, but we all know that almost any mini-pci cards supported by the kernel (or firmware) will do. These have a good half of all home routers, but can be freely purchased separately. I got a Senao NMP-8602 + card of a / b / g standard and a power of 400 mw, with an antenna from a laptop.
This does not mean that Ubiquity takes money for air and sells its cards at inflated prices - on the contrary, their models are quite high-quality devices, among which there are also high-power cards and rather unique devices, for example, the range of 900 MHz.



Debian GNU / Linux


Having assembled our designer, you can proceed to the most interesting part - the firmware. The image we are looking for is offered by the DebWRT project, the instructions are quite simple and clear. However, I will make a digression: all actions are much easier to carry out, having at your disposal a working Linux distribution, of your choice.

First of all, you need to download all the necessary files for work. They will need three:
debwrt-firmware-ar71xx-generic-ubnt-rspro-squashfs-factory.bin (1.3mb)
debwrt-modules-ar71xx-generic_UBNTRSPRO-2.6.32.20-angel-2.0-1.tar.gz (4.5mb)
debwrt-rootfs-mips-2.0-1.tar.bz2 (70.2mb)
The links are direct, in case the versions change - the download page .

Next, you need to find a suitable drive for kernel modules and rootfs. It will suit absolutely everything - from flash drives and SD-cards to hard drives. I had a 1 GB MMC card, and I do not recommend using smaller disks - it will be cramped.
You will need to perform pre-set markup:
Simply run it with the gparted utility ...



... and skip fsck not to check our disk by yourself:
root:~# tune2fs -c 0 -i 0 /dev/sdb1 tune2fs 1.41.12 (17 May-2010) Setting maximal mount count to -1 Setting interval between checks to 0 seconds 

Now mount the ext3 partition and unpack the rootfs and modules on it.
 root:~# mkdir /mnt/debwrt root:~# mount /dev/sdb1 /mnt/debwrt root:~# cd /mnt/debwrt root:/mnt/debwrt# tar xvf ~/debwrt-rootfs-mips-2.0-1.tar.bz2 root:/mnt/debwrt# tar zxvf ~/debwrt-modules-ar71xx-generic_UBNTRSPRO-2.6.32.20-angel-2.0-1.tar.gz root:/mnt/debwrt# cd ~ root:~# umount /mnt/debwrt 

Fine. It remains only to arm yourself with the instruction and upload debwrt-firmware * .bin to rspro using the OpenWRT method - via tftp. It is easy to make from any OS, I will not stop there. I will note only a couple of facts:
- tftp should be set to the WAN port, but after the firmware do not rush to switch the patchcord to the LAN - by default debwrt only raises eth0, and this is just the WAN port;
- in the recovery mode, rspro has the address 192.168.1.20, in the normal - debwrt is configured to 192.168.1.1.

At this point, the installation is complete, you can begin to set up and give vent to fantasy. A small official post-installation instructions can be found here .
For a minimal home router, you will need to configure network interfaces, enable the dns / dhcp server, enable ipv4 routing in the kernel, and write a couple of simple rules in iptables. For the operation of a wireless access point, you will need a hostapd , it is preinstalled and has a couple of default configs. In a word, typical Debian, without the traditional OpenWRT'shnyh crutches.

The hardware platform is extremely productive for devices of this size. Now I have on rspro apache2 + mod_svn, php5, rtorrent , and she does not die. Judging by the measurements, the device will be able to squeeze about 30-40 MB / s on NAT, until the CPU resources run out. Speaking of expansion options, it is worth mentioning existing video cards, sata-raid cards, etc., made in the mini-pci form factor and, obviously, compatible with RouterStation, and, more precisely, with the Linux kernel. And if this is true, then the possibilities are truly endless.

Summarizing, I want to say that this was the most positive experience of communicating with network devices of this class. The device is ideal for anyone who is uncomfortable working with OpenWRT or DD-WRT, who is not planning a mezzanine mezzanine vacuum cleaner of x86 architecture, who needs high network performance or just tired of a cheap router.
Obviously, it is worth mentioning the price. The younger sister can be found for $ 71 , the older one - from $ 80 , together with the body - from $ 110 . When ordering with ebay will have to pay a rather big shipping cost, comparable to the surcharge in local retail stores.

Perhaps I didn’t quite correctly choose a blog for the topic, but after much deliberation on Linux for everyone, it seemed to me to be the closest to the topic. I apologize for any misunderstandings.

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


All Articles