Posted: Sat Sep 17, 2011 17:24 Post subject: Compile DD-Wrt from source for MIPS (Buffalo WZR-HP-G300NH)
Hello Devs,
there's a lot of info how to setup the build environment in the Wiki and in the forum.
But I couldn't find any info how to build for specific platforms.
Development OS:Debian GNU/Linux, 64-Bit (as the toolchains are precompiled for AMD64), Release 6 "Squeeze"
Packages installed: build-essential subversion linux-libc-dev binutils asciidoc bzip2 fastjar flex gawk libgtk2.0-dev intltool libz-dev ncurses-dev libssl-dev patch perl-modules rsync ruby unzip wget gettext xsltproc libxml-parser-perl zip ccache Development user: root
Setting up the environment for DD-Wrt was easy as it has similar prerequisites as for OpenWrt.
The smaller checkout of the DD-Wrt v24 source without kernel sources through ddwrt_selective_co.sh took me 17 mins for 3.6 GB.
But the 1GB heavy bzipped toolchain download and 3GB extracted was unexpected.
cd ~/work/dd-wrt/trunk/ ; # here's the working copy
REV=`svnversion` ; # may take some time (once)
cd src/router
cp configs/ar7xxx/.config_wzrg300nh .config
# correct path in .config to src/linux/pb42/linux-2.6.34.6
# disable CONFIG_MADWIFI and CONFIG_SUPERCHANNEL due to missing register_check.o
script -f -c 'make -f Makefile.pb42 all' "compile_log.dd-wrt.${REV}.`date +%Y%m%d_%H%M%S`.log" ; # log all output for later analysis
Actually I could live without W-LAN/Wifi for my test builds.
More important to me is to be able to test my enhancements before sending in a patch.
Would increase the quality of my patches and reduce the time for the developers to test, discuss and implement.
Still it would be great to know how DD-Wrt is currently build for WZR-HP-G300NH.
P.S.:
What DD-Wrt platform is GPL or can be completly build for testing?