Results 1 to 5 of 5

Thread: Raspberry Pi 2: How to upgrade kernel?

  1. #1

    Raspberry Pi 2: How to upgrade kernel?

    I installed kali-2.1.2-rpi2.img on an SD card to try out on my Raspberry Pi. It works OK, but I need to compile a driver for my wifi card. For that I need kernel headers. And the kernel headers for the kernel that came pre-installed, 4.1.19-v7, don't seem to be available.

    So I did what I usually do, install a new linux-image. I installed linux-image-4.9.0-kali3-armmp. (Version number is shown as 4.9.13-1kali3). I can see that that's what's in /boot. But when I reboot, it just comes back as 4.1.19-v7. Is there something else I need to do to upgrade the kernel?

    Perhaps I need to install a new kernel.img on the boot partition, but I can't find clear instructions on doing that. Other distributions I've used on the Raspberry Pi haven't needed anything except apt-get.

  2. #2
    Join Date
    2016-Dec
    Posts
    21
    Good question, I'd like know the answer too.

  3. #3
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    The kernel has to be purpose build for the Raspberry Pi. A stock arm build won't do.
    Why don't you use my kernel?

    https://whitedome.com.au/re4son/re4son-kernel/

    That's based on the latest Raspberry Pi source with some Kali tweaks.

    Happy hacking,
    Re4son

  4. #4
    So... random person saying "hey, why don't you download and install my custom kernel on your security audit build" kinda sounds like someone's testing me ;-) Probably fine, but bad hygiene all the same.

    Alternative question: where do I get the official kernel headers package that matches the kernel Kali actually distributes?

  5. #5
    Join Date
    2015-Nov
    Location
    Australia
    Posts
    445
    Hi Mary,

    That's the spirit
    I don't think a header package was created during the build of the image.
    You can find the scripts that were used to build these images here: https://github.com/offensive-securit.../master/rpi.sh

    To get the headers you can either build your own image, using the above scripts, and package up the headers in your build directories, or you can build your own kernel as described here:
    https://www.raspberrypi.org/document...el/building.md

    You can pm me if you have any questions.

Similar Threads

  1. Replies: 1
    Last Post: 2022-08-01, 01:31
  2. Raspberry Pi how to install Kernel 5.10
    By BlackDuck in forum ARM Archive
    Replies: 0
    Last Post: 2021-09-27, 17:51
  3. How to upgrade the kernel on the Raspberry pi
    By Silla in forum ARM Archive
    Replies: 10
    Last Post: 2017-03-27, 03:48
  4. Replies: 0
    Last Post: 2015-04-16, 14:30
  5. kernel headers for Kali 1.0.6 on Raspberry Pi
    By n0-0ne in forum ARM Archive
    Replies: 4
    Last Post: 2014-08-28, 15:09

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
  •