Results 1 to 5 of 5

Thread: kernel headers for Kali 1.0.6 on Raspberry Pi

  1. #1
    Join Date
    2014-Jun
    Posts
    2

    kernel headers for Kali 1.0.6 on Raspberry Pi

    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 -
    Code:
    # 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

  2. #2
    Join Date
    2014-Feb
    Posts
    309
    https://forums.kali.org/showthread.p...s-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.

  3. #3
    Join Date
    2014-Jun
    Posts
    2
    Thanks I'll have a look

  4. #4
    Join Date
    2014-Aug
    Posts
    1
    Quote Originally Posted by n0-0ne View Post
    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

  5. #5
    Join Date
    2014-Feb
    Posts
    309
    Quote Originally Posted by dikidig View Post
    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.

Similar Threads

  1. Cannot install kernel headers (kernel header mismatch)
    By sebos in forum Installing Archive
    Replies: 10
    Last Post: 2022-12-19, 08:11
  2. Kali Kernel 4.13 is looking for the 4.12 headers... no fix so far
    By Anonymous.eezorp in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2017-10-29, 17:13
  3. Replies: 2
    Last Post: 2015-03-05, 10:11
  4. Wrong kernel headers for Kali 1.0.9
    By Rambozo in forum ARM Archive
    Replies: 0
    Last Post: 2014-09-27, 22:22

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •