* crosscompile doesn't work :(
@ 2003-04-28 16:25 Gabor Kerenyi
2003-04-28 17:16 ` wait on vr4181 part 2 Steven Seeger
2003-04-28 19:47 ` crosscompile doesn't work :( Jeff Baitis
0 siblings, 2 replies; 5+ messages in thread
From: Gabor Kerenyi @ 2003-04-28 16:25 UTC (permalink / raw)
To: linux-mips
hi!
I'm totally new to MIPS and the bigger trouble that I'm also
new to cross compiling.
I will get a little MIPS board with PCMCIA, USB, serial,
Ethernet, 4Mb flash memory. I have to build a linux for it
from scratch but I have never done cross compiling before.
I use debian (Woody) and I installed the toolchain package,
configured for mipsel-linux, I built the binutils and gcc,
(binutils 2.12, gcc 3.2.3)
I did:
tpkg-make mipsel-linux
cd binutils
debuild
debi
tpkg-install-libc mipsel-linux
cd ../gcc-3.2.3
debuild
debi
I can compile a simple c code, but I can't compile the kernel.
I tried to compile 2.4.19 and I ran into trouble at the beginning:
the 'as' said that -mcpu option is not recognized. OK, I removed
this option. Then everything seemed to be fine but when the
compilation arrived to the arch/mips directiory than I got the
following error messages:
make[1]: Leaving directory `/usr/src/linux/arch/mips/math-emu'
make CFLAGS="-D__KERNEL__ -I/usr/src/linux/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -I /usr/src/linux/include/asm/gcc -G
0 -mno-abicalls -fno-pic -pipe -mips2 -Wa,--trap " -C arch/mips/sni
make[1]: Entering directory `/usr/src/linux/arch/mips/sni'
mipsel-linux-gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -I /usr/src/linux/include/asm/gcc -G
0 -mno-abicalls -fno-pic -pipe -mips2 -Wa,--trap -c int-handler.S -o
int-handler.o
/usr/src/linux/include/asm/mipsregs.h: Assembler messages:
/usr/src/linux/include/asm/mipsregs.h:562: Error: unrecognized opcode
`static inline void tlb_probe(void)'
/usr/src/linux/include/asm/mipsregs.h:563: Warning: rest of line
ignored; first ignored character is `{'
/usr/src/linux/include/asm/mipsregs.h:564: Error: unrecognized opcode
`__asm__ __volatile__('
/usr/src/linux/include/asm/mipsregs.h:565: Warning: rest of line
ignored; first ignored character is `"'
/usr/src/linux/include/asm/mipsregs.h:566: Warning: rest of line
ignored; first ignored character is `"'
/usr/src/linux/include/asm/mipsregs.h:567: Warning: rest of line
ignored; first ignored character is `"'
/usr/src/linux/include/asm/mipsregs.h:568: Warning: rest of line
ignored; first ignored character is `"'
/usr/src/linux/include/asm/mipsregs.h:569: Warning: rest of line
ignored; first ignored character is `}'
The board chose was only a test bacause I don't know anything about
the board I'm going to use. There is a nice Japanese page about it,
but I can't read it.
http://www.tcs-8000.info/products/
Can anyone help? I have to bulid a complete little system in 4Mb
within a month.
I also tried to build the cross compile environment from the sources
directly not using toolchain but I got much less success. it didn't
compile at all (gcc).
Thanks a lot,
Gabor
^ permalink raw reply [flat|nested] 5+ messages in thread
* wait on vr4181 part 2
2003-04-28 16:25 crosscompile doesn't work :( Gabor Kerenyi
@ 2003-04-28 17:16 ` Steven Seeger
2003-04-28 17:16 ` Steven Seeger
2003-04-28 17:24 ` Jun Sun
2003-04-28 19:47 ` crosscompile doesn't work :( Jeff Baitis
1 sibling, 2 replies; 5+ messages in thread
From: Steven Seeger @ 2003-04-28 17:16 UTC (permalink / raw)
To: linux-mips
If there is no wait, then what's that in arch/mips/vr4181/osprey/reset.c ?
void nec_osprey_halt(void)
{
printk("KERN_NOTICE "\n** You can safely turn off the power.\n");
while(1)
__asm__(".set\tmips3\n\t"
"wait\n\t"
".set\tmips0");
}
Steve
^ permalink raw reply [flat|nested] 5+ messages in thread
* wait on vr4181 part 2
2003-04-28 17:16 ` wait on vr4181 part 2 Steven Seeger
@ 2003-04-28 17:16 ` Steven Seeger
2003-04-28 17:24 ` Jun Sun
1 sibling, 0 replies; 5+ messages in thread
From: Steven Seeger @ 2003-04-28 17:16 UTC (permalink / raw)
To: linux-mips
If there is no wait, then what's that in arch/mips/vr4181/osprey/reset.c ?
void nec_osprey_halt(void)
{
printk("KERN_NOTICE "\n** You can safely turn off the power.\n");
while(1)
__asm__(".set\tmips3\n\t"
"wait\n\t"
".set\tmips0");
}
Steve
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: wait on vr4181 part 2
2003-04-28 17:16 ` wait on vr4181 part 2 Steven Seeger
2003-04-28 17:16 ` Steven Seeger
@ 2003-04-28 17:24 ` Jun Sun
1 sibling, 0 replies; 5+ messages in thread
From: Jun Sun @ 2003-04-28 17:24 UTC (permalink / raw)
To: Steven Seeger; +Cc: linux-mips, jsun
On Mon, Apr 28, 2003 at 10:16:18AM -0700, Steven Seeger wrote:
> If there is no wait, then what's that in arch/mips/vr4181/osprey/reset.c ?
Simple - it is a bug. :)
I got a confirmation from NEC that Vr4181 does _not_ have wait instruction.
It should generate an exception though.
In the halt case, kernel is probably in such a zombie state that we
don't even see the exception.
Jun
> void nec_osprey_halt(void)
> {
> printk("KERN_NOTICE "\n** You can safely turn off the power.\n");
> while(1)
> __asm__(".set\tmips3\n\t"
> "wait\n\t"
> ".set\tmips0");
> }
>
> Steve
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: crosscompile doesn't work :(
2003-04-28 16:25 crosscompile doesn't work :( Gabor Kerenyi
2003-04-28 17:16 ` wait on vr4181 part 2 Steven Seeger
@ 2003-04-28 19:47 ` Jeff Baitis
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Baitis @ 2003-04-28 19:47 UTC (permalink / raw)
To: Gabor Kerenyi; +Cc: linux-mips
Gabor:
I just got binutils 2.12, gcc 3.2.3, and glibc 2.2.5 working on my Red Hat
Linux boxen, and I'm targeting mipsel-linux. If you would like the source /
binary RPMs to see what I did, let me know; maybe Alien can fix them up
for you.
I feel your pain concerning the cross compiling. I at first tried to install
GCC 3.2 everything to /opt/toolchains using --prefix and/or other options, but
it seemed like GCC was particularly upset with --prefix. I tried the gcc 3.2.3
source WITHOUT --prefix, and it seemed to configure itself properly and coexist
OK.
Best of luck!
-Jeff
On Mon, Apr 28, 2003 at 06:25:09PM +0200, Gabor Kerenyi wrote:
> hi!
>
> I'm totally new to MIPS and the bigger trouble that I'm also
> new to cross compiling.
> I will get a little MIPS board with PCMCIA, USB, serial,
> Ethernet, 4Mb flash memory. I have to build a linux for it
> from scratch but I have never done cross compiling before.
>
> I use debian (Woody) and I installed the toolchain package,
> configured for mipsel-linux, I built the binutils and gcc,
> (binutils 2.12, gcc 3.2.3)
>
> I did:
> tpkg-make mipsel-linux
> cd binutils
> debuild
> debi
>
> tpkg-install-libc mipsel-linux
>
> cd ../gcc-3.2.3
> debuild
> debi
>
> I can compile a simple c code, but I can't compile the kernel.
> I tried to compile 2.4.19 and I ran into trouble at the beginning:
>
> the 'as' said that -mcpu option is not recognized. OK, I removed
> this option. Then everything seemed to be fine but when the
> compilation arrived to the arch/mips directiory than I got the
> following error messages:
>
> make[1]: Leaving directory `/usr/src/linux/arch/mips/math-emu'
> make CFLAGS="-D__KERNEL__ -I/usr/src/linux/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fomit-frame-pointer -I /usr/src/linux/include/asm/gcc -G
> 0 -mno-abicalls -fno-pic -pipe -mips2 -Wa,--trap " -C arch/mips/sni
> make[1]: Entering directory `/usr/src/linux/arch/mips/sni'
> mipsel-linux-gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fomit-frame-pointer -I /usr/src/linux/include/asm/gcc -G
> 0 -mno-abicalls -fno-pic -pipe -mips2 -Wa,--trap -c int-handler.S -o
> int-handler.o
> /usr/src/linux/include/asm/mipsregs.h: Assembler messages:
> /usr/src/linux/include/asm/mipsregs.h:562: Error: unrecognized opcode
> `static inline void tlb_probe(void)'
> /usr/src/linux/include/asm/mipsregs.h:563: Warning: rest of line
> ignored; first ignored character is `{'
> /usr/src/linux/include/asm/mipsregs.h:564: Error: unrecognized opcode
> `__asm__ __volatile__('
> /usr/src/linux/include/asm/mipsregs.h:565: Warning: rest of line
> ignored; first ignored character is `"'
> /usr/src/linux/include/asm/mipsregs.h:566: Warning: rest of line
> ignored; first ignored character is `"'
> /usr/src/linux/include/asm/mipsregs.h:567: Warning: rest of line
> ignored; first ignored character is `"'
> /usr/src/linux/include/asm/mipsregs.h:568: Warning: rest of line
> ignored; first ignored character is `"'
> /usr/src/linux/include/asm/mipsregs.h:569: Warning: rest of line
> ignored; first ignored character is `}'
>
> The board chose was only a test bacause I don't know anything about
> the board I'm going to use. There is a nice Japanese page about it,
> but I can't read it.
>
> http://www.tcs-8000.info/products/
>
> Can anyone help? I have to bulid a complete little system in 4Mb
> within a month.
>
> I also tried to build the cross compile environment from the sources
> directly not using toolchain but I got much less success. it didn't
> compile at all (gcc).
>
> Thanks a lot,
>
> Gabor
>
>
--
Jeffrey Baitis - Associate Software Engineer
Evolution Robotics, Inc.
130 West Union Street
Pasadena CA 91103
tel: 626.535.2776 | fax: 626.535.2777 | baitisj@evolution.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-04-28 19:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-28 16:25 crosscompile doesn't work :( Gabor Kerenyi
2003-04-28 17:16 ` wait on vr4181 part 2 Steven Seeger
2003-04-28 17:16 ` Steven Seeger
2003-04-28 17:24 ` Jun Sun
2003-04-28 19:47 ` crosscompile doesn't work :( Jeff Baitis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox