Building Openwrt for X86 on Compact Flash

Building Openwrt for X86 on Compact Flash

Postby gatekeeper » Sat Jan 12, 2008 2:14 am

Hi Rebels,

I am not going to write these instructions from scratch, but since they are short and to the point, I will plagerize them from http://vivekian2.wordpress.com/2007/05/24/porting-openwrt-to-a-wrap-board/

I did a few mods for what I was trying to do so here are my steps:

1. Set up a directory for openwrt
2. Change to the directory where you will check out the required files from svn
3. Checkout the latest branch using svn — svn co https://svn.openwrt.org/openwrt/trunk
4. Get the latest packages using svn - svn co https://svn.openwrt.org/openwrt/packages
5. Link the packages to the package directory in trunk. cd /trunk/package then ln -s ../../ packages/*/* .
6. Add Webif^2 to the package directory using svn - svn co http://svn.berlios.de/svnroot/repos/xwr ... kage/webif
7. Configure by changing directory into trunk and running make menuconfig
8. Choose Target System as x86 [2.6]
9. Multiple target images can be created, but I 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.
10. Customize as per your liking.
11. Once the configuration has been saved, go ahead and make . This takes time so be patient.
12. Next your image should be ready in /trunk/bin directory — openwrt-x86-2.6-ext2.image
13. 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.

So you should have a really nice setup for running on an old pc or whatever x86 device you like.

Happy compiling...
Gatekeeper
gatekeeper
Site Admin
 
Posts: 3
Joined: Mon Apr 13, 2009 6:47 pm
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值