User Tools

Site Tools


Day two

Building OpenWRT and first Netboot!

Prepare for building openwrt

I used a virtual debian maschine for development. Today, I installed all the packages listed on the openwrt page. Better howto is this side How to Build openWRT

You have to use trunk, because this package only has the NAND option, RB411 need.

For building the entire system you need around 3Gigabyte space left on the device!


– no ideo how to grep hardware info out of the stock-firmware :-(

Build Options

Target: Atheros AR71xxx Subtarget: Devices with NAND flash Target profile: Atheros Wifi

Here my first config for netbooting the RB411U.

Configure Netboot

I connected the RB411U via Serial-Line and Ethernet to my T41 Thinkpad (on dockingstation). On the Thinkpad I'm using a VirtualBox with grml-Image for setting up the netboot, after encoutering problems with my usb on VirbualBox-grml, I booted native.

For providing the dns-service and uploading the image, I used dnsmasq, which is a way easier to configurate as the dhcpd-demonwith tftpd mentioned at For easier configuration, you find the dnsmasq.conf and two start-up scripts here

  • Unpack and copy over to /root
  • set your IP-Adress to / [code]ifconfig eth0 netmask broadcast[/code]
  • Launch ./ (it is going to run in foreground to see if RB411Uis getting the IP and Image correctly )
  • On a second console, launch ./ to open the serial-Connection on the first COM-Port
  • Power the RB411U on… and it first boot

First boot

RouterBOOT booter 2.23

RouterBoard 411U

CPU frequency: 300 MHz
  Memory size:  32 MB

Press any key within 2 seconds to enter setup..
trying bootp protocol.... OK
Got IP address:
resolved mac address 00:11:25:2E:6A:BE
transfer started ........................................ transfer ok, time=2.89s
setting up elf image... OK
jumping to kernel code
Linux version (matze@debian-dev) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #2 Sun May 15 13:03:01 CEST 2011
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
SoC: Atheros AR7130 rev 2
Clocks: CPU:300.000MHz, DDR:300.000MHz, AHB:150.000MHz, Ref:40.000MHz

BusyBox v1.18.4 (2011-05-15 11:24:25 CEST) 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, r26891) ----------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
rb411u_2.txt · Last modified: 2011/05/15 00:00 (external edit)