• TwitterFacebookGoogle PlusLinkedInRSS FeedEmail

Installing Openwrt On A Mikrotik Routerboard

07.03.2019 
Rb2011uias

Copy the file openwrt-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf to a clean directory like ~/tftproot/. Rename the file to vmlinux (this helps when testing other images). Welcome to the OpenWrt Project » Table of Hardware » Mikrotik » Mikrotik RouterBoard. Mikrotik /rb951ui.txt Last.

Warning: On newer GCC versions you may be required to add this patch from OpenWRT For more options and build instructions look in Adding Interfaces First, you need to add a new interface to your virtual router. This is done in the interface menu. The interface command has the following options: [admin@MikroTik] /metarouter> interface add comment disabled dynamic-mac-address type virtual-machine copy-from dynamic-bridge static-interface vm-mac-address Description of each option can be found in.

However, as said, this is pure speculation and has not been tested by me. If however you are successful in flashing your RB 750GL, please tell me! Always happy to help! Hi, thank you for the information on how to connect to the RB750, that was new and useful infroamtion to me. On actually loading a new firmware onto the router you can make yourself your life A LOT easier by using the wget2nand utility. All of steps 3 – 6 for the rb750 and 4-7 for the rb411 (and other mikrotik routers) are handled by that tool.

Example with no settings If you will add a new metarouter without specifying any parameters, it will be added with Dynamic HDD size, and 16MiB of RAM: [admin@RB_Meta] /metarouter> add name=mr1 [admin@RB_Meta] /metarouter> print Flags: X - disabled # NAME MEMORY-SIZE DISK-SIZE USED-DISK STATE 1 mr1 16MiB 0kiB 3kiB running OpenWRT as virtual machine Starting from v3.24 and v4.0beta3 MetaROUTER has the ability to import custom built images. As an example we will show how to patch and use OpenWRT as the virtual machine. Importing image If you don't have any specific needs, you can import our prebuilt OpenWRT image, which is downloadable,. Upload openwrt image to the router and import it by import-image command: [admin@MikroTik] /metarouter> import-image file-name=openwrt-mr-mips-rootfs.tgz imported: 100% [admin@MikroTik] /metarouter> print Flags: X - disabled # NAME MEMORY-SIZE DISK-SIZE USED-DISK STATE 0 mr1 16MiB unlimited 7383kiB running As you can see OpenWRT is running, now you can start configuration process, which is explained in sections. Building your own OpenWRT image If you are not satisfied with our prebuilt version of OpenWRT, then you can build and use your own image. First step is to install svn and get the latest source code from openwrt.org. Note: Patch v1.2 adds newer kernel support which makes it possible to compile with latest OpenWRT revisions.

Transfer ok, time=1.88s if you see a Gateway: 192.168.1.1 it means that the RB has found the DHCP server on your router. Just press the ESCAPE key in the serial console and try again;) finally the RB should boot openwrt ramdisk: Please press Enter to activate this console. BusyBox v1.18.4 (2011-05-12 16:13:00 EEST) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ .----.----.----. .---. _ - _ -__ _ _ _______ __ _____ __ __ ________ __ ____ __ W I R E L E S S F R E E D O M ATTITUDE ADJUSTMENT (bleeding edge, r26878) ---------- * 1/4 oz Vodka Pour all ingredients into mixing * 1/4 oz Gin tin with ice, strain into glass.

Please check out the article. It contains an example and a couple of explanations.

If these steps do not work for you, or if you have a router that failed to properly flash Commotion or will not respond in any way, then please see the section. Time required: 1 hour or more. Materials + Supplies Needed To install Commotion, you will need the following items on-hand: • A computer with an Ethernet port. • The MikroTik router and its power supply (or a 24V PoE supply). • Access to a power outlet. • One Ethernet switch with two open ports.

N-connector, Swivel-antenna, ) and ground-screw Left/Top: Casing: Mikrotik CA493 with eight Ethernet-ports of Routerboard RB493G Right: Casing: Mikrotik CA493 with venting holes Bottom: Casing: Mikrotik CA493 Casing opened: Casing: Mikrotik CA493 with two N-pigtails (not included), Routerboard 493G and Routerboard R52nM (Wifi-card) Opening the case. 1x PCB 1x USB-2.0-dual-A-socket, e.g.,. 1x USB-2.0- A-plug, e.g.,. 1x Traco TSR 1-2450 step-down-converter 5VDC/1A (doesn't need any other components like capacitors or heatsink). As of this writing you will find the LM7805V voltage regulator at 1x Multifuse 60VDC/0,5A I hold/1A I trip Proto-type and diagrams/layouts aren't beauties, but maybe someone with more Cadsoft-Eagle-experience can make a nice circuit-diagram and a real PCB-layout: Rudimentary circuit-diagram with USB-2.0 data-port (1) and generic USB-2.0 charger port (2), both supplied by a step-down-converter via the fan-connector of the RB493G: Rudimentary PCB-layout, not applicable: USB-mod prototype top-view: USB-mod prototype bottom-view: USB-mod prototype attached: Tags.

If you have enough memory available on the other router, you can put the image on the /tmp folder there, e.g., like this: ssh root@192.168.1.1 wget --directory-prefix=/srv/tftp Now enable dnsmasq's built in tftp server, and point it to the correct locations, e.g., like this: That's it, Save and apply, connect the Eth1/WAN port of RB493G to one of the other routers LAN ports, and continue to. Make sure you asigned a static lease for the MAC address of the Routerboards eth1 port, otherwise bootp wont work. Use a Debian based server for netboot. Press x to leave setup (-o-1-x is needed only once, the boot method is saved in non-volatile memory) If everything is setup correctly it should look like: 0x00 RouterBOOT booter 2.29 RouterBoard 493G CPU frequency: 680 MHz Memory size: 256 MB Press any key within 2 seconds to enter setup. Writing settings to flash.

• Access to a power outlet. • One Ethernet switch with two open ports. • Two Ethernet cables. • A computer with a serial port, or a USB-to-Serial adapter. • A serial cable to connect to a DB-9 male serial console • An Internet connection or the appropriate Commotion software image. If your computer doesn’t have a serial port, you will need a USB to serial adapter. Some examples of these can be found in the External Resources section.

All i want is make openwrt run on routerboard 433ah.

After reboot, you should see the /media/sf_TFTP-root contents, proving the automount is working. Step 4 - Get the Source Code for the Attitude Adjustment version of openwrt We'll need to run the Debian package manager to ensure we can get the correct versions of openwrt from the Web. I have not had much luck with the Debian graphical package manager so I just open up a terminal window and run apt-get. You'll want to install svn and git: su We need to be 'root' while installing packages apt-get update Ensures you have the latest list of software versions apt-get install subversion build-essential Installs the subversion source code control software apt-get install git-core Install the git source code control software apt-get install libncurses5-dev zlib1g-dev gawk Need these on Debian Wheezy for make to succeed apt-get install openssh-server So we can copy files from RB450G to Debian using scp exit Done with administrator stuff. Now upload the Attitude Adjustment (12.09) version of openwrt: cd ~ Go Home mkdir AttitudeAdjustment Our directory to install openwrt mkdir AttitudeAdjustment/packages Our directory to install openwrt packages git clone git://git.openwrt.org/12.09/openwrt.git AttitudeAdjustment Get all the openwrt source git clone git://git.openwrt.org/12.09/packages.git AttitudeAdjustment/packages Wiki says get em. Don't know why yet.

Setup the Serial Console If you don’t have a terminal program that can access serial port consoles installed, you can use minicom or something similar. Sagemcom tools telnet. Open a terminal and install the package by typing the following: sudo apt-get install minicom You will need to configure minicom to the proper port and data-rate for your MikroTik router.

Now type:wq to write the group file and quit. Do not forget that shell exit command after you have quit out of vi. You shouldn't be a superuser in Linux any longer than necessary. Reboot your Debian VM now to force all the changes to get updated.

Install the software to flash At this point, your routerboard is running Commotion in memory. To permanently install Commotion to the device's NAND flash (similar to a computer hard drive), the files must be loaded from the web server running on your computer. In the serial console, check if your Commotion router received an IP address from the dnsmasq instance on your computer. Run the command: ifconfig eth0 If the router has an IP address, it should look something like: eth0 Link encap:Ethernet HWaddr aa:bb:cc:dd:ee:ff inet addr:192.168.10.101 Bcast:192.168.10.255 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1019 errors:0 dropped:0 overruns:0 frame:0 TX packets:4400 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 You can proceed to the next installation step, wget2nand.

If you see ay glaring errors then please make a PR and I will update the repo.;) Part One - Getting Vagrant Virtually Envigorated • First we need to bring the vagrant box online. This guide presumes that you already have Vagrant installed.

And most of errors when i tried make V=99 are related to sed. Any idea what is going wrong? All i want is make openwrt run on routerboard 433ah.

'آموزش تصویری نصب استریسک (IP-PBX) برروی روتربرد ' Asterisk به عنوان بهترین نرم افزارهای متن باز برای VoIP را میتوان به کمک قابلیت مجازی سازی متاروتر برروی روتربردهای میکروتیک نصب نمود. درواقع متاروتر قابلیت مجازی سازی میباشد که میکروتیک برروی سیستم عامل خود قرار داده که به این روش بتوان روترهای مجازی و سیستم عامل های دیگر را برروی روتربرد اجرا کنیم.

Instructions for setting up LEDs are from 12/2014, but as for v15.05 it seems to be still neccessary to do this. Anyway, please check first if the LEDs are working as desired (plug devices into ethernet ports, check WLAN activity etc).

Always happy to help! Hi, thank you for the information on how to connect to the RB750, that was new and useful infroamtion to me.

Quickly hit any key on your keyboard to enter the router’s boot menu (you only have a few seconds). If you miss it, disconnect and reconnect the power to the router and start over.

Introduction This document contains a step-by-step process for installing the Commotion software on MikroTik routers. If you have a new, in-the-box MikroTik device, this guide is for you. We have written this guide because the Open Technology Institute is expanding Commotion router software support for MikroTik routers. The software is an alternative operating system, similar to Linux for +your home or office computer. MikroTik hardware comes from the factory installed with their custom software, called RouterOS - just like a new computer usually comes with Microsoft Windows or Mac OSX installed. Installing Commotion on your router instead will add new features to your router, including the ability to mesh with other routers that use Commotion.

Root@OpenWrt:/# cat /proc/mtd dev: size erasesize name mtd0: 0000b00 'routerboot' mtd1: 0001000 'hard_config' mtd2: 0001000 'bios' mtd3: 0001000 'soft_config' mtd4: 0000000 'booter' mtd5: 003c000 'kernel' mtd6: 07c0000 'rootfs' The two partitions used to install OpenWrt are kernel and rootfs. Their sizes are in bytes with hex, which translates to 3840KiB for kernel and 126976KiB for rootfs. Netboot via BOOTP/TFTP.

We're done running from the LAN port on the RB450G: disconnect the Ethernet cable from Port3 and reconnect your PC (my laptop) back up to the network. Re-run the ipconfig commands to get new IP addresses for your PC that are on your internal network (rather than the RB450G's LAN). Step 7 - Decide How You're Going to Provide DHCP and a TFTP Server To download the code to the RB450G we're going to need a DHCP server with PXE boot or BOOTP capabilities. We will also need a tftp server. In my case, I have Tomato running on a Buffalo WHR-G125 as my main connection to the Internet. I like Tomato: its simple, has a nice GUI, lets me track our internet usage.

Step 2: Configure OpenWRT and Build To use latest version of packages which are compatible to this version of OpenWRT, you may run the following commands to update apps in OpenWRT. Cd openwrt./scripts/feeds update -a./scripts/feeds install -a To configure OpenWRT and packages, we use menuconfig tools in OpenWRT. Use the following command to enter menuconfig: make defconfig make prereq make menuconfig You will find a list of configuration options for OpenWRT. It contains several sections we need to configure.

Contents • • • • • • • • • • • • • • • • • • • • • Overview MetaRouter is a new feature in RouterOS 4.0 beta 1 and RouterOS v3.21 Currently MetaRouter can be used on • RB400, RB700 series except models with SPI flash, RB900 series except models with SPI flash, RB2011 boards • Listed PPC boards: RB1000, RB1100, RB1100AH and RB800. Requirements Each Metarouter instance uses the same amount of resources as a stand-alone RouterOS installation. It means that you need a minimum of 24MB of RAM for each RouterOS virtual machine plus memory for the MetaROUTER host itself.

Contents • • • • • • • • • • • • • • • • • • • • • Overview MetaRouter is a new feature in RouterOS 4.0 beta 1 and RouterOS v3.21 Currently MetaRouter can be used on • RB400, RB700 series except models with SPI flash, RB900 series except models with SPI flash, RB2011 boards • Listed PPC boards: RB1000, RB1100, RB1100AH and RB800. Requirements Each Metarouter instance uses the same amount of resources as a stand-alone RouterOS installation. It means that you need a minimum of 24MB of RAM for each RouterOS virtual machine plus memory for the MetaROUTER host itself. It is suggested to have more than 24MB memory available for each Metarouter. Upcoming RouterOS versions will have ability to run virtual machines with less than 16MB per machine. Note: It is possible to run other virtual machines with less than 24MB RAM per machine if the virtual operating system is OpenWRT.

Materials + Supplies Needed To install Commotion, you will need the following items on-hand: • A computer with an Ethernet port. • The MikroTik router and its power supply (or a 24V PoE supply). • Access to a power outlet. • One Ethernet switch with two open ports.

The 24MB limitation is only for virtual RouterOS installations. Currently on one host you can create up to 8 virtual machines and up to 8 virtual interfaces. Workaround to have more than 8 interfaces in total is to use VLANs. In future versions it will be possible to add up to 16 virtual machines.

However, as said, this is pure speculation and has not been tested by me. If however you are successful in flashing your RB 750GL, please tell me! Always happy to help! Hi, thank you for the information on how to connect to the RB750, that was new and useful infroamtion to me. On actually loading a new firmware onto the router you can make yourself your life A LOT easier by using the wget2nand utility.

Hi Brett, thanks for your feedback! I do not have a 750GL at my disposal, so I can only speculate. However, based on the specs of the RB 750GL and the commits in the OpenWRT repositories, I think that there is a pretty good chance. I assume that the bootloader works much the same way, so the procedure for the RB 750 should apply to the RB 750GL. However, as said, this is pure speculation and has not been tested by me. If however you are successful in flashing your RB 750GL, please tell me! Always happy to help!

We need to provide files. Therefore: cd /tmp/ mkdir tftpboot wget '#this image is needed for booting from the ram ln -s openwrt-ar71xx-nand-vmlinux-initramfs.elf vmlinux # to match the bootloader requests •.

Step 2 - Install a Debian Virtual Machine in VirtualBox Download the latest netinstall version of amd64 Bit Debian from. I used the netinstall version because its a small initial file size and I have a fast Internet connection to later allow the Debian installer (apt-get) to just upload all the packages directly during the first boot of Debian. In VirtualBox, click on 'new' to create a new VM. I named it Debian64: Creating a New VM in VirtualBox You may also notice from that screen capture above that I created a second virtual machine with the free 'parted' program in it. I needed that to keep making the virtual disk larger because I started off with the default 8 GB disk: if you just initially size to a 25 GB disk, you should be able to skip re-partitioning your drive when you run out of space during the openwrt build: less hassle, more time to pet the dog. Woof The values I changed from the defaults: • Increased the memory to 1024M (Faster?) • Increased the disk size to 25 GB (The openwrt build is huge) • Set the network up for a 'Bridged Adapter' to my laptop's wired Ethernet adapter (We'll need the VM on our same network as the laptop later when we install to the RB450G). • Go into the System->General->Advanced Settings and turn on Bi-Directional Shared Clipboard and Drag'nDrop • Go into the Shared Folders configuration of VirtualBox to share the tftp folder between Debian and Windows.

The guide assumes you are familiar with Linux and working on the command line. The installation process should take about an hour, or longer. If these steps do not work for you, or if you have a router that failed to properly flash Commotion or will not respond in any way, then please see the section. Time required: 1 hour or more. Materials + Supplies Needed To install Commotion, you will need the following items on-hand: • A computer with an Ethernet port. • The MikroTik router and its power supply (or a 24V PoE supply).

This patch also adds PowerPC support (ability to run OpenWRT image on RB1000 and RB1100). Cd trunk/ wget patch -p0. Warning: On newer GCC versions you may be required to add this patch from OpenWRT For more options and build instructions look in Adding Interfaces First, you need to add a new interface to your virtual router. This is done in the interface menu. The interface command has the following options: [admin@MikroTik] /metarouter> interface add comment disabled dynamic-mac-address type virtual-machine copy-from dynamic-bridge static-interface vm-mac-address Description of each option can be found in.