DD-WRT compilieren
From DD-WRT Wiki
(Difference between revisions)
Revision as of 17:12, 18 April 2006 (edit) 84.176.166.223 (Talk) ← Previous diff |
Current revision (16:45, 11 May 2010) (edit) (undo) Glenn (Talk | contribs) (+{{Languages|Compiling DD-WRT sources}}) |
||
(15 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | + | {{Languages|Compiling DD-WRT sources}} | |
- | + | ||
- | + | ||
+ | Als erstes ein Debian LINUX-System installieren, wie z. B. KNOPPIX. Dann die root-Shell öffnen (oder als "root" in der standard shell mit "su" und "Das root Passwort" einloggen). | ||
+ | Diese Scriptzeilen benutzen die Quellen von "0416-2006-snapshot.tar.bz2"): | ||
+ | <pre> | ||
cd / | cd / | ||
- | + | mkdir /home/dd-wrt | |
- | mkdir home/dd-wrt | + | mkdir /home/dd-wrt/toolchains |
- | + | cd /home/dd-wrt/toolchains | |
- | + | wget http://www.dd-wrt.com/dd-wrtv2/downloads/sourcecode/toolchains/toolchains.x86.debian.sp1.tar.bz2 | |
- | + | tar -xjvf toolchains.x86.debian.sp1.tar.bz2 | |
- | cd home/dd-wrt/snapshot | + | mv /home/dd-wrt/toolchains/toolchains/3.4.6-uclibc-0.9.28 /home/dd-wrt/toolchains/3.4.6 |
- | + | mv /home/dd-wrt/toolchains/toolchains/4.1.0-uclibc-0.9.28 /home/dd-wrt/toolchains/4.1.0 | |
+ | cd /home/dd-wrt | ||
+ | mkdir /home/dd-wrt/snapshot | ||
+ | cd /home/dd-wrt/snapshot | ||
wget http://www.dd-wrt.com/dd-wrtv2/downloads/sourcecode/0416-2006-snapshot.tar.bz2 | wget http://www.dd-wrt.com/dd-wrtv2/downloads/sourcecode/0416-2006-snapshot.tar.bz2 | ||
- | |||
tar -xjvf 0416-2006-snapshot.tar.bz2 | tar -xjvf 0416-2006-snapshot.tar.bz2 | ||
+ | cd /home/dd-wrt/snapshot/DD-WRT/opt | ||
+ | rm libgcc_s.so | ||
+ | ln -s libgcc/libgcc_s.so.1 libgcc_s.so | ||
+ | cd /home/dd-wrt | ||
+ | mkdir /home/dd-wrt/image | ||
+ | ln -s /home/dd-wrt/image /GruppenLW | ||
+ | cd /home/dd-wrt/snapshot/DD-WRT/opt | ||
+ | </pre>das Kompilieren starten mit<pre>./install.sh</pre>die Image-Files sollten anschliessend im folgenden Verzeichnis liegen<pre>/home/dd-wrt/image</pre> | ||
- | + | '''32bit Betriebsystem''' | |
+ | <pre> | ||
+ | Wie kompiliert man dd-wrt auf einem 32bit Betriebsystem? | ||
- | + | Problem: | |
+ | Compilation stops, da mksquashfs-lzma ein 64bit Datei ist. Fehlermeldung: "Can't execute file...." | ||
- | + | Lösung: | |
+ | BrainSlayer hat den Sourcecoude von mksquashfs-lzma in das momentane SVN hinzugefügt. Somit | ||
+ | muss es einfach für das 32bit System compiliert werden. Dazu ist die Toolchain 3.4.6 notwendig. | ||
- | + | Schritt 1: | |
+ | mkdir /home/dd-wrt/tools | ||
+ | cd /home/dd-wrt/tools | ||
- | + | Schritt 2: | |
+ | svn co svn://svn.dd-wrt.com/DD-WRT/src/squashfs-tools | ||
- | + | oder | |
- | + | ./DD-WRT/src/squashfs-tools (ist bei neuen Snapshots bereits enthalten) | |
- | + | Schritt 3: | |
+ | Source Code von mksquashfs-lzma ist im Verzeichnis enthalten /home/dd-wrt/tools/squashfs-tools | ||
- | + | Schritt 4: | |
+ | cd /home/dd-wrt/tools/squashfs-tools | ||
- | + | Schritt 5: | |
- | + | Erstellen eines Shell Skriptes -> vi install.sh | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | [code] | |
+ | #!/bin/sh | ||
+ | export PATH=/home/dd-wrt/toolchains/3.4.6/bin:$PATH | ||
+ | make | ||
+ | [/code] | ||
- | + | save -> ESC ; wq! | |
+ | Schritt 6: | ||
+ | Compilierung wird mit dem Befehl "./install.sh" gestartet | ||
- | + | Schritt 7: | |
+ | kopieren der Datei "mksquashfs-lzma" in das richtige Verzeichnis | ||
+ | cp mksquashfs-lzma /home/dd-wrt/snapshot/DD-WRT/src/linux/linux.v23/scripts/squashfs/ | ||
+ | </pre> | ||
- | + | [[Category:Developer resources/de]] |
Current revision
English • Deutsch • Español • Français • Italiano • 日本語 • Polski • Português • Русский • Svenska • 中文(中国大陆) • 中文(台灣) • |
Als erstes ein Debian LINUX-System installieren, wie z. B. KNOPPIX. Dann die root-Shell öffnen (oder als "root" in der standard shell mit "su" und "Das root Passwort" einloggen).
Diese Scriptzeilen benutzen die Quellen von "0416-2006-snapshot.tar.bz2"):
cd / mkdir /home/dd-wrt mkdir /home/dd-wrt/toolchains cd /home/dd-wrt/toolchains wget http://www.dd-wrt.com/dd-wrtv2/downloads/sourcecode/toolchains/toolchains.x86.debian.sp1.tar.bz2 tar -xjvf toolchains.x86.debian.sp1.tar.bz2 mv /home/dd-wrt/toolchains/toolchains/3.4.6-uclibc-0.9.28 /home/dd-wrt/toolchains/3.4.6 mv /home/dd-wrt/toolchains/toolchains/4.1.0-uclibc-0.9.28 /home/dd-wrt/toolchains/4.1.0 cd /home/dd-wrt mkdir /home/dd-wrt/snapshot cd /home/dd-wrt/snapshot wget http://www.dd-wrt.com/dd-wrtv2/downloads/sourcecode/0416-2006-snapshot.tar.bz2 tar -xjvf 0416-2006-snapshot.tar.bz2 cd /home/dd-wrt/snapshot/DD-WRT/opt rm libgcc_s.so ln -s libgcc/libgcc_s.so.1 libgcc_s.so cd /home/dd-wrt mkdir /home/dd-wrt/image ln -s /home/dd-wrt/image /GruppenLW cd /home/dd-wrt/snapshot/DD-WRT/optdas Kompilieren starten mit
./install.shdie Image-Files sollten anschliessend im folgenden Verzeichnis liegen
/home/dd-wrt/image
32bit Betriebsystem
Wie kompiliert man dd-wrt auf einem 32bit Betriebsystem? Problem: Compilation stops, da mksquashfs-lzma ein 64bit Datei ist. Fehlermeldung: "Can't execute file...." Lösung: BrainSlayer hat den Sourcecoude von mksquashfs-lzma in das momentane SVN hinzugefügt. Somit muss es einfach für das 32bit System compiliert werden. Dazu ist die Toolchain 3.4.6 notwendig. Schritt 1: mkdir /home/dd-wrt/tools cd /home/dd-wrt/tools Schritt 2: svn co svn://svn.dd-wrt.com/DD-WRT/src/squashfs-tools oder ./DD-WRT/src/squashfs-tools (ist bei neuen Snapshots bereits enthalten) Schritt 3: Source Code von mksquashfs-lzma ist im Verzeichnis enthalten /home/dd-wrt/tools/squashfs-tools Schritt 4: cd /home/dd-wrt/tools/squashfs-tools Schritt 5: Erstellen eines Shell Skriptes -> vi install.sh [code] #!/bin/sh export PATH=/home/dd-wrt/toolchains/3.4.6/bin:$PATH make [/code] save -> ESC ; wq! Schritt 6: Compilierung wird mit dem Befehl "./install.sh" gestartet Schritt 7: kopieren der Datei "mksquashfs-lzma" in das richtige Verzeichnis cp mksquashfs-lzma /home/dd-wrt/snapshot/DD-WRT/src/linux/linux.v23/scripts/squashfs/