Android

Compiling Android kernel modules: Part II

1. Do a local copy of the Asure’s kernel sources

$ git clone git://github.com/Asure/Dropad-kernel-2.6.35.7

2. Copy kernel config for Dropad A8

$ cp arch/arm/configs/dropad_defconfig .config

3. Select config parameters

ARCH=arm make menuconfig

4. Build process

ARCH=arm CROSS_COMPILE=arm-linux- make prepare
ARCH=arm CROSS_COMPILE=arm-linux- make modules_prepare
ARCH=arm CROSS_COMPILE=arm-linux- make M=net/can
ARCH=arm CROSS_COMPILE=arm-linux- make M=drivers/net/can

Doing this we get a the compiled module binaries of the SocketCAN subsystem for the Dropad A8 :D

Compiling Android kernel modules: Part I

0. Retrieve tablet kernel information

Dropad A8 with Evolution 2.0 R4 (998Mhz) thanks to prox32, the ROM comes rooted so we only need to install Terminal Emulator

$ uname -ar
Linux localhost 2.6.35.7 #363 PREEMPT Sat Aug 6 14:29:51 CST 2011 armv7l GNU/Linux
$ dmesg

<6>[ 0.000000] Initializing cgroup subsys cpu
<5>[ 0.000000] Linux version 2.6.35.7 (raymanfeng@urbetter-linux01) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #363 PREEMPT Sat Aug 6 14:29:51 CST 2011
<4>[ 0.000000] CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7f
<4>[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
<4>[ 0.000000] Machine: SMDKV210
<4>[ 0.000000] Ignoring unrecognised tag 0×00000000
<4>[ 0.000000] Ignoring unrecognised tag 0×00000000
<4>[ 0.000000] Ignoring unrecognised tag 0×41001099
<4>[ 0.000000] Memory policy: ECC disabled, Data cache writeback

Two interesting things on the listings, first the kernel version stated as 2.6.35.7 and second compiler version gcc 4.4.1 and Sourcery G++ Lite 2009q3-67. Now we can setup out compiling environment!.

More >