Thinking Understanding Doing

May 24, 2007

Porting OpenWRT to a WRAP board

Filed under: linux, mesh, openwrt, wireless, wrap — vivekian2 @ 9:49 pm

Building OpenWRT for the Kamikaze branch is mostly a smooth affair with good tutorials like this one guiding a novice through this unknown territory. The basic steps one needs to follow can be summed up as :

  1. Checkout the latest branch using svn — svn co https://svn.openwrt.org/openwrt/trunk
  2. Configure by changing directory into trunk and running make menuconfig
  3. Choose Target System as x86 [2.6]
  4. Multiple target images can be created, but we stuck to choosing ext2 filesystem. Also , you can decide the size of your partitions as per the size of the compact flash drive which you are using.
  5. Customize as per your liking.
  6. Once the configuration has been saved, go ahead and make . This takes time so be patient.
  7. Next your image should be ready in /trunk/bin directory — openwrt-x86-2.6-ext2.image
  8. You can transfer this to your CF card using the dd utility e.g. dd if=/home/test/trunk/bin/openwrt-x86-2.6-ext2.image of=/dev/sdc where /dev/sdc was the CF card.

This works except for one hiccup. There is a device.map file missing which GRUB needs to map BIOS devices to OS devices. So you can mount your CF disk and create a new device.map file in the /boot/grub/ directory. The file is a single line :

(hd0) /dev/hda

Now when you boot, OpenWRT should work fine.

If you notice anything unusual or interesting , do leave a comment.

1 Comment »

  1. Worked like a charm to get started. I added a few things and ported it to x86

    http://www.opensourcerebels.org/forums/viewtopic.php?t=27

    Comment by Gatekeeper — January 12, 2008 @ 9:36 am


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.