Need help Compiling DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions
Goto page 1, 2  Next
Author Message
jterry
DD-WRT Novice


Joined: 22 Jan 2008
Posts: 5
Location: Utah, USA

PostPosted: Tue Jan 29, 2008 18:19    Post subject: Need help Compiling DD-WRT Reply with quote
I have spent a good deal of time over the last week attempting to compile DD-WRT. I have read most of the things in all the forums, and have had no luck in getting a loadable binary. I would love to get something up and running and would definitely document it for others. This would probably offload some of the developers, etc. and move the project forward. Please let me know if you can give me a hand.

Thank you for your time.
Sponsor
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 152

PostPosted: Tue Jan 29, 2008 20:36    Post subject: Reply with quote
good luck. I spent about 30 hours last week trying and I am giving up.

I am able to compile the src/linux/brcm/linux.v23 kernel without issue. I get some errors trying to compile src/router. I have no luck with src/linux/brcm/linux.v24_2 at all. The DD-WRT/opt directory is in drastic need of an update along with all the install*.sh scripts. Even after creating install scripts that I believe should work for v24, I got nowhere. My goal was to get this working and update the outdated wiki, but I am not going to waste so much time on the effort.
jterry
DD-WRT Novice


Joined: 22 Jan 2008
Posts: 5
Location: Utah, USA

PostPosted: Tue Jan 29, 2008 21:08    Post subject: Reply with quote
Don't give up hope. I have made a couple of small changes and gotten much further than ever, with the help of one of the forum people. If we can figure this out and update it, we will probably have a good deal more development and a lot less fixing.

I will try to keep you appraised on my progress.
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 152

PostPosted: Tue Jan 29, 2008 21:17    Post subject: Reply with quote
just as info, this was my setup. will edit this as I am walking through the linux install process and setup for trying to compile brcm build from svn.

I created a virtual machine using MS VPC 2007. I created a 10gig virtual drive and set the virtual machine up for 512mb of ram.

