Results 1 to 7 of 7
Hi all,
i installed gentoo with genkernel but it didnt have a module for my soundcard. So i used make menuconfig and selected the module i needed setting it to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-27-2005 #1Just Joined!
- Join Date
- Sep 2004
- Location
- Birmingham
- Posts
- 70
Recompiling the kernel
Hi all,
i installed gentoo with genkernel but it didnt have a module for my soundcard. So i used make menuconfig and selected the module i needed setting it to 'M'. I then saved my changes and exited. I then ran make modules && make modules_install. I then had the module i needed but when i modprobe it i get a few errors. I read that i might be more successfull to instead of selecting 'M' for the module in make menuconfig i compile it into the kernel by changing it to a *. When i do that and exit and save changes what command do i need to enter (i.e. before i had to enter make modules && make modules_install)? Also will i need to do anything else to get the driver working or because it is compiled into the kernel will it do it itself?
Please remember i installed genkernel, so im not sure if this will have any unwanted effects when recompiling the kernel.
Thanks
- 06-27-2005 #2Linux Newbie
- Join Date
- Jun 2005
- Posts
- 181
I'm not sure about genkernel, but to compile the kernel, use:
Code:make dep && make bzImage modules modules_install
200mhz Pentium 1 with MMX, 128mb RAM, 10gb Seagate HDD. Beastly.
- 06-27-2005 #3Linux Engineer
- Join Date
- Jul 2003
- Location
- Uppsala, Sweden
- Posts
- 1,278
you add specific hardware to the genkernel build like this:
make the changes you need and exitCode:genkernel --menuconfig
edit: make sure /boot is mounted first!Proud to be a GNU/Gentoo Linux user!
- 06-27-2005 #4Just Joined!
- Join Date
- Sep 2004
- Location
- Birmingham
- Posts
- 70
So thats basically it then? As root just do, genkernel --menuconfig and save changes and exit? No other commands like make bZimage or make modules or anything? Thanks for your help both
- 06-27-2005 #5Linux Engineer
- Join Date
- Jul 2003
- Location
- Uppsala, Sweden
- Posts
- 1,278
yeah man genkernel does the lot afaik.. make sure /boot is mounted first though
Proud to be a GNU/Gentoo Linux user!
- 06-30-2005 #6thoes commands are for a 2.4.x kernel
Originally Posted by Monkeh
for a 2.6.x kernel the commands areand if you want the kernel installed into /boot for you you mustCode:make;make modules modules_install
first then add install to the end of the commandCode:mount /boot
Code:make;make modules modules_install install
~Mike ~~~ Forum Rules
Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
http://loft306.org
- 07-02-2005 #7Linux Newbie
- Join Date
- Jun 2005
- Posts
- 181
Good point. I only use 2.4 kernels, so I didn't think about 2.6
Originally Posted by loft306
200mhz Pentium 1 with MMX, 128mb RAM, 10gb Seagate HDD. Beastly.


Reply With Quote
