compiling DD-WRT for brcm linux.v24_2

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Generic Questions
Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next
Author Message
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 150

PostPosted: Sat Mar 08, 2008 18:09    Post subject: Reply with quote
serkan wrote:
Hello rkozola,

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/*

cp ./bin/ipkg ../src/router/mipsel-uclibc/target/bin

cp ./libgcc/* ../src/router/mipsel-uclibc/target/lib
cd ../src/router/mipsel-uclibc/target/lib
ln -s libgcc_s.so.1 libgcc_s.so
cd ../../../../../opt
cp ./etc/preinit ../src/router/mipsel-uclibc/target/etc
cp ./etc/postinit ../src/router/mipsel-uclibc/target/etc
cp ./etc/ipkg.conf ../src/router/mipsel-uclibc/target/etc
cp ./etc/config/* ../src/router/mipsel-uclibc/target/etc/config
cp ./usr/lib/smb.conf ../src/router/mipsel-uclibc/target/usr/lib
cd ../src/router/mipsel-uclibc/target/www

ln -s ../tmp/smbshare smb

cd ../../../../../opt

./strip_libs.sh

../src/linux/brcm/linux.v24_2/scripts/squashfs/mksquashfs-lzma ../src/router/mipsel-uclibc/target target.squashfs -noappend -root-owned -le
./make_kernel.v24_2.sh
../tools/trx -o dd-wrt.v24_2.trx ./loader-0.02/loader.gz ../src/router/mipsel-uclibc/vmlinuz target.squashfs

cp dd-wrt.v24_2.trx /GruppenLW/dd-wrt.v24_mini_generic.bin

***********************************************

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
Sponsor
Andrex
DD-WRT Novice


Joined: 08 Mar 2008
Posts: 2

PostPosted: Sun Mar 09, 2008 2:26    Post subject: DD-WRT + wireles-tools + HELP.............. Reply with quote
How to compiled wireless-extensions, i am have:
cd DD-WRT/src/router
cp .config .config_micro
make menuconfig
cp .config_micro .confi

in base features, Where i select wireless-extensions or wireles-tools? and add package aircrack-ng for build std with 2 packages plus.

build dd-wrt_std_v24 with
+----->wireless_extensions(tools)
+----->aircrack-ng
how to it?
X7JAY7X
DD-WRT User


Joined: 24 Nov 2006
Posts: 105

PostPosted: Tue Mar 11, 2008 2:11    Post subject: Reply with quote
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??

Thanks
Jason
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Tue Mar 11, 2008 2:26    Post subject: Reply with quote
X7JAY7X wrote:
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??

Thanks
Jason


Please take a look at this post --
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=154982#154982
kuthulu
DD-WRT User


Joined: 20 Feb 2007
Posts: 220
Location: Santiago, Chile

PostPosted: Tue Mar 11, 2008 13:36    Post subject: Reply with quote
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
X7JAY7X
DD-WRT User


Joined: 24 Nov 2006
Posts: 105

PostPosted: Tue Mar 11, 2008 15:05    Post subject: Reply with quote
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
serkan
DD-WRT Novice


Joined: 19 Jan 2008
Posts: 46
Location: Florida, US

PostPosted: Tue Mar 11, 2008 17:32    Post subject: Reply with quote
Hello rkozola,

After the change you said, It is working fine. I was able to do it for mini version.

Can anybody tried it with v23 firmware?

Thanks...
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Thu Mar 13, 2008 4:30    Post subject: Reply with quote
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
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Fri Mar 14, 2008 5:34    Post subject: Reply with quote
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.
X7JAY7X
DD-WRT User


Joined: 24 Nov 2006
Posts: 105

PostPosted: Fri Mar 14, 2008 17:06    Post subject: Reply with quote
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.)?
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Fri Mar 14, 2008 21:22    Post subject: Reply with quote
Oh man I was embarassed. I need to change build.h in the opt folder.

Insert this into your build script.

Code:

echo -n '#define BUILD_DATE' > ~/DD-WRT/opt/build.h; echo " \"`date '+%D'`\" " >> ~/DD-WRT/opt/build.h


EDIT:Whoops! Got it wrong. This will take care of it...
serkan
DD-WRT Novice


Joined: 19 Jan 2008
Posts: 46
Location: Florida, US

PostPosted: Thu Mar 20, 2008 21:17    Post subject: Reply with quote
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. Embarassed


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.

cd DD-WRT/src/router;cp .config_openvpn.v24 .config;cp ../linux/linux/.config_std ../linux/linux/.config;export MYPATH=$PATH;export PATH=/opt/3.4.6/bin;make rflow;export PATH=/opt/4.1.0/bin:$MYPATH;make configure;cd ../../opt;./install_openvpn.v24_2.sh;



Hello rkozola,

I have generated firmware. Is this firmware suitable for Motorola WR850G? if it is not, Which routers are suitable for it?

Thanks a lot!
haggis
DD-WRT Novice


Joined: 02 Aug 2007
Posts: 26
Location: Karlsruhe, Germany

PostPosted: Wed Apr 09, 2008 22:21    Post subject: Reply with quote
great work, rkozola! thx a lot!

i played the hole day with that stuff and learned many things. my goal is to get a firmware with dm-crypt. will work on this the next days.
serkan
DD-WRT Novice


Joined: 19 Jan 2008
Posts: 46
Location: Florida, US

PostPosted: Thu Apr 10, 2008 21:05    Post subject: Reply with quote
haggis wrote:
great work, rkozola! thx a lot!

i played the hole day with that stuff and learned many things. my goal is to get a firmware with dm-crypt. will work on this the next days.


Which Router did you use Higgis?

Thanks...
haggis
DD-WRT Novice


Joined: 02 Aug 2007
Posts: 26
Location: Karlsruhe, Germany

PostPosted: Thu Apr 10, 2008 22:00    Post subject: Reply with quote
linksys wrt350n v1.0

but i don't have any new results. first i have to find out how to add a module to the build process. Confused
Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next Display posts from previous:    Page 3 of 12
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Generic Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum