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
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`
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,
Hi Robert,
Thanks for getting back to me. That has solved my issue. I appreciate the response.
Tim
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