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, ... 10, 11, 12  Next
Author Message
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 150

PostPosted: Thu Mar 06, 2008 2:21    Post subject: Re: Error !! Reply with quote
serkan wrote:
Hello rkozola,

Thanks for your explanations.

I have did everything you mentioned here and I stuck here


Code:

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


I got an error in the last line of the code that I copied above. There was no folders created. All folders under the src/router/mipsel-uclibc ( I have created target and bin directories) are created by me. Should the folder be created automatically? I am getting error when I type

./sstrip/sstrip ../src/router/mipsel-uclibc/target/bin/*


Error saying "There is no such file or directory". Because bin folder is empty!
What did I do wrong?? Can you please help me?



Thanks


the mipsel-uclibc/target directory should be created by the make statement. Since it is trying to run the ./sstrip without a target dir, the make command must be failing.
Sponsor
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Thu Mar 06, 2008 3:15    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;


Ok. I'll try that then. I'm actually going to create some prep scripts to do them so I can more automate this process. I broke your original script down into two seperate one. One to create the environment and the other to get the subversion repository. I've created a crap load of install scripts based on yours.
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Thu Mar 06, 2008 16:54    Post subject: Reply with quote
Ok. I did your command set and it appeared to work for mega until I hit this.

Code:

make -C flex libfl.a
make[3]: Entering directory `/home/dd-wrt/DD-WRT/src/router/radvd/flex'
cd . && \
  /bin/sh /home/dd-wrt/DD-WRT/src/router/radvd/flex/missing --run automake-1.7 --gnits  Makefile
configure.in:29: version mismatch.  This is Automake 1.7.9,
configure.in:29: but the definition used by this AM_INIT_AUTOMAKE
configure.in:29: comes from Automake 1.7.5.  You should recreate
configure.in:29: aclocal.m4 with aclocal and run automake again.
make[3]: *** [Makefile.in] Error 1
make[3]: Leaving directory `/home/dd-wrt/DD-WRT/src/router/radvd/flex'
make[2]: *** [libfl.a] Error 2
make[2]: Leaving directory `/home/dd-wrt/DD-WRT/src/router/radvd'
make[1]: *** [radvd] Error 2
make[1]: Leaving directory `/home/dd-wrt/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_mega.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_mega.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_mega.v24_2.sh: line 40: ./strip_libs.sh: No such file or directory
./install_mega.v24_2.sh: line 43: ../src/linux/brcm/linux.v24_2/scripts/squashfs/mksquashfs-lzma: No such file or directory
./install_mega.v24_2.sh: line 44: ./make_kernel.v24_2.sh: No such file or directory
./install_mega.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


Any ideas?
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 150

PostPosted: Thu Mar 06, 2008 16:58    Post subject: Reply with quote
I havent been able to get the mega to build either, but I get another issue. I think you get farther than me. I get some error in the toolchain with an if_fddi.h file throwing an error.
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Thu Mar 06, 2008 17:50    Post subject: Reply with quote
Heh. Once I am done I guess I will have to bug Eko about this and see if he has any insight into it. I know he is building the mega editions against the new drivers.

EDIT: I am only following your instructions btw. I am building against SVN 9241.
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 150

PostPosted: Thu Mar 06, 2008 18:54    Post subject: Reply with quote
have you tried what the error message said to do?

'You should recreate aclocal.m4 with aclocal and run automake again.'

you should be able to run aclocal-1.7 and it will correct that error and allow you to try to build again.
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Thu Mar 06, 2008 19:13    Post subject: Reply with quote
No I have not. I will try it when I get a chance. I want to make sure my other ones build right. One thing I found for sure is it looks like the straight std version won't be able to have usb support. On the other hand the nokaid one can take it fine just like Eko said. Now my main thing is I wonder how Eko got https support in the mini builds. I highly doubt the regular .config files were used.
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Thu Mar 06, 2008 19:44    Post subject: Reply with quote
rkozola wrote:
have you tried what the error message said to do?

'You should recreate aclocal.m4 with aclocal and run automake again.'

you should be able to run aclocal-1.7 and it will correct that error and allow you to try to build again.


Of course now I am getting your error instead. I'll try it again and update the repository. Maybe I'll be able to make it compile.

P.S. - Micro version isn't compiling either although really my focus is getting the usb enabled ones going. mini w/ https and usb like eko's is a plus here.
Tornado
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 2087
Location: Odessa, Ukraine

PostPosted: Thu Mar 06, 2008 20:39    Post subject: Reply with quote
@shinji257

Here is a trick, simply:

touch /home/dd-wrtDD-WRT/src/router/radvd/flex/Makefile

and rebuild

_________________
Want JTAG support - Donate a router
or Donate with PayPal !

My preferred parallel jtag adapter:
TIAO Parallel adapter

Tjtag website - http://tjtag.com

Compiling DD-WRT on:
AMD Phenom II X6 1090T @ 3926.667 Mhz

Aptosid X64 - Debian SID X64
Ubuntu 10.10 X64 - Arch X64
serkan
DD-WRT Novice


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

PostPosted: Thu Mar 06, 2008 23:58    Post subject: Reply with quote
Hello rkozola,

Everything was fine till I get the error written below. I copied the snapshot of the screen. As you see error happens during the execution of script "make_kernel_v24_2.sh"




dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# rm ./write3
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# gcc write3.c
-o ./write3
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# rm ./write4
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# gcc write4.c
-o ./write4
write4.c: In function ‘filter’:
write4.c:65: warning: incompatible implicit
declaration of built-in function ‘strlen’
write4.c:80: warning: incompatible implicit
declaration of built-in function ‘memcpy’
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# rm ./webcomp
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/tools# gcc -o
webcomp -DUEMF -DWEBS -DLINUX webcomp.c
webcomp.c: In function ‘compile’:
webcomp.c:142: warning: comparison of distinct pointer
types lacks a cast



dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/opt# more
make_kernel_v24_2.sh
#!/bin/sh

./loader-0.02/lzma e
../src/linux/brcm/linux.v24_2/arch/mips/bcm947xx/compressed/piggy
vmlinuz
./loader-0.02/lzma e
../src/linux/brcm/linux.v24_2/arch/mips/bcm947xx/compressed/piggy
vmlinuzmicro

dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/opt#
./make_kernel_v24_2.sh

LZMA 4.06 Copyright (c) 1999-2004 Igor Pavlov
2004-09-05

Error: can not open input file
../src/linux/brcm/linux.v24_2/arch/mips/bcm947xx/compressed/piggy

LZMA 4.06 Copyright (c) 1999-2004 Igor Pavlov
2004-09-05

Error: can not open input file
../src/linux/brcm/linux.v24_2/arch/mips/bcm947xx/compressed/piggy
dd-wrt:/home/dd-wrt/DD-WRT/DD-WRT/opt#






Do you know what is the reason of this error? Thanks a lot!
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 150

PostPosted: Fri Mar 07, 2008 0:03    Post subject: Reply with quote
You do not issue make_kernel_v24_2.sh at the prompt. It is called from within the install_*.sh you are building with.
serkan
DD-WRT Novice


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

PostPosted: Fri Mar 07, 2008 0:25    Post subject: Reply with quote
Really!!

Can I continue with the rest of the codes? or it is too late!!

How can I recover??

Thanks
serkan
DD-WRT Novice


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

PostPosted: Fri Mar 07, 2008 4:06    Post subject: Reply with quote
Hi Again rkozola,


I have started again from the begining (by creating new Debian etc..) Please see below! I got error again in the "make". See below. I need help ! !! !!!






dd-wrt:/home/dd-wrt/DD-WRT/src/router# make httpd-clean
rules/bridge.mk:4: warning: overriding commands for
target `bridge'
rules/bridge.mk:2: warning: ignoring old commands for
target `bridge'
rules/iptables.mk:38: warning: overriding commands for
target `iptables-clean'
rules/iptables.mk:2: warning: ignoring old commands
for target `iptables-clean'
rules/madwifi_mimo.mk:3: warning: overriding commands
for target `madwifi'
rules/madwifi.mk:3: warning: ignoring old commands for
target `madwifi'
rules/madwifi_mimo.mk:7: warning: overriding commands
for target `madwifi-clean'rules/madwifi.mk:7: warning:
ignoring old commands for target `madwifi-clean'
rules/madwifi_mimo.mk:11: warning: overriding commands
for target `madwifi-install'
rules/madwifi.mk:11: warning: ignoring old commands
for target `madwifi-install'rules/all.mk:172:
rules/ipsec-tools.mk: No such file or directory
rules/all.mk:173: rules/strace.mk: No such file or
directory
[ ! -d rules/strace.mk ] || make -C rules/strace.mk
[ ! -d rules/ipsec-tools.mk ] || make -C
rules/ipsec-tools.mk
make -C httpd clean
make[1]: Entering directory
`/home/dd-wrt/DD-WRT/src/router/httpd'
rm -f *.o *~ httpd
rm -f modules/*.o
rm -f modules/*.*~
rm -f *.a
#Added by Daniel(2004-07-29)
#cp ../shared/ezc.o ./
#rm -rf
/home/dd-wrt/DD-WRT/src/../tools/src/code_header.o
make[1]: Leaving directory
`/home/dd-wrt/DD-WRT/src/router/httpd'
dd-wrt:/home/dd-wrt/DD-WRT/src/router# rm
busybox/busybox
rm: cannot remove `busybox/busybox': No such file or
directory
dd-wrt:/home/dd-wrt/DD-WRT/src/router# rm
busybox/applets/busybox.o
rm: cannot remove `busybox/applets/busybox.o': No such
file or directory
dd-wrt:/home/dd-wrt/DD-WRT/src/router# cd ..
dd-wrt:/home/dd-wrt/DD-WRT/src# make
make -C router all
make[1]: Entering directory
`/home/dd-wrt/DD-WRT/src/router'
rules/bridge.mk:4: warning: overriding commands for
target `bridge'
rules/bridge.mk:2: warning: ignoring old commands for
target `bridge'
rules/iptables.mk:38: warning: overriding commands for
target `iptables-clean'
rules/iptables.mk:2: warning: ignoring old commands
for target `iptables-clean'
rules/madwifi_mimo.mk:3: warning: overriding commands
for target `madwifi'
rules/madwifi.mk:3: warning: ignoring old commands for
target `madwifi'
rules/madwifi_mimo.mk:7: warning: overriding commands
for target `madwifi-clean'rules/madwifi.mk:7: warning:
ignoring old commands for target `madwifi-clean'
rules/madwifi_mimo.mk:11: warning: overriding commands
for target `madwifi-install'
rules/madwifi.mk:11: warning: ignoring old commands
for target `madwifi-install'rules/all.mk:172:
rules/ipsec-tools.mk: No such file or directory
rules/all.mk:173: rules/strace.mk: No such file or
directory
[ ! -d rules/strace.mk ] || make -C rules/strace.mk
[ ! -d rules/ipsec-tools.mk ] || make -C
rules/ipsec-tools.mk
rm -rf
/home/dd-wrt/DD-WRT/src/router/mipsel-uclibc/target
rm -rf
/home/dd-wrt/DD-WRT/src/router/mipsel-uclibc/install
rm -f
/home/dd-wrt/DD-WRT/src/router/mipsel-uclibc/linux.trx
/home/dd-wrt/DD-WRT/src/router/mipsel-uclibc/vmlinuz
/home/dd-wrt/DD-WRT/src/router/mipsel-uclibc/target.squashfs
make -C nvram
make[2]: Entering directory
`/home/dd-wrt/DD-WRT/src/router/nvram'
mipsel-linux-uclibc-gcc -Os -pipe -mips32
-mtune=mips32 -funit-at-a-time -I.
-I/home/dd-wrt/DD-WRT/src/include.v24 -Wall -s -Os
-pipe -mips32 -mtune=mips32 -funit-at-a-time -fpic
-c -o nvram_linux.o nvram_linux.c
make[2]: mipsel-linux-uclibc-gcc: Command not found
make[2]: *** [nvram_linux.o] Error 127
make[2]: Leaving directory
`/home/dd-wrt/DD-WRT/src/router/nvram'
make[1]: *** [nvram] Error 2
make[1]: Leaving directory
`/home/dd-wrt/DD-WRT/src/router'
make: *** [all] Error 2






I dont know this error is happening! Do you have an idea? What do I do wrong?? Sad
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 150

PostPosted: Fri Mar 07, 2008 13:31    Post subject: Reply with quote
You did not set up your PATH. This is what I normally issue at the prompt.

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;
serkan
DD-WRT Novice


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

PostPosted: Sat Mar 08, 2008 0:31    Post subject: Reply with quote
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.
Goto page Previous  1, 2, 3, ... 10, 11, 12  Next Display posts from previous:    Page 2 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