View previous topic :: View next topic |
Author |
Message |
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sat Dec 13, 2008 2:35 am Post subject: Building a 32 bit kernel on a 64 bit system [solved] |
|
|
I'm trying to build a Pentium III system in a chroot environment on my AMD64 X2 system, because it's a whole lot faster than using the ancient Pentium III. I followed the installation doc steps and everything looks good, all the emerges use -march=PentiumIII. However, when trying to build the kernel, both genkernel and make menuconfig only give me x86_64 architecture choices. /usr/share/genkernel/x86/kernel-config-2.6 looks correct and I tried giving the explicit path to genkernel :
genkernel --menuconfig --kernel-config=/usr/share/genkernel/x86/kernel-config-2.6 all
Didn't work. Relevant lines of the config file are:
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.24-gentoo-r4
# Thu Apr 17 08:21:12 2008
#
# CONFIG_64BIT is not set
CONFIG_X86_32=y
# CONFIG_X86_64 is not set
CONFIG_X86=y
But I only get 64 bit choices from menuconfig. There used to be a wiki article about building in a chroot32 environment, but it was lost with the wiki.
Please, how do I do this?
Last edited by Tony0945 on Sat Dec 13, 2008 10:48 am; edited 1 time in total |
|
Back to top |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sat Dec 13, 2008 3:31 am Post subject: |
|
|
make ARCH=i386 menuconfig _________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Dec 13, 2008 5:07 am Post subject: Re: Building a 32 bit kernel on a 64 bit system |
|
|
Tony0945 wrote: | I'm trying to build a Pentium III system in a chroot environment on my AMD64 X2 system ... |
Your kernel (and possibly other things) in the chroot will be built for amd64 unless you do this.
Code: | # linux32 chroot /mnt/gentoo /bin/bash |
|
|
Back to top |
|
|
|