Re: missing config.h in kernel sources



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.
.




Relevant Pages

  • No graphic when loading "x11-gpe-image" for AT91SAM9263
    ... ## Booting kernel from Legacy Image ... usbcore: registered new interface driver ... Configuring ttf-dejavu-sans-mono ...
    (comp.os.linux.embedded)
  • Re: No graphic when loading "x11-gpe-image" for AT91SAM9263
    ... ## Booting kernel from Legacy Image ... usbcore: registered new interface driver ... Configuring ttf-dejavu-sans-mono ...
    (comp.os.linux.embedded)
  • Re: USB SD drive not recognized on new system
    ... I mentioned that I was using a custom kernel in my original post. ... I had overlooked the usb settings when configuring the ... I did run make xconfig I just didn't pay careful attention to the usb ... >>Could the fact that this appears to be a usb2 hub cause it not to see ...
    (comp.os.linux.hardware)
  • Menuconfig problem
    ... I was trying to recomile my kernel and when configuring it I got the next ... End quote. ... Linux Sound Architecture". ...
    (Linux-Kernel)
  • Re: cant install nvidia displa driver any more [solved]
    ... > after installing a kernel update and configuring the kernelsource I was ... > beeing the same used to compile the kernel. ... So, when I first tried your solution, NVidia driver ...
    (alt.os.linux.suse)