Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
68 views4 pages

Custome Raspberry Pi Image

Uploaded by

gejib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views4 pages

Custome Raspberry Pi Image

Uploaded by

gejib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Home Translators Contribute to Kali Kali Forums F.A.

Have a question? Ask or enter a search term. SEARCH

English Custom Raspberry Pi Image


简体中文 Home / 07. Kali Linux Development
Français
Deutsch
‫اﻟﻌﺮﺑﻴﺔ‬ The following document describes our own method of creating a custom Kali Linux
Português
Raspberry Pi ARM image and is targeted at developers. If you would like to install a pre-made
Nederlands
Kali image, check out our Install Kali on Raspberry Pi article.
Italiano
Русский
Español
01. Create a Kali rootfs
Categories
Build a Kali rootfs as described in our Kali documentation, using an armel architecture. By the
00. Introduction to Kali Linux end of this process, you should have a populated rootfs directory in ~/arm-stuff/rootfs/kali-
armel.
01. Downloading Kali Linux

02. Building Custom Kali Images

03. Installing Kali Linux 02. Create the Image File


04. Kali Linux Network Installs
Next, we create the physical image file, which will hold our Raspberry Pi rootfs and boot images.
05. Kali Linux General Use
apt-get install kpartx xz-utils sharutils
06. Kali Linux ARM Architecture
06. Kali Linux ARM Architecture
cd ~
07. Kali Linux Development mkdir -p arm-stuff
cd arm-stuff/
08. Troubleshooting Kali Linux mkdir -p images
cd images
09. Kali Community Support
dd if=/dev/zero of=kali-custom-rpi.img bs=1MB count=7000
10. Kali Linux Policies

Latest Articles 03. Partition and Mount the Image File


Custom EfikaMX Image
parted kali-custom-rpi.img --script -- mklabel msdos
parted kali-custom-rpi.img --script -- mkpart primary fat32 0 64
Install Kali ARM on an EfikaMX
parted kali-custom-rpi.img --script -- mkpart primary ext4 64 -1

Custom Beaglebone Black Image


loopdevice=`losetup -f --show kali-custom-rpi.img`
device=`kpartx -va $loopdevice| sed -E 's/.*(loop[0-9])p.*/\1/g' | head -1`
Install Kali ARM on a Beaglebone
device="/dev/mapper/${device}"
Black
bootp=${device}p1
Custom CuBox Image rootp=${device}p2

Install Kali ARM on a CuBox mkfs.vfat $bootp


mkfs.ext4 $rootp
Kali Linux sources.list repositories mkdir -p root
mkdir -p boot
Install NVIDIA Drivers on Kali Linux mount $rootp root
mount $bootp boot
Kali Linux on Galaxy Note 10.1

Submitting Bugs for Kali Linux


04. Copy and Modify the Kali rootfs
Twitter Stream rsync -HPavz /root/arm-stuff/rootfs/kali-armel/ root
echo nameserver 8.8.8.8 > root/etc/resolv.conf

Follow Us!
05. Compile the Raspberry Pi Kernel and Modules
If you’re not using ARM hardware as the development environment, you will need to set up an
ARM cross-compilation environment to build an ARM kernel and modules. Once that’s done,
proceed with the following instructions.

cd ~/arm-stuff
mkdir -p kernel
cd kernel
git clone https://github.com/raspberrypi/tools.git
git clone https://github.com/raspberrypi/linux.git raspberrypi
cd raspberrypi
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=~/arm-stuff/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
make bcmrpi_cutdown_defconfig
# configure your kernel !
make menuconfig
make -j$(cat /proc/cpuinfo|grep processor|wc -l)
make modules_install INSTALL_MOD_PATH=~/arm-stuff/images/root
cd ../tools/mkimage/
python imagetool-uncompressed.py ../../raspberrypi/arch/arm/boot/Image

cd ~/arm-stuff/images
git clone git://github.com/raspberrypi/firmware.git rpi-firmware
cp -rf rpi-firmware/boot/* boot/
rm -rf rpi-firmware

cp ~/arm-stuff/kernel/tools/mkimage/kernel.img boot/
echo "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcb

umount $rootp
umount $bootp
kpartx -dv $loopdevice
losetup -d $loopdevice

Use the dd utility to image this file to your SD card. In our example, we assume the storage device
is located at /dev/sdb. Change this as needed.
dd if=kali-pi.img of=/dev/sdb bs=1M

Once the dd operation is complete, unmount and eject the SD card and boot your Pi into Kali
Linux

Related Articles

Custom EfikaMX Image

Custom Beaglebone Black Image

Custom CuBox Image

Custom Chromebook Image

© Copyright 2013, Offensive Security

English 简体中文 Français Deutsch ‫اﻟﻌﺮﺑﻴﺔ‬ Português Nederlands Italiano Русский Español

You might also like