Table of Contents

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!

Hardware-Information

– 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. rb411u_netboot_1.config.txt.zip

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 openwrt.org. For easier configuration, you find the dnsmasq.conf and two start-up scripts here rb411u_dnsmasq_serial_connection.zip

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: 192.168.0.50
resolved mac address 00:11:25:2E:6A:BE
Gateway: 192.168.0.1
transfer started ........................................ transfer ok, time=2.89s
setting up elf image... OK
jumping to kernel code
Linux version 2.6.37.6 (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
 -----------------------------------------------------
root@OpenWrt:/#