|
Path to the kernel sourcePath to the kernel sourcePosted Feb 6, 2003 14:44 UTC (Thu) by corbet (editor, #1)In reply to: Driver porting: compiling external modules by rfunk Parent article: Driver porting: compiling external modules Actually, /usr/src/linux is pretty much deprecated by the Prime Penguin himself; you're supposed to keep your kernel sources somewhere else. I got lazy and used it in the example, mostly because it's shorter to type than the /lib/modules path. The latter is the better way to go, however, especially in scripts or makefiles - it "automatically" points to the right source tree, unless you move your trees around.
(Log in to post comments)
Path to the kernel source Posted Oct 27, 2004 8:25 UTC (Wed) by rashminivarthy (guest, #25682) [Link] 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
unable to use ksyms on 2.6 kernel Posted Oct 27, 2004 10:17 UTC (Wed) by rashminivarthy (guest, #25682) [Link] helloi 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
unable to use ksyms on 2.6 kernel Posted Jul 18, 2005 11:38 UTC (Mon) by kalou (guest, #31046) [Link] Hi rashminivarthy,
your kernel is not module enabled,
Sincere Regards,
Olivier
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.