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 ... 7, 8, 9, 10, 11, 12  Next
Author Message
4512jth
DD-WRT User


Joined: 14 Mar 2009
Posts: 233

PostPosted: Wed Jul 08, 2009 20:49    Post subject: Reply with quote
Can someone put up their VMWare/VPC image? It would help for people learning to do this, including me. Thanks Smile
Sponsor
sunqian
DD-WRT Novice


Joined: 18 Oct 2009
Posts: 9

PostPosted: Mon Oct 19, 2009 5:48    Post subject: compiling help Reply with quote
Is there any solution for this issue?

Thanks for your information!

==================

jbarbieri wrote:
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.
sunqian
DD-WRT Novice


Joined: 18 Oct 2009
Posts: 9

PostPosted: Mon Oct 19, 2009 9:03    Post subject: Reply with quote
I think the root cause is in ~/DD-WRT/src/linux/brcm/linux.v24_2/drivers/net/Makefile

#subdir-$(CONFIG_HND) += hnd
subdir-$(CONFIG_BRCMSWITCH) += switch
ifdef CONFIG_BCM57XX
subdir-$(CONFIG_BCM57XX) += bcm57xx
endif
subdir-$(CONFIG_ET) += et
subdir-$(CONFIG_ROBO) += robo
ifdef CONFIG_V25
subdir-$(CONFIG_WL) += brcm.v25
else
#subdir-$(CONFIG_WL) += brcm <-- brcm directory doesn't exist under ~/DD-WRT/src/linux/brcm/linux.v24_2/drivers/net

I change it to bcm57xx. (is it a correct fix?) Compile continues so far...
lhui
DD-WRT Novice


Joined: 20 Oct 2009
Posts: 6

PostPosted: Thu Oct 22, 2009 7:14    Post subject: brcm driver Reply with quote
sunqian wrote:

ifdef CONFIG_V25
subdir-$(CONFIG_WL) += brcm.v25
else
#subdir-$(CONFIG_WL) += brcm

<-- brcm directory doesn't exist under ~/DD-WRT/src/linux/brcm/linux.v24_2/drivers/net


Any one know where the real driver is?

brcm.v25 or brcm??

What's the proper way? I don't want to brick my router
BigTree
DD-WRT Novice


Joined: 19 Nov 2009
Posts: 1

PostPosted: Fri Nov 20, 2009 7:43    Post subject: HowTo create file ’DD-WRT/src/router/sputnik/src/apd.o‘ Reply with quote
when i run the ./install_mini.v24_2.sh