Used Tiny CD of current stable version of Debian (http://www.debian.com/distrib/netinst).
***This will install a basic console based debian linux system.***
-Choose language and click continue
-Choose language and click continue
-Select a keyboard layout and click continue
-set Hostname: to dd-wrt and click continue
-Leave Domain name: blank and click continue
-Choose a mirror county location and click continue
-Choose a mirror sight and click continue
-Enter HTTP proxy info if needed and click continue
-Choose Guided - use entire disk and click continue
-Select partition and click continue
-Select Separate /home partition and click continue (makes it easy to backup/restore src if needed)
-Select Finish partitioning and write changes to disk and click continue
-Select Yes to write changes and click continue
-Configure time zone and click continue
-Enter a root password and verfiy and click continue
-Enter dd-wrt and Full name for new user and click continue
-Enter dd-wrt for your account and click continue
-Enter a password and verify and click continue
-Select No to the Configuring popularity-contest and click continue
-For Software selection uncheck all boxes except for Standard System, Standard System should be the only one check and click continue
-Select Yes and click continue to install the GRUB boot loader to mbr
-Install is finished, click continue to reboot

After the vm reboots, login with username=root and the password set during install. Issue the following apt-get commands to setup the environment.

(For compiling)
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

(For getting source)
apt-get install subversion

(I used a ssh shell to compile, as I can log output better)
apt-get install ssh

apt-get install sudoers
echo "dd-wrt ALL=(ALL) ALL" >> /etc/sudoers

exit root user session
login as user dd-wrt

Downloaded the toolchains.x86.debian.sp1.tar.bz2 from Dowloads > others > sourcecode > toolchains and extracted them to /home/dd-wrt/toochains

(create dirs for source)
mkdir DD-WRT
mkdir DD-WRT/image

(symlinks for toolchain and GruppenLW)
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/4.1.0-uclibc-0.9.28/ /opt/4.1.0
sudo mkdir /GruppenLW /home/dd-wrt/DD-WRT/image

(I had better luck using :/opt/3.3.6/bin for compiling v23sp1 source tarball)
PATH=$PATH:/opt/4.1.0/bin

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/4.1.0-uclibc-0.9.28/ /home/dd-wrt/toolchains/4.1.0

***From This Point I Can Compile http://www.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/v23/dd-wrt.v23.SP1-Final.src.tar.bz2***


<more to follow> Next is to try and compile from svn


Last edited by rkozola on Thu Jan 31, 2008 22:56; edited 18 times in total
jterry
DD-WRT Novice


Joined: 22 Jan 2008
Posts: 5
Location: Utah, USA

PostPosted: Tue Jan 29, 2008 21:39    Post subject: Reply with quote
I assume you have read the links ...

http://www.lamagra.com/wiki/index.php/Building_From_Source#Building_DD-WRT_From_Source

http://www.lamagra.com/wiki/index.php/Compiling_DD-WRT_Sources

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=7051&postdays=0&postorder=asc&start=45

An important part is to download and install the mips cross-compiler stuff from

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

You should unpack this and link it so that you have a link in /opt

What are you doing for the source code?
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 152

PostPosted: Tue Jan 29, 2008 22:06    Post subject: Reply with quote
yea, did all that.

should mention that my I was successful compiling the v23 source tarball under Downloads > others > sourcecode > v23. Just cannot checkout from svn and compile.
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 152

PostPosted: Wed Jan 30, 2008 3:35    Post subject: Reply with quote
commands issued after installation and reboot. This is what I have tried so far in order to set up a build environment and to retrieve the source . I still am having issues getting this to work, will try more later or maybe someone can point me in the right direction from here.

Code:

root>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
root>apt-get install subversion
root>apt-get install ssh
root>apt-get install sudo
root>echo "dd-wrt  ALL=(ALL) ALL" >> /etc/sudoers
root>exit

wget http://www.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/toolchains/toolchains.x86.debian.sp1.tar.bz2
bunzip2 toolchains.x86.debian.sp1.tar.bz2
tar -xvf toolchains.x86.debian.sp1.tar
rm toolchains.x86.debian.sp1.tar
mkdir DD-WRT
mkdir DD-WRT/image
mkdir DD-WRT/src
mkdir DD-WRT/src/linux

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/4.1.0-uclibc-0.9.28/ /opt/4.1.0
sudo ln -s /home/dd-wrt/DD-WRT/image/ /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/4.1.0-uclibc-0.9.28/ /home/dd-wrt/toolchains/4.1.0
cd DD-WRT/
svn co svn://svn.dd-wrt.com/DD-WRT/tools
svn co svn://svn.dd-wrt.com/DD-WRT/opt
wget http://svn.dd-wrt.com:8000/dd-wrt/browser/Makefile?format=raw
mv Makefile\?format\=raw Makefile
cd src/
wget http://svn.dd-wrt.com:8000/dd-wrt/browser/src/cy_conf.h?format=raw
mv cy_conf.h\?format\=raw cy_conf.h
wget http://svn.dd-wrt.com:8000/dd-wrt/browser/src/cy_conf.mak?format=raw
mv cy_conf.mak\?format\=raw cy_conf.mak
wget http://svn.dd-wrt.com:8000/dd-wrt/browser/src/Makefile?format=raw
mv Makefile\?format\=raw Makefile
svn co svn://svn.dd-wrt.com/DD-WRT/src/include.bcm
svn co svn://svn.dd-wrt.com/DD-WRT/src/include.v23
svn co svn://svn.dd-wrt.com/DD-WRT/src/include.v24
svn co svn://svn.dd-wrt.com/DD-WRT/src/led
svn co svn://svn.dd-wrt.com/DD-WRT/src/ses
svn co svn://svn.dd-wrt.com/DD-WRT/src/shared
svn co svn://svn.dd-wrt.com/DD-WRT/src/router
svn co svn://svn.dd-wrt.com/DD-WRT/src/squashfs-tools
svn co svn://svn.dd-wrt.com/DD-WRT/src/switch
svn co svn://svn.dd-wrt.com/DD-WRT/src/tools
svn co svn://svn.dd-wrt.com/DD-WRT/src/wl
cd linux/
svn co svn://svn.dd-wrt.com/DD-WRT/src/linux/brcm
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 152

PostPosted: Sat Feb 02, 2008 4:26    Post subject: Reply with quote
ignore

Last edited by rkozola on Sun Feb 03, 2008 1:11; edited 1 time in total
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 152

PostPosted: Sat Feb 02, 2008 21:17    Post subject: Reply with quote
well I got it to sort of compile. just not getting a good image. It looks like I got a good kernel, just have issues somewhere else. If only a dev could chime in with some hints...

Code:


CFE version 1.0.37 for BCM947X                             
Build Date: Mon Oct 30 23:22:44 CST 2006 (root@linux)                                                     
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.                                                       

Initializing Arena                 
Initializing PCI. [normal]                         
PCI: Initializing host                     
PCI: Enabling CardBus                     
SB PCI init done               

0x3c = 0x00000100                 
PCI bus 0 slot 0/0: vendor 0x14e4 product 0x0800 (flash memory, rev 0x02)                                                                         
PCI bus 0 slot 1/0: vendor 0x14e4 product 0x471f (ethernet network, rev 0x02)                                                                             
PCI bus 0 slot 2/0: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x10                                                                               
, rev 0x02)           
PCI bus 0 slot 2/1: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x20                                                                               
, rev 0x02)           
PCI bus 0 slot 3/0: vendor 0x14e4 product 0x471b (USB serial bus, rev 0x02)                                                                           
PCI bus 0 slot 4/0: vendor 0x14e4 product 0x0804 (PCI bridge, rev 0x02)                                                                       
PCI bus 0 slot 5/0: vendor 0x14e4 product 0x0816 (MIPS processor, rev 0x02)                                                                           
PCI bus 0 slot 6/0: vendor 0x14e4 product 0x471d (IDE mass storage, rev 0x02)                                                                             
PCI bus 0 slot 7/0: vendor 0x14e4 product 0x4718 (network/computing crypto, rev                                                                               
0x02)     
PCI bus 0 slot 8/0: vendor 0x14e4 product 0x080f (RAM memory, rev 0x02)                                                                       
PCI bus 0 slot 9/0: vendor 0x14e4 product 0x471e (class 0xfe, subclass 0x00, rev                                                                               
 0x02)     
