# Copyright: Djarvur group, 2009, info@djarvir.net
# License: FreeBSD
#
# Proper commands in proper sequence
#
# Ready for copy-paste
#
######################################################
# First of all we have to prepare our host OS for cross-compiling
# See OS-specific documents: Ubuntu, CentOS, Fedora, Leopard, Debian lenny , Debian Squeeze
######################################################
# Create a directory to compilation will be performed in
# Note: at least 3GB required, 10GB is recommended
# Please check OS-specific doc for Leopard
mkdir -p ~/new/openwrt &&
cd ~/new/openwrt # Get the OpenWRT sources, latest stable
svn co svn://svn.openwrt.org/openwrt/branches/8.09 stable-8.09-latest &&
cd stable-8.09-latest &&
./scripts/feeds update && make package/symlinks
# At the time of writing miniupnpd port is broken
# Let's fix it with a patch reported to OpenWRT team
wget --no-check-certificate https://dev.openwrt.org/raw-attachment/ticket/6097/miniupnpd.patch.txt &&
patch -p0 < miniupnpd.patch.txt &&
rm miniupnpd.patch.txt # Bug is alreadfy fixed in OpenWRT source tree
# Default config is required to go ahead
# Get in
# Select a target platform
# Exit with save
# It is better to avoid any changes/tunings this time
make menuconfig
# Compile a toolchain
make tools/install V=99 &&
make toolchain/install V=99
# Some kernel tuning (might be) required
make kernel_menuconfig
#select Memory Technology Devices (MTD) -->
#Ram/Rom/Flash chip drivers -->>> #check all "Support X-bit buswidth"
#check all "Support X-chip flash interleave"
#
# Note: These parameters are not available on all the platforms.
# They are available on Broadcom, kernel 2.4
# They are required to run a firmware on D-Link DIR-320
# Compile everything now
make V=99
# At this point we are ready to customize our build
make menuconfig make V=99 |
Products > HOWTOs and other docs >