Building Openwrt for X86 on Compact Flash
2010-01-09 14:51
477 查看
Building Openwrt for X86 on Compact Flash
by 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
相关文章推荐
- OpenWrt for vmware 从openwrt.org下载10.03.1 或是自己下载最新的源码进行编译生成x86 vmdk格式
- [HowTo] OpenWRT on x86 PC
- openwrt build for asus rt-n13u b1
- Writing and Compiling A Simple Program For OpenWrt
- Generated AOT code is wrong when building for iOS on Windows
- [Javascript] Some function for Cookie access on Nokia Widget Engine (WRT)
- Open flash chart 2 work on GAE
- 如何在RHEL6上配置PAM LDAP认证(How to setup LDAP Authentication for PAM on RHEL6 x86_64)
- 使用QT实现DREAM:Building on Linux for Android
- Error on line 24 of document : Open quote is expected for attribute "{1}" associated with an eleme
- Installation for openmeetings on CentOS 5
- Building OpenCASCADE on Debian
- Openwrt flash 空间不足的解决方法
- Configuring HugePages for Oracle on Linux (x86-64)
- Error (169008): Can't turn on open-drain option for differential I/O pin
- Building MySQLdb for Python on Windows
- Flash plugin for Firefox on Fedora 11 ppc.
- Community Building on the Web : Secret Strategies for Successful Online Communities
- Errors when building android-gingerbread for x86