glibc for mpc860
Quoted 8 lines · Dan Malek
Quoted 2 lines
Any chance you could put your libc-1.99 (or a pointer to it) up at ftp://linuxppc.cs.nmt.edu/pub/linuxppc/embedded/ ?
It's been there a long time....libc-1.99-8xx.somthing_or_other. It's compiled with the -mcpu=860 flag, has the cache line stuff patched (so you can run copyback on the 8xx), and has the floating point assembler instructions removed. It was built from glibc-0.961212-1o, and is a tar image.
What is the latest glibc that supports the MPC860 processor and where can I get it. I dowloaded the latest glibc (2.1.1) from a GNU mirror and it compiled fine with my egcs-1.1.2 powerpc-linux cross-compiler. I tried adding the -mcpu=860 option and it barfed. Problems with floating point instructions as far as I can tell. I assume that the glibc developers do not consider targets without a floating point processor as a non-priority (I wish the MPC860 had an FPU). It looks like others have ported/modified some glibc sources to work with the -mcpu=860 option. What version is it and where can I get it. Are the modified glibc sources available as an archive and/or are there patches for any other glibc sources.
Thanks,
Brendan Simon.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 10 lines · Dan Malek
Quoted 3 lines · Brendan Simon
... I dowloaded the latest glibc (2.1.1) from a GNU mirror and it compiled fine with my egcs-1.1.2 powerpc-linux cross-compiler. I tried adding the -mcpu=860 option and it barfed.
I still use the old libc-1.99 stuff. I have not looked into using the newer glibc2. I don't use cross compilers because of problems others have had. That could be some of the problem as well.
I just downloaded the tar.gz archive from the LinuxPPC ftp site. It has the libaries but not the source. I thought at least the headers would be in there but it doesn't look like it.
Excuse my ignorance but is the libc-1.99 stuff a GNU product ?
I assume by the statement "I don't use cross compilers" means that you use the native compiler on a LinuxPPC machine (powermac or something). This would mean that the instructions generated are for 601, 603 or whatever the default is. This would surely cause problems on an MPC860 processor wouln't it ?
Quoted 10 lines
Quoted 3 lines
..... I assume that the glibc
developers do not consider targets without a floating point processor as a non-priority (I wish the MPC860 had an FPU).It seems anything that is not the latest and fastest silicon is a non-priority :-). I had the patches for the libraries in the past....no one was interested. If you really need an FPU, you should probably be using something other than an 8xx. I have done lots of cool 8xx applications, mostly communications related. I have never needed an FPU.
I don't have a NEED for an FPU for most projects but I still wish it was available. There aren't too many CPUs these days that don't have one built in (except for 8, 16 and some embedded 32 bit processors). A lot of software these days assumes that an FPU is present (eg. glibc by the looks of it). It would be nice to have an FPU just incase it was useful. I'm sure it wouldn't cost Motorola much to put it on. It's just a wish. Sigh... I thought the MPC8260 would have an FPU but it appears not. Ah well.
Quoted 6 lines
Quoted 3 lines
......It looks like others
have ported/modified some glibc sources to work with the -mcpu=860 option.You shouldn't have to modify anything in the sources to get it to compile. The hardest part is getting the flags in the Makefiles.
I think I used something like "CC=powerpc-linux CFLAGS=-mcpu=860 configure" when I tried compiling glibc. The -mcpu=860 flag was present in the commands generated by Make which caused the glibc build to die. Maybe there is something like -msoft or -nfp that I can try ?
Quoted 5 lines
I attached the single file to be modified for the cache line stuff in the older glibc-1.99 sources. You can also remove the floating point instructions in the set/long jump function, but it is not necessary. Those are the only floating point instructions in the libraries.
I'll have a look.
Thanks,
Brendan Simon.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 5 lines · Brendan Simon
It looks like others
have ported/modified some glibc sources to work with the -mcpu=860 option. What version is it and where can I get it. Are the modified glibc sources available as an archive and/or are there patches for any other glibc sources.
Check the list-archives!
I've already posted patches and instructions twice, the last time just a week ago:
Subject: Re: GLIBC wont compile for MPC860
Date: Thu, 02 Sep 1999 14:27:15 +0200
From: Marcus Sundberg <[email protected]>
//Marcus
Signature · 6 lines
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan/
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: [email protected]
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/One solution to this could be that whoever is resposible for "http://www.ppc.kernel.org/embedded.html" updated the pages. If only to point to the mailing list and the archive that would make life easier for beginners.
Is it Cort Dougan who wrote the pages ??
Quoted 5 lines · Marcus Sundberg
Check the list-archives!
I've already posted patches and instructions twice, the last time just a week ago:
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 3 lines · Kenneth Johansson
One solution to this could be that whoever is resposible for "http://www.ppc.kernel.org/embedded.html" updated the pages. If only to point to the mailing list and the archive that would make life easier for beginners.
Yep. I agree. The embedded mailing lists needs a few more pointers and documentation if possible.
Quoted 3 lines
Quoted 3 lines
Check the list-archives!
I've already posted patches and instructions twice, the last time just a week ago:
I only checked the linuxppc-embedded mailing list. I have just found some references in the linuxppc-dev mailing list.
Brendan Simon.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 6 lines · Brendan Simon
Quoted 3 lines · Kenneth Johansson
One solution to this could be that whoever is resposible for "http://www.ppc.kernel.org/embedded.html" updated the pages. If only to point to the mailing list and the archive that would make life easier for beginners.
I can put whatever you want there. I just don't know how you find that page without reading all of the other PPC pages that tell you that stuff. That page is basically a reminder that you found the FTP server.
I guess I'll try to update it once I get all of the sources checked into CVS.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/