vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| trying to load a new Ethernet source driver with MAKE INSTALL on a directory containing "makefile" [so apparently dont need to do ./config again ?] but it said "err 37 sources not configured, cant find config.h" the kernel-sources *are* loaded, so where should config.h be ? |
| |||
| Marshall Kiam-Laine wrote: > trying to load a new Ethernet source driver with MAKE > INSTALL > on a directory containing "makefile" [so apparently dont > need to do ./config again ?] > > but it said "err 37 sources not configured, cant find > config.h" > > the kernel-sources *are* loaded, so where should > config.h be ? config.h doesn't exist until you do 'make config' (or oldconfig, or menuconfig, or xconfig) in the kernel source tree. It is *not* sufficient to install the kernel sources; you need a valid configuration, too. If you're using a distro-supplied kernel (i.e., not one you've compiled yourself) look for their config file is /proc/config.gz or /boot/config.gz. Gunzip it to /usr/src/linux/.config (assuming the kernel sources are installed in /usr/src/linux), cd to /usr/src/linux and do 'make oldconfig'. You'll now have a config.h file matching your currently running kernel. If you're using a custom kernel, you should still have your own .config file around. Also, remember *do not* do 'make clean' after builing your own kernel if you have to build other modules outside the kernel source tree. 'make clean' will (among other things) get rid of your config.h. |
| |||
| Marshall Kiam-Laine adjusted his/her tin foil beanie and asbestos underwear to write: > trying to load a new Ethernet source driver with MAKE > INSTALL > on a directory containing "makefile" [so apparently dont > need to do ./config again ?] > > but it said "err 37 sources not configured, cant find > config.h" > > the kernel-sources *are* loaded, so where should > config.h be ? On suse you need to as root:- cd /usr/src/linux make cloneconfig make prepare-all If the above complains that the config file is a generic one then just:- mv .config .config.old and try again HTH -- Mark Illegitimi Non Carborundum! Twixt hill and high water, N.Wales, UK onfxvgpnvfr-ng-tzk-qbg-pb-hx |
| ||||
| ***thanks john-paul and mr.Beanie (whatever that is ?) you both sound as tho you know what youre doing, so ill try all that soon ive just wiped the disk ready for a multi-distro load up so cant try it at the moment, but will get back to you. isnt linux FUN ! ive only spent 2 months so far trying to get it on inet. whereas this XPro laptop has no trouble at all -------------------------------------------------------------------------- "John-Paul Stewart" <jpstewart@binaryfoundry.ca> wrote in message news > Marshall Kiam-Laine wrote: >> trying to load a new Ethernet source driver with MAKE >> INSTALL >> on a directory containing "makefile" [so apparently >> dont need to do ./config again ?] >> >> but it said "err 37 sources not configured, cant >> find config.h" >> >> the kernel-sources *are* loaded, so where should >> config.h be ? > > config.h doesn't exist until you do 'make config' (or > oldconfig, or menuconfig, or xconfig) in the kernel > source tree. It is *not* sufficient to install the > kernel sources; you need a valid configuration, too. > > If you're using a distro-supplied kernel (i.e., not one > you've compiled yourself) look for their config file is > /proc/config.gz or /boot/config.gz. Gunzip it to > /usr/src/linux/.config (assuming the kernel sources are > installed in /usr/src/linux), cd to /usr/src/linux and > do 'make oldconfig'. You'll now have a config.h file > matching your currently running kernel. > > If you're using a custom kernel, you should still have > your own .config file around. Also, remember *do not* > do 'make clean' after builing your own kernel if you > have to build other modules outside the kernel source > tree. 'make clean' will (among other things) get rid > of your config.h. |