Table of Contents
Template HowToBuild
The benefits of compiling OpenWrt from scratch should be clear to you. One situation where you are required to do it, is when no pre-built images are offered for download, for whatever reasons.
Preparations
- you will be using OpenWrt Buildroot for this, so read about it
- pull OpenWrt Buildroot per svn/git and install its prerequisites on your system: OpenWrt Buildroot – Installation
- see howto use it OpenWrt Buildroot – Usage
- in case questions pop up, cf. OpenWrt Buildroot – Technical Reference (Work in Progress)
Note: If you simply and swiftly want to cross compile a program, see crosscompile.
Procedure
1. Pull OpenWrt Buildroot and install its dependencies
2. Pull sources for XXX
cd ~ mkdir -p ~/openwrt cd ~/openwrt svn checkout svn://svn.openwrt.org/openwrt/branches/backfire wr1043nd cd wr1043nd
Backport the 6in4 package to Backfire
svn export svn://svn.openwrt.org/openwrt/trunk/package/6in4 package/6in4; svn add package/6in4
Checkout the packages feed and symlink (install in menuconfig) only usb-modeswitch, usb-modeswitch-data, usbutils and multiwan packages from the packages feed.
./scripts/feeds update packages ./scripts/feeds install usb-modeswitch usb-modeswitch-data usbutils multiwan
3. apply patches
4. configure and run make
- [doc:howto:build#configuration]]
Troubleshooting
Notes
meta/template_howtobuild.txt · Last modified: 2012/11/10 18:10 by uvray313
This text is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