PCI bus 1 slot 0/0: vendor 0x14e4 product 0x4785 (host bridge, rev 0x02)                                                                       
Initializing Devices.                     

No DPN     
This is a Parallel Flash                       
Partition information:                     
boot    #00   00000000 -> 0003FFFF  (262144)                                           
trx     #01   00040000 -> 0004001B  (28)                                       
os      #02   0004001C -> 007F7FFF  (8093668)                                             
nvram   #03   007F8000 -> 007FFFFF  (32768)                                           
Partition information:                     
boot    #00   00000000 -> 0003FFFF  (262144)                                           
trx     #01   00040000 -> 007F7FFF  (8093696)                                             
nvram   #02   007F8000 -> 007FFFFF  (32768)                                           
PCI bus 0 slot 1/0: _pci_map_mem: attempt to map 64-bit region tag =0x800 @ addr                                                                               
=18010004         
PCI bus 0 slot 1/0: _pci_map_mem: addr=0x18010004   pa=0x18010000   pci_mem_spac                                                                               
e_pci_base=0x40000000   pci_mem_space=0x8000000                                               
  mcfg = 000810fe                 
ge0: BCM5750 Ethernet at 0x18010000                                   
CPU type 0x2901A: 300MHz                       
Total memory: 32768 KBytes                         

Total memory used by CFE:  0x80300000 - 0x803A7AB0 (6867                                                       
Initialized Data:          0x8033C900 - 0x8033FCB0 (13232)                                                         
BSS Area:                  0x8033FCB0 - 0x80341AB0 (7680)                                                         
Local Heap:                0x80341AB0 - 0x803A5AB0 (409600)                                                           
Stack Area:                0x803A5AB0 - 0x803A7AB0 (8192)                                                         
Text (code) segment:       0x80300000 - 0x8033C900 (248064)                                                           
Boot area (physical):      0x003A8000 - 0x003E8000                                                 
Relocation Factor:         I:00000000 - D:00000000                                                 

Boot version: v4.2                 
The boot is CFE               

mac_init(): Find mac [00:1C:10:8A:FC:E0] in location 0                                                     
Nothing...         

eou_key_init(): Find key pair in location 4                                           
The eou device id is same                         
The eou public key is same                         
The eou private key is same                           
CMD: [ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0]                                                         
bcm5700: no firmware rendevous                             
eth0: Link speed: 1000BaseT FDX                               
Device eth0:  hwaddr 00-1C-10-8A-FC-E0, ipaddr 192.168.1.1, mask 255.255.255.0                                                                             
        gateway not set, nameserver not set                                           
CMD: [go;]         
Check CRC of image1                   
  Len:     0x362000     (3547136)       (0xBC040000)                                                   
  Offset0: 0x1C         (28)            (0xBC04001C)                                                   
  Offset1: 0x8E4        (2276)  (0xBC0408E4)                                           
  Offset2: 0x8C110      (573712)        (0xBC0CC110)                                                   
  Header CRC:    0x429E12B6                           
  Calculate CRC: 0x429E12B6                           
Image 1 is OK             
Try to load image 1.                   
CMD: [boot -raw -z -addr=0x80001000 -max=0x3a0000 flash0.os:]                                                             
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)                                                         
Loading: .. 3732 bytes read                           
Entry at 0x80001000                   
Starting program at 0x80001000                             
CPU revision is: 0002901a                         
Linux version 2.4.35 (dd-wrt@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #1 Sat Fe                                                                               
b 2 08:10:48 CST 2008                     
Setting the PFC to its default value                                   
Determined physical RAM map:                           
 memory: 02000000 @ 00000000 (usable)                                     
On node 0 totalpages: 8192                         
zone(0): 8192 pages.                   
zone(1): 0 pages.                 
zone(2): 0 pages.                 
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd cons                                                                               
ole=ttyS0,115200               
CPU: BCM4785 rev 2 at 300 MHz                             
Using 150.000 MHz high precision timer.                                       
Calibrating delay loop... 299.82 BogoMIPS                                         
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)                                                           
Checking for 'wait' instruction...  unavailable.                                               
POSIX conformance testing by UNIFIX                                   
PCI: Initializing host                     
PCI: Enabling CardBus                     
PCI: Fixing up bus 0                   
PCI: Fixing up bridge                     
PCI: Fixing up bus 1                   
Initializing RT netlink socket                             
Starting kswapd               
pty: 256 Unix98 ptys configured                               
Broadcom Watchdog Timer: 0.05, timer margin: 30 sec                                                   
Using buffer write method                         
Updating TRX offsets and length:                               
old trx = [0x0000001c, 0x000008e4, 0x0008c110], len=0x00362000 crc32=0x429e12b6                                                                               
new trx = [0x0000001c, 0x000008e4, 0x0008c110], len=0x00380000 crc32=0x1fbef4ff                                                                               
Done   
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o                                                                               
nly   
ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack                                                                         
ip_tables: (C) 2000-2002 Netfilter core team                                           
ipt_random match loaded                       
netfilter PSD loaded - (c) astaro AG                                   
ipt_IPV4OPTSSTRIP loaded                       
VFS: Mounted root (squashfs filesystem) readonly.                                                 
Booting Device:Linksys WRT350N                             
Unknown error 19               
nvram_commit(): end                   
sh: cannot create /proc/switch/eth0/reset: nonexistent directory                                                               
sh: cannot create /proc/switch/eth0/vlan/1/p                                           
sh: cannot create /proc/switch/eth0/vlan/2/ports: nonexistent directory                                                                       
/etc/preinit: line 7: nvram: Unknown error 13                                             
/etc/preinit: line 24: nvram: Unknown error 13                                             
/etc/preinit: line 24: nvram: Unknown error 13                                             
/etc/preinit: line 24: nvram: Unknown error 13                                             
/etc/preinit: line 24: nvram: Unknown error 13                                             
/etc/preinit: line 29: nvram: Unknown error 13                                             
/etc/preinit: line 29: nvram: Unknown error 13                                             
/etc/preinit: line 29: nvram: Unknown error 13                                             
/etc/preinit: line 29: nvram: Unknown error 13                                             
/etc/preinit: line 35: nvram: Unknown error 13                                             
/etc/preinit: line 35: nvram: Unknown error 13                                             
/etc/preinit: line 35: nvram: Unknown error 13                                             
/etc/preinit: line 35: nvram: Unknown error 13                                             
/etc/preinit: line 44: nvram: Unknown error 13                                             
/etc/preinit: line 44: nvram: Unknown error 13                                             
/etc/preinit: line 44: nvram: Unknown error 13                                             
/etc/preinit: line 44: nvram: Unknown error 13                                             
/etc/preinit: line 44: nvram: Unknown error 13                                             
/etc/preinit: line 44: nvram: Unknown error 13                                             
/etc/preinit: line 49: nvram: Unknown error 13                                             
/etc/preinit: line 49: nvram: Unknown error 13                                             
/etc/preinit: line 49: nvram: Unknown error 13                                             
/etc/preinit: line 58: nvram: Unknown error 13                                             
/etc/preinit: line 58: nvram: Unknown error 13                                             
/etc/preinit: line 58: nvram: Unknown error 13                                             
/etc/preinit: line 58: nvram: Unknown error 13                                             
/etc/preinit: line 58: nvram: Unknown error 13                                             
/etc/preinit: line 61: nvram: Unknown error 13                                             
/etc/preinit: line 62: nvram: Unknown error 13                                             
/etc/preinit: line 63: nvram: Unknown error 13                                             
Unknown error 19               
nvram_commit(): end                   
wl: wl driver adapter not found                               
Write wireless mac fail : : Unknown error 19                                           
wl: wl driver adapter not found                               
wl: wl driver adapter not found                               
/usr/sbin/wl: wl driver adapter not found                                         
Unhandled kernel unaligned access in unaligned.c::emulate_load_store_insn, line                                                                               
481:   
$0 : 00000000 1000dc01 00000000 43414341 43414341 802fe33c 810085d4 00000001                                                                           
$8 : 801bcb08 00000000 0000030a 1000dc01 00000000 00000001 00000001 31353734                                                                           
$16: 80328000 802fe320 802fe33c 0000e000 00000053 8033cc20 00000000 ffffffff                                                                           
$24: 00000000 2ac769a0                   81078000 81079dc8 801ad178 8005a0e8               
Build Date: Mon Oct 30 23:22:44 CST 2006 (root@linux)     
Hi : fffff6e2             
Lo : 0000030a     
Copyri
epc   : 8005a0f4    Not tainteddcom Corporation.             
Status: 1000dc03               
Cause : 00002010izing Arena     
PrId  : 0002901atializing PCI. [
Process init (pid: 1, stackpage=81078000)tializing host                     
PCI:
Stack:    800586b4 8107f470 8033ca40 8033a2c0 00000000 8033cab0 8033ca400x3c = 0x00000100                 
PCI bus 0 slot 0/0: vendor 0x14e4 pro
 8033a340 fffffff4 8033cab0 81079e38 80041390 00000002 00000004 80041294                                   
PCI bus 0 slot 1/0: vendor 0x14e4 p
 00000000 8033ca40 00000000 00000000 81079ee0 8033cc20 8033a340 80042068                                             
PCI bus 0 slot 2/0: vendo
 0000030c 00214000 0000004b 7fffffff 00400000 80222009 00000004 01c5a                                                                 
 
683b  02629821             
Kernel panic: Attempted to kill init!ot 7/0: vendor 0x14e4 product 0x4718
 <0>Rebooting in 5 seconds..Please stand by while rebooting the system...                                   
0x02)


a good boot using openvpn_generic rc5

Code:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)                                             
Build Date: Mon Oct 30 23:22:44 CST 2006 (root@linux)                                                     
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.                                                       

Initializing Arena                 
Initializing PCI. [normal]                         
PCI: Initializing host                     
PCI: Enabling CardBus                     
SB PCI init done               

0x3c = 0x00000100                 
PCI bus 0 slot 0/0: vendor 0x14e4 product 0x0800 (flash memory, rev 0x02)                                                                         
PCI bus 0 slot 1/0: vendor 0x14e4 product 0x471f (ethernet network, rev 0x02)                                                                             
PCI bus 0 slot 2/0: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x10                                                                               
, rev 0x02)           
PCI bus 0 slot 2/1: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x20                                                                               
, rev 0x02)           
PCI bus 0 slot 3/0: vendor 0x14e4 product 0x471b (USB serial bus, rev 0x02)                                                                           
PCI bus 0 slot 4/0: vendor 0x14e4 product 0x0804 (PCI bridge, rev 0x02)                                                                       
PCI bus 0 slot 5/0: vendor 0x14e4 product 0x0816 (MIPS processor, rev 0x02)                                                                           
PCI bus 0 slot 6/0: vendor 0x14e4 product 0x471d (IDE mass storage, rev 0x02)                                                                             
PCI bus 0 slot 7/0: vendor 0x14e4 product 0x4718 (network/computing crypto, rev                                                                               
0x02)     
PCI bus 0 slot 8/0: vendor 0x14e4 product 0x080f (RAM memory, rev 0x02)                                                                       
PCI bus 0 slot 9/0: vendor 0x14e4 product 0x471e (class 0xfe, subclass 0x00, rev                                                                               
 0x02)     
PCI bus 1 slot 0/0: vendor 0x14e4 product 0x4785 (host bridge, rev 0x02)                                                                       
Initializing Devices.                     

No DPN     
This is a Parallel Flash                       
Partition information:                     
boot    #00   00000000 -> 0003FFFF  (262144)                                           
trx     #01   00040000 -> 0004001B  (28)                                       
os      #02   0004001C -> 007F7FFF  (8093668)                                             
nvram   #03   007F8000 -> 007FFFFF  (32768)                                           
Partition information:                     
boot    #00   00000000 -> 0003FFFF  (262144)                                           
trx     #01   00040000 -> 007F7FFF  (8093696)                                             
nvram   #02   007F8000 -> 007FFFFF  (32768)                                           
PCI bus 0 slot 1/0: _pci_map_mem: attempt to map 64-bit region tag =0x800 @ addr                                                                               
=18010004         
PCI bus 0 slot 1/0: _pci_map_mem: addr=0x18010004   pa=0x18010000   pci_mem_spac                                                                               
e_pci_base=0x40000000   pci_mem_space=0x8000000                                               
  mcfg = 000810fe                 
ge0: BCM5750 Ethernet at 0x18010000                                   
CPU type 0x2901A: 300MHz                       
Total memory: 32768 KBytes                         

Total memory used by CFE:  0x80300000 - 0x803A7AB0 (6867                                                       
Initialized Data:          0x8033C900 - 0x8033FCB0 (13232)                                                         
BSS Area:                  0x8033FCB0 - 0x80341AB0 (7680)                                                         
Local Heap:                0x80341AB0 - 0x803A5AB0 (409600)                                                           
Stack Area:                0x803A5AB0 - 0x803A7AB0 (8192)                                                         
Text (code) segment:       0x80300000 - 0x8033C900 (248064)                                                           
Boot area (physical):      0x003A8000 - 0x003E8000                                                 
Relocation Factor:         I:00000000 - D:00000000                                                 

Boot version: v4.2                 
The boot is CFE               

mac_init(): Find mac [00:1C:10:8A:FC:E0] in location 0                                                     
Nothing...         

eou_key_init(): Find key pair in location 4                                           
The eou device id is same                         
The eou public key is same                         
The eou private key is same                           
CMD: [ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0]                                                         
bcm5700: no firmware rendevous                             
eth0: Link speed: 1000BaseT FDX                               
Device eth0:  hwaddr 00-1C-10-8A-FC-E0, ipaddr 192.168.1.1, mask 255.255.255.0                                                                             
        gateway not set, nameserver not set                                           
     0x3E0000   (4063232)       (0xBC040000)                                           
  Offset0: 0x1C         (28)            (0xBC04001C)                                                   
  Offset1: 0x8E4        (2276)  (0xBC0408E4)                                           
  Offset2: 0x897D8      (563160)        (0xBC0C97D8)                                                   
  Header CRC:    0x903C78B1                           
  Calculate CRC: 0x903C78B1                           
Image 1 is OK             
Try to load image 1.                   
CMD: [load -raw -addr=0x803a7ab0 -max=0x3a0000 :]                                                 
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)                                                     
Loading: Failed.               
Could not load :: Timeout occured                                 
CMD: [boot -raw -z -addr=0x80001000 -max=0x3a0000 flash0.os:]                                                             
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)                                                         
Loading: .. 3732 bytes read                           
Entry at 0x80001000                   
Starting program at 0x80001000                             
CPU revision is: 000                   
Linux version 2.4.35 (root@dd-wrt) (gcc version 3.4.4 (OpenWrt-2.0)) #2708 Thu N                                                                               
ov 22 02:55:45 CET 2007                       
Setting the PFC to its default value                                   
Determined physical RAM map:                           
 memory: 02000000 @ 00000000 (usable)                                     
On node 0 totalpages: 8192                         
zone(0): 8192 pages.                   
zone(1): 0 pages.                 
zone(2): 0 pages.                 
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd cons                                                                               
ole=ttyS0,115200               
CPU: BCM4785 rev 2 at 300 MHz                             
Using 150.000 MHz high precision timer.                                       
Calibrating delay loop... 299.82 BogoMIPS                                         
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)                                                           
Checking for 'wait' instruction...  unavailable.                                               
POSIX conformance testing by UNIFIX                                   
PCI: Initializing host                     
PCI: Enabling CardBus                     
PCI: Fixing up bus 0                   
PCI: Fixing up bridge                     
PCI: Fixing up bus 1                   
Initializing RT netlink socket                             
Starting kswapd               
pty: 256 Unix98 ptys configured                               
Using buffer write method                         
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o                                                                               
nly   
ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack                                                                         
ip_tables: (C) 2000-2002 Netfilter core team                                           
ipt_random match loaded                       
netfilter PSD loaded - (c) astaro AG                                   
ipt_IPV4OPTSSTRIP loaded                       
WRT350N GPIO Init                 
5397 switch GPIO-Reset                     
VFS: Mounted root (squashfs filesystem) readonly.                                                 
Booting Device:Linksys WRT350N                             
No such device             
Enable WRT350 LED fix                     
PCI: Enabling device 01:01.0 (0004 -> 0006)
eth1: Broadcom BCM4329 802.11 Wireless Controller 4.80.56.0
sh: cannot create /proc/switch/eth0/reset: Directory nonexistent
sh: cannot create /proc/switch/eth0/vlan/1/ports: Directory nonexistent
sh: cannot create /proc/switch/eth0/vlan/2/ports: Directory nonexistent
No such device
No such device
No such device
No such device
nvram_commit(): end
br0: Bad file descriptor
br0: Bad file descriptor
eth1: Operation not supported
eth1: Invalid argument
eth1: Invalid argument
eth1: Operation not supported
eth1: Operation not supported
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
vlan2: Setting MAC address to  00 1c 10 8a fc e1.
sh: /tmp/.rc_startup: not found
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 152

