[beagleboard] How to install linux-headers-3.8.13-bone30

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'

These headers?

http://rcn-ee.net/deb/precise-armhf/v3.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.

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

Regards,

Can you tell me how install this headers.

wget <file>
sudo dpkg -i <file>

or even:

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

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..

https://groups.google.com/d/msg/beagleboard/D1ioNrzzXfQ/LdfJ2ccuiY4J

The ones posted here:
http://elinux.org/BeagleBoardUbuntu

and here:
http://elinux.org/BeagleBoardDebian

and here:
http://eewiki.net/display/linuxonarm/Home

etc/etc..

Regards,

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

Now just do:

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

git clone git://github.com/RobertCNelson/stable-kernel.git

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,

sudo apt-get update ?

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,

I should just delete that repo...

Look closely:
http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-LinuxKernel

Regards,

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…
`

ARCH=arm

Regards,

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,

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

Regards,

@Bushra Soltani

Did you able to solve this problem?

Dear shrutika,

I did this:

wget http://repos.rcn-ee.net/debian/pool/main/l/linux-upstream/linux-headers-3.8.13-bone84_1wheezy_armhf.deb
sudo dpkg -i linux-headers-3.8.13-bone84_1wheezy_armhf.deb

and then the linux hearers had been installed.

Regards,
Bushra

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...

Regards,

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.

Thanks for the reply Robert.

I did it using

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

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.

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

Robert

I did as you said,

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

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

git clone git://github.com/RobertCNelson/stable-kernel.git

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]