LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Recompile kernel? (https://www.linuxquestions.org/questions/linux-newbie-8/recompile-kernel-541161/)

zoidburg016 03-27-2007 08:37 PM

Recompile kernel?
 
I just spent the last day and a half installing gentoo. During the instalation it gave me a choice of the kernel to use. I chose the cd one be the quickest to install. It said that it didn't come with the source. I didn't care then. Now that I have the system up and running i tried to install the madwifi drivers so I don't have to have my laptop plugged in to an Ethernet cable (I have a cisco aironet CB21AG wireless card) using the command emerge madwifi-ng it started to work, but it said
Code:

* Could not find a usable .config in the kernel source directory.
 * Please ensure that /usr/src/linux points to a configured set of Linux sources.
 * If you are using KBUILD_OUTPUT, please set the environment var so that
 * it points to the necessary object directory so that it might find .config.

!!! ERROR: net-wireless/madwifi-ng-0.9.2.1 failed.
Call stack:
  ebuild.sh, line 1555:  Called dyn_setup
  ebuild.sh, line 668:  Called pkg_setup
  madwifi-ng-0.9.2.1.ebuild, line 32:  Called linux-mod_pkg_setup
  linux-mod.eclass, line 459:  Called linux-info_pkg_setup
  linux-info.eclass, line 554:  Called die

!!! Unable to calculate Linux Kernel version
!!! If you need support, post the topmost build error, and the call stack if relevant.

I'm assuming that this is because I don't have the kernel source and I was wondering how to recompile the kernel and include the source.

dxqcanada 03-27-2007 08:44 PM

Make sure that there is a symbolic link in /usr/src called linux that points to the kernel sources in that directory.

To build a custom kernel-> follow the Handbook: Handbook - Manual Kernel

Make sure to edit your grub.conf for the new kernel

bandwidthjunkie 03-28-2007 07:28 AM

I wrote this a while ago, maybe it will be useful: took me about three weeks to work out how to do a networkless install on gentoo (the networkless install guide had convieniently forgotten to cover the networkless case!) http://gentoo-wiki.com/HOWTO_MadWifi_Install

I can assure you that you do have the kernel sources on your cd, they are probably in something like /distfiles, you need to copy them to /usr/portage/distfiles for portage to be able to access them.


All times are GMT -5. The time now is 04:31 AM.