Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't compile 2.4-series kernels after trying to compile 2.5
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
gcostanz
n00b
n00b


Joined: 24 Feb 2003
Posts: 69
Location: Hilton, New York

PostPosted: Sun Mar 23, 2003 2:56 pm    Post subject: Can't compile 2.4-series kernels after trying to compile 2.5 Reply with quote

I tried to compile the 2.5-65 kernel without success. I installed module-init-tools.

Later, after having problems with 2.5.65 I unmerged the development kernel and module-init-tools. I guess this was a mistake, because I now don't seem to have /sbin/depmod anymore. My old kernel (2.4-19) still boot's, but all of my modules are missing or won't load.

So, I figured this was a good time to install the latest stable module anyway. But when I try to compile 2.4-20 I end with an error:

Code:

if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.20-gentoo-r2; fi
/bin/sh: line 1: /sbin/depmod: No such file or directory
make: *** [_modinst_post] Error 127


Can anyone tell me how to fix this problem?

Thanks...
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Sun Mar 23, 2003 3:11 pm    Post subject: Reply with quote

Make sure you have a copy of modutils installed :)
emerge modutils
Back to top
View user's profile Send private message
gcostanz
n00b
n00b


Joined: 24 Feb 2003
Posts: 69
Location: Hilton, New York

PostPosted: Sun Mar 23, 2003 5:30 pm    Post subject: Reply with quote

Thanks. I rebuilt modutils and I now have a working 2.4.-20 kernel. But I still have a problem.

I compiled the kernel with soundcard support as a module for use with ALSA. I then re-emerged alsa-driver and compiled the sound.o kernel module without problems. But when I boot the new kernel my sound modules do not load, and generates errors like:

[code]
/lib/modules/2.4.20-gentoo-r2/kernel/drivers/sound/soundcore.o: unresolved symbol kfree
/lib/modules/2.4.20-gentoo-r2/kernel/drivers/sound/soundcore.o: unresolved symbol sprintf
etc...
[\code]

There is a soundcore.o module in the proper directory.

Any ideas what may be causing this problem? The sound card worked fine under kernel 2.4-19
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Sun Mar 23, 2003 6:16 pm    Post subject: Reply with quote

1) save your kernel's .config files. For every version. Always :)

2) re-compile your kernel and modules, but before you do that, type: make mrproper. This will clean out all remains of previous kernels.
My guess would be that that's the cause of your problem.
Back to top
View user's profile Send private message
gcostanz
n00b
n00b


Joined: 24 Feb 2003
Posts: 69
Location: Hilton, New York

PostPosted: Sun Mar 23, 2003 10:19 pm    Post subject: Reply with quote

Ok. I've switched back to 2.4.19 and re-emerged alsa-drivers and I now have a working system again. It's been a long day-- and I don't like stress on a Sunday. But I've learned a great deal about compiling new kernels, and I want to see this through to a success. Thanks again for you help.

Now, I did not do a make mrproper before I compiled either the 2.4-20 or the 2.5-65 kernels and I had problems with both. I will try again with 2.4-20 following the steps that you recommend. BTW, I was following the step-by-step instructions by IWBCMAN in another thread. The mrproper step was not included. Is this something that must be performed every time a kernel is compiled?

Before I do that, will mrproper prevent me from booting back to 2.4-19? And in particular, if I do need to fall back to the older kernel, will I have to emerge the alsa modules again?

Thanks again for you help...
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