Compile DD-Wrt from source for MIPS (Buffalo WZR-HP-G300NH)

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Generic Questions
Author Message
DD-WRT Novice

Joined: 27 Dec 2007
Posts: 34

PostPosted: Sat Sep 17, 2011 17:24    Post subject: Compile DD-Wrt from source for MIPS (Buffalo WZR-HP-G300NH) Reply with quote
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 took me 17 mins for 3.6 GB.
But the 1GB heavy bzipped toolchain download and 3GB extracted was unexpected.

Target: Buffalo WZR-HP-G300NH (MIPS not MIPSel, see also OpenWrt info)
uname -a: Linux router #6029 Tue Jun 14 05:56:45 CEST 2011 mips unknown
DD-Wrt Toolchain: mips_r2 linaro (toolchain from 2011-05-25, still current on 2012-01-02)
Config: ??? src/router/configs/ar7xxx/.config_wzrg300nh ???
Makefile: ??? src/router/Makefile.pb42 ???
Linux dir: ??? src/linux/pb42/linux- ???

Did I choose the correct setup for the Buffalo WZR-HP-G300NH?
Correct config, makefile and linuxdir?

All information, hints and links are greatly appreciated.

How I try to build DD-Wrt:
# preparations

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-
# 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

My directory setup in ~:
-> current-toolchains.tar.bz2
-> toolchains/
 --> armb-4.3.2/
 --> toolchain-*/
 --> sources/
 --> staging_dir_*/
-> trunk/ (r18074)
 --> .cvsignore
 --> .project
 --> Makefile
 --> ar5315_microredboot/
 --> image/
 --> opt/
 --> redboot/
 --> src/
 --> tools/

Known links:

Last edited by maddes.b on Mon Jan 23, 2012 23:03; edited 5 times in total

Joined: 20 Sep 2006
Posts: 17339
Location: Hesse/Germany

PostPosted: Mon Jan 09, 2012 17:40    Post subject: Reply with quote
it doesnt make sense cau u wont get any wifi driver. its not gpl
Forum Guidelines...How to get help
Forum Rules
Throw some buzzwords into the WIKI search Exclamation
I'm NOT rude, just offer pure facts!
Atheros (TP-Link & Clones, etc ) debrick service in EU
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
Andreas Baumert: "Kundige Menschen befragen Fachleute, ohne ihnen auf die Nerven zu gehen. Sie stellen keine Fragen, die sie mit etwas Fleiß und Lektüre selber beantworten können. Sie wissen, auf welche Quellen es ankommt,und wie man sich Zugang zu ihnen verschafft."
DD-WRT Novice

Joined: 27 Dec 2007
Posts: 34

PostPosted: Mon Jan 09, 2012 18:42    Post subject: Reply with quote
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.

What DD-Wrt platform is GPL or can be completly build for testing?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Generic Questions All times are GMT


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum