DD-WRT Development in VirtualBox with Debian X64
Installing Debian x64
In Virtualbox, I am installing the 7.2.0 Wheezy 3 DVD set and afterwards running an apt-get update
Preparing development environment for DD-WRT
After ensuring all the updates, we want to install the development libaries
I'm running as root because this box will not have any outside incoming connections anyways
apt-get install gcc g++ binutils patch bzip2 flex bison make gettext unzip zlib1g-dev libc6 subversion
Downloading DD-WRT Toolchains
mkdir ~/Toolchains cd ~/Toolchains wget ftp://ftp.dd-wrt.com/toolchains/toolchains.tar.xz
if for some reason, your download doesn't finish (power outage, inet outage) just add --continue after the wget and it will resume where it left off assuming you are in the same directory as your target download.
Uncompress the toolchains
tar -xpvJf toolchains.tar.xz
Downloading Development Code
mkdir ~/DEV cd ~/DEV svn co svn://svn.dd-wrt.com/DD-WRT .
This may take a bit. After it gets done, run it again to ensure you have updated files that have been changed while downloading the first time. Then you should be ready.
Copying DEV and toolchains (Optional)
I do this because i have a slow connection, but copy toolchains and DEV to a safe directory before messing with anything
Getting Ready for Compile
For this, i'm using my Asus RT-N12/D1 ( https://wikidevi.com/wiki/ASUS_RT-N12_rev_D1 ), it has a Broadcom 5357 CPU. It is also not in the supported router database (currently) on dd-wrt.com in which I hope to rectify on this Wiki. It's a pretty decent router for the money and it also has 8MB flash so the megas should work.