Automation Scripts: DD-WRT Download and Build for NETGEAR WGR614L/v8

Our apologies but in-order to give our members the best experience and speed you must be a member and logged in to download. If you are a current member please login using the login link at the top of the page. If you are not currently a member please Create new account to download files.

The release contains three scripts :
1.checkout-dd-wrt.sh
2.ready_dd-wrt.sh
3.make_and_install.sh

I am assuming that you already install proper toolchain for compiling DD-WRT code.

1. You can run checkout-dd-wrt.sh from any directory provided you have write permission into that directory. For example you can run it from /home/MOR. This script would create DD-WRT directory in that path and source code will be downloaded under that directory (/home/MOR/DD-WRT).
It starts by downloading the tools and the opt directory at first. These directories contain some usable tools and scripts. Then it creates a src directory under DD-WRT where different router packages and linux distribution are downloaded.
Though DD-WRT provides option of selecting several platform and linux combination , for WGR614L we are only downloading the linux distribution (linux.v24_2) which is used in DD-WRT build for WGR614L.
Upto this point DD-WRT distribution, needed for WGR614L build, has been downloaded.

2. This downloaded code contains some executables which can not be executed in a 32-bit environment and also it contains some router packages where Makefiles are absent.
The script ready_dd-wrt.sh is used to get rid of these two problems. It removes the executables for 64-bit environment and recompiles the corresponding source code(s) to generate 32-bit executables. Then it runs make configure to generate missing Makefile(s).
Again ready_dd-wrt.sh can be run from anywhere but for convenience we keep it in the same directory as checkout-dd-wrt.sh.
It takes as argument the location of DD-WRT directory as shown below :
./ready_dd-wrt.sh /home/MOR/DD-WRT.

After these two steps we have a DD-WRT distribution that we can build for WGR614L.

3. The third script i.e make_and_install.sh is used to compile DD-WRT distribution and create a chk file to be flashed to WGR614L.

At first it compiles the packages under router directory and then it compiles linux. Both these things are done by the 'make' command given at line no.3 of the script .
The next command 'make install' copies the executables into target directory. This target directory is basically our rootfs which will be later converted to squashfs file system. Then the script trims some directories under the target directory and also it copies few libraries, shared objects and .conf files from different folders to corresponding folders in target directory. These stuff will go as part of rootfs.
Next it creates a rootfs in squashfs format using the target folder .
After this it creates a trx file using the compressed kernel and rootfs(in squashfs format).
Finally it creates a chk file using this trx file .
The chk file dd-wrt.chk is created in /home/MOR/DD-WRT/opt directory.

NOTE: At present there is an issue . Before step 3 we need to go to directory
/home/MOR/DD-WRT/src/router and run make clean;make.
Then we need to perform step 3.
This is required only for the first time compilation . I am looking into this
and will solve it as soon as possible.

File Size: 

1601