Inhaltsverzeichnis

DD-WRT

Links

DD-WRT v23 compilieren

Hier habe ich ein gute beschreibung aus dem DD-WRT Forum http://forum.bsr-clan.de/viewtopic.php?t=5265&highlight=compile

I just want to make my point clear regarding the DD-WRT v23 final source code released along with the DD-WRT v23 final firmware on 12/25/2005. Please make your own judgement after reading this post to see if the DD-WRT v23 final source code released on 12/25/2005 is really the same source code used by BS to compile the DD-WRT v23 final firmware. My observations through the compilation process (I laid out later in the post) made me to conclude that the DD-WRT v23 final source code isn't the same as the one used to compile the DD-WRT v23 final firmware release. The reason is simply there is no way to be able to freshly compile and produce the firmware without making some changes to the scripts to make the compilation successful, let alone to produce the same size in each binary firmware. Some of you may have claimed to be able to compile the DD-WRT v23 final source code release to produce the same size in binary firmware without even tweaking the source scripts. If you do, can you please tell us here how you did it and did you have any prior DD-WRT source and/or links point to other compilers/libraries?

The following steps were exactly what I did in order to get my AMD Duron 1.6GHz with 256MB RAM running on a SuSE-9.1Pro Linux computer to successfully compile the DD-WRT v23 final source code (Unless otherwise stated, all instructions assume the default directory is at the DD-WRT home directory):

1. Go to any directory that has a lot of empty space (minimum HD space requirement: 860MB), download and untar the DD-WRT.v23-final.tar.bz2 source code, i.e tar -jxf DD-WRT.v23-final.tar.bz2, and the source code will be extracted under a directory called DD-WRT. Now, change to DD-WRT directory (the DD-WRT home directory)

2. You will need a root privilege to perform ONLY the following directories creation and link files:

1. Create these two directories, i.e. mkdir -p /home/backup/mikrotik /home/dev/workspace

2. While still in the DD-WRT home directory, create the following links:

      * ln `pwd`/toolchains /home/backup/mikrotik/toolchain
      * ln `pwd` /home/dev/workspace
      * ln `pwd`/image /GruppenLW

3. Do this chmod +x src/router/iptables/extensions/.{dccp,layser7}-test to set executable mode for these two files/scripts (.dcc-test and .layer-test).

4. On my system, I had to edit this file src/router/zlib/Makefile so that the prefix will point to a directory that my account can write onto it, i.e. prefix=${DDWRT_TOPDIR}/src/zlib . Without this change, the compilation will fail to produce binary firmware.

5. Edit the opt/install.sh file and

replace this line:

           export PATH=/home/release/DD-WRT/toolchains/bin:$PATH
 
      with the following lines:
           DDWRT_TOPDIR=$(dirname $(echo $PWD))
           export DD_WRT_TOPDIR
           export PATH=${DD_WRT_TOPDIR}/toolchains/bin:$PATH

6. Then, change directory to opt and execute this ./install.sh or this ./install.sh >& /tmp/world to pipe out to /tmp/world. You can use tail -f /tmp/world to dynamically look at the output of the compilation. This compilation doesn't require root access!

7. If the compilation does not produce any significant errors, you should see the following firmwares under the image directory:

      Code:
      total 67350
      drwxr-xr-x  2 pap2boy user     976 2006-01-20 11:19 .
      drwxr-xr-x  8 pap2boy user     280 2005-12-25 15:22 ..
      -rw-r--r--  1 pap2boy user 3575808 2006-01-20 12:22 dd-wrt.v23_asus.trx
      -rw-r--r--  1 pap2boy user 3575808 2006-01-20 12:22 dd-wrt.v23_generic.bin
      -rw-r--r--  1 pap2boy user 2560000 2006-01-20 12:11 dd-wrt.v23_mini_asus.trx
      -rw-r--r--  1 pap2boy user 2560000 2006-01-20 12:11 dd-wrt.v23_mini_generic.bin
      -rw-r--r--  1 pap2boy user 2560008 2006-01-20 12:11 dd-wrt.v23_mini_moto.bin
      -rw-r--r--  1 pap2boy user 2561024 2006-01-20 12:11 dd-wrt.v23_mini_wrt54g.bin
      -rw-r--r--  1 pap2boy user 2561024 2006-01-20 12:11 dd-wrt.v23_mini_wrt54gs.bin
      -rw-r--r--  1 pap2boy user 2561024 2006-01-20 12:11 dd-wrt.v23_mini_wrt54gsv4.bin
      -rw-r--r--  1 pap2boy user 3579904 2006-01-20 12:46 dd-wrt.v23_voip_asus.trx
      -rw-r--r--  1 pap2boy user 3579904 2006-01-20 12:46 dd-wrt.v23_voip.bin
      -rw-r--r--  1 pap2boy user 3580928 2006-01-20 12:46 dd-wrt.v23_voip_wrt54g.bin
      -rw-r--r--  1 pap2boy user 3580928 2006-01-20 12:46 dd-wrt.v23_voip_wrt54gs.bin
      -rw-r--r--  1 pap2boy user 3580928 2006-01-20 12:46 dd-wrt.v23_voip_wrt54gsv4.bin
      -rw-r--r--  1 pap2boy user 3543040 2006-01-20 12:33 dd-wrt.v23_vpn_asus.trx
      -rw-r--r--  1 pap2boy user 3543040 2006-01-20 12:33 dd-wrt.v23_vpn_generic.bin
      -rw-r--r--  1 pap2boy user 3544064 2006-01-20 12:33 dd-wrt.v23_vpn_wrt54g.bin
      -rw-r--r--  1 pap2boy user 3544064 2006-01-20 12:33 dd-wrt.v23_vpn_wrt54gs.bin
      -rw-r--r--  1 pap2boy user 3544064 2006-01-20 12:33 dd-wrt.v23_vpn_wrt54gsv4.bin
      -rw-r--r--  1 pap2boy user 3576832 2006-01-20 12:22 dd-wrt.v23_wrt54g.bin
      -rw-r--r--  1 pap2boy user 3576832 2006-01-20 12:22 dd-wrt.v23_wrt54gs.bin
      -rw-r--r--  1 pap2boy user 3576832 2006-01-20 12:22 dd-wrt.v23_wrt54gsv4.bin

war/dd-wrt.txt · Zuletzt geändert: 2012/09/10 23:13 (Externe Bearbeitung)
 
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki