Enalab Camera and Intel Mote2

 

Camera Driver and Running Environment

The linux driver for Enalab camera can be downloaded from

http://www.cs.umass.edu/~dxie/dl/enalabcamera_driver.tar.gz

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  

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/ 

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.)

 

 

Port OpenCV to Imote2

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.