DIR-632-A1 interim build instructions

Preparation

Fetch trunk revision the candidate patches were generated against

REV=36487
cd
mkdir -p work/openwrt
mkdir work/DOWNLOAD
cd work/openwrt
svn co -r $REV svn://svn.openwrt.org/openwrt/trunk/
cd trunk
ln -sf ../../DOWNLOAD dl

Build Prep

cd ~/work/trunk
cp feeds.conf.default feeds.conf    # <-- I edited feeds.conf and removed xwrt to reduce some of the downloading
scripts/feeds update
scripts/feeds install -a            # <-- here instead, I ran a reduced selection of packages to reduce build time - see end of this wiki entry
make prereq
cat  > .config <<EOF
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_DIR632A1=y
CONFIG_PACKAGE_bridge=y             # <-- the following from here are optional, saves having to install opkg file
CONFIG_PACKAGE_wireless-tools=y
CONFIG_PACKAGE_wget=y
CONFIG_PACKAGE_ncat=y
CONFIG_PACKAGE_wavemon=y
CONFIG_PACKAGE_ethtool=y
CONFIG_PACKAGE_mtd-utils=y
CONFIG_PACKAGE_tcpdump-mini=y
CONFIG_PACKAGE_usbutils=y
EOF
make defconfig

Apply current patch

Download patch from https://raw.github.com/andymc73/openwrt-dir632/master/patch-dir632.patch

cd ~/work
wget https://raw.github.com/andymc73/openwrt-dir632/master/patch-dir632.patch
cd trunk
patch -p1 < ../patch-dir632.patch
make                                # <-- this takes a very long time, first build downloads everything and installs gcc for MIPS

First Build

cd ~/work/trunk
make                                # <-- this takes a very long time, first build downloads everything and installs gcc for MIPS

The firmware flash file generated is trunk/bin/ar71xx/openwrt-ar71xx-generic-dir-632-a1-squashfs-factory.bin

Rebuild

cd ~/work/trunk
make clean                          # <-- removes build_dir/target only, leaves the MIPS gcc etc.
make

Rebuild - just the image,

Rebuild just the kernel and factory image, not the non-image packages.

cd ~/work/trunk
make target/linux/{clean,install}   # <-- rebuild bin/ar71xx/openwrt-ar71xx-generic-dir-632-a1-squashfs-factory.bin

Back to top

doc/howtobuild/dir-632-a1.build.txt · Last modified: 2013/04/30 13:29 by oldcomputerjunk