All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem in loading Module
@ 2004-09-25  3:25 Dinesh Ahuja
  0 siblings, 0 replies; 4+ messages in thread
From: Dinesh Ahuja @ 2004-09-25  3:25 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem in loading Module
       [not found] <fa.jqou8ro.g3cl3k@ifi.uio.no>
@ 2004-09-25  5:45 ` Robert Hancock
  2004-09-26  4:52   ` Obelix
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Hancock @ 2004-09-25  5:45 UTC (permalink / raw)
  To: linux-kernel

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" <mdlinux7@yahoo.co.in>
Newsgroups: fa.linux.kernel
To: <linux-kernel@vger.kernel.org>
Sent: Friday, September 24, 2004 9:28 PM
Subject: Problem in loading Module


>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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/ 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem in loading Module
  2004-09-25  5:45 ` Problem in loading Module Robert Hancock
@ 2004-09-26  4:52   ` Obelix
  2004-09-26  5:23     ` Dinesh Ahuja
  0 siblings, 1 reply; 4+ messages in thread
From: Obelix @ 2004-09-26  4:52 UTC (permalink / raw)
  To: Robert Hancock, mdlinux7; +Cc: linux-kernel

On Fri, 24 Sep 2004 23:45:46 -0600, Robert Hancock <hancockr@shaw.ca> wrote:
> 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.


-- 
Obelix###

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem in loading Module
  2004-09-26  4:52   ` Obelix
@ 2004-09-26  5:23     ` Dinesh Ahuja
  0 siblings, 0 replies; 4+ messages in thread
From: Dinesh Ahuja @ 2004-09-26  5:23 UTC (permalink / raw)
  To: Obelix; +Cc: linux-kernel

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-26  5:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.jqou8ro.g3cl3k@ifi.uio.no>
2004-09-25  5:45 ` Problem in loading Module Robert Hancock
2004-09-26  4:52   ` Obelix
2004-09-26  5:23     ` Dinesh Ahuja
2004-09-25  3:25 Dinesh Ahuja

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.