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 http://dl.google.com/android/ndk/android-ndk-r7-linux-x86.tar.bz2
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 git@github.com:lamegopinto/kernel-2.6.32.27-M722HC.git
cd kernel-2.6.32.27-M722HC
make ARCH=arm CROSS_COMPILE=arm-linux-androideabi-
make ARCH=arm CROSS_COMPILE=arm-linux-androideabi- kernel.img
# Flash it to the device
~/rk2918tools/img-manager.py write kernel kernel.img
# Reboot the device
~/rk2918tools/rkflashtool b
Comments