Re: missing config.h in kernel sources
- From: John-Paul Stewart <jpstewart@xxxxxxxxxxxxxxxx>
- Date: Mon, 26 Dec 2005 10:47:32 -0500
Harshal wrote:
hi,
has anyone successfully installed e1000-6.2.15 drivers? when i try
to complile them first i get error that says, 'kernel sources not
configured, missing version.h'. i can fix that problem by using 'make
include/linux/version.h' in kernel source dir. but now i am getting
error which says, 'missing config.h' instead of version.h.
First off, the e1000 driver has been included with stock kernels for ages. You probably don't need to build it separately. Have you tried 'modrpboe e1000' as root?
Secondly, you can't build a kernel module without first configuring the kernel. If you're trying to build a module for your running kernel, you'll need its configuration file. This can sometimes be found in /proc/config.gz or /boot/config.gz. If either of those exists, unzip it and copy the uncompressed version to /usr/src/linux/.config (assuming you have the kernel sources in /usr/src/linux). (If you don't have access to the running kernel's config file you're better off building a new kernel and running it, with the module built to match the new one.) Then, in that directory, 'make oldconfig'. For 2.4.x kernels you can use 'make dep' to create config.h (and others). For 2.6.x kernels, that's deprecated and I don't know off-hand what the replacement is (if any) so you may just have to issue 'make'. When that's done, you should be able to compile the external module---if you still need to.
.
- Follow-Ups:
- Re: missing config.h in kernel sources
- From: Harshal
- Re: missing config.h in kernel sources
- From: Jean-David Beyer
- Re: missing config.h in kernel sources
- References:
- missing config.h in kernel sources
- From: Harshal
- missing config.h in kernel sources
- Prev by Date: Re: OGG bitrate and duration
- Next by Date: Re: A debian kernel compile question
- Previous by thread: missing config.h in kernel sources
- Next by thread: Re: missing config.h in kernel sources
- Index(es):
Relevant Pages
|