Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Building a 32 bit kernel on a 64 bit system [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sat Dec 13, 2008 2:35 am    Post subject: Building a 32 bit kernel on a 64 bit system [solved] Reply with quote

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
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sat Dec 13, 2008 3:31 am    Post subject: Reply with quote

make ARCH=i386 menuconfig
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Dec 13, 2008 5:07 am    Post subject: Re: Building a 32 bit kernel on a 64 bit system Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum