Author Topic: Howto get the Raspbian kernel installed with headers (solution):  (Read 19186 times)

0 Members and 1 Guest are viewing this topic.

Offline bingo600Topic starter

  • Super Contributor
  • ***
  • Posts: 1987
  • Country: dk
Howto get the Raspbian kernel installed with headers (solution):
« on: November 11, 2013, 06:02:05 pm »
The raspberry Pi Foundation doesn't have/make downloadable header packages for their linux kernels :-(

This means that making working modules for the kernel you are running is cubersome , and right now defective.

The solution is to use a kernel from (made by) www.raspbian.org , "Foundation does NOT use the kernels from them but build their own" wo. any kernel header packages.

This post (issue) , was the one hinting that the Raspbian kernel isn't the one - The foundtion uses
https://github.com/raspberrypi/linux/issues/382
https://bugs.launchpad.net/raspbian/+bug/1228643


And this one might be the reason i can't get it to work , it seems like the foundation even have FSCK'ed up somewhere in the "Kludge" we need to do, in order get the right symbols for the kernel currently used on the RasPI.
https://github.com/raspberrypi/linux/issues/387

Howto get the Raspian kernel installed with headers:

See : http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=57401
Entry by : by plugwash ยป Fri Nov 08, 2013 10:22 pm


I use a standard "Foundation Noobs" as the base boot ....
http://www.raspberrypi.org/downloads


Then apt-get the Raspian.org kernel below.


I use an unmodified sources.list (from the Noobs raspian)

$ cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi



We get the Raspbian package "metapackage linux kernel" , that has corresponding headers.

1: sudo apt-get update
2: sudo apt-get install linux-image-rpi-rpfv

3: In boot/config.txt append this at end of file , or it will boot the default "Foundation kernel"

************* SNIP ***********************
# Set params for "raspbian debian-style kernel" boot
#kernel=vmlinuz-3.2.0-4-rpi
#initramfs initrd.img-3.2.0-4-rpi followkernel
kernel=vmlinuz-3.6-trunk-rpi
initramfs initrd.img-3.6-trunk-rpi followkernel
************* SNIP ***********************

4: reboot
5: login
6: apt-get install linux-headers-rpi-rpfv

Done Kernel stuff

/Bingo

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf