Compiling a i386 kernel on a x64 system.

Paulo Cavalcanti promac at gmail.com
Sun Nov 15 10:41:07 UTC 2009


On Sun, Nov 15, 2009 at 1:56 AM, Michael D. Setzer II <
mikes at kuentos.guam.net> wrote:

> On 14 Nov 2009 at 11:31, Paulo Cavalcanti wrote:
>
> Date sent:      Sat, 14 Nov 2009 11:31:02 -0200
> From:   Paulo Cavalcanti <promac at gmail.com>
> To:     "Community assistance, encouragement,
>        and advice for using Fedora." <fedora-list at redhat.com>
> Subject:        Re: Compiling a i386 kernel on a x64 system.
> Send reply to:  "Community assistance, encouragement,
>        and advice for using Fedora." <fedora-list at redhat.com>
>        and advice for using Fedora." <fedora-list.redhat.com>
>        <mailto:fedora-list-request at redhat.com?subject=unsubscribe>
>        <mailto:fedora-list-request at redhat.com?subject=subscribe>
>
> >
> >
> >
> > On Sat, Nov 14, 2009 at 10:19 AM, Michael D. Setzer II <
> mikes at kuentos.guam.net> wrote:
> >     An earlier message stated that this can be done, but it doesn't seem
> to work
> >     on my system, so perhaps I am missing something.
> >
> >     I use the kernel.org source code, and copy the same .config file I
> use on the
> >     i386 machine. If I run make menuconfig or just make, it prompts for
> >     processor, and only give x86 options..
> >
> >     The new phenom II 955 system can build a kernel in about 12 minutes
> >     versus the 2 hours of the other system, so being able to build with
> the new
> >     system would be a real advantage.
> >
> >     The i386 has Fedora 10, and the x64 has Fedora 11.
> >
> >     Perhaps something else needs to be installed, or some option.
> >
> >
> > Use mock. Otherwise, it will be very difficult to accomplish what you
> want.
> > This is the simplest way of isolating your build from all of the 64 bit
> stuff
> > installed on your system.
> >
>
> In a look at mock, it seems to be for srpms builds. I'm looking at building
> a
> full kernel from source for use in the g4l project that I am the current
> maintainer of. Mostly the kernels are on the CD to allow users to boot and
> do
> disk imaging of the machines. The kernels can also be placed in grub and
> grub4dos as well, but are actually separate from the machine they are build
> on.
>
>
>

You can write your own kernel src.rpm.  You just need to change the source
tarball and adapt the kernel config.

Alternatively, you can open a shell to work, for instance:

mock -r fedora-10-i386 shell

-- 
Paulo Roma Cavalcanti
LCG - UFRJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20091115/ec001710/attachment-0001.htm>


More information about the fedora-list mailing list