Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recompiling kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Xiderpunk
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2003
Posts: 149
Location: London, UK

PostPosted: Thu Mar 06, 2003 3:44 pm    Post subject: Recompiling kernel Reply with quote

I finished installation and was able to boot successfully, however later realised I needed a usb mouse setting in the kernel setup.

So I carried out the following steps again:

Code:
#cd /usr/src/linux
#source /etc/profile
#make menuconfig

(Added the required module with "a")

#make dep && make clean bzImage modules modules_install


This run through for awhile then ended with error 2...

Are these the right steps to take in order to recompile a kernel?

One other question..

I did an emerge -kde and found it has 58 stages! 4 hours later and it is still compiling :-/ is this normal?


Many thanks for any help.

Chris[/code]
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Thu Mar 06, 2003 3:57 pm    Post subject: Reply with quote

KDE: Yes. It takes a helluva long time to compile the window managers from code. I'm running an 1800+ w/512MB of RAM, and I think it took me ~8 hours.
Back to top
View user's profile Send private message
cederberg
Guru
Guru


Joined: 23 Jan 2003
Posts: 349
Location: Stockholm / Sweden

PostPosted: Thu Mar 06, 2003 4:00 pm    Post subject: Re: Recompiling kernel Reply with quote

Xiderpunk wrote:
Are these the right steps to take in order to recompile a kernel?

As far as I can tell, yes. You've probably encountered some kind of configuration problem.

Try checking a bit higher up in the output for the actual error message. The error codes don't say very much about what really happened. Also try searching here in the forums for the error message that you find (or post it in a reply here).

Xiderpunk wrote:
I did an emerge -kde and found it has 58 stages! 4 hours later and it is still compiling :-/ is this normal?

I think so (not using KDE myself). Gnome and KDE are fairly large beasts and take some time to compile...
Back to top
View user's profile Send private message
thinair
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 144
Location: Suisse

PostPosted: Thu Mar 06, 2003 4:02 pm    Post subject: Reply with quote

Everytimes you recompile your kernel with different option..
You should #make mrproper (DONT forget to backup your config file before !)

It clean the source as they were before...

And try again...

make menuconf (load your backup config file)

make dep && make clean bzImage modules modules_install

and it should work... if you select the right option...

Good Luck,

thinair,
Back to top
View user's profile Send private message
Xiderpunk
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2003
Posts: 149
Location: London, UK

PostPosted: Thu Mar 06, 2003 4:12 pm    Post subject: Reply with quote

Thanks guys,

I will wait till the compile of kde finishes then try the kernel again.

When you say backup config file.. I should change the name of the existing one to something like *.old?
Back to top
View user's profile Send private message
thinair
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 144
Location: Suisse

PostPosted: Thu Mar 06, 2003 4:21 pm    Post subject: Reply with quote

I hope it will work for you (the recompile) but perhaps an option is false and that's why it failed... but evertime you recompile and change an option a make mrproper is very important...

Yes I mean a backup of the file...

You can just go in the folder :

cd /usr/sr/linux-2.4.20-gentoo-r1/
cp .config .config_backup

or
make menuconfig (before the make mrproper)
save configuration to a file (other than .config)
then
make mrproper
make menuconfig
load file....

--
thinair
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20485

PostPosted: Thu Mar 06, 2003 4:31 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Xiderpunk
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2003
Posts: 149
Location: London, UK

PostPosted: Thu Mar 06, 2003 6:05 pm    Post subject: Reply with quote

Thank you Thinair, very helpful response.

I will give that a try, feeling a whole lot more sure of what I'm doing now.. just need to wait till this KDE finishes compiling.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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