|
|
Subscribe / Log in / New account

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


to post comments

unable to use ksyms on 2.6 kernel

Posted Oct 27, 2004 10:17 UTC (Wed) by rashminivarthy (guest, #25682) [Link] (1 responses)

hello
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

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

Sincere Regards,

Olivier


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds