Linux Debian support - how to write kernel modules

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > May 2007 > how to write kernel modules





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to write kernel modules
Joshua David Williams

2007-05-29, 7:12 pm

I have a very rare piece of hardware that requires special drivers in
Windows and OS X. I have those; what I /don't/ have is a copy of MS
Windows ;-) It's a USB network cable.

My question is this: How can I write a kernel module for it? I know how to
program in C, but I don't know how to communicate directly with the
hardware, and I don't know how to make a kernel module.

Could any of you shed some light here?

Thanks

--
Joshua David Williams

(QDOS == "Quick & Dirty Operating System) --> (DOS == "Dirty Operating
System")
Hadron

2007-05-30, 7:12 am

Joshua David Williams <yurimxpxman@gmail.com> writes:

> I have a very rare piece of hardware that requires special drivers in
> Windows and OS X. I have those; what I /don't/ have is a copy of MS
> Windows ;-) It's a USB network cable.
>
> My question is this: How can I write a kernel module for it? I know how to
> program in C, but I don't know how to communicate directly with the
> hardware, and I don't know how to make a kernel module.
>
> Could any of you shed some light here?


Yes. You have a struggle on your hands.

Start here : http://tldp.org/LDP/lkmpg/2.6/html/x121.html

moma

2007-05-30, 1:14 pm

Hello,

Take a look at the following posting on Ubuntuforums.org
http://ubuntuforums.org/showthread....398#post2554398
There you will find all necessary litterature and examples.

You may also write Michel Xhaard and ask him how to debug USB commands.
I think he reverse engineers USB drivers in Windows and re-creates the
drivers in Linux. See: http://www.theinquirer.net/default.aspx?article=39291

// moma
http://www.futuredesktop.org



Joshua David Williams wrote:
> I have a very rare piece of hardware that requires special drivers in
> Windows and OS X. I have those; what I /don't/ have is a copy of MS
> Windows ;-) It's a USB network cable.
>
> My question is this: How can I write a kernel module for it? I know how to
> program in C, but I don't know how to communicate directly with the
> hardware, and I don't know how to make a kernel module.
>
> Could any of you shed some light here?
>
> Thanks
>

moma

2007-05-30, 1:14 pm

Re-hello. it's just me again.

Forgot this.

Snooping the USB Data Stream
http://www.linuxjournal.com/article/7582


moma wrote:[vbcol=seagreen]
> Hello,
>
> Take a look at the following posting on Ubuntuforums.org
> http://ubuntuforums.org/showthread....398#post2554398
> There you will find all necessary litterature and examples.
>
> You may also write Michel Xhaard and ask him how to debug USB commands.
> I think he reverse engineers USB drivers in Windows and re-creates the
> drivers in Linux. See:
> http://www.theinquirer.net/default.aspx?article=39291
>
> // moma
> http://www.futuredesktop.org
>
>
>
> Joshua David Williams wrote:
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com