0

I need to build locally a driver for "precise" Ubuntu edition (uname -r for that system returns 3.2.0-33-generic-pae).

My local host is Ubuntu 13.10 'sausy'.

But I fail to install the linux headers( what should I do to set up the environment I need?)

I downloaded the image from here: from packages.ubuntu but what my next steps should be?

Actually I don't need exact steps but pointing the right direction would be great!

Thanks in advance :)

r_31415
  • 8,752
  • 17
  • 74
  • 121
user1053031
  • 727
  • 1
  • 11
  • 30

1 Answers1

0

If you want to just build the driver (with out installing/testing)

then you will just have to download the kernel source of the preferred version (in this case it is 3.2.0-33) from kernel.org, build it with config from your host PC, and then compile your driver/module against that.

If you plan to install/test then after building the kernel source of the preferred version,

install the same to your host PC, then you will be able to insmod the driver you built

Santosh A
  • 5,173
  • 27
  • 37
  • Thank you, but what about those "linux-image-3.2.0-33-generic-pae" package from "packages.ubuntu.com"? is this package not valid or not suitable? – user1053031 Aug 19 '14 at 05:44
  • those are the package that include the kernel-headers, required to compile kernel modules/drivers – Santosh A Aug 19 '14 at 05:46
  • so, can i use it to build the driver? excuses to such questions - i'm a noob in these kernel-related areas...( – user1053031 Aug 19 '14 at 05:49
  • only the headers are not enough, it is necessary along with other files like system.map, vmlinux and few others. Based on which the drivers would be built – Santosh A Aug 19 '14 at 06:09