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 ... 10, 11, 12
Author Message
gtj
DD-WRT Novice


Joined: 25 May 2010
Posts: 7

PostPosted: Wed Jun 09, 2010 19:20    Post subject: Reply with quote
I'm seriously stumped...

"make all" in "router" appears to complete successfully with a stripped down config_mini but "make install" in "router" results in...

Code:

[ ! -d lib.mips ] || make -C lib.mips install INSTALLDIR=/a2/src/DD-WRT/src/router/mipsel-uclibc/install/lib.mips
find: `/a2/src/DD-WRT/src/router/mipsel-uclibc/target': No such file or directory
make[1]: Entering directory `/a2/src/DD-WRT/src/router/lib.mips'
make[1]: *** No rule to make target `mipsel/libc.a', needed by `uClibc.map'.  Stop.
make[1]: Leaving directory `/a2/src/DD-WRT/src/router/lib.mips'
make: *** [lib.mips-install] Error 2



No matter what I try, I can't get past the missing target directory. The packages all seem to make correctly, including a 2.6.34 kernel, I just can't figure out how to get them to install to the target directory.

Anyone have any ideas? I saw this problem reported on the first page of this thread but no resolution.

Has anyone got a recent checkout from subversion working?
Sponsor
gtj
DD-WRT Novice


Joined: 25 May 2010
Posts: 7

PostPosted: Wed Jun 09, 2010 20:24    Post subject: Reply with quote
gtj wrote:
I'm seriously stumped...

"make all" in "router" appears to complete successfully with a stripped down config_mini but "make install" in "router" results in...

Code:

[ ! -d lib.mips ] || make -C lib.mips install INSTALLDIR=/a2/src/DD-WRT/src/router/mipsel-uclibc/install/lib.mips
find: `/a2/src/DD-WRT/src/router/mipsel-uclibc/target': No such file or directory
make[1]: Entering directory `/a2/src/DD-WRT/src/router/lib.mips'
make[1]: *** No rule to make target `mipsel/libc.a', needed by `uClibc.map'.  Stop.
make[1]: Leaving directory `/a2/src/DD-WRT/src/router/lib.mips'
make: *** [lib.mips-install] Error 2



No matter what I try, I can't get past the missing target directory. The packages all seem to make correctly, including a 2.6.34 kernel, I just can't figure out how to get them to install to the target directory.

Anyone have any ideas? I saw this problem reported on the first page of this thread but no resolution.

Has anyone got a recent checkout from subversion working?


I knew I'd figure it out as soon as I posted. Apparently there's some confusion in router/Makefile concerning ARCH. The kernel compile needs it set to "mips" but the rest of the makefile needs it set to "mipsel". Sigh.
netserver007
DD-WRT Novice


Joined: 08 Nov 2007
Posts: 4

PostPosted: Wed Aug 04, 2010 16:54    Post subject: Reply with quote
compiling...
rtoledo
DD-WRT User


Joined: 18 Mar 2007
Posts: 99

PostPosted: Sun May 15, 2011 1:00    Post subject: Re: Installing required tools to compile and retreiving svn Reply with quote
rkozola wrote:
I use the following script to install the required programs needed to compile as well as grab the source from svn. Again this is focusing on the src/linux/brmc/linux/v24_2 kernel.

After the system has rebooted, login using the dd-wrt user and the password set during setup. Save the following as get_src_svn.sh and chmod to add permissions to execute. This script will install all requirements and get source from svn.

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
mkdir DD-WRT
mkdir DD-WRT/image
mkdir DD-WRT/src
mkdir DD-WRT/src/linux
mkdir DD-WRT/src/linux/brcm

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

cd DD-WRT/
svn co -N svn://svn.dd-wrt.com/DD-WRT .
svn co svn://svn.dd-wrt.com/DD-WRT/tools
svn co svn://svn.dd-wrt.com/DD-WRT/opt
cd src/
svn co -N svn://svn.dd-wrt.com/DD-WRT/src
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/brcm
svn co svn://svn.dd-wrt.com/DD-WRT/src/linux/brcm/linux.v24_2
ln -s /home/dd-wrt/DD-WRT/src/linux/brcm/linux.v24_2 /home/dd-wrt/DD-WRT/src/linux/linux


I know this post is 3 years and 1 month old, SO I wanted to ask 2 questions to the material in the quote above

1: what is the address for this lisnk as I get a 404
http://www.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/toolchains/toolchains.x86.debian.sp1.tar.bz2

2:something is failing in the SUDO installation because I got a error saying my user name rt is not in the sudoers file, of course being a vi reject i failed to change the contents of sudoers in the /etc folder because it is write protected.

I would appreciate any quick and DIRTY ways to do this, as this is a virtual machine inside a windows 7 box behind a firewall so going it all the way as ROOt is ok with me

BORED CUBAN thanks you all Laughing

_________________
_________________
It's raining but it's time to go ride Othar! you only live once if you do it right
http://antwrp.gsfc.nasa.gov/apod/archivepix.html
_________________
rtoledo
DD-WRT User


Joined: 18 Mar 2007
Posts: 99

PostPosted: Sun May 15, 2011 1:46    Post subject: Reply with quote
ok
wget ftp://dd-wrt.com/others/sourcecode/toolchains/current-toolchains.tar.bz2

this works will keep stabing at it

_________________
_________________
It's raining but it's time to go ride Othar! you only live once if you do it right
http://antwrp.gsfc.nasa.gov/apod/archivepix.html
_________________
rkozola
DD-WRT User


Joined: 27 Oct 2007
Posts: 150

PostPosted: Sun May 15, 2011 4:01    Post subject: Reply with quote
note that current-toolchains.tar.bz2 only contains toolchains that work with x64 version of linux. If you are going to be building in a virtual machine, it will require that use of the x64 version of Windows 7. Also the virtual machine will need to be able to host x64 versions of guest operating systems, and Windows Virtual PC does not support x64 os's.

I switched to 7 x64 using Virtual Box to build some time ago. The instructions posted still work under this environment.

I do have the old toolchains.x86.debian.sp1.tar.bz2, just do not have anyway to host it as it is 70mb. I would still recommend moving up a x64 setup though, as any changes to the toolchain will probably not make it to a x86 version.
rtoledo
DD-WRT User


Joined: 18 Mar 2007
Posts: 99

PostPosted: Sun May 15, 2011 5:49    Post subject: Reply with quote
rkozola wrote:
note that current-toolchains.tar.bz2 only contains toolchains that work with x64 version of linux. If you are going to be building in a virtual machine, it will require that use of the x64 version of Windows 7. Also the virtual machine will need to be able to host x64 versions of guest operating systems, and Windows Virtual PC does not support x64 os's.

I switched to 7 x64 using Virtual Box to build some time ago. The instructions posted still work under this environment.

I do have the old toolchains.x86.debian.sp1.tar.bz2, just do not have anyway to host it as it is 70mb. I would still recommend moving up a x64 setup though, as any changes to the toolchain will probably not make it to a x86 version.


thank you for replying back so fast, it just so happens I'm using it in a win 7 professional 64 bit, I downloaded the latest VM from microsoft.

I'm re-installing the virtual machine as I screwed it up, but now that I know where's it's kept and that I can backup the whole thing to a different folder(with VM shutdown) I will do it.

I have played with linux since the early days late 80's and have never really mastered it ( oh well) and now my memory is just like a old nvram chip.

I had to to the installation of sudo from root and finally figured how to change the sudo settings file and add my user name rt into it instead of dd-wrt as the user name.

I will try to keep posting so that maybe others can use some of my learnings to their help

thanks and more posts to come

_________________
_________________
It's raining but it's time to go ride Othar! you only live once if you do it right
http://antwrp.gsfc.nasa.gov/apod/archivepix.html
_________________
rtoledo
DD-WRT User


Joined: 18 Mar 2007
Posts: 99

PostPosted: Mon May 16, 2011 21:14    Post subject: Reply with quote
rkozola wrote:
note that current-toolchains.tar.bz2 only contains toolchains that work with x64 version of linux. If you are going to be building in a virtual machine, it will require that use of the x64 version of Windows 7. Also the virtual machine will need to be able to host x64 versions of guest operating systems, and Windows Virtual PC does not support x64 os's.

I switched to 7 x64 using Virtual Box to build some time ago. The instructions posted still work under this environment.

I do have the old toolchains.x86.debian.sp1.tar.bz2, just do not have anyway to host it as it is 70mb. I would still recommend moving up a x64 setup though, as any changes to the toolchain will probably not make it to a x86 version.


I think I misunderstood you, win7 64 bit version won't run a 64 bit os in a virtual box? (I installed the x86 dist which is a 32 bit )

I can always make a separate partition and go with a pure Debian amd64 distribution

let me know so I don't waste dd-wrt's bandwidth downloading stuff, as I have no idea how to transfer what is in the virtual machine to a native partition

thank for any input from those that KNOW about this

_________________
_________________
It's raining but it's time to go ride Othar! you only live once if you do it right
http://antwrp.gsfc.nasa.gov/apod/archivepix.html
_________________
rtoledo
DD-WRT User


Joined: 18 Mar 2007
Posts: 99

PostPosted: Tue May 17, 2011 0:07    Post subject: Reply with quote
ok I went and did what any self respecting DD-WRT forum member should do ;Wink I went and investigated that question .

seems Microsoft in their usual fashion made the VPC useless as it does not support ANY 64 bit guest OS's as you said.

so I downloaded Oracle's VM Virtual box 4.0.8 . WOW really nice package for free.

will let you know more....

this info might be nice for one of those empty spots you left for revisions along with the new place to get the latest tool chain located at


wget ftp://dd-wrt.com/others/sourcecode/toolchains/current-toolchains.tar.bz2


this will save a lot of wasted bandwidth for this web site

_________________
_________________
It's raining but it's time to go ride Othar! you only live once if you do it right
http://antwrp.gsfc.nasa.gov/apod/archivepix.html
_________________
Luniz2k1
DD-WRT Guru


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

PostPosted: Wed Nov 16, 2011 22:53    Post subject: Reply with quote
I'm back in the game. Check out the new NVRAM space usage:


DD-WRT_17906.jpg
 Description:
 Filesize:  174.87 KB
 Viewed:  6473 Time(s)

DD-WRT_17906.jpg



_________________
(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?
Goto page Previous  1, 2, 3 ... 10, 11, 12 Display posts from previous:    Page 12 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