Jump to content
Sign in to follow this  
grimx

device driver programming

Recommended Posts

I'm using Mandriva Free 07

 

What all do i need to start writting my own modules for linux??

I'm downloading an e-book at the moment, just woundering what else i'll need??

Share this post


Link to post
Share on other sites
do i need a copy of the kernel source in order to write device driver modules??

 

For some of them kernel headers should be enough, but yes- to be able to build the ABC kernel module you need the kernel-source RPM being installed.

Share this post


Link to post
Share on other sites

i'm going to download it from linux.org

kernel version 2.6.24 right?

 

i'm on my friends window box because my

dsl connection is down, won't be repaired for

a couple of days.

 

ah never mind i got the version it is 2.6.17-15mdv

on linux.org i see 2.6.17, 18-Jan-2006

is that the correct one?????

Edited by grimx

Share this post


Link to post
Share on other sites
ah never mind i got the version it is 2.6.17-15mdv

on linux.org i see 2.6.17, 18-Jan-2006

is that the correct one?????

No. If you're using Linux kernel 2.6.17.15mdv for i586, you want that kernel source (from Mandriva, and with Mandriva patches) to compile a new driver for your system. Here: kernel-source-2.6.17.15mdv

Share this post


Link to post
Share on other sites

Why do you want to do device driver programming?

 

Do you have a reasonable amount of experience in C?

Share this post


Link to post
Share on other sites

yeah, i'm ok. i mean i havn't done qeues or binary trees or anything, but i get the giest of it.

up till now i've been using the linux system calls for file and dir manipultaion.

i've written a program to turn hex into binary and to turn a decimal to hex and binary

upto a double word. I can post it if you want to see it.

 

the reason i want to write modules is to get closer to my system.

too learn more about it.

i mean the kernel is the core right, if i want to get to know linux is'nt that where i want

to be.

I feel a little in the dark using c and the system calls, when i can be closer.

 

granted i'm still learn'n the commands for the terminal

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...