linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* how to cross compile 2.4.18
@ 2007-01-18 13:29 patel nirav
  2007-01-18 14:05 ` Ming Liu
  2007-01-18 14:25 ` RE : " alayrac
  0 siblings, 2 replies; 3+ messages in thread
From: patel nirav @ 2007-01-18 13:29 UTC (permalink / raw)
  To: linux ppc

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

Hello friends 
  I have installed crosstool-0.42 for the powerpc 604 in the
  /opt/crosstool.
  Now At the time of Installation I use gcc-3.4.1, glibc-2.3.3 and linux kernel 2.4.18,
  Now my question is how to use the crosstool to cross compile the linux kernel 2.4.18 for power pc.
   
  Thanks.


Nirav J Patel
M.Tech(CSE),
Nirma University,
Ahmedabad-382481.
9925138959
 
---------------------------------
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.

[-- Attachment #2: Type: text/html, Size: 1492 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: how to cross compile 2.4.18
  2007-01-18 13:29 how to cross compile 2.4.18 patel nirav
@ 2007-01-18 14:05 ` Ming Liu
  2007-01-18 14:25 ` RE : " alayrac
  1 sibling, 0 replies; 3+ messages in thread
From: Ming Liu @ 2007-01-18 14:05 UTC (permalink / raw)
  To: indianirav, linuxppc-embedded

Hi,
Check the cmds provided by the installed cross-compiler. The cross-compiler 
cmd may looks like powerpc-...-gcc. Use this one instead of the normal gcc. 
Then the binary file is for your target platform.

BR
Ming


>From: patel nirav <indianirav@yahoo.com>
>To: linux ppc <linuxppc-embedded@ozlabs.org>
>Subject: how to cross compile 2.4.18
>Date: Thu, 18 Jan 2007 05:29:34 -0800 (PST)
>
>Hello friends
>   I have installed crosstool-0.42 for the powerpc 604 in the
>   /opt/crosstool.
>   Now At the time of Installation I use gcc-3.4.1, glibc-2.3.3 and linux 
kernel 2.4.18,
>   Now my question is how to use the crosstool to cross compile the linux 
kernel 2.4.18 for power pc.
>
>   Thanks.
>
>
>Nirav J Patel
>M.Tech(CSE),
>Nirma University,
>Ahmedabad-382481.
>9925138959
>
>---------------------------------
>Sucker-punch spam with award-winning protection.
>  Try the free Yahoo! Mail Beta.


>_______________________________________________
>Linuxppc-embedded mailing list
>Linuxppc-embedded@ozlabs.org
>https://ozlabs.org/mailman/listinfo/linuxppc-embedded

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE : how to cross compile 2.4.18
  2007-01-18 13:29 how to cross compile 2.4.18 patel nirav
  2007-01-18 14:05 ` Ming Liu
@ 2007-01-18 14:25 ` alayrac
  1 sibling, 0 replies; 3+ messages in thread
From: alayrac @ 2007-01-18 14:25 UTC (permalink / raw)
  To: 'patel nirav', 'linux ppc'

Hi Nirav,

First you can add the path to your brown new cross compiler in your PATH
(export PATH=3D$PATH:/opt/crosstool/...).=20
    To add it permanently to your PATH just add this export line at the
end of your /home/YOURACCOUNT/.bashrc file, it will be take in account
on next open of a shell.

Then to compile the kernel you can do
   make ARCH=3Dppc menuconfig=20
   make ARCH=3Dppc CROSS_COMPILE=3Dpowerxxx- dep zImage
       with powerxxx- the prefix of your cross compiler (in my case it
is powerpc-405-linux-gnu- dont forget the last =96 of the prefix)
or=20
   you can modify the Makefile in the roort directory of your kernel
source and change ARCH and CROSS_COMPILE and then just type
   make menuconfig
   make dep zImage

NOTE : I=92m not sure if ARCH is ppc or powerpc in your case.

Regards

Chris

-----Message d'origine-----
De=A0: =
linuxppc-embedded-bounces+christophe.alayrac=3Dcresitt.com@ozlabs.org
[mailto:linuxppc-embedded-bounces+christophe.alayrac=3Dcresitt.com@ozlabs=
.
org] De la part de patel nirav
Envoy=E9=A0: jeudi 18 janvier 2007 14:30
=C0=A0: linux ppc
Objet=A0: how to cross compile 2.4.18

Hello friends=20
I have installed crosstool-0.42 for the powerpc 604 in the
/opt/crosstool.
Now At the time of Installation I use gcc-3.4.1, glibc-2.3.3 and linux
kernel 2.4.18,
Now my question is how to use the crosstool to cross compile the linux
kernel 2.4.18 for power pc.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-18 14:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-18 13:29 how to cross compile 2.4.18 patel nirav
2007-01-18 14:05 ` Ming Liu
2007-01-18 14:25 ` RE : " alayrac

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).