BBB Linux Headers

413 views
Skip to first unread message

timandem...@gmail.com

unread,
Aug 13, 2015, 3:04:12 PM8/13/15
to BeagleBoard, Tim Roberts
Hello,

First time poster here.

I have a BBB running Ubuntu 14.04, and I need to write a Linux kernel module for it. I've tried following a bunch of Ubuntu tutorials online, as well as the link here: http://dumb-looks-free.blogspot.ca/2014/06/beaglebone-black-bbb-kernal-headers.html (credit to Robert Nelson).

I'm running into an issue when I try to run the bb-get-rcn-kernel-source.sh script I get the error that there are no kernel header packages found for my current kernel. I'm using the kernel version 4.1.1-ti-r2.

I've looked into the http://rcn-ee.net/deb/trusty-armhf/ directory, and sure enough in my current kernel version, there are no header files available (compared with some older kernel versions that have header packages in them).

Since I don't have them, how could I go about getting/generating the header files that I need? I'm relatively new to this environment so baby steps are appreciated.

Thanks in advance

Robert Nelson

unread,
Aug 13, 2015, 3:15:39 PM8/13/15
to Beagle Board, Tim Roberts, timandem...@gmail.com
Hi Tim,

So there's a couple issues, we don't have unlimited space and the
kernel branch your on "4.1.1-ti-r2", will be seeing 1 or 2 releases a
week for the next year...

Headers can be installed via:

sudo apt-get install linux-headers-`uname -r`


On Thu, Aug 13, 2015 at 1:43 PM, <timandem...@gmail.com> wrote:
> Hello,
>
> First time poster here.
>
> I have a BBB running Ubuntu 14.04, and I need to write a Linux kernel module
> for it. I've tried following a bunch of Ubuntu tutorials online, as well as
> the link here:
> http://dumb-looks-free.blogspot.ca/2014/06/beaglebone-black-bbb-kernal-headers.html
> (credit to Robert Nelson).
>
> I'm running into an issue when I try to run the bb-get-rcn-kernel-source.sh
> script I get the error that there are no kernel header packages found for my
> current kernel. I'm using the kernel version 4.1.1-ti-r2.

So r3 is available: (it'll be gone next week)

sudo apt-get update;
sudo apt-get install linux-image-4.1.2-ti-r3 linux-headers-4.1.2-ti-r3

> I've looked into the http://rcn-ee.net/deb/trusty-armhf/ directory, and sure
> enough in my current kernel version, there are no header files available
> (compared with some older kernel versions that have header packages in
> them).
>
> Since I don't have them, how could I go about getting/generating the header
> files that I need? I'm relatively new to this environment so baby steps are
> appreciated.

But it would be best to actually install:

sudo apt-get update
sudo apt-get install linux-image-4.1.4-ti-r9 linux-headers-4.1.4-ti-r9
sudo reboot

As there has been tons of fixes since r2..

Regards,
--
Robert Nelson
https://rcn-ee.com/

TimEm Roberts

unread,
Aug 13, 2015, 3:50:33 PM8/13/15
to Robert Nelson, Beagle Board, Tim Roberts
Hi Robert,

Thanks for getting back to me. That has solved my issue. I appreciate the response.

Tim

yxma...@gmail.com

unread,
Jun 25, 2017, 3:54:01 PM6/25/17
to BeagleBoard, TimRo...@microconsulting.ca, timandem...@gmail.com
Dear RobertCNelson,

I could not find the whole linux-headers file for my 3.8.13-bone50

I only find the *.diff file and defconfig from your ftp site.

How could i do with *.diff file?

I appreciate your timely reply

Aaron Ma
Reply all
Reply to author
Forward
0 new messages