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, 5 ... 10, 11, 12  Next
Author Message
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 544
Location: New Hampshire

PostPosted: Tue Apr 29, 2008 17:36    Post subject: Reply with quote
I am getting up to this point:


Code:
make -C bonding fastdep
make[8]: Entering directory `/home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2/drivers/net/bonding'
find -name '*.[chS]' | xargs /home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2/scripts/mkdep -D__KERNEL__ -I/home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -DBCMDRIVER -DBCMVISTAROUTER -DBCM5354 -DBCMWPA2  -fomit-frame-pointer  -funit-at-a-time  -I /home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DBCMGPIO2  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap  -nostdinc -iwithprefix include -- > .depend
make[8]: Leaving directory `/home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2/drivers/net/bonding'
make -C brcm fastdep
make: Entering an unknown directory
make: *** brcm: No such file or directory.  Stop.
make: Leaving an unknown directory
make[7]: *** [_sfdep_brcm] Error 2
make[7]: Leaving directory `/home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2/drivers/net'
make[6]: *** [fastdep] Error 2
make[6]: Leaving directory `/home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2/drivers/net'
make[5]: *** [_sfdep_net] Error 2
make[5]: Leaving directory `/home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2/drivers'
make[4]: *** [fastdep] Error 2
make[4]: Leaving directory `/home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2/drivers'
make[3]: *** [_sfdep_drivers] Error 2
make[3]: Leaving directory `/home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2'
make[2]: *** [dep-files] Error 2
make[2]: Leaving directory `/home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2'
make[1]: *** [kernel] Error 2
make[1]: Leaving directory `/home/dd-wrt/DD-WRT/src/router'
make: *** [all] Error 2


Stops there.

_________________


Linksys WRT54GS V2 - Router behind ATT DSL
Sponsor
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 544
Location: New Hampshire

PostPosted: Tue Apr 29, 2008 20:05    Post subject: Reply with quote
On another computer, it dies in the same spot..... Sad
_________________


Linksys WRT54GS V2 - Router behind ATT DSL
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat May 03, 2008 1:21    Post subject: Reply with quote
Just to let you know but if you are using Ubuntu 7.10 then you need to install the flex-old package because the newer one will cause the bird router package to fail to build since it doesn't like the parameters -s -B and -8 grouped together. It needs them seperated rather than as -sB8 as it is in the makefiles currently. I was going to patch it but unfortunately it seems there is more than one reference...

EDIT: It seems the new flex package was added upstream in debian etch. It went downstream to ubuntu then. I am going to try again by installing flex but I bet it will cause the same issue.


Last edited by shinji257 on Thu May 08, 2008 1:51; edited 1 time in total
shinji257
DD-WRT User


Joined: 02 May 2007
Posts: 222

PostPosted: Sat May 03, 2008 1:49    Post subject: Reply with quote
Grr... Looks like it did an update behind my back. I'll have to setup my build environment all over again. This sucks. At this time I cannot do any new builds due to the following error that is occuring...

[snip]

On the other hand maybe I'll start trying to do this within a non-virtual environment I have been working on setting up.

Whoops! The above original text is due to a hardcoded location in the Makefile for the pptpd router package.
sonicbuddha
DD-WRT Novice


Joined: 21 Jul 2006
Posts: 23

PostPosted: Thu May 15, 2008 1:59    Post subject: Reply with quote
What if I just wanted to build new kernel modules for a particular release and not the entire firmware? For example, I would like to compile the rest of the iptables modules and then drop them and their required libraries into the most recent firmware. This would make upkeep much easier and I'd have to worry less about other compatibility issues.
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 544
Location: New Hampshire

PostPosted: Thu May 15, 2008 23:31    Post subject: Reply with quote
After a near fatal brick...i gave up on compiling for now :(

I really wanted to get ipt_random going for the random module for iptables.

_________________


Linksys WRT54GS V2 - Router behind ATT DSL
pej_70
DD-WRT Novice


Joined: 11 Jun 2008
Posts: 4

PostPosted: Wed Jun 11, 2008 6:01    Post subject: Fon Reply with quote
Anyone has the know how or have being able to compile
a version for the fon

i have tryed but fails all the time

pse help me if someone knows howto !....
pej_70
DD-WRT Novice


Joined: 11 Jun 2008
Posts: 4

PostPosted: Sat Jun 14, 2008 12:09    Post subject: Reply with quote
has none manage to compile for fonera ?
pej_70
DD-WRT Novice


Joined: 11 Jun 2008
Posts: 4

PostPosted: Fri Jun 27, 2008 8:15    Post subject: Hi all Reply with quote
After the last svn sync i always get code pattern incorrect when I try to Upgrade with my new firmware (mini)

What to look for no spec errors when compile !?
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 150

PostPosted: Fri Jun 27, 2008 12:33    Post subject: Re: Hi all Reply with quote
pej_70 wrote:
After the last svn sync i always get code pattern incorrect when I try to Upgrade with my new firmware (mini)

What to look for no spec errors when compile !?


changes to the squashfs-tools require a recompile.

Under DD-WRT/src/squashfs-tools, do the following
Code:

rm mksquashfs-lzma
make
cp mksquashfs-lzma ../linux/brcm/linux.v24_2/scripts/squashfs 
deh
DD-WRT Novice


Joined: 08 May 2008
Posts: 14

PostPosted: Sun Jun 29, 2008 17:38    Post subject: Reply with quote
I'm having trouble with some errors in the build process. For example, I get this one when I run ./install_normal.sh

Code:
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


There are other errors where "target/" is missing.

At the moment I am stuck. Any suggestions would be welcome.
pej_70
DD-WRT Novice


Joined: 11 Jun 2008
Posts: 4

PostPosted: Tue Jul 01, 2008 8:07    Post subject: Reply with quote
i recompiled squashfs-tools
but i always get an error (think it is about cpu)
but i cant solve it !!!


g++ mksquashfs.o read_fs.o sort.o -L./lzma/C/7zip/Compress/LZMA_Lib -llzma -lpthread -o mksquashfs-lzma
/usr/bin/ld: skipping incompatible ./lzma/C/7zip/Compress/LZMA_Lib/liblzma.a when searching for -llzma
/usr/bin/ld: cannot find -llzma
collect2: ld returned 1 exit status
make: *** [mksquashfs-lzma] Error 1
snake98
DD-WRT User


Joined: 18 Jun 2008
Posts: 89

PostPosted: Thu Jul 03, 2008 16:40    Post subject: Reply with quote
pej_70 wrote:
i recompiled squashfs-tools
but i always get an error (think it is about cpu)
but i cant solve it !!!

/usr/bin/ld: cannot find -llzma
collect2: ld returned 1 exit status
make: *** [mksquashfs-lzma] Error 1


you need to edit a file in this direcotry
/home/dd-wrt/DD-WRT/src/squashfs-tools/lzma/C/7zip/Compress/LZMA_Lib/
vi the makefile and change the second line to this
CXX = g++ -03 -funroll-loops -03 -Wall

then make clean
then make,
that should solve it, it has to do with optizmization see this post for more details
http://svn.dd-wrt.com:8000/dd-wrt/ticket/589
deh
DD-WRT Novice


Joined: 08 May 2008
Posts: 14

PostPosted: Fri Jul 04, 2008 3:06    Post subject: Reply with quote
When rebuilding squashfs-tools I get the following error, and I haven't been able to track it down--

Code:
rm: cannot remove `mksquashfs-lzma': No such file or directory
cc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -funroll-loops -mtune=opteron -march=opteron -mfpmath=sse -m3dnow -msse2 -m64 -O3 -D_LZMA_PARAMS    -c -o mksquashfs.o mksquashfs.c
mksquashfs.c:1: sorry, unimplemented: 64-bit mode not compiled in
mksquashfs.c:31:1: warning: "_LZMA_PARAMS" redefined
<command-line>: warning: this is the location of the previous definition
make: *** [mksquashfs.o] Error 1
cp: cannot stat `mksquashfs-lzma': No such file or directory
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 150

PostPosted: Fri Jul 04, 2008 3:22    Post subject: Reply with quote
deh wrote:
When rebuilding squashfs-tools I get the following error, and I haven't been able to track it down--

Code:
rm: cannot remove `mksquashfs-lzma': No such file or directory
cc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -funroll-loops -mtune=opteron -march=opteron -mfpmath=sse -m3dnow -msse2 -m64 -O3 -D_LZMA_PARAMS    -c -o mksquashfs.o mksquashfs.c
mksquashfs.c:1: sorry, unimplemented: 64-bit mode not compiled in
mksquashfs.c:31:1: warning: "_LZMA_PARAMS" redefined
<command-line>: warning: this is the location of the previous definition
make: *** [mksquashfs.o] Error 1
cp: cannot stat `mksquashfs-lzma': No such file or directory


change src/squashfs-tools/Makefile line 4 to be
Code:

CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O3 -D_LZMA_PARAMS


and change src/squashfs-tools/lzma/C/7zip/Compress/LZMA_Lib/makefile line 2 to be
Code:

CXX = g++ -O3 -Wall
Goto page Previous  1, 2, 3, 4, 5 ... 10, 11, 12  Next Display posts from previous:    Page 4 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