Custom ODROID X2 U2 Image
Custom ODROID X2 U2 Image
Latest Articles
03. Partition and Mount the Image File
Kali Linux on Galaxy Note 10.1 04. Copy and Modify the Kali rootfs
Submitting Bugs for Kali Linux Copy over the Kali rootfs you bootstrapped earlier using rsync to the mounted image.
cd ~/arm-stuff/images/
Twitter Stream
rsync -HPavz ~/arm-stuff/rootfs/kali-armhf/ root
echo nameserver 8.8.8.8 > root/etc/resolv.conf
Follow Us! Edit the ~/arm-stuff/images/root/etc/inittab file and locate the “Example how to put a getty
on a serial line”.
nano root/etc/inittab
If you want the serial console to autologin as root, use the following line instead:
nano root/etc/udev/links.conf
If an entry for ttySAC1 doesn’t already exist, add it to the file so it looks as follows:
M null c 13
M console c 51
M ttySAC1 c 51
Section "Device"
Identifier "Mali-Fbdev"
# Driver "mali"
Option "fbdev" "/dev/fb1"
Option "DRI2" "true"
Option "DRI2_PAGE_FLIP" "true"
Option "DRI2_WAIT_VSYNC" "true"
Option "UMP_CACHED" "true"
Option "UMP_LOCK" "false"
EndSection
Section "Screen"
Identifier "Mali-Screen"
Device "Mali-Fbdev"
LinkDefaultDepth
init in the root,
24 rootfs directory:
EndSection
cd ~/arm-stuff/images/root
Section "DRI"
ln -s /sbin/init
Mode 0666 init
EndSection
EOF
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.
We next need to fetch the ODROID kernel sources and place them in our development tree
structure:
cd ~/arm-stuff
mkdir -p kernel
cd kernel
git clone --depth 1 https://github.com/hardkernel/linux.git -b odroid-3.8.y odroid
cd odroid
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=~/arm-stuff/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
export CROSS_COMPILE=~/arm-stuff/kernel/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
# for ODROID-X2
make odroidx2_defconfig
# for ODROID-U2
make odroidu2_defconfig
# configure your kernel !
make menuconfig
# and enable
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_RD_LZMA=y
Chroot into the rootfs and create an initrd. Make sure to use the correct kernel
version/extraversion for the mkinitramfs command. In our case, it was “3.0.63″.
Copy the kernel and generated initrd file to the mounted boot partition as shown below.
mv ~/arm-stuff/images/root/uInitrd ~/arm-stuff/images/boot/
cp arch/arm/boot/zImage ~/arm-stuff/images/boot/
Dump a boot.txt file, which contains required boot parameters for the ODROID in the boot
partition.
Unmount the root and boot partitions, then umount the loop device.
cd ~/arm-stuff/images/
umount $bootp
umount $rootp
kpartx -dv $loopdevice
wget http://www.mdrjr.net/odroid/mirror/old-releases/BSPs/Alpha4/unpacked/boot.tar.gz
tar zxpf boot.tar.gz
cd boot
sh sd_fusing.sh $loopdevice
cd ..
losetup -d $loopdevice
Now, image the file onto your USB storage device. Our device is /dev/sdb. Change this as
needed.
Once this operation is complete, connect your UART serial cable to the ODROID and boot it up
with the microSD/SD card plugged in. Through the serial console, you will be able to log in to Kali
(root / toor) and startx.
If everything works and you want the ODROID to start on boot, make sure to use the “autologin”
line in the inittab given above and add the following to your bash_profile:
These steps are experimental and not fully tested yet. They should be preformed inside the Kali
rootfs.
# http://malideveloper.arm.com/develop-for-mali/drivers/open-source-mali-gpus-linux-exadri2-and-x11-display-d
apt-get install build-essential autoconf automake make libtool xorg xorg-dev xutils-dev libdrm-dev
wget http://malideveloper.arm.com/downloads/drivers/DX910/r3p2-01rel0/DX910-SW-99003-r3p2-01rel0.tgz
wget http://malideveloper.arm.com/downloads/drivers/DX910/r3p2-01rel0/DX910-SW-99006-r3p2-01rel0.tgz
wget --no-check-certificate https://dl.dropbox.com/u/65312725/mali_opengl_hf_lib.tgz
English 简体中文 Français Deutsch اﻟﻌﺮﺑﻴﺔ Português Nederlands Italiano Русский Español