Compile cifs.ko / md4.ko for the Cube U30 GT / Shogun – Rk3066 chip


In previouse post I described how to use cifs module to access PC shares. Now it’s time to compile it Yourself.

Build it itself:

Before I proceed with explanation I want say THANK YOU to the bq company for acknowledgement of the GPL license! And say [censure ON]F#$% y#$[censure OFF] to the RockChips/CUBE/GoClever and many others Chinese Tablet companies who takes GPL kernel source code, make some changes and think that they OWN kernel source code!

I use Debian 6.+ 64bit, the procedure is same for [u/k/x]buntu and analogical for any other Linux OS.

Downloads:
1. Download GPL‘ed kernel source code from bq homepage: bq homepage for edison tablet.

2. Download google Android NDK – I used linux version

Unpack kernel source code and Android NDK.

Set up variables:

export PATH=$PATH:/path-to-android-NDK/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-linux-androideabi-

next, using console, navigate to the kernel directory, and issue commands:

– make default .config for the edison tablet (important!)

cd /path/to/the/kernel
make bqEdison_defconfig

Now You can, actually NEED because by default these module are disabled, add some additional modules to the kernel using either menuconfig or xconfig:

Cifs module is locate in:

File Systems -> Network FileSystems -> CIFS support (select M as Module).

After modification Save .config!

Now to compile modules itself:

make prepare
make EXTRA_CFLAGS=-fno-pic M=fs/cifs
make EXTRA_CFLAGS=-fno-pic M=crypto

Extra flags are important and without them You will get error: Unknown symbol _GLOBAL_OFFSET_TABLE_

Copy compiled modules cifs.ko / md4.ko to the tablet and use as descried in previous post.

Is this source code compatible with the Cube U30GT? I don’t know as I didn’t tested it so maybe those src is for Cube after all.

, , ,

Comments are closed.