rk3066-kernel-3.0.8(+)
Kernel for Cube U30GT-H (Android 4.1)
CMDLINE for Android:
CONFIG_CMDLINE="console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init"
CONFIG_CMDLINE_FROM_BOOTLOADER=y
CMDLINE for Linux:
CONFIG_CMDLINE="root=LABEL=linuxroot init=/sbin/init loglevel=8 rootfstype=ext4 rootwait mtdparts=rk29xxnand:0x00002000@0x00000000(parameter),0x00002000@0x00002000(misc),0x00004000@0x00004000(kernel),0x00008000@0x00008000(boot),0x00008000@0x00010000(recovery)"
CONFIG_CMDLINE_FORCE=y
or
CONFIG_CMDLINE="root=LABEL=linuxroot init=/sbin/init loglevel=8 rootfstype=ext4 rootwait
CONFIG_CMDLINE_FORCE=y
How to compile a kernel for Cube U30GT-H:
Install Tools
Command:
apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk3.0-dev build-essential zip curl libncurses5-dev zlib1g-dev lib32z1-dev lib32ncurses5-dev gcc-multilib g++-multilib sharutils lzop
(To build the kernel 3.0.8 Android 4.1, use toolchain with GCC 4.4.3)
Command:
export ARCH=arm
export CROSS_COMPILE=(Your Path)/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
For Cube U30GT-H should be used RK30 SDK config:
Command:
make rk30_sdk_defconfig
Then You can configure kernel with command:
(Initial configuration includes settings as in the original kernel from the manufacturer Cube)
Command:
make menuconfig
Building the kernel:
Command:
make -j4
(-j "4" number of threads, that is usually the number of cores of your processor)