grimx Posted March 26, 2008 Report Share Posted March 26, 2008 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?? Quote Link to comment Share on other sites More sharing options...
grimx Posted March 26, 2008 Author Report Share Posted March 26, 2008 do i need a copy of the kernel source in order to write device driver modules?? Quote Link to comment Share on other sites More sharing options...
scarecrow Posted March 26, 2008 Report Share Posted March 26, 2008 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. Quote Link to comment Share on other sites More sharing options...
grimx Posted March 26, 2008 Author Report Share Posted March 26, 2008 (edited) 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 March 26, 2008 by grimx Quote Link to comment Share on other sites More sharing options...
Greg2 Posted March 26, 2008 Report Share Posted March 26, 2008 ah never mind i got the version it is 2.6.17-15mdvon 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 Quote Link to comment Share on other sites More sharing options...
iphitus Posted March 26, 2008 Report Share Posted March 26, 2008 Why do you want to do device driver programming? Do you have a reasonable amount of experience in C? Quote Link to comment Share on other sites More sharing options...
grimx Posted March 27, 2008 Author Report Share Posted March 27, 2008 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 Quote Link to comment Share on other sites More sharing options...
grimx Posted March 27, 2008 Author Report Share Posted March 27, 2008 oh, and thanx Greg2 for the .rpm Quote Link to comment Share on other sites More sharing options...
Greg2 Posted March 27, 2008 Report Share Posted March 27, 2008 I feel a little in the dark using c and the system calls, when i can be closer. You can not be closer than C, to the Linux kernel. After you understand C: Here's some information that will help you: Linux Kernel Module Programming Guide kernelnewbies.org/Drivers kernelnewbies.org/KernelHacking Quote Link to comment Share on other sites More sharing options...
grimx Posted March 27, 2008 Author Report Share Posted March 27, 2008 alright, thanx Greg2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.