I sell on Tindie

Wednesday, September 4, 2013

Webcam on odroid-x in Android

Finally I can use my webcam in Android. Thanks to latest release 1.8.0 UVC from hardkernel
Steps needed (Ubuntu):
1. Download kernel BSP for 1.7.1
2. Download arm cross compiler as described in http://forum.odroid.com/viewtopic.php?f=51&t=83
3. Now to command line

PATH=$PATH:/usr/local/arm/arm-2010q1/bin
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- odroidx_android_sdmmc_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- xconfig


Enable all webcam drivers as modules. Or enable only specific driver.


make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- INSTALL_MOD_PATH=../rfs modules_install
cp $(find ../rfs | grep .ko) ../rfs_fc
adb remount
adb push ../rfs_fc/ /system/lib/modules
adb reboot


Now when you start camera application - it will display image from your webcam.

No comments: