UVC support

Revision as of 04:46, 25 May 2015 by LubOlimex (talk | contribs) (Installing UsbVideoClass(UVC) on A13-OLinuXino board)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Installing UsbVideoClass(UVC) on A13-OLinuXino board



Requirements: Linux mashine with installed GCC compiler;


For UVC support adding you have to precompile U-boot image and replace the output uImage file with the existing one in the first(FAT) SD card partitition. The generated module files have to be coppied too.

Below are discribed the steps you should follow in order to add UVC support to your A13_OlinuXino board.

Note that the generated files you need are placed in A13_camera_uvc_compiled_files.zip archive and you can use them if you do not wish to compile.


# git clone https://github.com/linux-sunxi/linux-sunxi.git
# cd linux-sunxi
# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- a13_defconfig
# make ARCH=arm menuconfig

select in  Device Drivers -> Multimedia support -> Video For Linux ->
   Video capture adapters ->  V4L USB devices -> USB Video Class (UVC) (M)

# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j5 uImage modules
# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- INSTALL_MOD_PATH=output modules_install
# cp arch/arm/boot/uImage /<sdcard mount point>/<FAT Partition>/. 

For example mount /dev/sdx1 /mnt/sd; cp arch/arm/boot/uImage /mnt/sd/.

# cp -aRv output/lib/modules/* /<sdcard mount point>/lib/modules/. 

For examples cp -aRv output/lib/modules/* /mnt/sd/lib/modules/.

# cp -aRv linux-sunxi/drivers/media/video/uvc/* /<sdcard mount point>/lib/modules/3.0.52+\
/kernel/drivers/video/uvc.

# sync

plug in the SD card in A13_olinuxino board, switch on the board, connect the serial cable 
to UART1 conector.

Log in with root/password and type

# insmod /lib/modules/3.0.52+/kernel/drivers/video/uvc/uvcvideo.ko

Now you have UVC support in your kernel and can use Web Camera for your Linux apps.