Differences

This shows you the differences between two versions of the page.

meta:template_howtobuild [2012/11/10 18:10] (current)
Line 1: Line 1:
 +====== Template HowToBuild ======
 +|:!: **NOTE:**  This TEMPLATE is for HowToBuild only. There is a separate one for [[meta:template_howto|HowTo]].|
 +
 +
 +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:toolchain|about it]]
 +  - pull OpenWrt Buildroot per svn/git and install its prerequisites on your system: [[doc:howto:buildroot.exigence|OpenWrt Buildroot – Installation]]
 +  - see howto use it [[doc:howto:build|OpenWrt Buildroot – Usage]]
 +  - in case questions pop up, cf. [[doc:techref:buildroot|OpenWrt Buildroot – Technical Reference]] (Work in Progress)
 +
 +
 +**''Note:''** If you simply and swiftly want to cross compile a program, see [[doc:devel:crosscompile]].
 +
 +===== Procedure =====
 +
 +==== 1. Pull OpenWrt Buildroot and install its dependencies ====
 +  * [[doc:howto:buildroot.exigence|OpenWrt Buildroot – Installation]]
 +
 +==== 2. Pull sources for XXX ====
 +<code>
 +cd ~
 +mkdir -p ~/openwrt
 +cd ~/openwrt
 +svn checkout svn://svn.openwrt.org/openwrt/branches/backfire wr1043nd
 +cd wr1043nd
 +</code>
 +
 +Backport the 6in4 package to Backfire
 +<code>
 +svn export svn://svn.openwrt.org/openwrt/trunk/package/6in4 package/6in4; svn add package/6in4
 +</code>
 +
 +Checkout the packages feed and symlink (install in menuconfig) only usb-modeswitch, usb-modeswitch-data, usbutils and multiwan packages from the packages feed.
 +<code>
 +./scripts/feeds update packages
 +./scripts/feeds install usb-modeswitch usb-modeswitch-data usbutils multiwan
 +</code>
 +
 +==== 3. apply patches ====
 +
 +
 +==== 4. configure and run make ====
 +  * [doc:howto:build#configuration]]
 +
 +
 +===== Troubleshooting =====
 +
 +
 +===== Notes =====
 +

Back to top

meta/template_howtobuild.txt · Last modified: 2012/11/10 18:10 (external edit)