conke
发表于 2003-10-29 02:40:00
This question has been asked many times in many forums, maybe including linuxfans, but none is helpful.
conke
发表于 2003-10-29 02:47:43
I have tried a feasible way without knowing how to write the makefile .
If you know, please inform me.
(Please donnot give me a web link only, or something like "google".)
Dragonfly
发表于 2003-10-29 03:03:30
Now could you please tell me how to build a kernel module on linux 2.6 kernel ?
use man what ??
:-D this is not a command or call, so "man .." does not help. but i suggest u to readDocumentation/kbuild/*. with that, u know how to do that. I believe there are some people are not knowledgeable as you. so if they ask question in detail, i will answer in detail.:-D
i will try to post a "hello world" module under linux 2.6 today. hope this can help some people to solve the problem.
Dragonfly
发表于 2003-10-29 03:04:39
This question has been asked many times in many forums, maybe including linuxfans, but none is helpful.
i did not come frequently now. but i think they did not discuss this yet.
Dragonfly
发表于 2003-10-29 03:05:58
I have tried a feasible way without knowing how to write the makefile .
If you know, please inform me.
(Please donnot give me a web link only, or something like "google".)
if u find the feasible way that need not handle makefile, pls post here to share with us.
conke
发表于 2003-10-29 03:32:15
The difficulty in writing a kernel module(say, hello.ko) on 2.6 kernel is not the module itself, but the makefile in a way. For I donnot knowhow to generate the .ko file.
conke
发表于 2003-10-29 03:40:47
In a word, what should I do to compile hello.c to hello.ko?
Dragonfly
发表于 2003-10-29 03:47:59
i only know how to do this via a makefile.
i just come back from post office and will write a hello module later.
i can not give u the modulei write now.
conke
发表于 2003-10-29 03:58:48
or how toconvert hello.o into hello.ko ?
conke
发表于 2003-10-29 04:22:03
Yeah, it's very kind of you to do so ! Thanks !
What I need is the makefile, and you needn't show me your_module.c file.
I used to write device drivers on 2.4 kernel for some companies, but now I donnot know how to write makefile to build the drivers source on 2.6 kernl.
The key is how to generate the .ko file(s).
conke
发表于 2003-10-29 04:43:37
I feel a little sleepy now. :roll:
Dragonfly
发表于 2003-10-29 04:48:32
i will post in a new post with both the makefile and example module code. u need not that. but many people still need that.
conke
发表于 2003-10-29 12:53:55
right here waiting ...