PDA

View Full Version : Kali Linux ARM on the new Raspberry Pi 3 Model B+ (released March 2018)



ruin
2018-03-26, 01:49
I just got the new Raspberry Pi 3 Model B+ (released March 2018) and unable to get Kali to boot. It just displayed the rainbow square and doesn't do anything else.


My steps:

* Downloaded the latest image from
https://images.offensive-security.com/arm-images/kali-linux-2018.1a-rpi3-nexmon.img.xz and verified the sha256 checksum.
* Formatted my 32GB Sandisk class 10 (microsd) to FAT32 using the formatter from https://www.sdcard.org/
* I followed the guide at https://docs.kali.org/kali-on-arm/kali-linux-raspberry-pi2

Running `diskutil list` on my Macbook show the SD is created:

/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *30.9 GB disk2
1: Windows_FAT_32 NO NAME 64.0 MB disk2s1
2: Linux 7.3 GB disk2s2

I also installed osxfuse/ext4fuse and was able to read-only browse the Linux partition and verify it looks ok.

I've tried alternative power supplies without luck. I've installed NOOBs on to the SD card and that boots up fine.

Anyone else got Kali working on the new pi?

deleechious
2018-03-26, 23:40
Hello there,

Yes I Have gotten kali working on the new B+

You will have to copy over the updated boot files to the boot partition on the SD
you can get it from the raspberry pi github repo https://github.com/raspberrypi/firmware




# clone the firmware repo from raspberry pi

git clone https://github.com/raspberrypi/firmware


# find partition on the card with type Windows_FAT_32 (for you it looks like its disk2s1)

fdisk -l


# mount the partition

mkdir /mnt/boot
mount /dev/disk2s1 /mnt/boot


# copy the contents of the boot folder to the mounted boot partition

