Differences

This shows you the differences between two versions of the page.

toh:mikrotik:rb450g [2013/02/16 23:37]
toh:mikrotik:rb450g [2014/05/28 13:38] (current)
lisicky connecting with screen
Line 1: Line 1:
====== Mikrotik RouterBoard 450G (RB-450G) ====== ====== Mikrotik RouterBoard 450G (RB-450G) ======
-The good news: Attitude Adjustment 12.09-rc1 works very well on the RB-450G.  The device is built with good hardware, almost all of which is fully supported.  With a fast processor, gigabit ethernet, and relatively huge amounts of RAM and flash, this is a very capable device once OpenWRT is installed.+The good news: Attitude Adjustment 12.09 works very well on the RB-450G.  The device is built with good hardware, almost all of which is fully supported.  The switch chipset (Atheros AR8316) however does not provide support for mixing tagged and untagged VLAN's on the same port. With a fast processor, gigabit ethernet, and relatively huge amounts of RAM and flash, this is a very capable device once OpenWRT is installed.
The bad news: getting OpenWRT installed in the first place is not straightforward. The bad news: getting OpenWRT installed in the first place is not straightforward.
Line 13: Line 13:
  * a TFTP server; also ''dnsmasq''   * a TFTP server; also ''dnsmasq''
-The following instructions illustrate installing Attitude Adjustment 12.09-rc1, but should be easily adaptable to other versions.+The following instructions illustrate installing Attitude Adjustment 12.09, but should be easily adaptable to other versions.
==== Create a netboot image for the RB450G ==== ==== Create a netboot image for the RB450G ====
  - [[doc/howto/buildroot.exigence|Get the OpenWRT source code]]   - [[doc/howto/buildroot.exigence|Get the OpenWRT source code]]
-  - You could configure the system entirely by hand, but it's easier to just start with an [[http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/nand/config.ar71xx_nand|existing configuration]] that works for the RB450G.+  - You could configure the system entirely by hand, but it's easier to just start with an [[http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/nand/config.ar71xx_nand|existing configuration]] that works for the RB450G.
    * [[http://www.pitt-pladdy.com/blog/_20101117-184005_0000_OpenWrt_on_RB450G_for_AAISP_FTTC/rb450g-netboot.config|here]] is a smaller configuration made for Backfire (r24027).  It will not take as long to compile as the default OpenWRT configuration, and works fine for Attitude Adjustment 12.09-rc1.     * [[http://www.pitt-pladdy.com/blog/_20101117-184005_0000_OpenWrt_on_RB450G_for_AAISP_FTTC/rb450g-netboot.config|here]] is a smaller configuration made for Backfire (r24027).  It will not take as long to compile as the default OpenWRT configuration, and works fine for Attitude Adjustment 12.09-rc1.
  - Configure the system to use a ramdisk:<code>   - Configure the system to use a ramdisk:<code>
Line 32: Line 32:
  - Set up ''dnsmasq'' on the desktop computer.   - Set up ''dnsmasq'' on the desktop computer.
    - The RB450G's bootloader apparently ignores all DHCP options, such as ''tftp-server'' or ''bootp-filename'', normally used to instruct a netboot device how to find its image.  So you need to set up ''dnsmasq'' with specific options to work around this quirk.     - The RB450G's bootloader apparently ignores all DHCP options, such as ''tftp-server'' or ''bootp-filename'', normally used to instruct a netboot device how to find its image.  So you need to set up ''dnsmasq'' with specific options to work around this quirk.
-    - Copy the file ''openwrt-ar71xx-nand-vmlinux-initramfs-lzma.elf'' from your OpenWRT build tree to a clean directory like ''~/tftproot/''.  Rename the file to ''vmlinux''. The RB450B  +    - Copy the file ''openwrt-ar71xx-nand-vmlinux-initramfs-lzma.elf'' from your OpenWRT build tree to a clean directory like ''~/tftproot/''.  Rename the file to ''vmlinux''. 
-    - Run ''sudo dnsmasq -a 10.2.3.4 -z -d -p 0 -F 10.2.3.5 --enable-tftp --tftp-root=~/tftproot/''.+    - Run ''sudo dnsmasq -a 10.2.3.4 -z -d -p 0 -F 10.2.3.5,10.2.3.6 --enable-tftp --tftp-root=~/tftproot/ --dhcp-boot=~/tftproot/vmlinux''.
    - ''dnsmasq'' should start in the foreground writing all its output to the terminal; you're only going to run it temporarily, and having the debugging information may come in handy.     - ''dnsmasq'' should start in the foreground writing all its output to the terminal; you're only going to run it temporarily, and having the debugging information may come in handy.
 +
  - Connect the serial port of your desktop computer to the serial port of your RB450G using a [[wp>null modem cable]].  Start your terminal server program.  The RB450G serial interface uses 8N1 with hardware flow control at 115200 bps.   - Connect the serial port of your desktop computer to the serial port of your RB450G using a [[wp>null modem cable]].  Start your terminal server program.  The RB450G serial interface uses 8N1 with hardware flow control at 115200 bps.
 +
 +TIP: Try setting hardware flow control to off if you can't get to the bootloader menu (i.e. it always times out without detecting a key press). If using minicom, try ''minicom -o --color=on --device=/dev/ttyS#'', then once minicom opens, type ''CONTROL A Z'' and find your way to disable hardware flow control. Or try ''screen /dev/ttyS# 115200'' To figure out which ttyS device you should use, the command ''dmesg | grep ttyS'' can be helpful.
 +
  - Power up the RB450G.  Immediately hit any key to go to the bootloader menu:<code>   - Power up the RB450G.  Immediately hit any key to go to the bootloader menu:<code>
What do you want to configure? What do you want to configure?
Line 59: Line 63:
  - Wipe out any network self-configuration that the RB450 has done: ''ifconfig eth0 down'' and ''ifconfig br-lan down''.  While not absolutely necessary, I suggest doing this so that anything that the RB450G has done on its own doesn't conflict with your existing LAN setup.   - Wipe out any network self-configuration that the RB450 has done: ''ifconfig eth0 down'' and ''ifconfig br-lan down''.  While not absolutely necessary, I suggest doing this so that anything that the RB450G has done on its own doesn't conflict with your existing LAN setup.
  - Now you'll need to establish a connection between the RB450G and the internet so that it can download the OpenWRT packages it needs for installation.  Since personal LANs vary so much, I will leave this as an exercise to the reader.   - Now you'll need to establish a connection between the RB450G and the internet so that it can download the OpenWRT packages it needs for installation.  Since personal LANs vary so much, I will leave this as an exercise to the reader.
-    * Don't use Eth1 to connect the RB450G to your local LAN; use Eth**2** instead.  Any firewall rules that the OpenWRT netboot image may have set up by default are likely to be less restrictive on the internal LAN switch (Eth2–5) than on the external WAN interface (Eth1). + 
-    * The linux interface device name for Eth2–5 is most likely ''br-lan'', though it may be ''eth1'' instead+ 
-  - Once the internet connection is established, use the ''wget2nand'' script to install OpenWRT into the flash of the RB450G: ''wget2nand http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/nand/''+    * Use Eth0/PoE port to connect the RB450G to your local LAN because the netboot image will only have this port with a dynamic DHCP config. All other ports are static to 192.168.1.1, so they will require further configuration changes which are pointless at this stage given that anything you do to your system now will not be persisted; 
-    * The ''wget2nand'' script in Attitude Adjustment 12.09-rc1 tries to download a nonexistent kernel file.  Change line 30 of the script from<code> +    * You may need to change the dns nameserver by editing the file ''/etc/resolv.conf'' (''vi /etc/resolv.conf''). Replace 127.0.0.1 with 8.8.8.8 or any other public dns server. For vi beginners: once the file is open type ''*i'' to enter editing mode and when done type ''ESC'' and then '':wq''; 
-url_kernel=$url/openwrt-ar71xx-nand-vmlinux-lzma.elf +    * Issue the command ''/etc/init.d/network restart'' so all configuration changes are reloaded and applied; 
-</code> to <code> +    * Try ''ping bing.com'' and see if it works; 
-url_kernel=$url/openwrt-ar71xx-nand-vmlinux.elf +    * If networking is not okay, try editing ''/etc/config/network'' to your needs and remember to ''/etc/init.d/network restart'' after you make any changes; 
-</code> and it should work fine.+     
 +  - Once the internet connection is established, use the ''wget2nand'' script to install OpenWRT into the flash of the RB450G: ''wget2nand http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/nand/''.
  - Once ''wget2nand'' finishes, you can reboot the router.  This time, the router should boot from flash and give you a working OpenWRT installation that you can configure as you like.   - Once ''wget2nand'' finishes, you can reboot the router.  This time, the router should boot from flash and give you a working OpenWRT installation that you can configure as you like.
Line 180: Line 185:
===== Tags ===== ===== Tags =====
-{{tag>GigabitEthernet 256RAM}}+{{tag>GigabitEthernet 256RAM devBoard}}

Back to top

toh/mikrotik/rb450g.1361054244.txt.bz2 · Last modified: 2013/02/16 23:37 (external edit)