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: EVM Camera Question

Part Number: AM5728


Tool/software: Linux

First, when EVM started, run the followed command :
ls /dev/video*
the result is 
/dev/video0  /dev/video10   /dev/video11
and run the followed command :
dmesg | grep ov1063x
the result is
nothing
described, I changed the uEnv.txt in SD card by adding bellow text.
fdtfile=am57xx-evm-reva3-cam-ov10635.dtb
 after restart the EVM, run the followed command:
ls /dev/video*
the result is 
/dev/video0  /dev/video10   /dev/video11 again.
then run the followed command :
dmesg | grep ov1063x
the result is 
[    1.630201] of_get_named_gpiod_flags: parsed 'enable-gpios' property of node '/clk_ov10635[0]' - status (0)                                                  
[    7.518625] of_get_named_gpiod_flags: can't parse 'mux-gpios' property of node '/ocp/i2c@4807c000/ov10635@30[0]'                                             
[    7.518656] ov1063x 4-0030: GPIO lookup for consumer reset                   
[    7.518660] ov1063x 4-0030: using device tree for GPIO lookup                
[    7.518689] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/ocp/i2c@4807c000/ov10635@30[0]' - status (0)                                   
[    7.518744] ov1063x 4-0030: GPIO lookup for consumer powerdown               
[    7.518748] ov1063x 4-0030: using device tree for GPIO lookup                
[    7.518771] of_get_named_gpiod_flags: parsed 'powerdown-gpios' property of node '/ocp/i2c@4807c000/ov10635@30[0]' - status (0)                               
[    7.801383] ov1063x: probe of 4-0030 failed with error -121      
what’s wrong?
 
By the way, my version is ti-processor-sdk-linux-am57xx-evm-05.02.00.10
 
