kernel src vs. headers

Goetz Bock bock@xxxxxxxxxxx
Sun Jun 29 01:15:46 CEST 2003


On Fri, Jun 27 '03 at 10:28, Petr Cervinka wrote:
> When  I  compiled  the  driver  for an etherned card which has not
> dirrect support in kernel  and I tried to load the module "insmod
> tc902x.o" I received message:
The case of module compilation, and only this case needs the real kernel
sources. You must

 - install the kernel-sources rpm,
 - unpack the tar.bz2 you get,
(- link /usr/src/kernel-... to /usr/src/linux)
- copy the proper configuration of your boot kernel (it's called
  config-... and lies in /boot)
- cd into the kernel source directory
- run "make dep"

now you have the proper setup to compile additional modules for your
booted kernel. 

For modules that come with proper setup/configure routines, just use
/usr/src/kernel-... as kernel source directory.
-- 
Goetz Bock       (c) 2003 as     blacknet.de - Munich - Germany   /"\
IT Consultant    GNU FDL 1.1    secure mobile Linux everNETting   \ /
                                                                   X
 ASCII Ribbon Campaign against HTML email & microsoft attachments / \



More information about the tsl-discuss mailing list