OUR NETWORK:TiVo Community TechLore Explore3DTV DVRplayground Dijit Community See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 744635.0
February 20, 2012 11:00 PM

Categories: WNR3500Lv2 Open Source Router

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

Subhra

Member
Joined: 02/09/2011

Hi all,
    I have seen that many people are facing problems in building DDWRT firmware for WNR3500Lv2. I have been able to build it. Here I am sharing the steps I followed to perform the same.

[NOTE:- This method requires to have both 32-bit and 64-bit machine.]

    Step 1: Download toolchain to compile ddwrt.


    Step 2: Perform the following modification in "toolchain-mipsel_gcc4.1.2/mipsel-linux-uclibc/sys-include/regex.h" file in toolchain.

Original Code :-
-----------------

#if !defined _POSIX_C_SOURCE && !defined _POSIX_SOURCE && defined VMS
/* VMS doesn't have `size_t' in , even though POSIX says it
   should be there.  */
# include <stddef.h>
#endif


Modified Code :-
----------------


#if !defined _POSIX_C_SOURCE && !defined _POSIX_SOURCE && defined VMS
/* VMS doesn't have `size_t' in , even though POSIX says it
   should be there.  */
# include <stddef.h>
#endif

# include <stddef.h>

    Step 3: Download "DD-WRT Source Code (Used in WNR3500Lv2 Firmware Build)" from this link and untar it using following command,
        $ tar -zxvf dd-wrt.tgz

    Step 4: Download the "DD-WRT for WNR3500Lv2 Initial Release 1.0" from this link.

    Step 5: Untar "DDWRT_WNR3500Lv2_Final_Release_09-12-2011.tgz" using following command,

            $ unzip DDWRT_WNR3500Lv2_Final_Release_09-12-2011.tgz.zip
            $ tar -zxvf DDWRT_WNR3500Lv2_Final_Release_09-12-2011.tgz
        Go to DDWRT_WNR3500Lv2_Final_Release_09-12-2011 using following command,
            $ cd DDWRT_WNR3500Lv2_Final_Release_09-12-2011
        Make DD-WRT source code ready for Netgear WNR3500Lv2 using the following command,
            $ sh ddwrt_build_wnr3500lv2.sh
        
    Step 6: Perform the following modification the "dd-wrt/src/router/rules/pppoe.mk" file

    Original Code:-
    ---------------
        pppoe pppoe-%:
            @true
    Modifed Code:-
    ---------------
        pppoe-%:
            @true


    Step 7: Perform the follwoing modifiaction the "dd-wrt/src/router/busybox/Makefile" file

Line 421:-

    Original Code:-
    ----------------------
    config %config: scripts_basic outputmakefile FORCE          
       $(Q)mkdir -p include


    Modifed Code:-
    ---------------------
    %config: scripts_basic outputmakefile FORCE  
    $(Q)mkdir -p include

Line 1273:-

    Original Code:-
    ---------------------
    / %/: prepare scripts FORCE        
    $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \

    Modified Code:-
    ----------------------
    %/: prepare scripts FORCE        
    $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \


    Step 8: Export toolchain path.
    Step 9: Go to "dd-wrt/src/router".
    Step 10: Use the following command to compile the source code,
        "make -f Makefile.wnr3500lv2 configure all install"
[Note: This step should be performed in a 64-bit machine. I have used Fedora Core 15 for this purpose.]

    Step 11: After successful compilation download following utility and use these series of commands,
[Note: These steps should be performed in a 32-bit machine. I have used Fedora Core 14 for this purpose.]
        
        $ tar -zxvf DD-WRT_Image_Creation.tgz
    
        $ cd DD-WRT_Image_Creation
    
        $ sh ddwrt_image.sh

    If everything goes well you should find the firmware ("ddwrt-wnr3500lv2.chk") in same ("DD-WRT_Image_Creation") directory.

Discussion:    Add a Comment | Comments 1-22 of 22 | Latest Comment

February 20, 2012 11:38 PM

Thanks Subhra for preparing such a nice document. However I have following comment on this article.
Step 1. It would be better if you specify the path from where toolchain is available.
I think step 6 and 7 are required only when we use Fedora Core 14 or higher version of Fedora Core 14.
Step 8: It would be nice if you can give example.
Step 9: Clean may not be necessary for first compilation but it is necessary for next time compilation. So the command would be
"make -f Makefile.wnr3500lv2 configure clean all install"

February 20, 2012 11:54 PM

@Tathagata: Thank you for pointing out the shortcoming of this document.

Step 1:

Toolchain can be downloaded from this link.

Step 8:

Use the following command to export your toolchain path.

export PATH=/TOOLCAHIN_BASE_PATH/toolchain-mipsel_gcc4.1.2/bin:$PATH

In my case I have downloaded the toolchain in "/opt" so for me the command was ,

export PATH=/opt/toolchain-mipsel_gcc4.1.2/bin:$PATH

Step 10:-

For compiling first time use the command,

"make -f Makefile.wnr3500lv2 configure all install"

and for further compilation use following command,

"make -f Makefile.wnr3500lv2 configure clean all install"

February 22, 2012 11:41 AM

Hi,

Fisrt, thank you for your post. I would like to know which is differences between DDWRT_WNR3500Lv2_Final_Release_09-12-2011 and the firmware that I can make with your post and code source ?
And, for the Linux distribution, can I use Debian 6 (32 and 64) ?
Thank you

February 22, 2012 11:31 PM

The sample firmware supplied with the "DDWRT_WNR3500Lv2_Final_Release_09-12-2011" and the firmware generated by the above procedure would be same.

Theoretically Debian may be used for the compilation provided all basic development tools are installed. But I personally never did the same.

April 13, 2012 1:09 AM

New dd-wrt for WNR3500Lv2 is released. It needs just one 64 bit machine to compile the firmware. You will find this build here.

May 30, 2012 1:41 AM

I need your help

May 30, 2012 1:46 AM

My OS is redhat 2.6.18

while " make -f Makefile.wnr3500lv2 install"

../wnrtool/trx -o /data/lchm/DDWRT_WNR3500Lv2_Final_Release_09-12-2011/dd-wrt/src/image/ddwrt-wnr3500lv2.trx /data/lchm/DDWRT_WNR3500Lv2_Final_Release_09-12-2011/dd-wrt/src/image/vmlinux.lzma mipsel-uclibc/rootfs.squashfs
mjn3's trx replacement - v0.81.1
cd /data/lchm/DDWRT_WNR3500Lv2_Final_Release_09-12-2011/dd-wrt/src/image && ./../wnrtool/packet -k ddwrt-wnr3500lv2.trx -f ./../router/netgear/emptyfile -b ./../wnrtool/comp-wnr3500lv2.txt -ok kernel_image -oall ddwrt-wnr3500lv2 -or rootfs_image -i ./../router/netgear/ambitCfg-wnr3500.h && \
rm -f rootfs_image.chk kernel_image.chk
./../wnrtool/packet: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by ./../wnrtool/packet)
make: *** [install] Error 1

I need your help.

May 31, 2012 6:49 AM

I have " make -f Makefile.wnr3500lv2 install" pass in CentOs6.2

June 1, 2012 12:20 AM

Nice to hear that things are working ... please share how did you overcome this.

June 5, 2012 2:26 AM

by "./../wnrtool/packet: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by ./../wnrtool/packet)"
I only use CentOs6.2 instead of Redhat5.2

June 6, 2012 5:26 AM

I always use Fedora, no experience on CentOs.

July 3, 2012 7:17 PM

Hello, Subhra.
Thank you very much for this tutorial.
I am using Ubuntu 32 and 64 for this purpose.
I made these steps, except step 1 that i was not be able to download from your link and i used one that i download on dd-wrt current-toolchains.tar.

