* x86(host) --> ppc(tgt) cross-tool-chain
@ 2003-06-06 14:11 brian.auld
2003-06-06 14:33 ` Karim Yaghmour
2003-06-06 17:05 ` Magnus Damm
0 siblings, 2 replies; 11+ messages in thread
From: brian.auld @ 2003-06-06 14:11 UTC (permalink / raw)
To: linuxppc-embedded
Hello,
Using Karim's new book "Building Embedded Linux Systems", has anyone out there successfully built an x86(host) --> ppc(tgt) tool chain using the versions stipulated in the book (gcc 2.95.3, binutils: 2.10.1, glibc, 2.2.1).
If yes:
(a) What host system are you using?
(b) Did you diverge from the directions in the book?
If no:
(a) Can someone out there suggest a known valid combination?
I anticipate needing ssh, some web-server and snmp as application requirements, so I figured it would be prudent to get the tool-chain working with glibc as opposed to uClibc.
-- Brian
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: x86(host) --> ppc(tgt) cross-tool-chain
2003-06-06 14:11 brian.auld
@ 2003-06-06 14:33 ` Karim Yaghmour
2003-06-06 17:05 ` Magnus Damm
1 sibling, 0 replies; 11+ messages in thread
From: Karim Yaghmour @ 2003-06-06 14:33 UTC (permalink / raw)
To: brian.auld; +Cc: linuxppc-embedded
BTW, there's an ongoing thread about exactly this problem
on the embeddedTUX.org mailing list:
http://www.embeddedtux.org/pipermail/etux/2003-June/thread.html
Apparently you're not alone ...
Karim
brian.auld@adic.com wrote:
>
> Hello,
>
> Using Karim's new book "Building Embedded Linux Systems", has anyone out there successfully built an x86(host) --> ppc(tgt) tool chain using the versions stipulated in the book (gcc 2.95.3, binutils: 2.10.1, glibc, 2.2.1).
>
> If yes:
>
> (a) What host system are you using?
>
> (b) Did you diverge from the directions in the book?
>
> If no:
>
> (a) Can someone out there suggest a known valid combination?
>
> I anticipate needing ssh, some web-server and snmp as application requirements, so I figured it would be prudent to get the tool-chain working with glibc as opposed to uClibc.
>
> -- Brian
>
--
Author, Speaker, Developer, Consultant
Pushing Embedded and Real-Time Linux Systems Beyond the Limits
http://www.opersys.com || karim@opersys.com || 514-812-4145
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: x86(host) --> ppc(tgt) cross-tool-chain
@ 2003-06-06 15:00 Lokesh Kumar
2003-06-06 15:10 ` Karim Yaghmour
0 siblings, 1 reply; 11+ messages in thread
From: Lokesh Kumar @ 2003-06-06 15:00 UTC (permalink / raw)
To: 'karim@opersys.com', brian.auld; +Cc: linuxppc-embedded
I built the toolchain on x86 host for PPC, and I used
GCC-2.95.3
GLIBC-2.2.3
Binutils-2.11.92
I did not use Karim's book. I went with "Embedded Linux Interfacing ...."
book.
Lokesh
-----Original Message-----
From: Karim Yaghmour [mailto:karim@opersys.com]
Sent: Friday, June 06, 2003 10:33 AM
To: brian.auld@adic.com
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: x86(host) --> ppc(tgt) cross-tool-chain
BTW, there's an ongoing thread about exactly this problem
on the embeddedTUX.org mailing list:
http://www.embeddedtux.org/pipermail/etux/2003-June/thread.html
Apparently you're not alone ...
Karim
brian.auld@adic.com wrote:
>
> Hello,
>
> Using Karim's new book "Building Embedded Linux Systems", has anyone out
there successfully built an x86(host) --> ppc(tgt) tool chain using the
versions stipulated in the book (gcc 2.95.3, binutils: 2.10.1, glibc,
2.2.1).
>
> If yes:
>
> (a) What host system are you using?
>
> (b) Did you diverge from the directions in the book?
>
> If no:
>
> (a) Can someone out there suggest a known valid combination?
>
> I anticipate needing ssh, some web-server and snmp as application
requirements, so I figured it would be prudent to get the tool-chain working
with glibc as opposed to uClibc.
>
> -- Brian
>
--
Author, Speaker, Developer, Consultant
Pushing Embedded and Real-Time Linux Systems Beyond the Limits
http://www.opersys.com || karim@opersys.com || 514-812-4145
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: x86(host) --> ppc(tgt) cross-tool-chain
2003-06-06 15:00 Lokesh Kumar
@ 2003-06-06 15:10 ` Karim Yaghmour
0 siblings, 0 replies; 11+ messages in thread
From: Karim Yaghmour @ 2003-06-06 15:10 UTC (permalink / raw)
To: Lokesh Kumar; +Cc: brian.auld, linuxppc-embedded
Lokesh Kumar wrote:
> I built the toolchain on x86 host for PPC, and I used
>
> GCC-2.95.3
> GLIBC-2.2.3
> Binutils-2.11.92
>
> I did not use Karim's book. I went with "Embedded Linux Interfacing ...."
> book.
:)
I have to ask: Did this toolchain actually work for you on the target?
I mean, did you try using glibc-2.2.3 on the PPC target? From I've
seen, gcc 2.95.3 with glibc 2.2.3 will successfully generate a glibc,
but the resulting glibc will core dump on the target.
Karim
--
Author, Speaker, Developer, Consultant
Pushing Embedded and Real-Time Linux Systems Beyond the Limits
http://www.opersys.com || karim@opersys.com || 514-812-4145
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: x86(host) --> ppc(tgt) cross-tool-chain
2003-06-06 14:11 brian.auld
2003-06-06 14:33 ` Karim Yaghmour
@ 2003-06-06 17:05 ` Magnus Damm
2003-06-06 17:14 ` Eugene Surovegin
2003-06-06 17:15 ` Matt Porter
1 sibling, 2 replies; 11+ messages in thread
From: Magnus Damm @ 2003-06-06 17:05 UTC (permalink / raw)
To: brian.auld; +Cc: linuxppc-embedded
I don't know about that book and your specific glibc version,
but earlier versions of glibc (2.1.3) needed a patch to correctly
support powerpc processors with 16-byte cachelines like the 4xx- and
8xx-series.
I've built several cross compilers (for ppc) from scratch for use on
x86-based machines using gcc-2.95.3 and glibc-2.1.3. I have tested
several binutils versions, don't remember all right now, but I think
binutils-2.11.2 worked out ok except for some strip command line problems.
And yes, the toolchain was used with mpc8xx processors.
/ magnus
On Fri, 6 Jun 2003 07:11:39 -0700
brian.auld@adic.com wrote:
>
> Hello,
>
> Using Karim's new book "Building Embedded Linux Systems", has anyone out there successfully built an x86(host) --> ppc(tgt) tool chain using the versions stipulated in the book (gcc 2.95.3, binutils: 2.10.1, glibc, 2.2.1).
>
> If yes:
>
> (a) What host system are you using?
>
> (b) Did you diverge from the directions in the book?
>
> If no:
>
> (a) Can someone out there suggest a known valid combination?
>
>
> I anticipate needing ssh, some web-server and snmp as application requirements, so I figured it would be prudent to get the tool-chain working with glibc as opposed to uClibc.
>
> -- Brian
>
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: x86(host) --> ppc(tgt) cross-tool-chain
2003-06-06 17:05 ` Magnus Damm
@ 2003-06-06 17:14 ` Eugene Surovegin
2003-06-06 17:15 ` Matt Porter
1 sibling, 0 replies; 11+ messages in thread
From: Eugene Surovegin @ 2003-06-06 17:14 UTC (permalink / raw)
To: Magnus Damm; +Cc: brian.auld, linuxppc-embedded
At 10:05 AM 6/6/2003, Magnus Damm wrote:
>but earlier versions of glibc (2.1.3) needed a patch to correctly
>support powerpc processors with 16-byte cachelines like the 4xx- and
>8xx-series.
Small correction, 405EP, 405GP, 405GPr (and probably all other 405 based
CPUs),
440GP, 440GX have _32_ byte cacheline.
Eugene.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: x86(host) --> ppc(tgt) cross-tool-chain
2003-06-06 17:05 ` Magnus Damm
2003-06-06 17:14 ` Eugene Surovegin
@ 2003-06-06 17:15 ` Matt Porter
1 sibling, 0 replies; 11+ messages in thread
From: Matt Porter @ 2003-06-06 17:15 UTC (permalink / raw)
To: Magnus Damm; +Cc: linuxppc-embedded
On Fri, Jun 06, 2003 at 07:05:35PM +0200, Magnus Damm wrote:
>
> I don't know about that book and your specific glibc version,
> but earlier versions of glibc (2.1.3) needed a patch to correctly
> support powerpc processors with 16-byte cachelines like the 4xx- and
To be specific, that's only 403 that has a 16-byte cacheline.
--
Matt Porter
mporter@kernel.crashing.org
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: x86(host) --> ppc(tgt) cross-tool-chain
@ 2003-06-06 17:40 Lokesh Kumar
2003-06-06 18:02 ` gdb configuration for powerpc target on pentium pc dong in kang
2003-06-07 2:13 ` x86(host) --> ppc(tgt) cross-tool-chain Karim Yaghmour
0 siblings, 2 replies; 11+ messages in thread
From: Lokesh Kumar @ 2003-06-06 17:40 UTC (permalink / raw)
To: 'karim@opersys.com', Lokesh Kumar; +Cc: brian.auld, linuxppc-embedded
Yes, it does work. I have a small web server running with glibc-2.2.3.
Lokesh
-----Original Message-----
From: Karim Yaghmour [mailto:karim@opersys.com]
Sent: Friday, June 06, 2003 11:11 AM
To: Lokesh Kumar
Cc: brian.auld@adic.com; linuxppc-embedded@lists.linuxppc.org
Subject: Re: x86(host) --> ppc(tgt) cross-tool-chain
Lokesh Kumar wrote:
> I built the toolchain on x86 host for PPC, and I used
>
> GCC-2.95.3
> GLIBC-2.2.3
> Binutils-2.11.92
>
> I did not use Karim's book. I went with "Embedded Linux Interfacing ...."
> book.
:)
I have to ask: Did this toolchain actually work for you on the target?
I mean, did you try using glibc-2.2.3 on the PPC target? From I've
seen, gcc 2.95.3 with glibc 2.2.3 will successfully generate a glibc,
but the resulting glibc will core dump on the target.
Karim
--
Author, Speaker, Developer, Consultant
Pushing Embedded and Real-Time Linux Systems Beyond the Limits
http://www.opersys.com || karim@opersys.com || 514-812-4145
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* gdb configuration for powerpc target on pentium pc
2003-06-06 17:40 x86(host) --> ppc(tgt) cross-tool-chain Lokesh Kumar
@ 2003-06-06 18:02 ` dong in kang
2003-06-07 2:13 ` x86(host) --> ppc(tgt) cross-tool-chain Karim Yaghmour
1 sibling, 0 replies; 11+ messages in thread
From: dong in kang @ 2003-06-06 18:02 UTC (permalink / raw)
To: linuxppc-embedded
I'm trying to debug Linux kernel on the Sandpoint X3 with MPC755 CPU board.
I'm using BDI 2000 with GDB.
I configured gdb v.5.3 as follows
configure --prefix=/usr/local/cross-ppc/host/intel/ --target=powerpc-linux
While I used the gdb with BDI, the breakpoints set by gdb do not work well.
It doesn't stop.
After a while, I typed Ctrl-C to stop it. Then it shows the messages shown
below.
And then it terminates. Could it be GDB configuration problem?
Has anybody got similar problem?
Thanks in advance.
Dong-In
-------------------
Program received signal SIGSTOP, Stopped (signal).
0x0000d048 in todc_mc146818_read_val (addr=255)
at
/opt/hardhat/previewkit/kernel/linux-2.4.17_mvl21/include/asm/io.h:299
299 __asm__ __volatile__("lbz%U1%X1 %0,%1; eieio" : "=r" (ret) :
"m" (*addr));
(gdb) s
Cannot remove breakpoints because program is no longer writable.
It might be running in another process.
Further execution is probably impossible.
todc_mc146818_read_val (addr=32) at todc_time.c:119
119 return inb(todc_info->nvram_data);
--------------------------------------------------------
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: x86(host) --> ppc(tgt) cross-tool-chain
2003-06-06 17:40 x86(host) --> ppc(tgt) cross-tool-chain Lokesh Kumar
2003-06-06 18:02 ` gdb configuration for powerpc target on pentium pc dong in kang
@ 2003-06-07 2:13 ` Karim Yaghmour
1 sibling, 0 replies; 11+ messages in thread
From: Karim Yaghmour @ 2003-06-07 2:13 UTC (permalink / raw)
To: Lokesh Kumar; +Cc: brian.auld, linuxppc-embedded
Lokesh Kumar wrote:
> Yes, it does work. I have a small web server running with glibc-2.2.3.
...
> > I built the toolchain on x86 host for PPC, and I used
> >
> > GCC-2.95.3
> > GLIBC-2.2.3
> > Binutils-2.11.92
It seems the success with a toolchain component version set depends on the
native tools you have on your workstation. Can you tell me what distro
you were using on your workstation when you built glibc 2.2.3 in the
above setup.
Thanks,
Karim
--
Author, Speaker, Developer, Consultant
Pushing Embedded and Real-Time Linux Systems Beyond the Limits
http://www.opersys.com || karim@opersys.com || 514-812-4145
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: x86(host) --> ppc(tgt) cross-tool-chain
@ 2003-06-09 12:17 Lokesh Kumar
0 siblings, 0 replies; 11+ messages in thread
From: Lokesh Kumar @ 2003-06-09 12:17 UTC (permalink / raw)
To: 'karim@opersys.com', Lokesh Kumar; +Cc: brian.auld, linuxppc-embedded
I have Redhat 8.0, which I believe has GCC-3.2
Lokesh
-----Original Message-----
From: Karim Yaghmour [mailto:karim@opersys.com]
Sent: Friday, June 06, 2003 10:14 PM
To: Lokesh Kumar
Cc: brian.auld@adic.com; linuxppc-embedded@lists.linuxppc.org
Subject: Re: x86(host) --> ppc(tgt) cross-tool-chain
Lokesh Kumar wrote:
> Yes, it does work. I have a small web server running with glibc-2.2.3.
...
> > I built the toolchain on x86 host for PPC, and I used
> >
> > GCC-2.95.3
> > GLIBC-2.2.3
> > Binutils-2.11.92
It seems the success with a toolchain component version set depends on the
native tools you have on your workstation. Can you tell me what distro
you were using on your workstation when you built glibc 2.2.3 in the
above setup.
Thanks,
Karim
--
Author, Speaker, Developer, Consultant
Pushing Embedded and Real-Time Linux Systems Beyond the Limits
http://www.opersys.com || karim@opersys.com || 514-812-4145
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2003-06-09 12:17 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-06 17:40 x86(host) --> ppc(tgt) cross-tool-chain Lokesh Kumar
2003-06-06 18:02 ` gdb configuration for powerpc target on pentium pc dong in kang
2003-06-07 2:13 ` x86(host) --> ppc(tgt) cross-tool-chain Karim Yaghmour
-- strict thread matches above, loose matches on Subject: below --
2003-06-09 12:17 Lokesh Kumar
2003-06-06 15:00 Lokesh Kumar
2003-06-06 15:10 ` Karim Yaghmour
2003-06-06 14:11 brian.auld
2003-06-06 14:33 ` Karim Yaghmour
2003-06-06 17:05 ` Magnus Damm
2003-06-06 17:14 ` Eugene Surovegin
2003-06-06 17:15 ` Matt Porter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).