Path to the kernel source
Path to the kernel source
Posted Oct 27, 2004 8:25 UTC (Wed) by rashminivarthy (guest, #25682)In reply to: Path to the kernel source by corbet
Parent article: Driver porting: compiling external modules
hello,
i was trying to compile a simple helloworld module on linux-2.6
kernel (Fedoracore-2)i'm geting this error while using this
makefile
---------------
|MakeFile |
----------------
ifneq ($(KERNELRELEASE),)
obj-m := hello.o
else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
endif
---------------
|ERROR MESSAGE|
----------------
cc hello.c -o hello
hello.c:1:26: linux/module.h: No such file or directory
hello.c:2:27: linux/kernel.h: No such file or directory
hello.c:3:24: linux/init.h: No such file or directory
make: *** [hello] Error 1
Posted Oct 27, 2004 10:17 UTC (Wed)
by rashminivarthy (guest, #25682)
[Link] (1 responses)
Posted Jul 18, 2005 11:38 UTC (Mon)
by kalou (guest, #31046)
[Link]
your kernel is not module enabled,
Sincere Regards,
Olivier
hello unable to use ksyms on 2.6 kernel
i tried using ksyms on 2.6 kernel to view all the exported kernel
symbols .It gave an error-
ksyms: QM_MODULES: Function not implemented
plz any 1 reply back
Hi rashminivarthy,unable to use ksyms on 2.6 kernel
obviously.
