ubuntu for rk3188

Serial config: 115200

Prebuild images: http://dl.radxa.com/rock/images/ubuntu/latest/

you can ignore the rest of this doc and download a prebuild image and flash it!

create ubuntu image: master doc: http://wiki.radxa.com/Rock/ubuntu

apt-get install qemu-user-static binfmt-support
dd if=/dev/zero of=rock_rootfs.img bs=1M count=1024
mkfs.ext4 -F -L linuxroot rock_rootfs.img
mount -o loop rock_rootfs.img /mnt
wget https://releases.linaro.org/13.08/ubuntu/raring-images/alip/linaro-raring-alip-20130826-474.tar.gz
check md5sum 😉
tar zxvf linaro-raring-alip-20130826-474.tar.gz -C /mnt
cd /mnt
mv binary/*   .
rmdir binary
cp /usr/bin/qemu-arm-static /mnt/usr/bin
modprobe binfmt_misc
mount -t devpts devpts /mnt/dev/pts
mount -t proc proc /mnt/proc
chroot /mnt
echo ‘nameserver 8.8.8.8’ > /etc/resolv.conf
apt-get update
apt-get install xorg firefox vim mc
passwd linaro
exit
umount /mnt/proc
umount /mnt/dev/pts
cd /
umount /mnt

Flash image: master doc: http://wiki.radxa.com/Rock/flash_the_image

download and install http://dl.radxa.com/rock/tools/linux/rkflashkit_0.1.1_all.deb
run it
select Image: rock_rootfs.img
turn off board, push recover button (next to usb port) and power on device using oth cable (no ther power supply), now software should detect board
select NAND partition: userdata
it is better to get a backup first 😉
flash 😉
you should flash a kernel too

Compile a kernel: master doc: http://wiki.radxa.com/Rock/Booting_Linux

NOTE: this works only on squeeze!
apt-get install emdebian-archive-keyring
add this line to sources.list:
deb http://www.emdebian.org/debian squeezy main
apt-get update
apt-get install lzop libncurses5-dev
apt-get install g++-4.4-arm-linux-gnueabi git build-essential
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
git clone -b wip/rockchip-3.0-radxa-rock https://github.com/linux-rockchip/rockchip-3.0.git
cd rockchip-3.0/
make rk3188_radxa_rock_defconfig
make
cd ..
git clone https://github.com/radxa/initrd.git
cd initrd/
find . ! -path “./.git*”  | cpio -H newc  -ov > ../initrd.img
cd ..
wget http://dl.radxa.com/rock/tools/linux/mkbootimg
chmod +x mkbootimg
./mkbootimg –kernel rockchip-3.0/arch/arm/boot/Image –ramdisk initrd.img -o boot.img

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s