Skip to contentSkip to conversation

Problem in loading Module

DISCUSSION Robert Hancock 3 participants 3 messages Sep 25, 2004 – Sep 26, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

What kernel headers are you compiling the module against? They must match the actual kernel you are using. If you are using Red Hat kernel 2.4.20-6 then you must compile against Red Hat 2.4.20-6 kernel headers.

----- Original Message ----- From: "Dinesh Ahuja" <[email protected]>
Newsgroups: fa.linux.kernel
To: <[email protected]>
Sent: Friday, September 24, 2004 9:28 PM
Subject: Problem in loading Module

Quoted 31 lines

I have recently purchased book "Linux Device Drivers" By Alessandro Rubini. I am very keen to learn the Kernel Programming and this is my step towards Kernel Programming.

I request you to all to guide me whenever I get stuyck up in my learning process.

I was facing problem in loading a module example
hello.o in my Red Hat Linux Kernel 2.4.20-6.

It gives me an error that module has been compiled for Kernel 2.4.20 and you are trying to run it on Kernel 2.4.20-6 [which is a kernel comes with Red Hat 9.0]

Please guide me over this issue so that I can proceed further in learning process.

Thanks & Regards
Dinesh

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
Quoted 3 lines · Robert Hancock

What kernel headers are you compiling the module against? They must match the actual kernel you are using. If you are using Red Hat kernel 2.4.20-6 then you must compile against Red Hat 2.4.20-6 kernel headers.

you could also try turning off 'module versioning' in which case you can 'force' load
a module. of course you risk your system when you do this.

Signature · 1 line
Obelix###
#3 lore raw
Quoted 6 lines

What kernel headers are you compiling the module
against? They must match
the actual kernel you are using. If you are using
Red Hat kernel 2.4.20-6
then you must compile against Red Hat 2.4.20-6
kernel headers.

I have downloaded the kernel source for 2.4.20-6 and able to proceed and compile and load kernel.

Thanks a lot for your guidance.

Regards
Dinesh

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony