But the error that I am getting is before the codes you have written.
Below I have copied your example (just the commands)
My Error that I sent you in my previous message is happening in the "make" command (i highlighted as red).
***********************************************
cd ../src
cd router
cp .config_mini.v24 .config
rm -rf mipsel-uclibc/install
make rc-clean
make services-clean
make shared-clean
make httpd-clean
rm busybox/busybox
rm busybox/applets/busybox.o
cd ..
make
cd ../opt
mkdir ../src/router/mipsel-uclibc/target/etc/config
./sstrip/sstrip ../src/router/mipsel-uclibc/target/bin/*
./sstrip/sstrip ../src/router/mipsel-uclibc/target/sbin/rc
./sstrip/sstrip ../src/router/mipsel-uclibc/target/usr/sbin/*
cd DD-WRT/src/router
cp .config_mini.v24 .config
cp ../linux/linux/.config_std ../linux/linux/.config
export MYPATH=$PATH
export PATH=/opt/4.1.0/bin:$MYPATH
make configure
cd ../../opt
./install_mini.v24_2.sh
Everything is your command above and my error is happening in the make command which is highlighted as red. If I follow your instructions above, I can not come to the point where you set your path (before coming there I am getting error in "make")
Sorry for confusion. I hope I am able to explain my problem.
Thanks.
you should not be running those commands. The commands between the *'s should be saved into install_mini.v24_2.sh and then you should run the following.
cd DD-WRT/src/router
cp .config_mini.v24 .config
cp ../linux/linux/.config_std ../linux/linux/.config
export MYPATH=$PATH
export PATH=/opt/4.1.0/bin:$MYPATH
make configure
cd ../../opt
./install_mini.v24_2.sh
After 3 days of trying I finally got the mini to compile in Ubuntu 7.10 on VMWare. I cannot get any other versions to compile though. I tried changing the "mini" references in the command line arguments and in the install script (a copy of the one posted on here) to "std" and it would fail. Any ideas??
After 3 days of trying I finally got the mini to compile in Ubuntu 7.10 on VMWare. I cannot get any other versions to compile though. I tried changing the "mini" references in the command line arguments and in the install script (a copy of the one posted on here) to "std" and it would fail. Any ideas??
Joined: 20 Feb 2007 Posts: 220 Location: Santiago, Chile
Posted: Tue Mar 11, 2008 13:36 Post subject:
are you going to publish a guide to compile dd-wrt when you finally get to compile all versions???
a wiki would be great
thanks _________________ Linksys WRT54G v6 - DD-WRT Micro v24 with AutoAP as a Repeater.
wifi scanner for linux
http://kuthulu.com/iwscanner
ssh/telnet connection manager for linux
http://kuthulu.com/gcm
rkozola, I noticed that there where some bad directory references in your first script. Mainly the symbolic link commands. Maybe they where just bad references for my Ubuntu application. Once I fixed those, I just followed the rest of your tutorial and it worked.
I tried the rflow command and it still will not compile. Rkozola, can you post your command and install scripts for all versions??
Last edited by X7JAY7X on Tue Mar 11, 2008 17:34; edited 1 time in total
Ok. I was trying to build 9207 and came across an issue with the configure script for the snmp module. Go to the following folder...
~/DD-WRT/src/router/snmp
Open up the file configure and locate line 2318
Replace:
Code:
: ${TMPDIR=~/tmp}
With:
Code:
: ${TMPDIR=/tmp}
Don't ask me why but if you don't do this then it will error out saying it couldn't create the folder with the error no such file or directory when ~/tmp obviously exists. It has no issue with the global tmp folder though. I hit this issue when trying to build the nokaid version. My build added USB support to it like Eko's is.
P.S. - I found it due to the following output during compile. The snmp makefile was missing which told me it was never configured. Running make configure revealed the failing command in the snmp folder.
Code:
/home/shinji/toolchains/4.1.0-uclibc-0.9.28/bin/../lib/gcc/mipsel-linux-uclibc/4.1.0/../../../../mipsel-linux-uclibc/bin/ld: BFD 2.16.1 assertion fail /home/openwrt/trunk/openwrt/toolchain_build_mipsel/binutils-2.16.1/bfd/elfxx-mips.c:2562
make[2]: Leaving directory `/home/shinji/DD-WRT/src/router/ebtables'
make -C pptpd
make[2]: Entering directory `/home/shinji/DD-WRT/src/router/pptpd'
make all-am
make[3]: Entering directory `/home/shinji/DD-WRT/src/router/pptpd'
for d in plugins; do make -w -C $d all; done
make[4]: Entering directory `/home/shinji/DD-WRT/src/router/pptpd/plugins'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/shinji/DD-WRT/src/router/pptpd/plugins'
make[3]: Leaving directory `/home/shinji/DD-WRT/src/router/pptpd'
make[2]: Leaving directory `/home/shinji/DD-WRT/src/router/pptpd'
make -C wol
make[2]: Entering directory `/home/shinji/DD-WRT/src/router/wol'
make all-recursive
make[3]: Entering directory `/home/shinji/DD-WRT/src/router/wol'
Making all in intl
make[4]: Entering directory `/home/shinji/DD-WRT/src/router/wol/intl'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/shinji/DD-WRT/src/router/wol/intl'
Making all in demo
make[4]: Entering directory `/home/shinji/DD-WRT/src/router/wol/demo'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/shinji/DD-WRT/src/router/wol/demo'
Making all in doc
make[4]: Entering directory `/home/shinji/DD-WRT/src/router/wol/doc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/shinji/DD-WRT/src/router/wol/doc'
Making all in include
make[4]: Entering directory `/home/shinji/DD-WRT/src/router/wol/include'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/shinji/DD-WRT/src/router/wol/include'
Making all in lib
make[4]: Entering directory `/home/shinji/DD-WRT/src/router/wol/lib'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/shinji/DD-WRT/src/router/wol/lib'
Making all in src
make[4]: Entering directory `/home/shinji/DD-WRT/src/router/wol/src'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/shinji/DD-WRT/src/router/wol/src'
Making all in m4
make[4]: Entering directory `/home/shinji/DD-WRT/src/router/wol/m4'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/shinji/DD-WRT/src/router/wol/m4'
Making all in po
make[4]: Entering directory `/home/shinji/DD-WRT/src/router/wol/po'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/shinji/DD-WRT/src/router/wol/po'
make[4]: Entering directory `/home/shinji/DD-WRT/src/router/wol'
make[4]: Leaving directory `/home/shinji/DD-WRT/src/router/wol'
make[3]: Leaving directory `/home/shinji/DD-WRT/src/router/wol'
make[2]: Leaving directory `/home/shinji/DD-WRT/src/router/wol'
make -C snmp
make[2]: Entering directory `/home/shinji/DD-WRT/src/router/snmp'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory `/home/shinji/DD-WRT/src/router/snmp'
make[1]: *** [snmp] Error 2
make[1]: Leaving directory `/home/shinji/DD-WRT/src/router'
make: *** [all] Error 2
mkdir: cannot create directory `../src/router/mipsel-uclibc/target/etc/config': No such file or directory
./sstrip/sstrip: ../src/router/mipsel-uclibc/target/bin/*: No such file or directory
./sstrip/sstrip: ../src/router/mipsel-uclibc/target/sbin/rc: No such file or directory
./sstrip/sstrip: ../src/router/mipsel-uclibc/target/usr/sbin/*: No such file or directory
cp: cannot create regular file `../src/router/mipsel-uclibc/target/bin': No such file or directory
cp: cannot create regular file `../src/router/mipsel-uclibc/target/lib': No such file or directory
./install_std_nokaid_usb.v24_2.sh: line 25: cd: ../src/router/mipsel-uclibc/target/lib: No such file or directory
ln: creating symbolic link `libgcc_s.so' to `libgcc_s.so.1': File exists
cp: cannot stat `./etc/preinit': No such file or directory
cp: cannot stat `./etc/postinit': No such file or directory
cp: cannot stat `./etc/ipkg.conf': No such file or directory
cp: cannot stat `./etc/config/*': No such file or directory
cp: cannot stat `./usr/lib/smb.conf': No such file or directory
./install_std_nokaid_usb.v24_2.sh: line 33: cd: ../src/router/mipsel-uclibc/target/www: No such file or directory
ln: creating symbolic link `smb' to `../tmp/smbshare': Permission denied
./install_std_nokaid_usb.v24_2.sh: line 40: ./strip_libs.sh: No such file or directory
./install_std_nokaid_usb.v24_2.sh: line 43: ../src/linux/brcm/linux.v24_2/scripts/squashfs/mksquashfs-lzma: No such file or directory
./install_std_nokaid_usb.v24_2.sh: line 44: ./make_kernel.v24_2.sh: No such file or directory
./install_std_nokaid_usb.v24_2.sh: line 45: ../tools/trx: No such file or directory
cp: cannot stat `dd-wrt.v24_2.trx': No such file or directory
Ok. I'm just curious here but do we have to use a user named dd-wrt? I just setup my environment using a different username and it appears to compile correctly. Please advise.
Yes, if you use the first script in this tutorial that installs all the necessary packages. Look at the directory references. I was racking my brain trying to figure out why nothing was working. In the end, I actually changed alot of the paths in that first script and it works fine for the mini, but that is all I can get to compile.
Can anyone help me compile the others (standard, vpn, etc.)?
Joined: 19 Jan 2008 Posts: 46 Location: Florida, US
Posted: Thu Mar 20, 2008 21:17 Post subject:
rkozola wrote:
shinji257 wrote:
Ok. Tell me what I am doing wrong. I can compile both mini and the new mini usb build but I can't do any of the other ones. Any idea as to where I am failing?
P.S. - I'd post a build log but forgot the log output was to a non-existent folder.
i am guessing it is an rflow issue. I have to do something like the following for any configs that have rflow enabled. I do this for std, std-nokaid, and openvpn.