User Tools

Site Tools


doc:howtobuild:dir-632-a1.build

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:howtobuild:dir-632-a1.build [2013/04/23 13:17]
oldcomputerjunk
doc:howtobuild:dir-632-a1.build [2015/04/21 14:06] (current)
AndrewSSS [Apply current patch]
Line 1: Line 1:
 +====== DIR-632-A1 interim build instructions ​ ======
 +
 +[[toh/​d-link/​dir-632|Table of Hardware page]]
 +
 +===== Preparation =====
 +
 +Fetch trunk revision the candidate patches were generated against
 +
 +<code bash>
 +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
 +</​code>​
 +
 +==== Build Prep ====
 +
 +<code bash>
 +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
 +</​code>​
 +
 +
 +==== Apply current patch  ====
 +
 +Download patch from https://​raw.github.com/​andymc73/​openwrt-dir632/​master/​patch-dir632.patch
 +
 +For brunch Barrier Breaker 14.07 use patch https://​github.com/​AndewSSS/​DIR632/​blob/​master/​patch-dir632_modify.patch
 +https://​raw.githubusercontent.com/​AndewSSS/​DIR632/​master/​patch-dir632_modify.patch
 +
 +<​code>​
 +cd ~/work
 +wget https://​raw.github.com/​andymc73/​openwrt-dir632/​master/​patch-dir632.patch
 +wget https://​raw.githubusercontent.com/​AndewSSS/​DIR632/​master/​patch-dir632_modify.patch
 +cd trunk
 +patch -p1 < ../​patch-dir632.patch
 +make                                # <-- this takes a very long time, first build downloads everything and installs gcc for MIPS
 +</​code>​
 +
 +==== First Build  ====
 +
 +<​code>​
 +cd ~/​work/​trunk
 +make                                # <-- this takes a very long time, first build downloads everything and installs gcc for MIPS
 +</​code>​
 +
 +The firmware flash file generated is trunk/​bin/​ar71xx/​openwrt-ar71xx-generic-dir-632-a1-squashfs-factory.bin
 +
 +
 +==== Rebuild ====
 +
 +<code bash>
 +cd ~/​work/​trunk
 +make clean                          # <-- removes build_dir/​target only, leaves the MIPS gcc etc.
 +make
 +</​code>​
 +
 +==== Rebuild - just the image, ====
 +
 +Rebuild just the kernel and factory image, not the non-image packages.
 +
 +<code bash>
 +cd ~/​work/​trunk
 +make target/​linux/​{clean,​install} ​  # <-- rebuild bin/​ar71xx/​openwrt-ar71xx-generic-dir-632-a1-squashfs-factory.bin
 +</​code>​