The linux driver for Enalab camera can be downloaded from
To use this camera driver, you have to make patches and recompile the linux kernel on IMote2. Following are the descriptions:
RECOMPILE KERNEL:
Prerequisites: Linux 2.6.14 compiles with the 3.4.1 tool chain. It failed with 3.3.2. This is the opposite of the Blob. The 2.6.14 kernel on the 3.3.2 tool-chain fails with the error: arm-linux-ld:arch/arm/kernel/vmlinux.lds:811: parse error in make zImage
tar xzpf linux-2.6.14.tar.gz
cd linux-2.6.14
patch -p1 < patch-2.6.14-sg2_10 chmod 755 scripts/platx_config
patch -p1 < patch-icmr2 patch -p1 < patch-regs
Before building the kernel you will need to add /usr/local/arm/3.4.1/bin/ to your path if it is not already there.
bzip2 -d arm-linux-gcc-3.4.1.tar.bz2 tar xvf arm-linux-gcc-3.4.1.tar export PATH=$PATH:/usr/local/arm/3.4.1/bin/
export ARCH=arm export CROSS_COMPILE=arm-linux- make stargate2_defconfig make oldconfig make zImage
make modules make modules_install
The make modules_install copies the modules into the modules directory of the kernel root directory. From this directory the modules are picked up by the file system build tools. (You can change where the modules go by editing the INSTALL_MOD_PATH in the Makefile.)
Download Download opencv-1.0.0.tar.gz from http://downloads.sourceforge.net/opencvlibrary/opencv-1.0.0.tar.gz?modtime=1162852454&big_mirror=1 Modify the source code: At the line 227 of the file /cxcore/include/cxtypes.h change return (int) temp.u; to return (int) (temp.u >> 32); Cross compile OpenCV make clean ./configure --host=arm-linux --without-gtk --without-carbon --without-v4l --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig make make install Note: the cross compiler we are using is arm-linux-gcc-3.4.1, which is the same version used to compile the zImage of Imote2-SG2 linux.