AM572x  EVM Camera Module is as the picture
thanks.
  • then run the followed command :
    dmesg | grep ov1063 // not dmesg |grep ov1063x as up

    hope your answer, thanks.
  • Hello,

    Thank you for sharing the picture.
    It seems that you are using camera module with mt9t111 sensor not ov1063.
    Please load the correct file am57xx-evm-reva3-cam-mt9t111.dtb file with fdtfile.
    Or you could copy am57xx-evm-reva3-cam-mt9t111.dtb as am57xx-evm-reva3.dtb in the /boot folder of target board filesystem.
    Then you could try ls /dev/video* if you still do not see video1 please execute dmesg | grep mt9t

    Note: Make sure you fix the camera module with screws.

    Hope this helps.
    BR
    Margarita
  • Thank you for your reply.
    I have changed the uEnv.txt as you said.
    the result is also wrong. As followed:
    ls /dev/video*
    /dev/video0 /dev/video10 /dev/video11

    dmesg | grep mt9t
    [ 7.932730] mt9t11x 4-003c: input-clock-freq: 32000000
    [ 7.937906] mt9t11x 4-003c: pixel-clock-freq: 96000000
    [ 7.943957] mt9t11x 4-003c: GPIO lookup for consumer reset
    [ 7.943962] mt9t11x 4-003c: using device tree for GPIO lookup
    [ 7.944015] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '
    /ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
    [ 7.944030] mt9t11x 4-003c: GPIO lookup for consumer powerdown
    [ 7.944036] mt9t11x 4-003c: using device tree for GPIO lookup
    [ 7.944057] of_get_named_gpiod_flags: parsed 'powerdown-gpios' property of no
    de '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
    [ 7.944066] mt9t11x 4-003c: GPIO lookup for consumer oscen
    [ 7.944071] mt9t11x 4-003c: using device tree for GPIO lookup
    [ 7.944089] of_get_named_gpiod_flags: parsed 'oscen-gpios' property of node '
    /ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
    [ 7.944098] mt9t11x 4-003c: GPIO lookup for consumer bufen
    [ 7.944103] mt9t11x 4-003c: using device tree for GPIO lookup
    [ 7.944121] of_get_named_gpiod_flags: parsed 'bufen-gpios' property of node '
    /ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
    [ 7.944129] mt9t11x 4-003c: GPIO lookup for consumer camen
    [ 7.944133] mt9t11x 4-003c: using device tree for GPIO lookup
    [ 7.944151] of_get_named_gpiod_flags: parsed 'camen-gpios' property of node '
    /ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
    [ 7.970929] mt9t11x 4-003c: Product ID error ffffff87

    Is this OK?

    But I havn't fix the camera module with screws. I should look for the screws.

    Thank you again.
  • Hello,

    Please fix the camera module with screws.
    Refer the below:
    e2e.ti.com/.../1932846

    BR
    Margarita
  • Hi Margarita,

    Thank you for your answer.

    I have fixed the camera module with screws now.

    when start the board, the screen display the followed information always.

    As showed in the screen. I open the file /var/log/weston, and the last lines is that:

    When run the command ls /dev/video*, the result is also /dev/video0 /dev/video10 /dev/video11.

    Run the command dmesg | grep mt9t, the result is also as before.

    Thank you for your help.

    20190322

  • Hello,

    1. Regarding weston:
    Please try with the default PSDK. You could try /etc/init.d/weston start . If still is not working please share the full log in txt file.

    2. Regarding camera issue:
    This [ 7.970929] mt9t11x 4-003c: Product ID error ffffff87 error indicates that your sensor board has either gone bad or the sensor has turned loose. You can try snapping the sensor board tightly to the base board (highlighted in red oval in below image) and see if it fixes the issue. If not, you will need to get another sensor board.
    Please try to remove and connect it again.
    Please take a look into these threads:
    e2e.ti.com/.../1932846
    e2e.ti.com/.../596177

    If you have ov10635 based sensor board or another camera module  with mt9t11x  , you could try with it?

    BR
    Margarita

  • hi Margarita,

    Now I have deleted the sentence fdtfile=am57xx-evm-reva3-cam-mt9t111.dtb in file uEnv.txt, and I think the default PSDK is valid.

    But the question is still exist. When I run the /etc/init.d/weston start. The result is as followed:
    Date: 2018-12-16 UTC
    [03:53:48.777] weston 2.0.0
    http://wayland.freedesktop.org
    Bug reports to: bugs.freedesktop.org/enter_bug.cgi
    Build: 1.99.94-2-g4c4f13d configure.ac: bump to version 2.0.0 for the official release (2017-02-24 16:19:03 -0800
    )
    [03:53:48.777] Command line: weston start
    [03:53:48.777] OS: Linux, 4.14.79-gbde58ab01e, #1 SMP PREEMPT Thu Dec 20 04:51:24 UTC 2018, armv7l
    [03:53:48.777] Using config file '/etc//weston.ini'
    [03:53:48.778] Output repaint window is 7 ms maximum.
    [03:53:48.778] Loading module '/usr/lib/libweston-2/wayland-backend.so'
    [03:53:48.778] Failed to load module: /usr/lib/libweston-2/wayland-backend.so: cannot open shared object file: No such file or d
    irectory
    [03:53:48.778] fatal: failed to create compositor backend

    The full log of /var/log/weston.log is :
    Date: 2018-12-16 UTC
    [03:34:06.141] weston 2.0.0
    http://wayland.freedesktop.org
    Bug reports to: bugs.freedesktop.org/enter_bug.cgi
    Build: 1.99.94-2-g4c4f13d configure.ac: bump to version 2.0.0 for the official release (2017-02-24 16:19:03 -0800)
    [03:34:06.141] Command line: weston --idle-time=0
    [03:34:06.141] OS: Linux, 4.14.79-gbde58ab01e, #1 SMP PREEMPT Thu Dec 20 04:51:24 UTC 2018, armv7l
    [03:34:06.142] Using config file '/etc//weston.ini'
    [03:34:06.144] Output repaint window is 7 ms maximum.
    [03:34:06.147] Loading module '/usr/lib/libweston-2/drm-backend.so'
    [03:34:06.155] initializing drm backend
    [03:34:06.162] using /dev/dri/card0
    [03:34:06.163] Loading module '/usr/lib/libweston-2/gl-renderer.so'
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    [03:34:06.283] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
    [03:34:06.296] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
    [03:34:06.296] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [03:34:06.296] Retrieving EGL client extension string failed.
    [03:34:06.296] EGL_KHR_surfaceless_context available
    [03:34:06.313] EGL version: 1.4 build 1.14@3699939 (MAIN)
    [03:34:06.313] EGL vendor: Imagination Technologies
    [03:34:06.313] EGL client APIs: OpenGL_ES
    [03:34:06.313] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
    EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
    EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
    EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
    EGL_IMG_context_priority EGL_IMG_hibernate_process
    EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
    EGL_KHR_wait_sync EGL_KHR_create_context
    EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
    [03:34:06.313] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
    [03:34:06.313] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
    [03:34:06.313] GL vendor: Imagination Technologies
    [03:34:06.313] GL renderer: PowerVR SGX 544MP
    [03:34:06.313] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
    GL_OES_vertex_half_float GL_OES_texture_float
    GL_OES_texture_half_float GL_OES_element_index_uint
    GL_OES_mapbuffer GL_OES_fragment_precision_high
    GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
    GL_OES_EGL_image_external GL_OES_required_internalformat
    GL_OES_depth_texture GL_OES_get_program_binary
    GL_OES_packed_depth_stencil GL_OES_standard_derivatives
    GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot
    GL_OES_surfaceless_context GL_EXT_discard_framebuffer
    GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
    GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
    GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean
    GL_EXT_texture_rg GL_EXT_draw_buffers
    GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary
    GL_IMG_texture_compression_pvrtc
    GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot
    GL_IMG_texture_format_BGRA8888 GL_IMG_read_format
    GL_IMG_program_binary GL_IMG_uniform_buffer_object
    GL_IMG_multisampled_render_to_texture GL_KHR_debug
    [03:34:06.313] GL ES 2 renderer features:
    read-back format: RGBA
    wl_shm sub-image to texture: no
    EGL Wayland extension: yes
    [03:34:06.336] event1 - [03:34:06.336] pixcir_tangoc: [03:34:06.336] is tagged by udev as: Touchscreen
    [03:34:06.336] event1 - [03:34:06.336] pixcir_tangoc: [03:34:06.336] device is a touch device
    [03:34:06.381] event2 - [03:34:06.381] SIGMACHIP Usb Mouse: [03:34:06.381] is tagged by udev as: Mouse
    [03:34:06.381] event2 - [03:34:06.381] SIGMACHIP Usb Mouse: [03:34:06.381] device is a pointer
    [03:34:06.382] event0 - [03:34:06.382] gpio_keys: [03:34:06.382] is tagged by udev as: Keyboard
    [03:34:06.382] event0 - [03:34:06.382] gpio_keys: [03:34:06.382] device is a keyboard
    [03:34:06.890] Registered plugin API 'weston_drm_output_api_v1' of size 12
    [03:34:06.891] Chosen EGL config details:
    RGBA bits: 8 8 8 8
    swap interval range: 1 - 1
    [03:34:06.898] cursor buffers unavailable, using gl cursors
    [03:34:06.898] Failed to initialize backlight
    [03:34:06.898] Output UNNAMED-1, (connector 35, crtc 39)
    mode 800x480@59.5, preferred, current
    [03:34:06.899] Applying calibration: 1.007308 0.028177 -11.002930 -0.009862 1.118605 -36.815338 (normalized -0.013754 -0.076699)
    [03:34:06.900] Chosen EGL config details:
    RGBA bits: 8 8 8 8
    swap interval range: 1 - 1
    [03:34:06.938] cursor buffers unavailable, using gl cursors
    [03:34:06.938] Failed to initialize backlight
    [03:34:06.938] EDID data 'IPS', '----r240', '6666'
    [03:34:06.938] Output HDMI-A-1, (connector 41, crtc 47)
    mode 1920x1080@60.0, preferred, current
    mode 1920x1080@59.9
    mode 1920x1080@60.0
    mode 1920x1080@59.9
    mode 1920x1080@50.0
    mode 1920x1080@50.0
    mode 1680x1050@59.9
    mode 1400x1050@59.9
    mode 1600x900@60.0
    mode 1280x1024@75.0
    mode 1280x1024@60.0
    mode 1440x900@59.9
    mode 1280x960@60.0
    mode 1366x768@59.8
    mode 1280x800@59.9
    mode 1280x768@59.9
    mode 1280x720@60.0
    mode 1280x720@59.9
    mode 1280x720@50.0
    mode 1024x768@75.0
    mode 1024x768@70.1
    mode 1024x768@60.0
    mode 800x600@75.0
    mode 800x600@72.2
    mode 800x600@60.3
    mode 800x600@56.2
    mode 720x576@50.0
    mode 720x576@50.0
    mode 720x480@60.0
    mode 720x480@59.9
    mode 720x480@60.0
    mode 720x480@59.9
    mode 640x480@75.0
    mode 640x480@72.8
    mode 640x480@60.0
    mode 640x480@59.9
    mode 720x400@70.1
    [03:34:06.938] Compositor capabilities:
    arbitrary surface rotation: yes
    screen capture uses y-flip: yes
    presentation clock: CLOCK_MONOTONIC, id 1
    presentation clock resolution: 0.000000001 s
    [03:34:06.942] Loading module '/usr/lib/weston/desktop-shell.so'
    [03:34:06.958] launching '/usr/libexec/weston-keyboard'
    [03:34:06.960] launching '/usr/libexec/weston-desktop-shell'
    [03:34:06.963] event2 - [03:34:06.963] SIGMACHIP Usb Mouse: [03:34:06.963] is tagged by udev as: Mouse
    [03:34:06.963] event2 - [03:34:06.963] SIGMACHIP Usb Mouse: [03:34:06.963] device is a pointer
    [03:34:06.966] event3 - [03:34:06.966] USB USB Keyboard: [03:34:06.966] is tagged by udev as: Keyboard
    [03:34:06.966] event3 - [03:34:06.966] USB USB Keyboard: [03:34:06.967] device is a keyboard
    [03:34:06.969] event4 - [03:34:06.969] USB USB Keyboard: [03:34:06.969] is tagged by udev as: Keyboard
    [03:34:06.969] event4 - [03:34:06.969] USB USB Keyboard: [03:34:06.969] device is a keyboard
    could not load cursor 'dnd-move'
    could not load cursor 'dnd-copy'
    could not load cursor 'dnd-none'
    could not load cursor 'dnd-move'
    could not load cursor 'dnd-copy'
    could not load cursor 'dnd-none'
    [03:34:07.131] connector 41 disconnected
    [03:34:07.212] caught signal: 11

    About the camera module, I have tried one more, is also wrong. I will try again.
    Thank you for your patience.
  • Hello,


    Could you try:
    weston --tty=1 --backend=drm-backend.so
    Here is the link to graphics and display guide:
    software-dl.ti.com/.../Foundational_Components_Graphics.html

    BR
    Margarita