cp -r firmware/boot/* /mnt/boot/


# unmount and cleanup

unmount /mnt/boot
rmdir /mnt/boot
rm -rf firmware



pop the SD card in the pi and boot it up!

hope this helps!!


-deleechious

re4son
2018-03-27, 01:40
I have created a new kernel for the B+ and published it together with an unofficial ready-to-install B+ Kali image on this site:

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

If you are happy with installing an image from an untrusted source then just go for it it. If not, there's a link to the sources and you can build it yourself.

Hope that helps,
Re4son

ruin
2018-03-27, 03:06
Thanks for the replies.

I downloaded the latest firmware from https://github.com/raspberrypi/firmware and manually copied it to the sd. I am now up and running :-)

EDIT:
Did wifi work? I cannot see any wifi devices

wiejak
2018-03-27, 07:45
T I am now up and running :-)

Is your keyboard working? I can't run USB or BT device. I just copied boot folder to FAT partition - booted with 2 fail messages "time sync" and "BT fail" got stuck by login window

re4son
2018-03-27, 21:38
Head over to https://whitedome.com.au/re4son/re4son-kernel/ and install either the "current stable" or "next" kernel.
That should sort it out.

The new Raspberry Pi 3 B+ requires updated:

- bootloader
- kernel with kernel modules
- firmware
- etc.

essentially a whole new kernel package.

Copying the firmware folder from Raspbian accross whas pretty nifty, I give you that :cool:
It won't cut it though because now you have inconsistencies between your kernel and the kernel modules - not a good state to be in :p

Either install the proper kernel package from the above site over the top, or - if you want to start over - install the image from that site. It comes pre-installed with the new kernel.

The "current stable" includes nexmon drivers (monitor mode might be a bit wonky on the B+ at the moment), "next" doesn't and is rock solid.

Hope that helps,
Re4son

wiejak
2018-03-28, 05:58
Head over to https://whitedome.com.au/re4son/re4son-kernel/ and install either the "current stable" or "next" kernel.
That should sort it out.

The new Raspberry Pi 3 B+ requires updated:

- bootloader
- kernel with kernel modules
- firmware
- etc.

essentially a whole new kernel package.

Copying the firmware folder from Raspbian accross whas pretty nifty, I give you that :cool:
It won't cut it though because now you have inconsistencies between your kernel and the kernel modules - not a good state to be in :p

Either install the proper kernel package from the above site over the top, or - if you want to start over - install the image from that site. It comes pre-installed with the new kernel.

The "current stable" includes nexmon drivers (monitor mode might be a bit wonky on the B+ at the moment), "next" doesn't and is rock solid.

Hope that helps,
Re4son

Re4son,

i've tried your image - it seems everything work (keyboard and BT) but there is a problem with full storage making apt-get update immposible.
Also tried deleechious method - i can't mount my partition to folder so i just copied firmware :/ and as i said - it works but without BT and keyboard

So in the end a had working Kali with no update or Kali without keyboard or even wifi.

Finally i combined two - copied boot folder to boot partition - plain & simple, after via SSH updated and then i used your kernel
wget -O re4son-kernel_current.tar.xz https://whitedome.com.au/re4son/downloads/11299/
tar -xJf re4son-kernel_current.tar.xzcd re4son-kernel_4*
./install.sh
Kali works - BT WIFI Keyboard.

Just waiting for official image release :)

re4son
2018-03-28, 06:44
Always do this first:

https://whitedome.com.au/re4son/kali-pi/#fdisk

Or use kalipi-config:

https://github.com/Re4son/RPi-Tweaks/tree/master/kalipi-config

Ch@ng£
2018-04-01, 19:46
Hello,

I have managed to get as far as the login screen however i am unable to use my USB mouse/keyboard. Can you help?

Regards

Jake

re4son
2018-04-01, 23:07
Which image are you using?

Ch@ng£
2018-04-02, 18:36
Which image are you using?

i am using the official kali linux Image with the updated files manually copied over onto the SD. I have not tried your one yet but i may do until Kali catch up with Raspi

Jake

Ch@ng£
2018-04-02, 18:59
Am now going to attempt to use the re4son image. i am stuck on installing the files as per the instructions on the website. I am using mac os with terminal

re4son
2018-04-03, 07:54
Just download this image:

https://whitedome.com.au/re4son/download/kali-linux-3bplus-re4son/

untar it with


tar -xJf kali-linux-2018.1a-rpi3b+-re4son.img.xz

and write it to your sd card via:


sudo dd if=./kali-linux-2018.1a-rpi3b+-re4son.img of=/dev/rdiskn bs=32M status=progress;sync

where "rdiskn" is your sdcard. Better check with the man pages through, I've never used a Mac.

Hope that helps,
Re4son

Ch@ng£
2018-04-03, 18:24
Thank you very much! i will let you know how the installation goes :)

Jake

Ch@ng£
2018-04-03, 20:18
All working perfectly!!
Thank you so much

Jake

IGHOR
2018-04-05, 19:30
Thank you very much! Works great!


Just download this image:

https://whitedome.com.au/re4son/download/kali-linux-3bplus-re4son/

untar it with


tar -xJf kali-linux-2018.1a-rpi3b+-re4son.img.xz

and write it to your sd card via:


sudo dd if=./kali-linux-2018.1a-rpi3b+-re4son.img of=/dev/rdiskn bs=32M status=progress;sync

where "rdiskn" is your sdcard. Better check with the man pages through, I've never used a Mac.

Hope that helps,
Re4son

Chrifister
2018-04-11, 04:05
Just received my 3b+ today and yeah the official image wouldn't boot. So I used the re4son version found in the links posted here. It boots. Next step is to expand the storage to use all of the 32 GB SD card. Apparently it's only using a little over 7 GB with 500 MB free. There's a section on that site the image came from about expanding the storage using fdisk. Didn't work and it's saying no recognized partition table. Suppose I'll put the card back in my laptop and try to get it expanded from there.

hawaiizfynest
2018-04-28, 19:19
ok i installed re4son's image, it booted up just fine but after the update and all that it black screened. after unplugging and replugging the device, the screen keeps resetting every second. it displays a list of errors but i cant read them cause it keeps resetting. i dont understand whats going on

themusicman
2018-04-28, 20:49
I managed to get the re4son image installed, but after working ok'ish for a little while, it has continually failed in one or more areas. I posted a few threads regarding support, but despite each of them being informative genuine requests for help, neither of them were approved so alas, I am without support. I will keep an eye here for updates though.

re4son
2018-04-29, 01:59
Hi hawaiizfynest,

are you using a tft screen or is it a normal hdmi monitor that plays up on you?

Many thanks,
Re4son

re4son
2018-04-29, 02:04
Hi themusicman,

why don't you post your issues in my forum and we can have a look at it?:

https://re4son-kernel.com/forum

themusicman
2018-04-29, 08:19
Now thisw certainly seems like a welcoming, helpful and inviting way to get support. I shall register now! May not post until later as I am heading off out for a few hours, but I certainly will. many thanks.
Hi themusicman,

why don't you post your issues in my forum and we can have a look at it?:

https://re4son-kernel.com/forum

hawaiizfynest
2018-05-04, 03:24
Hi hawaiizfynest,

are you using a tft screen or is it a normal hdmi monitor that plays up on you?

Many thanks,
Re4son

this is HDMI, sorry it took me so long to respond. for some reason i dont get notifications to my email although the option is ticked on this site. i too will go to your forum to register, thanks!

hawaiizfynest
2018-05-04, 05:10
Hi hawaiizfynest,

are you using a tft screen or is it a normal hdmi monitor that plays up on you?

Many thanks,
Re4son

ok i got it installed and working. expanded the fs, changed ssh keys and login pass, autoboot enabled but when i login there is almost no tools. lol imma just install em 1 by 1 but after ur done with what ur workin on, you should make a full tools image for us. thanks for your hard work!

medi8tor
2018-10-05, 17:43
ok i got it installed and working. expanded the fs, changed ssh keys and login pass, autoboot enabled but when i login there is almost no tools. lol imma just install em 1 by 1 but after ur done with what ur workin on, you should make a full tools image for us. thanks for your hard work!

dude all you have to do if you want to install all the kali tools in one go is run


apt-get install kali-linux-full ( 15 gig you will need)

or you can just install the top 10 tools by running
kali-linux-top-10