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.

Linux/AM5728: Camera not working with latest SDK

Part Number: AM5728

Tool/software: Linux

Support,

I want to run the AM5728 EVM camera demos and I'm having trouble getting it to work.  I've downloaded the latest SDK image, 4.03, and created an sd-card through windows.  When i goto OpenCL demo through MATRIX GUI, it seems to connect to the camera but then screen flashes white and goes back to default MATRIX screen?

I have seen a few posts recommending to apply a patch, one says "use PLSDK 4.04" when latest SDK is 4.03?  I do not have the SDK installed on a linux host and therefore cannot apply any patches, or rebuild once a patch is applied.  

I would like a link to a pre-built image that has the SDK/Camera fixes already applied.

Thanks.

  • I made a mistake saying a previous post said to use SDK 4.04. The correct version mentioned is SDK v4.00.00.04.

    I just tried a new image for SDK 4.3, now the MATRIX GUI does not show up.
    Thanks.
  • Hello,

    pathfinder said:
    When i goto OpenCL demo through MATRIX GUI, it seems to connect to the camera but then screen flashes white and goes back to default MATRIX screen?

    Which demo you are running?

    Here is my observations with PSDK 4.03

    I enter the OpenCL folders from matrix-gui and both demos floating point computation and vector addition can be run successful.

    However, I checked the dual camera demo from Matrux GUI, this demo also can  run successfully.

    I tried the to run from the Matrix the qt-opencv-opencl-opengl-multithread(video analytics demo) this is working also. But in this case I go to file option first.

    There is no PSDK 4.04 previous versions are 4.02 and 4.00.

    pathfinder said:
    I do not have the SDK installed on a linux host and therefore cannot apply any patches, or rebuild once a patch is applied.  

    If you have Windows host you always could setup virtual machine with Ubuntu.

    BR
    Margarita

  • Hello,

    pathfinder said:
    I just tried a new image for SDK 4.3, now the MATRIX GUI does not show up.

    On my side it is loading a bit slow, please wait.

    BR
    Margarita

  • Margarita,
    I can run the OpenCL examples successfuly.

    I am trying the Video Analytics Demo, and would like to try dual-camera demo but i want to get the first one running.
    When i run VA demo, i get the window, i goto 'Connect to Camera', I select
    * device number = 1
    * 640x480
    * Capture Thread - normal
    * Processing Thread - high
    I click OK, the screen flashes WHITE, then defaults back to the MATRIX demo.

    I have tried
    * 2 different EVMs
    * 2 different camera modules
    * SDK 4.0.0.4, 4.1.0.6, 4.2.0.9, 4.3.0.5
    * 800x600

    Not successful. They all exhibit the white screen flash and default back to MATRIX.

    in /dev - i don't even have a 'video1'. I have video0, video10, and video11

    I must be doing something wrong!

    Thanks,
    Marc
  • Hello,

    It seems your problem is that you do not have /dev/video1.
    Please boot the board and execute -
    dmesg | grep mt9t

    If do not see logs, then execute
    dmesg | grep ov10

    and post the log here.


    BR
    Margarita

  • Margarita,

    root@am57xx-evm:~# dmesg | grep mt9t

    [ 10.309933] mt9t11x 4-003c: input-clock-freq: 32000000
    [ 10.317759] mt9t11x 4-003c: pixel-clock-freq: 96000000
    [ 10.324536] mt9t11x 4-003c: GPIO lookup for consumer reset
    [ 10.324542] mt9t11x 4-003c: using device tree for GPIO lookup
    [ 10.324600] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
    [ 10.324612] mt9t11x 4-003c: GPIO lookup for consumer powerdown
    [ 10.324616] mt9t11x 4-003c: using device tree for GPIO lookup
    [ 10.324633] of_get_named_gpiod_flags: parsed 'powerdown-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
    [ 10.324642] mt9t11x 4-003c: GPIO lookup for consumer oscen
    [ 10.324646] mt9t11x 4-003c: using device tree for GPIO lookup
    [ 10.324661] of_get_named_gpiod_flags: parsed 'oscen-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
    [ 10.324669] mt9t11x 4-003c: GPIO lookup for consumer bufen
    [ 10.324673] mt9t11x 4-003c: using device tree for GPIO lookup
    [ 10.324689] of_get_named_gpiod_flags: parsed 'bufen-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
    [ 10.324697] mt9t11x 4-003c: GPIO lookup for consumer camen
    [ 10.324701] mt9t11x 4-003c: using device tree for GPIO lookup
    [ 10.324717] of_get_named_gpiod_flags: parsed 'camen-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
    [ 10.350475] mt9t11x 4-003c: Product ID error ffffff87
    root@am57xx-evm:~#
  • Hello,

    In additional,

    This case dmesg | grep mt9t the error is mt9t11x 4-003c: Product ID error ffffff87 refer this thread:
    e2e.ti.com/.../677156

    If you use ov10635 sensor board make sure that are using the correct dtb file.
    In other words you should execute this steps:
    1. cd /run/media/mmcblk0p1
    2. vi uEnv.txt
    3. add this line : fdtfile=am57xx-evm-reva3-cam-ov10635.dtb
    4. save
    5. You could cat the file to be sure that your change is added.
    6. reboot the board.

    Hope this helps.

    BR
    Margarita
  • Hello,

    So this is the first case with mt9t11x. Please check the thread.

    BR
    Margarita
  • Margarita,

    OK! Thanks!
    I now have video. It looks a bit stretched in the vertical though.

    Do I have to do anything special for the dual camera demo?

    Thanks.
    Marc
  • Hello,

    pathfinder said:
    Do I have to do anything special for the dual camera demo?

    No.

    You could run the dual camera demo from the Matrix.

    Please if this answers your question click the "This resolved my issue" button.

    BR

    Margarita

  • Margarita,

    I have 2 camera boards: revision A1 and C.

    I can do the single OpenCL/CV camera demo
    i cannot run
    * dual camera demo. I get green screen w/ 'capture' and 'exit' buttons at the bottom. I tried the onboard camera + usb-webcam.
    * machine vision. but this says i need external USB camera. A specific one. Am i correct that it will not work with generic Logitech webcam?

    Questions:
    1. In the OpenCL/CV demo, i can run some of the image processing functions. Not all. 'canny' just gives a noisy, raster image.
    2. In the OpenCL/CV demo, gesture recognition, I see outlines of other objects, but not around my face or hand. I cannot get a gesture to influence the wave picture.

    Thanks.
    Marc
  • Hello,

    pathfinder said:
    * dual camera demo. I get green screen w/ 'capture' and 'exit' buttons at the bottom. I tried the onboard camera + usb-webcam.

    Try with single camera. On my side with a camera module is working.

    I also would recommend you to look into /ti-processor-sdk-linux-am57xx-evm-04.03.00.05/example-applications/dual-camera-demo-1.0/loopback.c file.

    pathfinder said:
    Questions:
    1. In the OpenCL/CV demo, i can run some of the image processing functions. Not all. 'canny' just gives a noisy, raster image.
    2. In the OpenCL/CV demo, gesture recognition, I see outlines of other objects, but not around my face or hand. I cannot get a gesture to influence the wave picture.

    Open a new topic regarding these questions since they are OpenCL/CV related.

    BR
    Margarita

  • Margarita,

    I still get green screen when i run the Dual Camera demo with single camera. The one plugged into the board.

    Can i use an off-the-shelf, usb webcam?

    Thanks.
    Marc
  • Margarita,

    I just created sd card with SDK 4.3, made the change to uEnv.txt, and now the dual camera demo works with single camera.
    Thanks!

    Can i use USB webcam?

    Thanks,
    Marc