网络伪装--网络安全

首页 » 技术文章 » Linux » Compiling DD-WRT Sources
2008-05-04 16:34
投票评分
(0 个投票)

Compiling DD-WRT Sources

New Instructions
More streamlined, up-to-date instructions with automated scripts can be found here Building_From_Source.

Old Instructions 
Install a LINUX-System like KNOPPIX and open a root shell (or become "root" by issuing "su" and type your root password), then issue the following commands (the example uses the "0528-2006-svn2242.snapshot.tar.bz2" source distribution)

wget http://www.dd-wrt.com/dd-wrtv2/downloads/sourcecode/toolchains.x86.debian.sp1.tar.bz2

Problem:
Compilation stops, because mksquashfs-lzma is a 64bit file. Can't execute file....

Solution:
BrainSlayer added the source code for mksquashfs-lzma to the current svn. So it only needs to be 
compiled on your 32bit OS. Please install toolchain 3.4.6 on your system.

step 1:
mkdir /home/dd-wrt/tools
cd /home/dd-wrt/tools

step 2:
svn co svn://svn.dd-wrt.com/DD-WRT/src/squashfs-tools

or

take a look at ./DD-WRT/src/squashfs-tools (included in new snapshots)

step 3:
source code of mksquashfs-lzma should be in /home/dd-wrt/tools/squashfs-tools

step 4:
cd /home/dd-wrt/tools/squashfs-tools

step 5:
create a shell script -> vi install.sh

#!/bin/sh

export PATH=/home/dd-wrt/toolchains/3.4.6/bin:$PATH
make

save -> ESC ; wq!

step 6:
start compiling "./install.sh

step 7:
copy mksquashfs-lzma to the right directory

cp mksquashfs-lzma /home/dd-wrt/snapshot/DD-WRT/src/linux/linux.v23/scripts/squashfs/

最后修改日期: 2011-05-07 17:55
Login to post comments