Rock/Linux Mainline
Contents
Linux Kernel 3.17
Status
What currently works in Linux mainline:
- UART
- SPI
- I2C
- GPIOs / LEDs
- USB
- SD/MMC
- Ethernet
What remains to be done:
- DRM Display driver / LCD controller
- HDMI / TV OUT drivers
- NAND flash support
Download
Get linux-next kernel tree, default config and initramfs.cpio.
git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git cd linux-next
wget http://www.sntech.de/rockchip/rockchip_defconfig -O arch/arm/configs/rockchip_defconfig wget http://www.sntech.de/rockchip/initramfs.cpio
Build kernel
We have to build two files:
- zImage (the kernel)
- rk3188-radxarock.dtb (the device tree blob)
export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabihf-
make rockchip_defconfig make -j8 zImage dtbs
Create boot image
We need to append the device tree blob to zImage (CONFIG_ARM_APPENDED_DTB option) until we can use U-Boot device tree support.
cat arch/arm/boot/zImage arch/arm/boot/dts/rk3188-radxarock.dtb > zImage-dtb
Create the boot.img using mkbootimg (Rockchip version).
mkbootimg --kernel zImage-dtb --ramdisk initramfs.cpio -o boot.img
Flash boot image
Flash boot.img using either rkflashtool or upgrade_tool:
rkflashtool w boot < boot.img rkflashtool b
upgrade_tool di -b boot.img upgrade_tool rd