[ ! -d sputnik ] || make -C sputnik
make[2]: Entering directory `/home/dd-wrt/DD-WRT/src/router/sputnik'
mipsel-linux-uclibc-gcc -fPIC -shared -o mipsel/libiksemel.so iksemel/base64.o iksemel/dom.o iksemel/filter.o iksemel/iks.o iksemel/ikstack.o iksemel/io-posix.o iksemel/jabber.o iksemel/md5.o iksemel/sax.o iksemel/sha.o iksemel/stream.o iksemel/utility.o -L../libutils -lwireless -lutils -L../shared -lshared -L../nvram -lnvram -lcrypt
mipsel-linux-uclibc-gcc -o mipsel/sputnik zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/gzio.o zlib/infback.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o src/base64.o src/blowfish.o src/brcm.o src/cbc.o src/control.o src/diag.o src/duette.o src/firewall.o src/hexstring.o src/httpd.o src/jauth.o src/keys.o src/license.o src/log.o src/lsk.o src/md5.o src/md5_util.o src/pf.o src/pppoe.o src/status.o src/usage.o -L../libutils -lwireless -lutils -L../shared -lshared -L../nvram -lnvram -lcrypt -Lmipsel -liksemel

mipsel-linux-uclibc-gcc: src/apd.o: No such file or directory
mipsel-linux-uclibc-gcc: src/base64.o: No such file or directory
mipsel-linux-uclibc-gcc: src/blowfish.o: No such file or directory
mipsel-linux-uclibc-gcc: src/brcm.o: No such file or directory
mipsel-linux-uclibc-gcc: src/cbc.o: No such file or directory
mipsel-linux-uclibc-gcc: src/control.o: No such file or directory
=======================
in src/router/sputnik/
I can not find the dir "src"

and
there is no apd.o (or apd.c)in the whole project
(by do grep '*dpd* ./ in /home/dd-wrt/DD-WRT)
How to create the apd.o ?
or how to avoid the sputnik?
Thanks!
forget my pool english.
gruenesAlien
DD-WRT Guru


Joined: 27 Nov 2008
Posts: 717

PostPosted: Thu Nov 26, 2009 21:18    Post subject: Reply with quote
avoid sputnik:
mv /home/dd-wrt/DD-WRT/src/router/sputnik/Makefile /home/dd-wrt/DD-WRT/src/router/sputnik/Makefile.away
modervador
DD-WRT User


Joined: 07 Sep 2009
Posts: 271

PostPosted: Fri Nov 27, 2009 4:40    Post subject: Reply with quote
I am currently building a mini.24_2 to svn 13302. I encounter a few errors. In addition to the sputnik problem above, I found a problem involving pptpd. This is caused in the file

~/DD-WRT/src/router/pptpd/Makefile

where you may find lines such as:

AMTAR = ${SHELL} /home/seg/DEV/broadcom/src/router/pptpd/missing --run tar

Solution: replace every instance of /home/seg/DEV/broadcom with ~/DD-WRT

so the above becomes

AMTAR = ${SHELL} ~/DD-WRT/src/router/pptpd/missing --run tar

for example. So I guess Sebastian's middle initial is "E". Cheers.

EDIT: a better solution is in this post: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=389532#389532


Last edited by modervador on Thu Dec 31, 2009 17:31; edited 1 time in total
gruenesAlien
DD-WRT Guru


Joined: 27 Nov 2008
Posts: 717

PostPosted: Fri Nov 27, 2009 21:38    Post subject: Reply with quote
I do have modified my 01_get_src_svn.sh because I had the problem that not the complete source had been checked out. I do use latest debian and for e.g. the makefile in /src/router had been missing. I have not come to the very end, but without my modification I do get errors far earlier.

Here's my 01_get_src_svn.sh

Code:
#!/bin/sh
su -c "apt-get update;apt-get install sudo openssh-server subversion;echo 'dd-wrt  ALL=(ALL) ALL' >> /etc/sudoers"
sudo apt-get install gcc g++ binutils patch bzip2 flex bison make gettext unzip zlib1g-dev libc6 libncurses5-dev libstdc++5 automake automake1.7 automake1.9 openssl

wget http://www.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/toolchains/toolchains.x86.debian.sp1.tar.bz2
tar -jxf toolchains.x86.debian.sp1.tar.bz2

mkdir tmp

sudo ln -s /home/dd-wrt/toolchains/3.4.6-uclibc-0.9.28/ /opt/3.3.4
sudo ln -s /home/dd-wrt/toolchains/3.4.6-uclibc-0.9.28/ /opt/3.3.6
sudo ln -s /home/dd-wrt/toolchains/3.4.6-uclibc-0.9.28/ /opt/3.4.4
sudo ln -s /home/dd-wrt/toolchains/3.4.6-uclibc-0.9.28/ /opt/3.4.6
sudo ln -s /home/dd-wrt/toolchains/4.1.0-uclibc-0.9.28/ /opt/4.1.0
sudo ln -s /home/dd-wrt/DD-WRT/image/ /home/dd-wrt/GruppenLW

ln -s /home/dd-wrt/toolchains/3.4.6-uclibc-0.9.28/ /home/dd-wrt/toolchains/3.4.6
ln -s /home/dd-wrt/toolchains/3.4.6-uclibc-0.9.28/ /home/dd-wrt/toolchains/3.4.4
ln -s /home/dd-wrt/toolchains/3.4.6-uclibc-0.9.28/ /home/dd-wrt/toolchains/3.3.6
ln -s /home/dd-wrt/toolchains/3.4.6-uclibc-0.9.28/ /home/dd-wrt/toolchains/3.3.4
ln -s /home/dd-wrt/toolchains/4.1.0-uclibc-0.9.28/ /home/dd-wrt/toolchains/4.1.0

svn co --depth=immediates svn://svn.dd-wrt.com/DD-WRT $HOME/DD-WRT
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/tools $HOME/DD-WRT/tools
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/opt $HOME/DD-WRT/opt
svn co --depth=immediates svn://svn.dd-wrt.com/DD-WRT/src $HOME/DD-WRT/src
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/include.bcm $HOME/DD-WRT/src/include.bcm
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/include.v23 $HOME/DD-WRT/src/include.v23
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/include.v24 $HOME/DD-WRT/src/include.v24
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/led $HOME/DD-WRT/src/led
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/ses $HOME/DD-WRT/src/ses
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/shared $HOME/DD-WRT/src/shared
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/router $HOME//DD-WRT/src/router
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/squashfs-tools $HOME/DD-WRT/src/squashfs-tools
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/switch $HOME/DD-WRT/src/switch
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/tools $HOME/DD-WRT/src/tools
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/wl $HOME/DD-WRT/src/wl
svn co --depth=infinity svn://svn.dd-wrt.com/DD-WRT/src/linux/brcm/linux.v24_2 $HOME/DD-WRT/src/linux/brcm/linux.v24_2


ln -s /home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2 $HOME/DD-WRT/src/linux/linux


#making adjustments to compile

sed -i -e "s%rm -rf%#rm -rf%" $HOME/DD-WRT/src/router/rules/configs.mk
sed -i -e "s%svn co%#svn co%" $HOME/DD-WRT/src/router/rules/configs.mk
sed -i -e "s%svn update%#svn update%" $HOME/DD-WRT/src/router/rules/configs.mk
Luniz2k1
DD-WRT Guru


Joined: 04 Oct 2007
Posts: 1250
Location: Ohio USA

PostPosted: Sat Nov 28, 2009 11:05    Post subject: Reply with quote
gruenesAlien wrote:
avoid sputnik:
mv /home/dd-wrt/DD-WRT/src/router/sputnik/Makefile /home/dd-wrt/DD-WRT/src/router/sputnik/Makefile.away

Another way to do this would be to edit your src/router/.config file and comment out the SPUTNIK option.

_________________
(04/15/13) mega - 21286
4x WRT54G-TM

(04/15/13) std - 21286
1x WHR-G300N

(04/15/13) nokaid - 14929
1x WRT54GL v1.1

(04/15/13) micro - 21286
1x WG602v3

Got OpenDNS?
Luniz2k1
DD-WRT Guru


Joined: 04 Oct 2007
Posts: 1250
Location: Ohio USA

PostPosted: Sat Nov 28, 2009 11:46    Post subject: Reply with quote
colchaodemola wrote:
i find out that inadyn is not being compiled. But how do i make it be compiled ? There is no COMPILE_INADYN=Y

colchaodemola wrote:
Well , i compiled manually and put in the target directory. And it worked Smile

Can you explain what you did in more detail so that I can include inadyn into my build?

_________________
(04/15/13) mega - 21286
4x WRT54G-TM

(04/15/13) std - 21286
1x WHR-G300N

(04/15/13) nokaid - 14929
1x WRT54GL v1.1

(04/15/13) micro - 21286
1x WG602v3

Got OpenDNS?
modervador
DD-WRT User


Joined: 07 Sep 2009
Posts: 271

PostPosted: Sat Nov 28, 2009 16:59    Post subject: Reply with quote
I have been meaning to post this for a week or so. Here is the version of the svn checkout script I made for myself:

Code:
#!/bin/sh
#
THECMD="co -r 13302"
echo "Checking out and/or updating."
cd ~/
svn $THECMD svn://svn.dd-wrt.com/DD-WRT -N
cd DD-WRT/
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/image
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/opt
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src -N
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/tools
cd src/
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/include.bcm
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/include.v23
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/include.v24
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/led
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/linux -N
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/router
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/ses
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/shared
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/squashfs-tools
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/switch
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/tools
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/wl
cd linux/
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/linux/brcm -N
cd brcm/
svn $THECMD svn://svn.dd-wrt.com/DD-WRT/src/linux/brcm/linux.v24_2
echo Done.

It will build your DD-WRT directory tree if none exists yet. If you already have the tree, it will update your tree to whatever version number you enter.
modervador
DD-WRT User


Joined: 07 Sep 2009
Posts: 271

PostPosted: Sat Nov 28, 2009 17:17    Post subject: Reply with quote
Issues resolve regarding lzma:

http://www.dd-wrt.com/phpBB2/viewtopic.php?p=375987#375987

Oh, and please allow me to boast a little (note version and router, code for which you'll not find anywhere but on my Ubuntu box):



Screenshot-DD-WRT (build 13299).png
 Description:
 Filesize:  114.43 KB
 Viewed:  7187 Time(s)

Screenshot-DD-WRT (build 13299).png


Luniz2k1
DD-WRT Guru


Joined: 04 Oct 2007
Posts: 1250
Location: Ohio USA

PostPosted: Sat Nov 28, 2009 18:01    Post subject: Reply with quote
What file did you modify to change the router model?

Also I notice your build date is incorrect "07/28/08". To fix this do:

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

This will insert the current build date:
Quote:
#define BUILD_DATE "11/28/09"

_________________
(04/15/13) mega - 21286
4x WRT54G-TM

(04/15/13) std - 21286
1x WHR-G300N

(04/15/13) nokaid - 14929
1x WRT54GL v1.1

(04/15/13) micro - 21286
1x WG602v3

Got OpenDNS?
Luniz2k1
DD-WRT Guru


Joined: 04 Oct 2007
Posts: 1250
Location: Ohio USA

PostPosted: Sat Nov 28, 2009 18:13    Post subject: Reply with quote
Here is mine:


WRT54G-TM.png
 Description:
 Filesize:  48.63 KB
 Viewed:  7170 Time(s)

WRT54G-TM.png



_________________
(04/15/13) mega - 21286
4x WRT54G-TM

(04/15/13) std - 21286
1x WHR-G300N

(04/15/13) nokaid - 14929
1x WRT54GL v1.1

(04/15/13) micro - 21286
1x WG602v3

Got OpenDNS?
modervador
DD-WRT User


Joined: 07 Sep 2009
Posts: 271

PostPosted: Sun Nov 29, 2009 19:24    Post subject: Reply with quote
Luniz2k1 wrote:
What file did you modify to change the router model?

Also I notice your build date is incorrect "07/28/08". To fix this do:

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

Thank you for that reminder of the build date fix. I realized that I forgot to change it only after I posted the screen shot to the forum. The default install.sh from ~/DD-WRT/opt contains that line of shell script, but it wasn't in my version of install.sh; it is now!

Here's what I changed in the svn13299 code, file ~/DD-WRT/src/router/libutils/utils.c

replace this
Code:
   if (boardnum == 35324 && nvram_match("boardtype", "0x048e")) {
      cprintf("router is U.S. Robotics USR5465\n");
      setRouter("U.S.Robotics USR5465");
      return ROUTER_USR_5465;
   }
with this:
Code:
   // if (boardnum == 35324 && nvram_match("boardtype", "0x048e")) {
      cprintf("router is U.S. Robotics USR5465\n");
      setRouter("My Other USR5465");
      return ROUTER_USR_5465;
   // }
Simple, the USR5465 is always detected! (Everything is ignored after those lines, of course.)

The boardnum of 35324 was incorrect for 2 of my USR5465's.

Congratulations on your successful compile!
Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11, 12  Next Display posts from previous:    Page 8 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