PDA

View Full Version : kernel headers for Kali 1.0.6 on Raspberry Pi



n0-0ne
2014-06-09, 16:24
I want to compile wireless drivers for Kali 1.0.6 on my Rasbery Pi
but if I couldn't find the kernel headers
/lib/modules/3.13.0/build and /lib/modules/3.13.0/source
both point to the none existent location -
/root/kali-arm-build-scripts/rpi-1.0.6a/kernel

installing the headers using apt-get doesn't work -

# apt-get install -y linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.13.0
E: Couldn't find any package by regex 'linux-headers-3.13.0'

Any help would be appreciated

steev
2014-06-13, 06:33
https://forums.kali.org/showthread.php?21494-Kernel-Headers-Installation

The basics of it are, if you need/want to build an out of kernel driver, you will need to compile your own kernel, on the device. This isn't particularly hard, but it IS time consuming, and you will need to mount the first partition to copy the zImage over so that the newly compiled kernel is used.

n0-0ne
2014-06-13, 07:36
Thanks I'll have a look

dikidig
2014-08-28, 12:57
Thanks I'll have a look

git clone --depth 1 https://github.com/raspberrypi/linux.git
mv linux /lib/modules/`uname-r`/build
cd /lib/modules/`uname-r`/build
make mrproper
gzip -dc /proc/config.gz > .config
make modules_prepare

steev
2014-08-28, 15:09
git clone --depth 1 https://github.com/raspberrypi/linux.git
mv linux /lib/modules/`uname-r`/build
cd /lib/modules/`uname-r`/build
make mrproper
gzip -dc /proc/config.gz > .config
make modules_prepare


It would probably be better to just symlink linux to /lib/modules/`uname -r`/build rather than mv it (since most people may forget, and a git repository can take up quite a bit of space)

I'm working on a way to install the headers currently but there is NO ETA on when I will have something released.