Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel build problem
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
Tristanm
Apprentice
Apprentice


Joined: 15 Aug 2008
Posts: 209

PostPosted: Thu Dec 03, 2009 6:18 pm    Post subject: Genkernel build problem Reply with quote

I am attempting to build a general kernel for use on a livecd. Everything has gone smoothly, until I hit compiling the kernel. I attempt to compile it as an x86 kernel, but no matter what changes I make either through the make command, the genkernel "--arch-override" parameter, or even manually editing the .config file, the kernel keeps resetting itself to x86_64. I am chrooted in to an i686 environment, so this does fail every time. Is there something obvious I am missing?
Back to top
View user's profile Send private message
Ma3oxuct
Guru
Guru


Joined: 18 Apr 2003
Posts: 523

PostPosted: Fri Dec 04, 2009 2:44 am    Post subject: Reply with quote

Try doing this before configuring and compiling:

Code:
export ARCH="i386"


Note it might be ARCH="x86"...just use the value you've been trying to force into .config
Back to top
View user's profile Send private message
Tristanm
Apprentice
Apprentice


Joined: 15 Aug 2008
Posts: 209

PostPosted: Fri Dec 04, 2009 5:29 pm    Post subject: Reply with quote

Nope. With i386, i686, and x86 the kernel still makes itself x86_64. It shouldn't be this hard to build an x86 kernel in an x86_64 OS. Especially when chrooted into an x86 environment.

EDIT:Well, after some more messing, it seems to be working now. I'll keep an eye on it.
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 252

PostPosted: Sat Dec 05, 2009 9:56 pm    Post subject: Reply with quote

I hope you didn't forget to ? :
Code:
# linux32 chroot /mnt/gentoo32 /bin/bash


linux32 is the key

:)
Back to top
View user's profile Send private message
Tristanm
Apprentice
Apprentice


Joined: 15 Aug 2008
Posts: 209

PostPosted: Mon Dec 07, 2009 12:40 am    Post subject: Reply with quote

Well, it's built. My only problem is that currently the kernel can't locate the root filesystem located in a squashfs. The squashfs kernel drivers are fully integrated into the kernel (not a module), and I think I have grub set up right, though it doesn't work. If anyone has any knowledge with this, the help would be great.
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