K-computing RTAI benchmark cross-compile
Hi all,
I'm trying to cross-compile the benchmark for RTAI, made by K-computing, to ppc (EP405 board with IBM PPC 405GP cpu).
I use the ELDK compiler-set (which is working perfect, I compiled kernel and rtai with it without any problem).
But when I try to compile the benchmark, I get these errors:
ppc_4xx-gcc -O -Wall -c timer_test.c /tmp/ccUWN8MR.s: Assembler messages:/tmp/ccUWN8MR.s:136: Error: Unrecognized opcode: pushl' /tmp/ccUWN8MR.s:137: Error: Unrecognized opcode: pushl' /tmp/ccUWN8MR.s:138: Error: Unrecognized opcode: rdtsc' /tmp/ccUWN8MR.s:139: Error: Unrecognized opcode: movl' /tmp/ccUWN8MR.s:140: Error: Unrecognized opcode: movl' /tmp/ccUWN8MR.s:141: Error: Unrecognized opcode: popl' /tmp/ccUWN8MR.s:142: Error: Unrecognized opcode: popl' /tmp/ccUWN8MR.s:351: Error: Unrecognized opcode: pushl' /tmp/ccUWN8MR.s:352: Error: Unrecognized opcode: pushl' /tmp/ccUWN8MR.s:353: Error: Unrecognized opcode: rdtsc' /tmp/ccUWN8MR.s:354: Error: Unrecognized opcode: movl' /tmp/ccUWN8MR.s:355: Error: Unrecognized opcode: movl' /tmp/ccUWN8MR.s:356: Error: Unrecognized opcode: popl' /tmp/ccUWN8MR.s:357: Error: Unrecognized opcode: popl'
make: *** [timer_test.o] Fout 1
I assume it's some problem with wrong functions or so, but I really don't know where to look.
PS: The RTAI-dir and Linux-dir are correclty changed in the Makefile.
Anybody a clue how to solve this? Or are there other PPC RTAI benchmarks available?
Regards,
--
Toni Van Remortel
Wetenschappelijk Medewerker - D-science lab
Tel: +32 3 205 61 72 - Fax: +32 3 205 61 95
E-mail: [email protected]
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Dear Toni,
Quoted 3 lines · in message <1062060226.25974.5.camel@toni> you wrote:
I'm trying to cross-compile the benchmark for RTAI, made by K-computing, to ppc (EP405 board with IBM PPC 405GP cpu).
I don't know this benchmakr (URL ?), but judging from the error messages:
Quoted 5 lines
ppc_4xx-gcc -O -Wall -c
timer_test.c/tmp/ccUWN8MR.s: Assembler messages:/tmp/ccUWN8MR.s:136: Error: Unrecognized opcode:pushl' /tmp/ccUWN8MR.s:137: Error: Unrecognized opcode:pushl'/tmp/ccUWN8MR.s:138: Error: Unrecognized opcode: `rdtsc'
...
...I guess that this source file contains inline assembler
instructions, which are NOT meant for a PowerPC processor.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Behind every great man, there is a woman -- urging him on.
-- Harry Mudd, "I, Mudd", stardate 4513.3
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 37 lines
-- Original Message --
Subject: K-computing RTAI benchmark cross-compile
From: Toni Van Remortel <[email protected]>
Reply-To: [email protected]
To: Linuxppc-Embedded <[email protected]>
Date: Thu, 28 Aug 2003 10:43:47 +0200Hi all,
I'm trying to cross-compile the benchmark for RTAI, made by K-computing, to ppc (EP405 board with IBM PPC 405GP cpu).
I use the ELDK compiler-set (which is working perfect, I compiled kernel and rtai with it without any problem).But when I try to compile the benchmark, I get these errors:
ppc_4xx-gcc -O -Wall -c
timer_test.c/tmp/ccUWN8MR.s: Assembler messages:/tmp/ccUWN8MR.s:136: Error: Unrecognized opcode:pushl' /tmp/ccUWN8MR.s:137: Error: Unrecognized opcode:pushl'/tmp/ccUWN8MR.s:138: Error: Unrecognized opcode:rdtsc' /tmp/ccUWN8MR.s:139: Error: Unrecognized opcode:movl'/tmp/ccUWN8MR.s:140: Error: Unrecognized opcode:movl' /tmp/ccUWN8MR.s:141: Error: Unrecognized opcode:popl'/tmp/ccUWN8MR.s:142: Error: Unrecognized opcode:popl' /tmp/ccUWN8MR.s:351: Error: Unrecognized opcode:pushl'/tmp/ccUWN8MR.s:352: Error: Unrecognized opcode:pushl' /tmp/ccUWN8MR.s:353: Error: Unrecognized opcode:rdtsc'/tmp/ccUWN8MR.s:354: Error: Unrecognized opcode:movl' /tmp/ccUWN8MR.s:355: Error: Unrecognized opcode:movl'/tmp/ccUWN8MR.s:356: Error: Unrecognized opcode:popl' /tmp/ccUWN8MR.s:357: Error: Unrecognized opcode:popl'
make: *** [timer_test.o] Fout 1
Quoted 7 lines
I assume it's some problem with wrong functions or so, but I really don't know where to look.
PS: The RTAI-dir and Linux-dir are correclty changed in the
Makefile.Anybody a clue how to solve this? Or are there other PPC RTAI benchmarks available?
The program seems to use x86 asm instructions somehow. Is timer_test.c a user space program or a kernel module? Where can I download it from?
Hope it helps.
Wolfgang.
Wolfgang
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
I reply once to all 3 replies from:
Wolfgang Denk
Wolfgang Grandegger
Ralph Blach
I only quote the message from Wolfgang Denk.
Op do 28-08-2003, om 11:07 schreef Wolfgang Denk:
Quoted 8 lines
Dear Toni,
Quoted 3 lines · in message <1062060226.25974.5.camel@toni> you wrote:
I'm trying to cross-compile the benchmark for RTAI, made by K-computing, to ppc (EP405 board with IBM PPC 405GP cpu).
I don't know this benchmakr (URL ?),
http://www.kcomputing.com/benchmark/
It is mentioned by an article on LinuxDevices.com
(http://www.linuxdevices.com/articles/AT6320079446.html)
Quoted 11 lines
but judging from the error messages:
Quoted 5 lines
ppc_4xx-gcc -O -Wall -c
timer_test.c/tmp/ccUWN8MR.s: Assembler messages:/tmp/ccUWN8MR.s:136: Error: Unrecognized opcode:pushl' /tmp/ccUWN8MR.s:137: Error: Unrecognized opcode:pushl'/tmp/ccUWN8MR.s:138: Error: Unrecognized opcode: `rdtsc'...
...I guess that this source file contains inline assembler
instructions, which are NOT meant for a PowerPC processor.
As far as my C-knowledge goes, I don't see any explicit assembler code in this file. But I might be wrong.
As I could see, the benchmark is written for x86 (well, if you take a look at the Makefile, you might suspect it). I hoped it would cross-compile.
If there are other benchmarks for RTAI on PPC, please tell me. It saves me some work (on the very tight schedule I have these days).
Thank you all.
Regards,
--
Toni Van Remortel
Wetenschappelijk Medewerker - D-science lab
Tel: +32 3 205 61 72 - Fax: +32 3 205 61 95
E-mail: [email protected]
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
JTAG for mpc8245
In reply to Wolfgang DenkHi all,
I am working with custom desgin board based on mc8245 processor. I want to use JTAG utility to update the kernel/bootcode etc. Is the JTAG code is available for this processor. Pl provide the link if its there so that I can download the same.
Thanks & regards,
Rakesh Jagota
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/