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

Custom MK-SS808 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)
69 views4 pages

Custom MK-SS808 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 MK/SS808 Image


简体中文 Home / 07. Kali Linux Development
Français
Deutsch
‫اﻟﻌﺮﺑﻴﺔ‬ The following document describes our own method of creating a custom Kali Linux
Português
MK/SS808 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 MK/SS808 article.
Italiano
Русский
Español
01. Create a Kali rootfs
Categories
Build yourself a Kali rootfs as described in our Kali documentation, using an armhf architecture.
00. Introduction to Kali Linux By the end of this process, you should have a populated rootfs directory in ~/arm-
stuff/rootfs/kali-armhf.
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 MK/SS808 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-ss808.img bs=1MB count=7000
10. Kali Linux Policies

Latest Articles 03. Partition and Mount the Image File


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

loopdevice=`losetup -f --show kali-custom-ss808.img`


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

Custom CuBox Image mkfs.ext4 $rootp


mkdir -p root
Install Kali ARM on a CuBox mount $rootp root

Kali Linux sources.list repositories

Install NVIDIA Drivers on Kali Linux 04. Copy and Modify the Kali rootfs
Kali Linux on Galaxy Note 10.1 rsync -HPavz /root/arm-stuff/rootfs/kali-armhf-xfce4/ root
echo nameserver 8.8.8.8 > root/etc/resolv.conf
Submitting Bugs for Kali Linux

Twitter Stream 05. Compile the rk3066 Kernel and Modules


If you’re not using ARM hardware as the development environment, you will need to set up an

Follow Us!
ARM cross-compilation environment to build an ARM kernel and modules. Once that’s done,
proceed with the following steps.
apt-get install xz-utils
cd ~/arm-stuff
mkdir -p kernel
cd kernel

git clone git://github.com/aloksinha2001/picuntu-3.0.8-alok.git rk3066-kernel


cd rk3066-kernel
sed -i "/vpu_service/d" arch/arm/plat-rk/Makefile

export ARCH=arm
export CROSS_COMPILE=~/arm-stuff/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-

# A basic configuration for the UG802 and MK802 III


# make rk30_hotdog_ti_defconfig
# A basic configuration for the MK808
make rk30_hotdog_defconfig

# configure your kernel !


make menuconfig
# Configure the kernel as per http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=66&t=835
mkdir ../initramfs/
wget http://208.88.127.99/initramfs.cpio -O ../initramfs/initramfs.cpio

mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.p
wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch- O ../patches/negative.patch
patch
make -p1 < ../patches/mac80211.patch
modules -j$(cat /proc/cpuinfo|grep processor|wc -l)
patch -p1 < ../patches/negative.patch
make modules_install INSTALL_MOD_PATH=~/arm-stuff/images/root
git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git firmware-git
./make_kernel_ruikemei.sh
mkdir -p ~/arm-stuff/images/root/lib/firmware
cp -rf firmware-git/* ~/arm-stuff/images/root/lib/firmware/
rm -rf firmware-git

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

07. dd the Image to a USB device


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-custom-ss808.img of=/dev/sdb bs=512k

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

Related Articles

Custom EfikaMX Image

Custom Beaglebone Black Image

Custom CuBox Image

Custom Raspberry Pi Image

© Copyright 2013, Offensive Security

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

You might also like