Porting OpenWRT to a WRAP board

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.


2 thoughts on “Porting OpenWRT to a WRAP board

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s