porting kernel module from linux 2.2.15 to linux 2.4.2

porting kernel module from linux 2.2.15 to linux 2.4.2

Post by Hans-Peter Demu » Thu, 07 Nov 2002 02:36:38



Hi !

i'd written a loadable kernel module running well in my old linux box
with kernel 2.2.15

so i copied the source to the other new linux box. i've got such error
messages:

i think it's not a problem with include files and libraries but with the
source code (not changed yet)

i found many explanations about writting drivers for l 2.0 and 2.2 .
nothing about 2.4.

what are the differences ?

thanks peter

PS on demand i can send the errors of "make"

--
DEMUS DATENSYSTEME GmbH Steinbergstr. 24
D-30559 Hannover Germany
Tel +49-511-95448-0 Fax +49-511-95448-44

 
 
 

porting kernel module from linux 2.2.15 to linux 2.4.2

Post by Jens.Toerr.. » Thu, 07 Nov 2002 05:44:10



> i'd written a loadable kernel module running well in my old linux box
> with kernel 2.2.15
> so i copied the source to the other new linux box. i've got such error
> messages:
> i think it's not a problem with include files and libraries but with the
> source code (not changed yet)
> i found many explanations about writting drivers for l 2.0 and 2.2 .
> nothing about 2.4.
> what are the differences ?

There were many changes in the kernel interface, probably too many to
list and explain in a posting (and not that I would know about all of
them). I would recommend that you get the book by Rubini and Corbet,
it's the 2nd edition of "Linux Device Drivers" which covers 2.4 and
points out the differences between 2.2. and 2.4. There's also a PDF
version you can get from the O'Reilly web site.

                                         Regards, Jens
--
      _  _____  _____

  _  | |  | |    | |
 | |_| |  | |    | |          http://www.physik.fu-berlin.de/~toerring
  \___/ens|_|homs|_|oerring

 
 
 

porting kernel module from linux 2.2.15 to linux 2.4.2

Post by Hans-Peter Demu » Tue, 19 Nov 2002 19:33:45




>There were many changes in the kernel interface, probably too many to
>list and explain in a posting (and not that I would know about all of
>them). I would recommend that you get the book by Rubini and Corbet,
>it's the 2nd edition of "Linux Device Drivers" which covers 2.4 and
>points out the differences between 2.2. and 2.4. There's also a PDF
>version you can get from the O'Reilly web site.

>                                         Regards, Jens

danke fr die Info, werde ich antesten. Thanks.
 
 
 

1. Feedback on 2.2.15 (wasRe: Kernel Stable: 2.2.15pre4 )

I've been trying the 2.2.15 prereleases, and so far they seem great.
2.2.15 pre 4 (subjectively speaking) made my system much zippier
than 2.2.13/4 and 2.2.15 pre 5 which I built last night, feels
faster still (and apparently has some rather neat debug code to
trap bad application memory use/kernel bugs).

So overall I'm very pleased. Many thanks to Alan and the guys who've
been working on the VM stuff. It feels great for me.

BTW I'm running this on Mandrake 6.1, Cyrix 6x86 MX 300, 64MB RAM.

Like I say, 2.2.15 feels like it's shaping up to be the best 2.2 kernel
yet by a significant margin (to me at least!)
Mike



Sent via Deja.com http://www.deja.com/
Before you buy.

2. Jimny SJ30 OPEN TYPE

3. Kernel 2.2.15pre3: need sg.o module

4. serial communication in C

5. Emacs 19.34 on linux 2.2.15

6. Help FOUND for Samba and NT under SUSE 5.1

7. MDK 7.1 - linux 2.2.15-4 - iproute ??

8. shell question

9. Weird "route add" issue with PPP over ssh linux 2.2.15

10. AWE64, Debian 2.1, Linux 2.2.15 - device busy error

11. PCMCIA Via SCSI desktop slots and Linux 2.2.15 +

12. Linux 2.2.15 has problem with config

13. Kernel compiling (2.2.15pre19)