PostPosted: Sun Feb 03, 2008 1:33    Post subject: Reply with quote
I am having issues with certain targets like dropbear, dhcp-forwarder, wol, lzo, openvpn, snmp, etc.

From svn, these files do not have Makefile in their directories. The Makefile uses rules/configs.mk to set the obj-y strings for all included apps and obj-n for those not included. The all target has the obj-y string which would attempt to make each target contained in obj-y. The problem is that not all directories under router have a Makefile. There are targets set up though rules/all.mk (which sets up targets for the *.mk files under rules), but the *-configure targets do not get run for these.

Am I missing in router/Makefile where the *-configure targets are run?


I believe somethings like the following could fix this in router/Makefile

Add
Code:
obj-configure := $(foreach obj, $(obj-y) $(obj-n),$(obj)-configure)


modify the all target to
Code:
all: clean_target $(obj-configure) $(obj-y) $(LINUXDIR)/.config kernel
Tornado
DD-WRT Developer/Maintainer


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

PostPosted: Sun Feb 03, 2008 5:07    Post subject: Reply with quote
You need to create a small scriptl like this and put it in DD-WRT/src/router

-------------------
#!/bin/sh
export PATH=/opt/4.1.0/bin:$PATH

make configure

-------------------


run that script, it will create the nessasary makefiles, etc for you.
For svn > 8890 you will need a different or additional toolchain 4.2.2 - I just built this for 32bit this weekend, you will find it in my directory

Downloads->others->tornado->toolchains

then you will need to change your path statements from 4.1.0 to 4.2.2 , it needs to be in the /opt/4.2.2 directory

_________________
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
idl0r
DD-WRT Novice


Joined: 02 Jan 2007
Posts: 13

PostPosted: Sun Feb 03, 2008 13:03    Post subject: Reply with quote
Tornado wrote:
You need to create a small scriptl like this and put it in DD-WRT/src/router

-------------------
#!/bin/sh
export PATH=/opt/4.1.0/bin:$PATH

make configure

-------------------


run that script, it will create the nessasary makefiles, etc for you.
For svn > 8890 you will need a different or additional toolchain 4.2.2 - I just built this for 32bit this weekend, you will find it in my directory

Downloads->others->tornado->toolchains

then you will need to change your path statements from 4.1.0 to 4.2.2 , it needs to be in the /opt/4.2.2 directory


mh is it possible that your toolchain archive is broken?
Tornado
DD-WRT Developer/Maintainer


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

PostPosted: Sun Feb 03, 2008 16:34    Post subject: Reply with quote
A little more information would be helpful to understand what you are trying to say ?
_________________
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
idl0r
DD-WRT Novice


Joined: 02 Jan 2007
Posts: 13

PostPosted: Sun Feb 03, 2008 16:57    Post subject: Reply with quote
Tornado wrote:
A little more information would be helpful to understand what you are trying to say ?


tar xvjpf toolchain-x86-4.2.2.tar.bz2 1>/dev/null
http://rafb.net/p/mSCzSH24.html
Tornado
DD-WRT Developer/Maintainer


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

PostPosted: Sun Feb 03, 2008 19:42    Post subject: Reply with quote
I see what you mean, uploading another now.

Thanks

_________________
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
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General 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