Problem building Crosstool for MIPSel for LinkSys wireless router

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Hello from Gregg C Levine
New problem now. I am now trying to build the cross compilation tools for the
LinkSys wireless router, and having done two things. One was making sure I had a
non-root user ID to run things, and the other was to create the necessary places
for
the Crosstool to work. (I also assigned them to the user ID.) However towards
the
end of the whole process, I see this strange error message:
/mipsel-unknown-linux-gnu/include -D_LIBC_REENTRANT -include
../include/libc-sym                bols.h  -DPIC   -o
/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-linux-gnu/g                
cc-3.2.3-glibc-2.2.3/build-glibc/misc/ptrace.o
In file included from /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.
    
           2.3/mipsel-unknown-linux-gnu/include/linux/user.h:1,
                 from ../sysdeps/unix/sysv/linux/sys/user.h:1,
                 from ../sysdeps/unix/sysv/linux/ptrace.c:22:
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-lin
 
              ux-gnu/include/asm/user.h:12:21: asm/reg.h: No such file or
directory
In file included from /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.
    
           2.3/mipsel-unknown-linux-gnu/include/linux/user.h:1,
                 from ../sysdeps/unix/sysv/linux/sys/user.h:1,
                 from ../sysdeps/unix/sysv/linux/ptrace.c:22:
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-lin
 
              ux-gnu/include/asm/user.h:38: `EF_SIZE' undeclared here (not in a
function)
make[2]: *** [/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-linux-gnu/gcc-3.
  
             2.3-glibc-2.2.3/build-glibc/misc/ptrace.o] Error 1
make[2]: Leaving directory `/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-li
    
           nux-gnu/gcc-3.2.3-glibc-2.2.3/glibc-2.2.3/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-li
    
           nux-gnu/gcc-3.2.3-glibc-2.2.3/glibc-2.2.3'
make: *** [all] Error 2
who4@who4:/usr/src/crosstool-0.28-rc37$

Curiously enough, it was the same error message that I saw while attempting to
build
a generic MIPSel tool chain.
------------
Gregg C Levine drwho8 atsign att dot net
"This signature will self destruct after reading."
(Remove gizmo in e-mail address to facilitate responding by e-mail.)


Re: Problem building Crosstool for MIPSel for LinkSys wireless router
drwho8__NOTME__@att.net (Gregg C Levine) wrote :

[cut]

why are you building glibc toolchain ? and why on earth are you messing
with your filesystem (/usr/..) instead of keeping everything in
/home/.. ?
Try Erics toolchain script from uclibc.org , worked for me (Mips also).

Pozdrawiam.
--
RusH   //
 http://randki.o2.pl/profil.php?id_r35%2019
We've slightly trimmed the long signature. Click to see the full one.
Re: Problem building Crosstool for MIPSel for LinkSys wireless router
Hello from Gregg C Levine
Why? Because that cross compilation tool chain is what was suggested for
building
images to go into a certain specie of router. I haven't got it here, in fact I
don't even
have a wireless network. But it might end up being here, so I am investigating
it.
-------
Gregg C Levine drwho8 atsign att dot net
"This signature does not exist! Please disregard."
(Remove gadget to respond by e-mail.)
snipped-for-privacy@pf.pl says...
Quoted text here. Click to load it


Re: Problem building Crosstool for MIPSel for LinkSys wireless router
drwho8__NOTME__@att.net (Gregg C Levine) wrote :

Quoted text here. Click to load it

Linksys (broadcom 4712 mips) firmwares are build with ucLibc toolchain,
get yourslefe script from :
http://www.uclibc.org/cgi-bin/cvsweb/toolchain/gcc-3.3.x.tar.gz ?
view=tar

works like a charm (dont forget to configure uclibc)


Pozdrawiam.
--
RusH   //
 http://randki.o2.pl/profil.php?id_r35%2019
We've slightly trimmed the long signature. Click to see the full one.
Re: Problem building Crosstool for MIPSel for LinkSys wireless router
Hello from Gregg C Levine
Now they are indeed. And Dan Kegel's Crosscompile script mentions it. So do the
websites that I have looked at. However, the 1.3.x series of firmware blobs were
not. As always in this business, it depends. Nor does that help me with my
problems.
------------
Gregg C Levine drwho8 atsign att dot net
"This signature was never even here."
(Remove gadget when replying by e-mail.)
snipped-for-privacy@pf.pl says...
Quoted text here. Click to load it


Re: Problem building Crosstool for MIPSel for LinkSys wireless router
drwho8__NOTME__@att.net (Gregg C Levine) wrote :

Quoted text here. Click to load it

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


stop topposting !
What stops you from using uclibc toolchain ? i'm confused.

Pozdrawiam.
--
RusH   //
 http://randki.o2.pl/profil.php?id_r35%2019
We've slightly trimmed the long signature. Click to see the full one.
Re: Problem building Crosstool for MIPSel for LinkSys wireless router
Hello from Gregg C Levine
Simple. The lack of a machine to work with. This is still theoretical work. And
every
time I look at that library, it gets more complicated. Even though Erik has
simplified
the configration process.

As for the other request, in word: no. I'll stop doing that, when the regulars
start
complaining. There aren't any specific rules here.
Gregg C Levine drwho8 atsign att dot net
"This signature is currently freezing itself on Hoth and loving it."
(Please remove gizmo from headers when replying by e-mail.)





snipped-for-privacy@pf.pl says...
Quoted text here. Click to load it


Re: Problem building Crosstool for MIPSel for LinkSys wireless router
drwho8__NOTME__@att.net (Gregg C Levine) wrote :

Quoted text here. Click to load it

? i'm more confused. WHY are you posting to comp.os.linux.embedded if
you dont have a linux machine (or at least Cygwin) ?

Quoted text here. Click to load it

oh, its not for looking at it, its for running it, you run it, wait,
and thats it, its done.

Quoted text here. Click to load it

RFC 1855

Pozdrawiam.
--
RusH   //
 http://randki.o2.pl/profil.php?id_r35%2019
We've slightly trimmed the long signature. Click to see the full one.
Re: Problem building Crosstool for MIPSel for LinkSys wireless router
Hello from Gregg C Levine
I think you missed the point. Again. I have a Linux box. Right now he's busy
have a
second go at building the Kegel Crosstool. As far as using uClibc, not until I
need
to. And as for point me to a RFC.... Won't work. That's a good suggestion, but I
meant complaints from other members. I need eight more to make complaints. On
another forum, this one an e-mail list, the list owner/manager grouched, so that
time I
went along with it.
-----
Gregg C Levine drwho8 atsign att dot net
"This signature supports the Rebel Alliance to restore the Republic."
(Remember to remove device when considering an e-mail reply."

snipped-for-privacy@pf.pl says...
Quoted text here. Click to load it


Re: Problem building Crosstool for MIPSel for LinkSys wireless router
drwho8__NOTREALLYME__ snipped-for-privacy@att.net (Gregg C Levine) wrote :

Quoted text here. Click to load it

I think its time for an insult - are you too stupid to post according
to netiquette ? (you dont have to answer - its a rethorical question)

BTW I got 2 Linksys boxes (wrt) running linux/ucLibc, but I guess that
you know better ...

Pozdrawiam.
--
RusH   //
 http://randki.o2.pl/profil.php?id_r35%2019
We've slightly trimmed the long signature. Click to see the full one.
Re: Problem building Crosstool for MIPSel for LinkSys wireless router
Quoted text here. Click to load it

Hi Gregg,
I'm a regular (although I don't check in here as often
as I do on snipped-for-privacy@sources.redhat.com), and I do request that you try to not
toppost.  We can read your posts either way, but
trimming properly and replying under the gist of the original
post is considered good style.

Now, as to your problem:

Quoted text here. Click to load it
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-linux-gnu/include/linux/user.h:1,
Quoted text here. Click to load it
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-linux-gnu/include/asm/user.h:12:21:
asm/reg.h: No such file or directory
 > ...
 > who4@who4:/usr/src/crosstool-0.28-rc37$

$ grep LINUX_DIR */gcc-3.2.3-glibc-2.2.3.dat
crosstool-0.28-rc33rpm/gcc-3.2.3-glibc-2.2.3.dat:LINUX_DIR=linux-2.4.21
crosstool-0.28-rc35/gcc-3.2.3-glibc-2.2.3.dat:LINUX_DIR=linux-2.4.21
crosstool-0.28-rc36/gcc-3.2.3-glibc-2.2.3.dat:LINUX_DIR=linux-2.4.21
crosstool-0.28-rc37/gcc-3.2.3-glibc-2.2.3.dat:LINUX_DIR=linux-2.6.8
crosstool-0.28-rc38/gcc-3.2.3-glibc-2.2.3.dat:LINUX_DIR=linux-2.6.8

It looks like when I moved to linux-2.6.8 across the board, I
caused problems for people trying to build that old configuration.
So the fix is to edit gcc-3.2.3-glibc-2.2.3.dat and set it
back to linux-2.4.21, probably.  Let me know if that helps.
- Dan

Re: Problem building Crosstool for MIPSel for LinkSys wireless router
<<Snipped. See Article.>>
Quoted text here. Click to load it
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-linu
x-gnu/include/linux/user.h:1,
Quoted text here. Click to load it
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-linu
x-gnu/include/asm/user.h:12:21: asm/reg.h: No such file o
Quoted text here. Click to load it
Hello from Gregg C Levine
How's this? Incidentally you were right. I did fix it and it worked. Actually I
also
chose the Release Candidate that you had out before, and that worked. I did what
you suggested this morning, and it worked.
--
Gregg C Levine drwho8 atsign att dot net


Site Timeline