When i made "make -f Makefile.wnr3500lv2 configure all install" next errors were catched

bohdan@bohdan-laptop:~/dd/dd-wrt/src/router$ make -f Makefile.wnr3500lv2 configure clean all install
rules/iptables.mk:43: warning: overriding commands for target `iptables-clean'
rules/iptables.mk:2: warning: ignoring old commands for target `iptables-clean'
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/bohdan/dd/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
[ ! -d rules/atm.mk ] || make -C rules/atm.mk
[ ! -d /home/bohdan/dd/dd-wrt/src/router/private/ath9k-rules/ath9k.mk ] || make -C /home/bohdan/dd/dd-wrt/src/router/private/ath9k-rules/ath9k.mk
[ ! -d rules/oled.mk ] || make -C rules/oled.mk
[ ! -d rules/strace.mk ] || make -C rules/strace.mk
[ ! -d rules/mmc-ixp4xx.mk ] || make -C rules/mmc-ixp4xx.mk
[ ! -d nvram-configure ] || make -C nvram-configure
[ ! -d libutils-configure ] || make -C libutils-configure
[ ! -d shared-configure ] || make -C shared-configure
[ ! -d matrixssl-configure ] || make -C matrixssl-configure
[ ! -d httpd-configure ] || make -C httpd-configure
[ ! -d rc-configure ] || make -C rc-configure
[ ! -d services-configure ] || make -C services-configure
[ ! -d www-configure ] || make -C www-configure
[ ! -d lib.mipsel-configure ] || make -C lib.mipsel-configure
[ ! -d bridge-configure ] || make -C bridge-configure
[ ! -d zlib-configure ] || make -C zlib-configure
make -j 4 -C zlib
make[1]: Entering directory `/home/bohdan/dd/dd-wrt/src/router/zlib'
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fPIC -DUSE_MMAP -ffunction-sections -fdata-sections -Wl,--gc-sections -c -o example.o example.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fPIC -DUSE_MMAP -ffunction-sections -fdata-sections -Wl,--gc-sections -c -o adler32.o adler32.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fPIC -DUSE_MMAP -ffunction-sections -fdata-sections -Wl,--gc-sections -c -o compress.o compress.c
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fPIC -DUSE_MMAP -ffunction-sections -fdata-sections -Wl,--gc-sections -c -o crc32.o crc32.c
example.c:8:19: error: stdio.h: No such file or directory
In file included from zlib.h:34,
from example.c:9:
zconf.h:288:41: error: sys/types.h: No such file or directory
zconf.h:289:52: error: unistd.h: No such file or directory
In file included from example.c:9:
zlib.h:1183: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzseek'
zlib.h:1208: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gztell'
zlib.h:1276: error: expected declaration specifiers or '...' before 'off_t'
zlib.h:1301: error: expected declaration specifiers or '...' before 'off_t'
example.c:12:22: error: string.h: No such file or directory
example.c:13:22: error: stdlib.h: No such file or directory
In file included from zlib.h:34,
from zutil.h:17,
from crc32.c:29:
zconf.h:288:41: error: sys/types.h: No such file or directory
zconf.h:289:52: error: unistd.h: No such file or directory
In file included from zutil.h:17,
from crc32.c:29:
zlib.h:1183: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzseek'
zlib.h:1208: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gztell'
zlib.h:1276: error: expected declaration specifiers or '...' before 'off_t'
zlib.h:1301: error: expected declaration specifiers or '...' before 'off_t'
In file included from zlib.h:34,
from compress.c:9:
zconf.h:288:41: error: sys/types.h: No such file or directory
zconf.h:289:52: error: unistd.h: No such file or directory
In file included from compress.c:9:
zlib.h:1183: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzseek'
zlib.h:1208: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gztell'
zlib.h:1276: error: expected declaration specifiers or '...' before 'off_t'
zlib.h:1301: error: expected declaration specifiers or '...' before 'off_t'
In file included from zlib.h:34,
from adler32.c:9:
zconf.h:288:41: error: sys/types.h: No such file or directory
zconf.h:289:52: error: unistd.h: No such file or directory
In file included from adler32.c:9:
zlib.h:1183: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gzseek'
zlib.h:1208: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gztell'
zlib.h:1276: error: expected declaration specifiers or '...' before 'off_t'
zlib.h:1301: error: expected declaration specifiers or '...' before 'off_t'
example.c: In function 'test_compress':
example.c:64: warning: incompatible implicit declaration of built-in function 'strlen'
example.c:67: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:67: error: 'stderr' undeclared (first use in this function)
example.c:67: error: (Each undeclared identifier is reported only once
example.c:67: error: for each function it appears in.)
example.c:67: warning: incompatible implicit declaration of built-in function 'exit'
example.c:69: warning: incompatible implicit declaration of built-in function 'strcpy'
example.c:72: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:72: warning: incompatible implicit declaration of built-in function 'exit'
example.c:75: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:76: warning: incompatible implicit declaration of built-in function 'exit'
example.c:78: warning: incompatible implicit declaration of built-in function 'printf'
example.c: In function 'test_gzio':
example.c:94: warning: incompatible implicit declaration of built-in function 'strlen'
example.c:96: error: 'off_t' undeclared (first use in this function)
example.c:96: error: expected ';' before 'pos'
example.c:99: error: 'NULL' undeclared (first use in this function)
example.c:100: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:100: error: 'stderr' undeclared (first use in this function)
example.c:101: warning: incompatible implicit declaration of built-in function 'exit'
example.c:105: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:106: warning: incompatible implicit declaration of built-in function 'exit'
example.c:109: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:110: warning: incompatible implicit declaration of built-in function 'exit'
example.c:117: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:118: warning: incompatible implicit declaration of built-in function 'exit'
example.c:120: warning: incompatible implicit declaration of built-in function 'strcpy'
example.c:123: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:124: warning: incompatible implicit declaration of built-in function 'exit'
example.c:127: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:128: warning: incompatible implicit declaration of built-in function 'exit'
example.c:130: warning: incompatible implicit declaration of built-in function 'printf'
example.c:133: error: 'pos' undeclared (first use in this function)
example.c:135: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:137: warning: incompatible implicit declaration of built-in function 'exit'
example.c:141: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:142: warning: incompatible implicit declaration of built-in function 'exit'
example.c:146: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:147: warning: incompatible implicit declaration of built-in function 'exit'
example.c:152: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:153: warning: incompatible implicit declaration of built-in function 'exit'
example.c:156: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:157: warning: incompatible implicit declaration of built-in function 'exit'
example.c:159: warning: incompatible implicit declaration of built-in function 'printf'
example.c: In function 'test_deflate':
example.c:175: warning: incompatible implicit declaration of built-in function 'strlen'
example.c:182: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:182: error: 'stderr' undeclared (first use in this function)
example.c:182: warning: incompatible implicit declaration of built-in function 'exit'
example.c:190: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:190: warning: incompatible implicit declaration of built-in function 'exit'
example.c:197: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:197: warning: incompatible implicit declaration of built-in function 'exit'
example.c:201: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:201: warning: incompatible implicit declaration of built-in function 'exit'
example.c: In function 'test_inflate':
example.c:214: warning: incompatible implicit declaration of built-in function 'strcpy'
example.c:225: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:225: error: 'stderr' undeclared (first use in this function)
example.c:225: warning: incompatible implicit declaration of built-in function 'exit'
example.c:231: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:231: warning: incompatible implicit declaration of built-in function 'exit'
example.c:235: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:235: warning: incompatible implicit declaration of built-in function 'exit'
example.c:238: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:239: warning: incompatible implicit declaration of built-in function 'exit'
example.c:241: warning: incompatible implicit declaration of built-in function 'printf'
example.c: In function 'test_large_deflate':
example.c:260: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:260: error: 'stderr' undeclared (first use in this function)
example.c:260: warning: incompatible implicit declaration of built-in function 'exit'
example.c:271: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:271: warning: incompatible implicit declaration of built-in function 'exit'
example.c:273: warning: incompatible implicit declaration of built-in function 'fprintf'
adler32.c: In function 'adler32_combine':
adler32.c:131: error: expected declaration specifiers before 'off_t'
adler32.c:132: error: number of arguments doesn't match prototype
zlib.h:1276: error: prototype declaration
example.c:274: warning: incompatible implicit declaration of built-in function 'exit'
example.c:282: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:282: warning: incompatible implicit declaration of built-in function 'exit'
example.c:289: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:289: warning: incompatible implicit declaration of built-in function 'exit'
example.c:293: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:294: warning: incompatible implicit declaration of built-in function 'exit'
example.c:297: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:297: warning: incompatible implicit declaration of built-in function 'exit'
example.c: In function 'test_large_inflate':
example.c:310: warning: incompatible implicit declaration of built-in function 'strcpy'
example.c:320: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:320: error: 'stderr' undeclared (first use in this function)
example.c:320: warning: incompatible implicit declaration of built-in function 'exit'
example.c:327: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:327: warning: incompatible implicit declaration of built-in function 'exit'
example.c:331: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:331: warning: incompatible implicit declaration of built-in function 'exit'
example.c:334: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:335: warning: incompatible implicit declaration of built-in function 'exit'
example.c:337: warning: incompatible implicit declaration of built-in function 'printf'
example.c: In function 'test_flush':
example.c:350: warning: incompatible implicit declaration of built-in function 'strlen'
example.c:357: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:357: error: 'stderr' undeclared (first use in this function)
example.c:357: warning: incompatible implicit declaration of built-in function 'exit'
example.c:364: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:364: warning: incompatible implicit declaration of built-in function 'exit'
example.c:371: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:371: warning: incompatible implicit declaration of built-in function 'exit'
example.c:374: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:374: warning: incompatible implicit declaration of built-in function 'exit'
example.c: In function 'test_sync':
example.c:389: warning: incompatible implicit declaration of built-in function 'strcpy'
example.c:399: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:399: error: 'stderr' undeclared (first use in this function)
example.c:399: warning: incompatible implicit declaration of built-in function 'exit'
example.c:405: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:405: warning: incompatible implicit declaration of built-in function 'exit'
example.c:409: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:409: warning: incompatible implicit declaration of built-in function 'exit'
example.c:413: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:415: warning: incompatible implicit declaration of built-in function 'exit'
example.c:418: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:418: warning: incompatible implicit declaration of built-in function 'exit'
example.c:420: warning: incompatible implicit declaration of built-in function 'printf'
example.c: In function 'test_dict_deflate':
example.c:438: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:438: error: 'stderr' undeclared (first use in this function)
example.c:438: warning: incompatible implicit declaration of built-in function 'exit'
example.c:442: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:442: warning: incompatible implicit declaration of built-in function 'exit'
example.c:449: warning: incompatible implicit declaration of built-in function 'strlen'
example.c:453: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:454: warning: incompatible implicit declaration of built-in function 'exit'
example.c:457: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:457: warning: incompatible implicit declaration of built-in function 'exit'
example.c: In function 'test_dict_inflate':
example.c:470: warning: incompatible implicit declaration of built-in function 'strcpy'
example.c:480: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:480: error: 'stderr' undeclared (first use in this function)
example.c:480: warning: incompatible implicit declaration of built-in function 'exit'
example.c:490: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:491: warning: incompatible implicit declaration of built-in function 'exit'
example.c:496: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:496: warning: incompatible implicit declaration of built-in function 'exit'
example.c:500: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:500: warning: incompatible implicit declaration of built-in function 'exit'
example.c:503: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:504: warning: incompatible implicit declaration of built-in function 'exit'
In file included from crc32.c:29:
zutil.h:23:22: error: string.h: No such file or directory
zutil.h:24:22: error: stdlib.h: No such file or directory
zutil.h:38:23: error: errno.h: No such file or directory
example.c:506: warning: incompatible implicit declaration of built-in function 'printf'
example.c: In function 'main':
example.c:524: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:524: error: 'stderr' undeclared (first use in this function)
example.c:525: warning: incompatible implicit declaration of built-in function 'exit'
example.c:528: warning: incompatible implicit declaration of built-in function 'fprintf'
example.c:531: warning: incompatible implicit declaration of built-in function 'printf'
example.c:534: warning: incompatible implicit declaration of built-in function 'calloc'
example.c:541: warning: incompatible implicit declaration of built-in function 'exit'
make[1]: *** [adler32.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [compress.o] Error 1
make[1]: *** [example.o] Error 1
In file included from /home/bohdan/toolchain-mipsel_gcc4.1.2/bin/../lib/gcc/mipsel-linux-uclibc/4.1.2/include/syslimits.h:7,
from /home/bohdan/toolchain-mipsel_gcc4.1.2/bin/../lib/gcc/mipsel-linux-uclibc/4.1.2/include/limits.h:11,
from crc32.c:36:
/home/bohdan/toolchain-mipsel_gcc4.1.2/bin/../lib/gcc/mipsel-linux-uclibc/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory
crc32.c: In function 'crc32_combine':
crc32.c:373: error: expected declaration specifiers before 'off_t'
crc32.c:374: error: number of arguments doesn't match prototype
zlib.h:1301: error: prototype declaration
make[1]: *** [crc32.o] Error 1
make[1]: Leaving directory `/home/bohdan/dd/dd-wrt/src/router/zlib'
make: *** [zlib] Error 2

July 3, 2012 7:26 PM

Thank you for any tips.

July 5, 2012 12:45 AM

I guess problem is some how related to toolchain. Try to download the toolchain the from link again, link is still alive.
I haven't compiled it on a ubuntu machine. Is it possible for you to compile it on a fedora machine?

July 5, 2012 7:28 AM

Thank you a lot for your help.

I download toolchain from your link now and it looks the same that i had earlier. However it has no directory toolchain-mipsel_gcc4.1.2/mipsel-linux-uclibc/sys-include/ to apply step 2...

I think to install fedora on virtual machine. Are there some tools/packages that i need to obtain/install before proceed to compile?

July 9, 2012 12:14 AM

See this link for the requirements.

November 28, 2012 10:43 AM

Hi All,

Please help me how to build dd-wrt for Linksys e3200, I have the source and tool chain. I am confused like which make file I should use.

in src/router there are many but non corresponds to e3200, please help me how should i build.

Thanks in advance.

November 29, 2012 12:19 AM

@gvk: you will get better feedback on e3200 in ddwrt forum.

March 4, 2013 8:48 AM

Hi Subhra,
thank you for your guide. I followed it step by step (with minor modifications in linux kernel cause I wanted bridge.ko as a module not integrated in kernel) and i managed to cross compile it. I successfully upgraded the router firmware but the only problem i get is that it doesn't recognoze the usb stick. Even the option of jffs2 support does not appear in the web interface. Is it normal or am I missing something?
Thanks,
Sanadrea

March 4, 2013 11:00 PM updated: March 4, 2013 11:03 PM

jffs2 support is not provided in this build. USB Should work.
Which file-system you are using for your USB Stick??

March 5, 2013 3:09 AM

Subhra said: jffs2 support is not provided in this build. USB Should work. Which file-system you are using for your USB Stick??
Hi I am using ext2 as file system, because i need some symlinks.

April 17, 2013 5:16 AM

Do we soon see the openwrt available for WNR3500v2 ?
Someone made a patch that they need help testing here...
http://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg16616.html

Discussion:    Add a Comment | Back to Top | Comments 1-22 of 22 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window