First git clone the kali linux arm repo from https://github.com/offensive-security/kali-arm-build-scripts
Now modify, the architecture in the rpi.sh script to read “armhf” rather “armel” as the Raspberry Pi 2 has a different processor architecture
Create our kernel configuration by copying the one that is pastebin’d here
Save the file as “rpi-3.1.8.config” in the kernel config directory.
Modify the rpi.sh script to use our new kernel configuration.
Now run the rpi.sh command, if all goes well, you should see something like below.
You will probably encounter a problem with ‘startx’ command freezing the ‘X’ environment with the build. If this is the case, then look at the kali linux forum post here.
The solution is essentially to copy the /lib/modules directory from the Raspbian image. I will look at modifying the build script to solve this in the near future.