Difference between revisions of "BBB Developing Device Drivers"

From Klaus' wiki
Jump to: navigation, search
Line 1: Line 1:
 
This section is heavily inspired by [http://derekmolloy.ie/writing-a-linux-kernel-module-part-1-introduction/ Derek Molloy's] fine writing about device driver development.
 
This section is heavily inspired by [http://derekmolloy.ie/writing-a-linux-kernel-module-part-1-introduction/ Derek Molloy's] fine writing about device driver development.
 +
 +
I downloaded the 2015-03-01 image and ran it from the SD card. See [BBB New Debian Image] when following these instructions:
 +
 +
First download the header files that will enable you to develop a device driver.
 +
 +
<source lang=bash>
 +
]$ apt-get update
 +
]$ apt-cache search linux-headers-`uname -r`
 +
</source>
 +
 +
provided you get a sensible result in the search continue with
 +
 +
<source lang=bash>
 +
]$ apt-get install linux-headers-3.8.13-bone70
 +
</source>
 +
 +
Now you are ready for developing device drivers directly on the BBB. If you would like to perform cross development the header files shall be installed on your development PC by downloading the files from a repository somewher eon the Internet. See Derek Molloy's blog post for further details.

Revision as of 08:34, 2 May 2015

This section is heavily inspired by Derek Molloy's fine writing about device driver development.

I downloaded the 2015-03-01 image and ran it from the SD card. See [BBB New Debian Image] when following these instructions:

First download the header files that will enable you to develop a device driver.

]$ apt-get update
]$ apt-cache search linux-headers-`uname -r`

provided you get a sensible result in the search continue with

]$ apt-get install linux-headers-3.8.13-bone70

Now you are ready for developing device drivers directly on the BBB. If you would like to perform cross development the header files shall be installed on your development PC by downloading the files from a repository somewher eon the Internet. See Derek Molloy's blog post for further details.