Build the Linux/Android kernel for M722HC tablet

Shenzen M722HC is the device used by BQ Pascal Lite C, BQ has released the kernel source code.

# Install the android NDK and setup ARM build toolchain
cd /tmp && wget
tar xvf android-ndk-r7-linux-x86.tar.bz2
sudo mv android-ndk-r7 /opt
# Add the following line to your ~/.bashrc
export PATH=$PATH:/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin

# Get the kernel and build it
mkdir -p ~/android/kernel && cd ~/android/kernel
git clone
cd kernel-
make ARCH=arm CROSS_COMPILE=arm-linux-androideabi-
make ARCH=arm CROSS_COMPILE=arm-linux-androideabi- kernel.img
# Flash it to the device
~/rk2918tools/ write kernel kernel.img
# Reboot the device
~/rk2918tools/rkflashtool b