Hi achilles ,
Got ur scripts in the download section and tested them ... they are OK... I am sure that other people over here will also try this and hence I have started this thread so that people could post their experiences ....
I will also try to solve the bug that u have mentioned in the NOTE ....
BTW till now I have only tested it for minibulid (I saw it in the ready_dd-wrt.sh).... and hope compiling other features should not be much of a problem ...
thnx
Yes u r write ... In the script ready-dd_wrt.sh it is specified that build is having features of a mini-build ...
As of now I have not tested it with other .config files but I will definitely check for other features ....
Meanwhile other members can also update us abt problems(if any) in compiling other features ....
Hi,
a minute ago i posted a comment on that download. I didn't see this forum post, sry.
I can't compile dd-wrt with the provided scripts. See my error message here
http://www.myopenrouter.com/download/discussion/10874/Doesn-t-compile/
Do you have any idea what my problem could be?
Which commands did you run to compile dd-wrt with these scripts?
Goddchen
Hi goddchen,
Are u running make clean;make frm router directory or u r directly running make_and_install.sh from DD-WRT/opt....
Which toolchain version u r using ... I would suggest u to use 4.1.0-uclibc-0.9.28
Also have u gone through the steps specified ... All commands have been specified there to compile DD-WRT with these scripts ....
Hey :)
Yes i read the NOTE. I did make clean; make in router directory, which leads me to the same error.
Next i ran the make....sh script which results in the same error :(
I'm using a toolchain built for openwrt. Is that a problem? How may i create a toolchain otherwise?
Goddchen
OK .... I dnt rmmbr which toolchain was used for OpenWRT ... I would suggest u to get the toolchain that I am using ...
The steps have been shown below :
1.wget http://www.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/toolchains/to...
2.tar -jxf toolchains.x86.debian.sp1.tar.bz2
3.sudo ln -s /home/dd-wrt/toolchains/4.1.0-uclibc-0.9.28/ /opt/4.1.0 (I m assuming that toolchains has been untared in /home/dd-wrt)
ln -s /home/dd-wrt/toolchains/4.1.0-uclibc-0.9.28/ /home/dd-wrt/toolchains/4.1.0
4.export PATH=/opt/4.1.0/bin:$PATH
Please do these steps and run ready_dd-wrt.sh and then make clean;make frm router directory ....
Do inform me abt ur findings ....
OK, i'll try out that toolchain tomorrow.
The one is used was built while building openwrt... (download openwrt src -> make menuconfig -> make) that's it.
I'll inform you about success or failure tomorrow :)
Good morning :)
OK, this time i got a little bit further :) But then again a nasty error :(
This occurs when i call ../../make_and_install.sh from within DD-WRT/opt directory (like you told me to).
Any ideas?
Goddchen
hmm ... there is a bug in the script (It has been mentioned as a note also) ... When we compile DD-WRT for the first time we need to run make clean;make from DD-WRT/router directory .....
Plz do this and let me know ...
of course i did that before invoking the make_and_install.sh script.
i went to DD-WRT/src/router and did "make clean; make".
That worked just fine... The error occurs when invoking make_and_install.sh afterwards.
If that worked fine then it means that u r able to compile DD-WRT distribution .... Now do a checking run make clean;make;make install
frm DD-WRT/router and let me know ... As build with the script failed I am suggesting u to do make clean and make again and then run make install ....
By DD-WRT/router you mean DD-WRT/src/router, right? Because i don't have DD-WRT/router :(
Now running make clean in router directory works fine. Running make fails:
I'm a little depressed right now :(
Well ,u shud not be depressed ..... compiling DD-WRT is an uphill task .. BTW I meant the same router directory i.e DD-WRT/src/router ....
Coming to the error that u are getting make sure that u use 4.1.0 version of toolchain .... It seems that u are using 3.4.6 -uclibc-0.9.28 ... I used to get exactly the same error as u whenever I used 3.4.6 ..... so make sure that you do:
export PATH=/opt/4.1.0/bin:$PATH ....
It seems we are doing something wrong in toolchain setup .... dnt lose hope ... and keep me posted abt ur proceedings ....
Hey, toolchain 4.x did the trick (nearly...) :)
Compilation and installation seems to work now (i used your make_and_install.sh script).
But now there's the next problem:
Somehow there is no vmlinuz file. Even find ./ -name vmlinuz doesn't find anything. Maybe it's named differently? The directory src/router/mipsel-uclibc/ onyl contains two directories: "install" and "target".
I'm off for today. See you tomorrow :)
Goddchen
OK .... that's grt .... not being able to find vmlinuz means there is something wrong in make or install process ....
Did u run the script make_and_install.sh b4 running make clean;make from router ..
I am insisting to run make clean;make ;make install from the router directory at first ... this helps in tracing out if smthing wrong happens .... using the script directly makes it vey difficult to trace out the pblm ...
I think we are almost there ...
Just tell me what u r getting when u run make clean;make;make install from the router directory ... Are these 3 steps happening properly .... lets hope 2mrw we will be able to get it compiled 4 u ....
Good morning :)
This is what i'm normally doing (should be ok, right?)
I'm currently testing the hints from your last post and will inform you...
Damn, got a new error :(
Kommando nicht gefunden means command not found and Fehler means error. Just to make everything clear.
why is it looking for an opt directory at the root of my filesystem? Of course there is no 3.3.6....mipsel... folder at all. Why doesn't it use the gcc in the toolchains folder like it did on all the other files before?
Any idea?
Good morning Goddchen ... I saw both of ur last posts ... It looks OK but somewhere in README files that are there in DD-WRT distribution I read that toolchain should be in /opt that's why I keep them in /opt ....
I would suggest u to keep them in /opt for the time being ....
In the post that I sent u containing instructions for downloading tool-chains ..I mentioned how to create a soft link between ur toolchain and /opt/4.1.0 ..just look into those steps .... and let me know ..
One more thing I obsrved from ur posts that u have not kept the script "make_and_install.sh" in DD-WRT/opt ...it should be there if u want to use it without any modification ....
If u keep it at some other place u need to modify it to accomodate different locations which have been given relative to DD-WRT/opt
ok, i did create the symlinks. Sorry that i forgot to do so before :(
So i created /opt/4.1.0 pointing to my 4.1.0 toolchain. But still the makefile looks in /opt/3.3.6 for the cross compiler. I now just did a symlink from /opt/3.3.6 pointing to my 4.1.0 toolchain. Let's see if that helps... (compiling atm)
ok it now compiled a little further. Next error:
hmmm ... when r u getting this error running make clean;make frm DD-WRT/src/router or running the script ....
exactly
sorry but I did not get u ... u r getiing this error by running script ,right ?????
i did:
OK ... let me look into it ... I have not come across such an error ... I will inform u ASAP ...
do you have any instant messenger contact? Before we are banned for spamming the forum... ;)
ICQ: 81608514
Skype: Goddchen
GTalk: [email protected]
oh man, i'm getting crazy here ;)
each time i do a fresh clean new run i get another error :(
This time a realy strange one:
Of course it can't find that file, because there is no such user (seg) on my system at all. Seems like there is an absolute path in some makefile somewhere :(
But then i ask myself: why didn't i get that error before?
Sorry man but I have neither of them .... I will create an account in gtalk and give u the id .... In the mean time we can continue here ... Dnt think we r doing any thing that will spam the site ... We r just in the middle of learning something which well help others too .. :)
ya u r really throwing some strange errors ... :) ... dnt know why u r getting such behavior ... give me some time to look into it ... I will definitely let u know ...
you're right.
and you can be sure, when i get this thing working at the end i'll write everything down here somewhere so that it helps others ;)
In the meantime i think i have made some progress. After some google search for that asm error message, i found that it's a problem of the 4.1.x gcc. It's some more restrictive then the 3.x version. So i'm trying now to compile the kernel with the 3.x gcc and the rest with 4.x gcc...
And the other problem with the absolute path in the makefile: it's realy an absolute path in that makefile, for now i just changed it to the abs. path that fits for me...
Pages