Tutorial to compile DD-WRT for WNR3500L?

38 posts / 0 new
Last post
Tathagata Das
Tathagata Das's picture
You did not follow all steps

You did not follow all steps as I had mentioned earlier.
You need to build host tools before compiling the source code, like trx. After that you need to run following commands

#make -f Makefile.brcm26 configure
#make -f Makefile.brcm26 clean all install

newbie123
newbie123's picture
 

 

  9.) In router directory run make -f Makefile.brcm26 clean all install.

 

After follow all 8 steps as you had mention. At the time of 9 step its giving

In file included from nvram_linux.c:361:
nvram_generics.h: At top level:
nvram_generics.h:94: error: redefinition of 'nvram_match'
/home/newbie/Desktop/DD-WRT/src/include.v24/bcmnvram.h:87: error: previous definition of 'nvram_match' was here
nvram_generics.h:107: error: redefinition of 'nvram_invmatch'
/home/newbie/Desktop/DD-WRT/src/include.v24/bcmnvram.h:100: error: previous definition of 'nvram_invmatch' was here
nvram_generics.h: In function 'nvram_nset':
nvram_generics.h:153: warning: return makes pointer from integer without a cast
nvram_generics.h: At top level:
nvram_generics.h:156: error: expected ')' before '?' token
nvram_generics.h:161: error: expected identifier or '(' before '{' token
nvram_generics.h:162: error: expected identifier or '(' before '{' token
nvram_generics.h:167: error: expected identifier or '(' before '{' token
nvram_generics.h:168: error: expected identifier or '(' before '{' token
make[1]: *** [nvram_linux.o] Error 1
make[1]: Leaving directory `/home/newbie/Desktop/DD-WRT/src/router/nvram'
make: *** [nvram] Error 2

I already download new file from svn and again tried but same problem is coming.

newbie123
newbie123's picture
is there any help about above

is there any help about above problem.

gvk
gvk's picture
Hi All/Tathagata Das,

Hi All/Tathagata Das,

I am new to dd-wrt and the world of networking. Presently I am trying to build dd-wrt source for my Linksys-e3200.

At present my router is running big version of dd-wrt with the pre-built firmware.

Here I am confused with the build system, like how i should select a make file for my router. Which make file I should use and how to decide choosing the make file.

Irrespective of board I tried to setup a build first, for that I followed this post

1.) Checkout source code.
2.) Go to router directory.
3.) Copy .config-mini.v24 to .config
4.) Edit .config file
a.) LINUXDIR=$(SRCBASE)/linux/brcm/linux-2.6.23.
b.) Add CONFIG_BCMMODERN=y
c.) Remove CONFIG_SPUTNIK_APD macro.
5.) Open the file $(BASEDIR)/src/linux/brcm/linux-2.6.23/drivers/net/wireless/Kconfig and remove the following lines.
source "drivers/net/wireless/hostap/Kconfig"
source "drivers/net/wireless/bcm43xx/Kconfig"
source "drivers/net/wireless/zd1211rw/Kconfig"
source "drivers/net/wireless/madwifi/Kconfig"

6.) export PATH=/opt/toolchain-mipsel_gcc4.1.2/bin/:$PATH
7.) Build trx in $(BASEDIR)/opt/tools/
8.) In router directory run make -f Makefile.brcm26 configure.
9.) In router directory run make -f Makefile.brcm26 clean all install.

Here in step
4.a) i dont have a folder with name "linux-2.6.23" instead i have "linux.v24_2"

5) at the following path of my source "/src/linux/brcm/linux.v24_2/drivers/net/wireless" there is no Kconfig file

6) from the dowloaded tool-chain, I have copied the "toolchain-mipsel_gcc4.1.2" dir to /opt, added and exported the path variable.

7) I did not understand this step "Build trx"

and running step 8, 9 gave some erros

./nvram -lnvram -lcrypt -Lmipsel -liksemel
mipsel-linux-uclibc-gcc: src/apd.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/adler32.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/compress.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/crc32.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/deflate.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/gzio.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/infback.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/inffast.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/inflate.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/inftrees.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/trees.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/uncompr.o: No such file or directory
mipsel-linux-uclibc-gcc: zlib/zutil.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
mipsel-linux-uclibc-gcc: src/diag.o: No such file or directory
mipsel-linux-uclibc-gcc: src/duette.o: No such file or directory
mipsel-linux-uclibc-gcc: src/firewall.o: No such file or directory
mipsel-linux-uclibc-gcc: src/hexstring.o: No such file or directory
mipsel-linux-uclibc-gcc: src/httpd.o: No such file or directory
mipsel-linux-uclibc-gcc: src/jauth.o: No such file or directory
mipsel-linux-uclibc-gcc: src/keys.o: No such file or directory
mipsel-linux-uclibc-gcc: src/license.o: No such file or directory
mipsel-linux-uclibc-gcc: src/log.o: No such file or directory
mipsel-linux-uclibc-gcc: src/lsk.o: No such file or directory
mipsel-linux-uclibc-gcc: src/md5.o: No such file or directory
mipsel-linux-uclibc-gcc: src/md5_util.o: No such file or directory
mipsel-linux-uclibc-gcc: src/pf.o: No such file or directory
mipsel-linux-uclibc-gcc: src/pppoe.o: No such file or directory
mipsel-linux-uclibc-gcc: src/status.o: No such file or directory
mipsel-linux-uclibc-gcc: src/usage.o: No such file or directory
make[1]: *** [sputnik] Error 1
make[1]: Leaving directory `/home/testpc01/Public/Project/Router/dd-WRT/DDWRT/DD-WRT/src/router/sputnik'
make: *** [sputnik] Error 2
rules/all.mk:121: rules/mmc-ixp4xx.mk: No such file or directory
rules/all.mk:198: rules/strace.mk: No such file or directory
rules/all.mk:209: rules/oled.mk: No such file or directory
rules/all.mk:219: /home/testpc01/Public/Project/Router/dd-WRT/DDWRT/DD-WRT/src/router/private/ath9k-rules/ath9k.mk: No such file or directory
rules/all.mk:223: rules/atm.mk: No such file or directory

Please help me....!!!

Thanks in advance

johnathonm
johnathonm's picture
Would anyone be willing to

Would anyone be willing to work with me to put together a clean, straightforward guide to compiling the firmware?

Thanks.

gvk
gvk's picture
Hi johnathonm,

Hi johnathonm,

Its nice to come up with such document, I would like to be part of your work :)

Raj
Raj's picture
I am new to dd-wrt and

I am new to dd-wrt and struggling to build wnr3500l.

I have ubuntu 14.04 x64 bit dev machine. Could you provide latest build procedure?

I can download the source but I cant get the tool chains for this one.

Konguraj

Pages

Zircon - This is a contributing Drupal Theme
Design by WeebPal.