PDA

View Full Version : [all variants] Device Drivers and Kernel Sources...



davidbilla
March 26th, 2009, 12:58 PM
Hi,

I need to write my own device drivers for which I need to run a kernel that is compiled and installed. Now, if I am right, by default, I cannot compile a custom device driver in Ubuntu. I tried downloading and installing a vanilla kernel, but I get 'kernel panic' and I'm tired of playing around with it. So, I just want to install the sources for the currently running kernel (can that be done from Synaptic?) and start compiling my device drivers.

Will that be enough? And is it guaranteed that I'll be able to boot into my running kernel once I've installed the sources and restarted the system or are there any caveats in that too?

Thanks.

swap_1712
November 30th, 2010, 08:21 PM
Did you have any luck with this?
Even I have just started with it and thankfully I knew in advance that from 2.6 onwards it’s now also necessary to compile the module using the same kernel that you’re going to load and use the module with.
Is there anything you think I should be taking care of? I haven't compiled the kernel yet.

Any tips will be greatly appreciated. Thanks in advance