This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cross compiling problem


 Note: forwarded message attached. 


		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
--- Begin Message ---
Hi,

i have some problem in building  linux 2.6.20 kernel
for powerpc.

Complete step i have used is as follows,
My host machine : i386, linux2.4.7
Target     :   MPC860, for MBX, linux2.6.20

i) i built tool chain using binutils-2.17, 
gcc-core-4.1.1, gcc-g++-4.1.1, newlib-1.15.0

ii) Configured the toolchain using following option,
       binutils with following options :
              --host=i386-pc-linux
              --target=powerpc-eabi    
       gcc with following options :
              --host=i386-pc-linux
              --target=powerpc-eabi
              --without-headers
              --with-newlib
       newlib with above option (same as binutils)
    again recompiled gcc after install nwelib-1.15.0

iii) Then i tried  to build linux 2.6.20 for target
   with command line option ARCH=powerpc  or ppc, 
   CROSS_COMPILE=powerpc-eabi-

Problems i faced :

- When i build kernel with ARCH=powerpc for MPC8xx for
MBX board following error is coming,
  undefined " Soft_emulate_8xx" ( drivers/built-in.o )
  undefined "dma_pool_alloc" (drivers/built-in.o)

  then  is it becoz of wrong compiler?
  is it becoz kernel configuration error?.
  (make menuconfig)

  or any other error?

- with ARCH=ppc option error comes as
    undefined  reference __eabi for (dummy.o  in
arch/boot/simple/dummy.o)
    is it becoz wrong compiler error ?
    it it becoz format kernel object file
    ( ELF/ EABI) mismtch?
 i think object file to be in EABI format, but those
are in ELF format.
- What is difference between "powerpc" and "ppc"
sub-directory.
- does powerpc-eabi-gcc is right compiler for both ppc
and powerpc arch ( sub-directory)

I am not able proceed to build kernel for MPC8xx for
MBX.

Probably these are stupid question. still  i request
you to help me.I am new to embedded/OS programming.

thanks and regards,
Barisa Kisku


		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


--- End Message ---
--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]