* glibc and kernel build problems (EST8260)
@ 2000-11-14 19:55 Brian Ford
2000-11-15 12:33 ` diekema_jon
0 siblings, 1 reply; 5+ messages in thread
From: Brian Ford @ 2000-11-14 19:55 UTC (permalink / raw)
To: linuxppc-embedded
I am trying to build glibc and the fsmlabs kernel for the EST8260 from
scratch and am having a few problems.
For glibc, I have read the HowTo and I think I applied the proper glibc
patches. I have also patched my gcc specs file. Here is where I am
dying:
powerpc-linux-gcc -nostdlib -nostartfiles -r -o
/home/ford/linux/build/glibc/elf/librtld.os '-Wl,-('
/home/ford/linux/build/glibc/elf/dl-allobjs.os
/home/ford/linux/build/glibc/libc_pic.a -lgcc '-Wl,-)'
powerpc-linux-gcc -nostdlib -nostartfiles -shared -o
/home/ford/linux/build/glibc/elf/ld.so \
/home/ford/linux/build/glibc/elf/librtld.os \
-Wl,--version-script=/home/ford/linux/build/glibc/ld.so.map
-Wl,-soname=ld.so.1
/home/ford/linux/tools/powerpc-linux/bin/ld: unable to find version
dependency `GLIBC_2.0'
collect2: ld returned 1 exit status
For the kernel, I get:
make[2]: Entering directory
`/home/ford/linux/src/linuxppc_fsm/arch/ppc/mm'
powerpc-linux-gcc -D__KERNEL__ -I/home/ford/linux/src/linuxppc_fsm/include
-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
-D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2
-Wno-uninitialized -mmultiple -mstring -c -o init.o init.c
init.c: In function `__ioremap':
init.c:418: `isa_mem_base' undeclared (first use in this function)
init.c:418: (Each undeclared identifier is reported only once
init.c:418: for each function it appears in.)
init.c: In function `hash_init':
init.c:1486: warning: int format, long int arg (arg 2)
init.c: At top level:
init.c:661: warning: `get_mem_prop' declared `static' but never defined
make[2]: *** [init.o] Error 1
Any ideas? Thanks.
--
Brian
Ford Software Engineer
Vital Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: glibc and kernel build problems (EST8260)
2000-11-14 19:55 glibc and kernel build problems (EST8260) Brian Ford
@ 2000-11-15 12:33 ` diekema_jon
2000-11-15 15:25 ` Brian Ford
0 siblings, 1 reply; 5+ messages in thread
From: diekema_jon @ 2000-11-15 12:33 UTC (permalink / raw)
To: Brian Ford; +Cc: linuxppc-embedded
> For glibc, I have read the HowTo and I think I applied the proper glibc
> patches. I have also patched my gcc specs file. Here is where I am
> dying:
I would go to MontaVista http://www.mvista.com/ and get their CDK.
They have already done this work and more.
ftp://ftp.mvista.com/pub/CDK/1.2/
> make[2]: Entering directory
> `/home/ford/linux/src/linuxppc_fsm/arch/ppc/mm'
> powerpc-linux-gcc -D__KERNEL__ -I/home/ford/linux/src/linuxppc_fsm/include
> -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
> -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2
> -Wno-uninitialized -mmultiple -mstring -c -o init.o init.c
> init.c: In function `__ioremap':
> init.c:418: `isa_mem_base' undeclared (first use in this function)
> init.c:418: (Each undeclared identifier is reported only once
> init.c:418: for each function it appears in.)
> init.c: In function `hash_init':
> init.c:1486: warning: int format, long int arg (arg 2)
> init.c: At top level:
> init.c:661: warning: `get_mem_prop' declared `static' but never defined
> make[2]: *** [init.o] Error 1
You need to change arch/ppc/mm/init.c
dell 1060} diff -c ~/bk/fsmlabs-linux-2.4/arch/ppc/mm/init.c .
*** /usr/people/diekema/bk/fsmlabs-linux-2.4/arch/ppc/mm/init.c Sat Nov 11 09:06:29 2000
--- ./init.c Sat Nov 11 10:28:43 2000
***************
*** 408,413 ****
--- 408,414 ----
*/
if ( p < 16*1024*1024 )
p += _ISA_MEM_BASE;
+ #if !defined(CONFIG_4xx) && !defined(CONFIG_8xx) && !defined(CONFIG_8260)
/*
* Some drivers give us the physical bus address when they
* should give us the physical cpu address. For those cases
***************
*** 416,421 ****
--- 417,423 ----
*/
else if ( p < PCI_DRAM_OFFSET )
p += isa_mem_base;
+ #endif
/*
* Don't allow anybody to remap normal RAM that we're using.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: glibc and kernel build problems (EST8260)
2000-11-15 12:33 ` diekema_jon
@ 2000-11-15 15:25 ` Brian Ford
2000-11-15 15:50 ` diekema_jon
2000-11-15 18:23 ` Dan Malek
0 siblings, 2 replies; 5+ messages in thread
From: Brian Ford @ 2000-11-15 15:25 UTC (permalink / raw)
To: linuxppc-embedded
On Wed, 15 Nov 2000, diekema_jon wrote:
> > For glibc, I have read the HowTo and I think I applied the proper glibc
> > patches. I have also patched my gcc specs file. Here is where I am
> > dying:
>
> I would go to MontaVista http://www.mvista.com/ and get their CDK.
> They have already done this work and more.
>
Do you know if their 8260 glibc is compiled for soft or hard float? Also,
did they apply the less than 32 byte cache line patch? That is removing
optimization for the 8260 instead of fixing things.
These questions and others are why I was hoping someone could help me do
it from scratch myself.
> > make[2]: Entering directory
> > `/home/ford/linux/src/linuxppc_fsm/arch/ppc/mm'
> > powerpc-linux-gcc -D__KERNEL__ -I/home/ford/linux/src/linuxppc_fsm/include
> > -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
> > -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2
> > -Wno-uninitialized -mmultiple -mstring -c -o init.o init.c
> > init.c: In function `__ioremap':
> > init.c:418: `isa_mem_base' undeclared (first use in this function)
> > init.c:418: (Each undeclared identifier is reported only once
> > init.c:418: for each function it appears in.)
> > init.c: In function `hash_init':
> > init.c:1486: warning: int format, long int arg (arg 2)
> > init.c: At top level:
> > init.c:661: warning: `get_mem_prop' declared `static' but never defined
> > make[2]: *** [init.o] Error 1
>
> You need to change arch/ppc/mm/init.c
>
> dell 1060} diff -c ~/bk/fsmlabs-linux-2.4/arch/ppc/mm/init.c .
> *** /usr/people/diekema/bk/fsmlabs-linux-2.4/arch/ppc/mm/init.c Sat Nov 11 09:06:29 2000
> --- ./init.c Sat Nov 11 10:28:43 2000
> ***************
> *** 408,413 ****
> --- 408,414 ----
> */
> if ( p < 16*1024*1024 )
> p += _ISA_MEM_BASE;
> + #if !defined(CONFIG_4xx) && !defined(CONFIG_8xx) && !defined(CONFIG_8260)
> /*
> * Some drivers give us the physical bus address when they
> * should give us the physical cpu address. For those cases
> ***************
> *** 416,421 ****
> --- 417,423 ----
> */
> else if ( p < PCI_DRAM_OFFSET )
> p += isa_mem_base;
> + #endif
>
> /*
> * Don't allow anybody to remap normal RAM that we're using.
>
If this is "the right thing to do", then why is it not in the ppc kernel
tree? I could obviously have done this myself, but I wanted to bring it
to someone's attention who could architect the real fix.
--
Brian Ford
Software Engineer
Vital Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: glibc and kernel build problems (EST8260)
2000-11-15 15:25 ` Brian Ford
@ 2000-11-15 15:50 ` diekema_jon
2000-11-15 18:23 ` Dan Malek
1 sibling, 0 replies; 5+ messages in thread
From: diekema_jon @ 2000-11-15 15:50 UTC (permalink / raw)
To: Brian Ford; +Cc: linuxppc-embedded
> Do you know if their 8260 glibc is compiled for soft or hard float? Also,
> did they apply the less than 32 byte cache line patch? That is removing
> optimization for the 8260 instead of fixing things.
MontaVista has the source RPM's available, so you should be able to
rebuild everything from scratch. If it doesn't meet your needs, then
you can change it.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: glibc and kernel build problems (EST8260)
2000-11-15 15:25 ` Brian Ford
2000-11-15 15:50 ` diekema_jon
@ 2000-11-15 18:23 ` Dan Malek
1 sibling, 0 replies; 5+ messages in thread
From: Dan Malek @ 2000-11-15 18:23 UTC (permalink / raw)
To: Brian Ford; +Cc: linuxppc-embedded
Brian Ford wrote:
> Do you know if their 8260 glibc is compiled for soft or hard float? Also,
> did they apply the less than 32 byte cache line patch? That is removing
> optimization for the 8260 instead of fixing things.
The MontaVista CDK is a complete package built for a specific target.
In the case of the 8260, this is hardware floating point, PowerPC 603
instruction scheduling in the utilities and compilers, and the proper
cache line size (which is 32 bytes). All of the libraries and
applications are built using these tools, and it is highly recommended
you rebuild any applications not provided in the MontaVista CDK
that you may download from other sites rather than just install
generic PowerPC RPMS.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-11-15 18:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-14 19:55 glibc and kernel build problems (EST8260) Brian Ford
2000-11-15 12:33 ` diekema_jon
2000-11-15 15:25 ` Brian Ford
2000-11-15 15:50 ` diekema_jon
2000-11-15 18:23 ` Dan Malek
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).