This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UVC based cameras

Other Parts Discussed in Thread: 4430

Hi All,

I have compiled the android JB to the panda-board 4430. Since I don't have the CSI camera module too interface it to the panda-board 4430, I'm using the USB camera. But their is no preview & also not able to capture the images. In the kernel I have enabled the v4l2 drivers & the related tings by following/referring  the TI sites. the web cam ( logitec c160 ) is detected & a device node video0 is created under /dev. from application layer the camera application is crashing. Also by analyzing the log according to my understanding i am thinking that it is referring to the ON board camera interface(CSI) & other errors like cameraservice failed, no device properties file found etc . from application layer to camera hal layers errors are there I think so. Please help me, what changes do I need to do to make the usb camera work & capture the  images. Please help as I am in need of this for my project.

Here is my log 6523.logcat2_June21.txt

Regards

Sainath

  • Hi Sainath,

    Take a look at this guide and the patches that are applied there, It may solve your issue if  you follow the suggested steps.

    http://omappedia.org/wiki/Building_L27.IS.2.M1_for_PandaBoard,_with_USB_camera_support#USB_camera

    Regards,

    Boyko

  • Hi Boyko,

    I want the USB camera to work in android JB 4.1.2. I have tried to apply those patches which are give for ICS, but whose didn't worked out for me. Please give me some suggestions.. None of the options followed by omapopedia is working out for me. Can you please help me out from this issue.

  • Hi Sainath, 

    I believe  you have followed those steps, if not  please check if  everything you did is in compliance with this workflow.

    Kernel configuration

      CONFIG_USB_VIDEO_CLASS=y
      CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
    

    Android Configuration

    Enable USB Camera support in BoardConfig.mk. Also disable stub camera

       BOARD_USB_CAMERA := true
       #USE_CAMERA_STUB := true
    

    Add the following entries in device.mk

    #Camera
    PRODUCT_PACKAGES += \
            camera.omap3 \
    

    NOTE: The Camera icon will automatically appear in apps due to presence of camera.omap3.so in the filesystem.

    Add permission for camera in init.am335xevm.rc. This is used for temporary storage before capture.

       mkdir /data/misc/camera 0770 media media
    

    Add camera permissions in ueventd.am335xevm.rc

      /dev/video0         0666  root       root
    

    The Camera HAL is at hardware/ti/omap3/camera.

    NOTE: By default it is assumed that the USB camera is registered as /dev/video0 ( source ). You may need to change this for your device. 

    Regards,

    Boyko

  • Hi Bokyo,


    repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b 27.x -m RLS4AJ.2.2_JellyBean.xml

    I have downloaded the android source from here but the source code dont have the BOARD_USB_CAMERA :=true option.
    The CameraHardware.cpp is also not their. Is there any relavent file for this. Moreover I'm using Blaze & not the AM335X .
    From low level point of view the device node is created. but there are also errors from Android Filesystem,. Please check my previous
    log & please suggest me what need to be done to make the USB camera UP.

    mine is omap4430.

    Regards,
    Sainath