How to install linux-headers-3.8.13-bone30

5,577 views
Skip to first unread message

jayakar...@gmail.com

unread,
Feb 20, 2014, 7:04:10 PM2/20/14
to beagl...@googlegroups.com, Jason Kridner
While trying to prepare a driver to be installed on my beaglebone black I came across the following error

E: Unable to locate package linux-headers-3.8.13-bone30
E: Couldn't find any package by regex 'linux-headers-3.8.13-bone30'

I am running  Ubuntu 12.04.4 LTS (GNU/Linux 3.8.13-bone30 armv7l) available at http://www.armhf.com/index.php/download/

I downloaded the source at https://github.com/RobertCNelson/linux-dev/releases/tag/3.8.13-bone30 and then used the command ./build_kernel.sh.

After the build, while using the command ./tools/install_kernel.sh as said at https://github.com/RobertCNelson/linux-dev

I got the following message

I see...
fdisk -l:
Disk /dev/mmcblk0: 15.9 GB, 15931539456 bytes
Disk /dev/mmcblk1: 1920 MB, 1920991232 bytes
Disk /dev/mmcblk1boot1: 1 MB, 1048576 bytes
Disk /dev/mmcblk1boot0: 1 MB, 1048576 bytes

lsblk:
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
mmcblk1boot0 179:16   0     1M  1 disk
mmcblk1boot1 179:24   0     1M  1 disk
mmcblk0      179:0    0  14.9G  0 disk
|-mmcblk0p1  179:1    0     1M  0 part /home/ubuntu/linux-dev-3.8.13-bone30/depl
`-mmcblk0p2  179:2    0  14.9G  0 part /
mmcblk1      179:8    0   1.8G  0 disk
|-mmcblk1p1  179:9    0    96M  0 part
`-mmcblk1p2  179:10   0   1.7G  0 part
-----------------------------
Are you 100% sure, on selecting [/dev/mmcblk0] (y/n)? y

Debug: Existing Partition on drive:
-----------------------------

Disk /dev/mmcblk0: 15.9 GB, 15931539456 bytes
4 heads, 16 sectors/track, 486192 cylinders, total 31116288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x80008000

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1   *        2048        4095        1024    1  FAT12
/dev/mmcblk0p2            4096    31116287    15556096   83  Linux

Unmounting Partitions
-----------------------------
Starting Partition Search
-----------------------------
Trying: [/dev/mmcblk0p1]
Partition: [/dev/mmcblk0p1] trying: [vfat], [ext4]
Partition: [vfat]
Installing 3.8.13-bone30 to /dev/mmcblk0p1
`/home/ubuntu/linux-dev-3.8.13-bone30/deploy/3.8.13-bone30.zImage' -> `/home/ubuntu/linux-dev-3.8.13-bone30/deploy/disk/zImage'
cp: writing `/home/ubuntu/linux-dev-3.8.13-bone30/deploy/disk/zImage': No space left on device
cp: failed to extend `/home/ubuntu/linux-dev-3.8.13-bone30/deploy/disk/zImage': No space left on device
:


     In the system.sh file I have set MMC=/dev/mmcblk0

 And for your information, I have an expanded file system in which I have installed ubuntu desktop. 

 Anyone help me solve this issue. Thanks in advance.

Robert Nelson

unread,
Feb 20, 2014, 8:20:25 PM2/20/14
to Beagle Board
On Thu, Feb 20, 2014 at 6:04 PM, <jayakar...@gmail.com> wrote:
While trying to prepare a driver to be installed on my beaglebone black I came across the following error

E: Unable to locate package linux-headers-3.8.13-bone30
E: Couldn't find any package by regex 'linux-headers-3.8.13-bone30'

Patches welcome, "armhf.com's" images are not currently supported by my scripts.

Regards,
 
--
Robert Nelson
http://www.rcn-ee.com/

jayakar...@gmail.com

unread,
Feb 20, 2014, 11:31:56 PM2/20/14
to beagl...@googlegroups.com
Can you tell me how install this headers. If you ubuntu-armhf images are not supported by your scripts where can I find the image files support by yours.

Robert Nelson

unread,
Feb 21, 2014, 9:31:05 AM2/21/14
to Beagle Board
On Thu, Feb 20, 2014 at 10:31 PM, <jayakar...@gmail.com> wrote:
Can you tell me how install this headers.

wget <file>
sudo dpkg -i <file>

or even:

chmod +x bb-get-rcn-kernel-source.sh
./bb-get-rcn-kernel-source.sh

Will set it up automatically.

 
If you ubuntu-armhf images are not supported by your scripts where can I find the image files support by yours.

Let's see, the "debian testing" image posted to this group every week..


The ones posted here:

and here:

and here:

etc/etc..

Regards,

jayakar...@gmail.com

unread,
Feb 22, 2014, 2:03:59 PM2/22/14
to beagl...@googlegroups.com
Thanks for the reply Robert. 

I did it using

chmod +x bb-get-rcn-kernel-source.sh
./bb-get-rcn-kernel-source.sh

as you said.

It installed the kernel successfully and said
done: kernel sources for 3.8.13-bone30 are now installed.
you should be able to compile kernel modules.

But even after this, when I try to compile a module I am not able to it, I get the same error. I have added the snapshots, kindly check and tell me how to solve this. 

jayakar...@gmail.com

unread,
Feb 23, 2014, 1:11:29 AM2/23/14
to beagl...@googlegroups.com, jayakar...@gmail.com
First of all, sorry for posting such a big message, I just want to make things clear...

Robert I tried your images available at https://rcn-ee.net/deb/microsd/saucy/bone-ubuntu-13.10-2014-02-16-2gb.img.xz

Booted my beaglebone black with the image on sd card. 

and ran the following commands

cd /opt/scripts/tools
git pull
./grow_partition.sh
sudo reboot

cd /opt/scripts/tools
git pull
root@arm:/home/ubuntu# cd /opt/scripts/tools
root@arm:/opt/scripts/tools# git pull
Already up-to-date.
root@arm:/opt/scripts/tools# ./update_kernel.sh
--2014-02-23 06:04:21--  http://rcn-ee.net/deb/saucy-armhf/LATEST-omap-psp
Resolving rcn-ee.net (rcn-ee.net)... 69.163.128.251
Connecting to rcn-ee.net (rcn-ee.net)|69.163.128.251|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 237 [text/plain]
Saving to: ‘LATEST-omap-psp’

100%[======================================>] 237         --.-K/s   in 0s

2014-02-23 06:04:22 (2.90 MB/s) - ‘LATEST-omap-psp’ saved [237/237]

v3.8.13-bone40 is latest
Third party modules...

Then I did 

git clone git://github.com/RobertCNelson/stable-kernel.git
I got
root@arm:~# ls
stable-kernel
root@arm:~# cd stable-kernel
root@arm:~/stable-kernel# ls
branches.list    deploy   patch.sh          scripts           tools
build_deb.sh     LICENSE  README            system.sh         version.sh
build_kernel.sh  patches  repo_maintenance  system.sh.sample
root@arm:~/stable-kernel# ./build_kernel.sh
+ Detected build host [Ubuntu 13.10]
+ host: [armv7l]
+ git HEAD commit: [47443e07185a3c26c7bfd0919a9f874fdb234ef5]
-----------------------------
Please checkout one of the active branches:
-----------------------------
[git checkout origin/v3.7.x -b tmp] (BeagleBoard Cx/xM PandaBoard/PandaBoard ES)
[git checkout origin/v3.9.x -b tmp] (BeagleBoard Cx/xM PandaBoard/PandaBoard ES)
-----------------------------

Then I ran the following commands and got this...

ubuntu@arm:~$ uname -a
Linux arm 3.8.13-bone40 #1 SMP Fri Jan 31 10:36:05 UTC 2014 armv7l armv7l armv7l GNU/Linux
ubuntu@arm:~$ ls
ubuntu@arm:~$ sudo su
[sudo] password for ubuntu:
root@arm:/home/ubuntu# sudo m-a prepare
Getting source for kernel version: 3.8.13-bone40
apt-get install linux-headers-3.8.13-bone40
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.8.13-bone40
E: Couldn't find any package by regex 'linux-headers-3.8.13-bone40'
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!

I don't know how to fix this 

E: Unable to locate package linux-headers-3.8.13-bone40
E: Couldn't find any package by regex 'linux-headers-3.8.13-bone40'

Because of this I am not able to build the package for my webcam, stuck with this for the past three weeks... Can anyone help me fix this...

Robert Nelson

unread,
Feb 23, 2014, 12:34:30 PM2/23/14
to Beagle Board, jayakar...@gmail.com
Now just do:

chmod +x bb-get-rcn-kernel-source.sh
./bb-get-rcn-kernel-source.sh


Wrong "repo"...


BTW: just because we can install the headers, doesn't always guarentee some crappy upstream's out of tree modules will build against it..

Regards,

William Hermans

unread,
Feb 23, 2014, 8:35:33 PM2/23/14
to beagl...@googlegroups.com
sudo apt-get update ?


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

jayakar...@gmail.com

unread,
Feb 23, 2014, 10:07:35 PM2/23/14
to beagl...@googlegroups.com, jayakar...@gmail.com
Robert

I did as you said,
chmod +x bb-get-rcn-kernel-source.sh
./bb-get-rcn-kernel-source.sh

I got message that kernel installed successfully,
when I did cloning from git hub.


I got the following message:

root@arm:~# ls
stable-kernel
root@arm:~# cd stable-kernel
root@arm:~/stable-kernel#
root@arm:~/stable-kernel# ls
branches.list  build_kernel.sh  LICENSE  patch.sh  repo_maintenance  system.sh         tools
build_deb.sh   deploy           patches  README    scripts           system.sh.sample  version.sh
root@arm:~/stable-kernel# ./build_kernel.sh
+ Detected build host [Ubuntu 13.10]
+ host: [armv7l]
+ git HEAD commit: [47443e07185a3c26c7bfd0919a9f874fdb234ef5]
-----------------------------
Please checkout one of the active branches:
-----------------------------
[git checkout origin/v3.7.x -b tmp] (BeagleBoard Cx/xM PandaBoard/PandaBoard ES)
[git checkout origin/v3.9.x -b tmp] (BeagleBoard Cx/xM PandaBoard/PandaBoard ES)

It is not building. What can be the reason?

Robert Nelson

unread,
Feb 24, 2014, 8:52:48 AM2/24/14
to Beagle Board
The error is pretty obvious, it clearly shows what branch you need to checkout to support a specific board.

As to "why" you specifically checked out "stable-kernel.git" git repo.. I can't explain that.  As clearly in all my wiki documentation i reference a different repo/branch for the beaglebone family.

Regards,

jayakar...@gmail.com

unread,
Feb 24, 2014, 11:52:58 AM2/24/14
to beagl...@googlegroups.com
I did from beginning with the image from https://rcn-ee.net/deb/microsd/saucy/bone-ubuntu-13.10-2014-02-16-2gb.img.xz

If I am write, I followed your wiki http://elinux.org/BeagleBoardUbuntu

And 
did 
cd /opt/scripts/tools
git pull
./grow_partition.sh
sudo reboot
then

cd /opt/scripts/tools
git pull

then

./update_kernel.sh --kernel v3.8.13-bone40

then

sudo apt-get update
sudo apt-get install bc build-essential device-tree-compiler fakeroot lzma lzop man-db libncurses5-dev:armhf

then

when I try again to build the kernel

using your wiki

Building the Kernel

git clone git://github.com/RobertCNelson/stable-kernel.git
ls
./build_kernel.sh

I get the same

ubuntu@arm:~/stable-kernel$ sudo ./build_kernel.sh
+ Detected build host [Ubuntu 13.10]
+ host: [armv7l]
+ git HEAD commit: [47443e07185a3c26c7bfd0919a9f874fdb234ef5]
-----------------------------
Please checkout one of the active branches:
-----------------------------
[git checkout origin/v3.7.x -b tmp] (BeagleBoard Cx/xM PandaBoard/PandaBoard ES)
[git checkout origin/v3.9.x -b tmp] (BeagleBoard Cx/xM PandaBoard/PandaBoard ES)

tell me what I am doing wrong.

Robert Nelson

unread,
Feb 24, 2014, 2:14:05 PM2/24/14
to Beagle Board
On Mon, Feb 24, 2014 at 10:52 AM, <jayakar...@gmail.com> wrote:
I did from beginning with the image from https://rcn-ee.net/deb/microsd/saucy/bone-ubuntu-13.10-2014-02-16-2gb.img.xz

If I am write, I followed your wiki http://elinux.org/BeagleBoardUbuntu

And 
did 
cd /opt/scripts/tools
git pull
./grow_partition.sh
sudo reboot
then

cd /opt/scripts/tools
git pull

then

./update_kernel.sh --kernel v3.8.13-bone40

then

sudo apt-get update
sudo apt-get install bc build-essential device-tree-compiler fakeroot lzma lzop man-db libncurses5-dev:armhf

then

when I try again to build the kernel

using your wiki

Building the Kernel


I should just delete that repo...

Look closely:

Regards,

jayakar...@gmail.com

unread,
Feb 25, 2014, 10:04:59 PM2/25/14
to beagl...@googlegroups.com
Fixed it finally with the help of you Robert and your wiki at http://www.google.com/url?q=http%3A%2F%2Feewiki.net%2Fdisplay%2Flinuxonarm%2FBeagleBone%2BBlack%23BeagleBoneBlack-LinuxKernel&sa=D&sntz=1&usg=AFQjCNEi3aoe_0Ji869KciAB8XsYvDQyVA

But aptitude finds a package on my ubuntu desktop but doesn't from your image, but its not a problem, I used to cheese and the webcam is detected.

Thanks for the support.

One last question? Shall I install ubuntu desktop in my sd card now. I hope that will not mess up the kernel in any way. And cheese works sometimes and doesn't sometimes. What's your comment about cheese. To make /dev/video0 appear from my webcam what can I do, the steps that I followed in my laptop ubuntu to install driver for my webcam was http://superuser.com/questions/31853/how-to-make-creative-vista-webcam-041e405f-work-with-recent-ubuntu 
I am not able find ov51x-jpeg if I use the command 

sudo m-a a-i ov51x-jpeg

Its works fine in my Ubuntu on laptop. But in BBB, sometimes it doesn't and with cheese, it detects sometimes and sometimes it doesn't. What can be the reason?

joel.m...@anybots.com

unread,
Oct 24, 2014, 6:13:28 PM10/24/14
to beagl...@googlegroups.com
Worked pretty well actually only for the driver (Linux driver for Netis WF2190) that I am compiling it's looking for "armv7l" Makefile ... I am stuck here. Any idea how to fix this?
 


make ARCH
=armv7l CROSS_COMPILE= -C /lib/modules/3.8.13-bone30/build M=/root/netis-wf2190/driver/rtl8812AU_linux_v4.3.8_12175.20140902  modules

 
make
[1]: Entering directory `/usr/src/linux-3.8.13-bone30'

Makefile:580: /usr/src/linux-3.8.13-bone30/arch/armv7l/Makefile: No such file or directory

make[1]: *** No rule to make target `
/usr/src/linux-3.8.13-bone30/arch/armv7l/Makefile'.  Stop.

make[1]: Leaving directory `/usr/src/linux-3.8.13-bone30'


make
: *** [modules] Error 2
Enter code here...


Robert Nelson

unread,
Oct 27, 2014, 9:52:00 AM10/27/14
to Beagle Board
On Fri, Oct 24, 2014 at 5:13 PM, <joel.m...@anybots.com> wrote:
> Worked pretty well actually only for the driver (Linux driver for Netis
> WF2190) that I am compiling it's looking for "armv7l" Makefile ... I am
> stuck here. Any idea how to fix this?
>
>
>
> make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/3.8.13-bone30/build
> M=/root/netis-wf2190/driver/rtl8812AU_linux_v4.3.8_12175.20140902 modules

ARCH=arm

b.sol...@gmail.com

unread,
Jun 9, 2017, 7:09:38 AM6/9/17
to BeagleBoard
Dear Robert,

I want to install kernel headers v3.8.13-bone84.
I did the following commands :


chmod +x bb-get-rcn-kernel-source.sh
./bb-get-rcn-kernel-source.sh
 
but I get this error: no kernel header package found for 3.8.13-bone84, try another kernel. Before this I had the same error for v3.8.13-bone50. I updated the kernel to v3.8.13-bone84 and now I get this error.
I need to disable interrupts for that I need <asm/system.h> and somewhere I found that I should install linux headers. Could you help me please.

Robert Nelson

unread,
Jun 9, 2017, 11:39:36 AM6/9/17
to Beagle Board, b.sol...@gmail.com
On Fri, Jun 9, 2017 at 5:38 AM, <b.sol...@gmail.com> wrote:
> Dear Robert,
>
> I want to install kernel headers v3.8.13-bone84.
> I did the following commands :
>
> wget
> https://raw.github.com/gkaindl/beaglebone-ubuntu-scripts/master/bb-get-rcn-kernel-source.sh
> chmod +x bb-get-rcn-kernel-source.sh
> ./bb-get-rcn-kernel-source.sh
>
> but I get this error: no kernel header package found for 3.8.13-bone84, try
> another kernel. Before this I had the same error for v3.8.13-bone50. I
> updated the kernel to v3.8.13-bone84 and now I get this error.
> I need to disable interrupts for that I need <asm/system.h> and somewhere I
> found that I should install linux headers. Could you help me please.

sudo apt-get install linux-headers-3.8.13-bone84

Regards,

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

Bushra Soltani

unread,
Jun 12, 2017, 7:26:27 AM6/12/17
to Robert Nelson, Beagle Board
Dear Robert,

thank you very much for your reply.
when I do this: sudo apt-get install linux-headers-3.8.13-bone84

I get the following errors:


Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package linux-headers-3.8.13-bone84
E: Couldn't find any package by regex 'linux-headers-3.8.13-bone84'

Could you please help me how to instal linux headers for 3.8.13-bone 84 or bone50
Thank you very much

Robert Nelson

unread,
Jun 12, 2017, 10:08:45 AM6/12/17
to Bushra Soltani, Beagle Board
On Mon, Jun 12, 2017 at 4:18 AM, Bushra Soltani <b.sol...@gmail.com> wrote:
> Dear Robert,
>
> thank you very much for your reply.
> when I do this: sudo apt-get install linux-headers-3.8.13-bone84
>
> I get the following errors:
>
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package linux-headers-3.8.13-bone84
> E: Couldn't find any package by regex 'linux-headers-3.8.13-bone84'
>
> Could you please help me how to instal linux headers for 3.8.13-bone 84 or
> bone50
> Thank you very much

http://repos.rcn-ee.net/debian/pool/main/l/linux-upstream/linux-headers-3.8.13-bone84_1wheezy_armhf.deb
Message has been deleted

shrutik...@ecolibriumenergy.com

unread,
Sep 13, 2018, 9:59:14 AM9/13/18
to BeagleBoard
@Bushra Soltani

Did you able to solve this problem?

Bushra Soltani

unread,
Sep 13, 2018, 10:40:16 AM9/13/18
to Beagle Board
Dear shrutika,

I did this:

and then the linux hearers had been installed.  

Regards,
Bushra

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/l5RLNUGYrAc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/c61cd20a-2300-4fd0-9d34-985c643ef01d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

shrutik...@ecolibriumenergy.com

unread,
Sep 14, 2018, 8:40:23 AM9/14/18
to BeagleBoard
Hi Bushra,
Thank you so much.
I performed the steps told by you and I successfully able to install the linux-headers-3.8.13-bone84.But I have one more question that my debian is using linux-headers-3.8.13-bone50 and I am not able to get the headers for it so should I upgrade or downgrade my linux-headers or headers for bone-50 is available?

Robert Nelson

unread,
Sep 14, 2018, 9:42:08 AM9/14/18
to Beagle Board, shrutik...@ecolibriumenergy.com
On Fri, Sep 14, 2018 at 7:40 AM <shrutik...@ecolibriumenergy.com> wrote:
>
> Hi Bushra,
> Thank you so much.
> I performed the steps told by you and I successfully able to install the linux-headers-3.8.13-bone84.But I have one more question that my debian is using linux-headers-3.8.13-bone50 and I am not able to get the headers for it so should I upgrade or downgrade my linux-headers or headers for bone-50 is available?

Here you go, copied from cold storage:

https://rcn-ee.net/repos/really-old-headers/linux-headers-3.8.13-bone50_1.0wheezy_armhf.deb

Totally unsupported and not recommending anything as 3.8.13-bone50 was
released May 12, 2014...
Reply all
Reply to author
Forward
0 new messages