* Compiling an i386 kernel on AMD Opteron
@ 2003-09-04 9:52 Stephan von Krawczynski
2003-09-04 10:15 ` Mikael Pettersson
0 siblings, 1 reply; 4+ messages in thread
From: Stephan von Krawczynski @ 2003-09-04 9:52 UTC (permalink / raw)
To: linux-kernel
Hello,
is it possible to compile a kernel on Opteron for i386 (32-bit) and not 64 bit
Opteron with usual make procedures?
When I do a simple "make menuconfig" I can only see the Opteron processor type
in "Processor type and features" ...
Regards,
Stephan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compiling an i386 kernel on AMD Opteron
2003-09-04 9:52 Compiling an i386 kernel on AMD Opteron Stephan von Krawczynski
@ 2003-09-04 10:15 ` Mikael Pettersson
2003-09-04 17:24 ` Stephan von Krawczynski
0 siblings, 1 reply; 4+ messages in thread
From: Mikael Pettersson @ 2003-09-04 10:15 UTC (permalink / raw)
To: Stephan von Krawczynski; +Cc: linux-kernel
Stephan von Krawczynski writes:
> Hello,
>
> is it possible to compile a kernel on Opteron for i386 (32-bit) and not 64 bit
> Opteron with usual make procedures?
>
> When I do a simple "make menuconfig" I can only see the Opteron processor type
> in "Processor type and features" ...
You need to learn about cross-compilation.
make ARCH=i386
is the first step for you. Most people doing this also have cross-compilation
tool sets (compilers, linkers, libcs etc), and the CROSS_COMPILE= make
variable can be set to pick those up.
E.g., I do
make ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-
or
make ARCH=ppc CROSS_COMPILE=ppc-unknown-linux-
when building x86-64 or ppc32 kernels on an i386 host.
Your x86-64 gcc should be able to generate 32-bit binaries using
the -m32 flag, so something like make ARCH=i386 CFLAGS=-m32 might work.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compiling an i386 kernel on AMD Opteron
2003-09-04 10:15 ` Mikael Pettersson
@ 2003-09-04 17:24 ` Stephan von Krawczynski
2003-09-04 18:52 ` Mikael Pettersson
0 siblings, 1 reply; 4+ messages in thread
From: Stephan von Krawczynski @ 2003-09-04 17:24 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: linux-kernel
On Thu, 4 Sep 2003 12:15:17 +0200
Mikael Pettersson <mikpe@csd.uu.se> wrote:
> Stephan von Krawczynski writes:
> > Hello,
> >
> > is it possible to compile a kernel on Opteron for i386 (32-bit) and not 64
> > bit Opteron with usual make procedures?
> >
> > When I do a simple "make menuconfig" I can only see the Opteron processor
> > type in "Processor type and features" ...
>
> You need to learn about cross-compilation.
Do you really call it cross-compilation if you are working on a 32-bit linux
(Opteron driven) and try to compile a new kernel for the very same box?
I guess it should indeed be possible to recognise that at least opterons are
able to support multiple platforms. That's why I think one should be able to
select them at menuconfig rather than via make options. Sure this processor is
somehow unique, on the other hand you are as well able to compile for 386 on a
P4. I know this is not really comparable but it points roughly in the same
direction...
Regards,
Stephan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compiling an i386 kernel on AMD Opteron
2003-09-04 17:24 ` Stephan von Krawczynski
@ 2003-09-04 18:52 ` Mikael Pettersson
0 siblings, 0 replies; 4+ messages in thread
From: Mikael Pettersson @ 2003-09-04 18:52 UTC (permalink / raw)
To: Stephan von Krawczynski; +Cc: linux-kernel
Stephan von Krawczynski writes:
> On Thu, 4 Sep 2003 12:15:17 +0200
> Mikael Pettersson <mikpe@csd.uu.se> wrote:
>
> > Stephan von Krawczynski writes:
> > > Hello,
> > >
> > > is it possible to compile a kernel on Opteron for i386 (32-bit) and not 64
> > > bit Opteron with usual make procedures?
> > >
> > > When I do a simple "make menuconfig" I can only see the Opteron processor
> > > type in "Processor type and features" ...
> >
> > You need to learn about cross-compilation.
>
> Do you really call it cross-compilation if you are working on a 32-bit linux
> (Opteron driven) and try to compile a new kernel for the very same box?
Not if you're running a 32-bit kernel on the Opteron, but your statement above,
> > > When I do a simple "make menuconfig" I can only see the Opteron processor
> > > type in "Processor type and features" ...
indicated (to me at least) that you were running a 64-bit kernel.
What does `uname -m' say?
make mrproper and try again?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-04 18:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-04 9:52 Compiling an i386 kernel on AMD Opteron Stephan von Krawczynski
2003-09-04 10:15 ` Mikael Pettersson
2003-09-04 17:24 ` Stephan von Krawczynski
2003-09-04 18:52 ` Mikael Pettersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox