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.

saLoopBack Problem

Other Parts Discussed in Thread: TVP7002, TLC59108

Hi,
I refer the technical user guide "TI81XX Video Capture Driver User Guide.pdf" and "TI81XX VPSS Video Driver User Guide", and others questions in TI E2E Community.
So i follow the steps of the documents,and execute saLoopBack then get error message "VPSS_DCTRL: failed to get venc info", i don't know where is wrong? please help me.

//====================================
root@dm814x-evm:/media/sda1/bin# ./saLoopBack

VPSS_FVID2: contrl event 0x1004001a timeout
VPSS_DCTRL: failed to get venc info.
Driver Name: ti81xxvin
Driver bus info: TI81xx Platform
Driver is capable of doing capture

//====================================

this is my hardware plateform
//====================================
Mistral DM8148 EVK : include main board, I/O extend board , LCD dauggter board
//====================================

this is my software packages
//====================================
1. ti-ezsdk_dm814x-evm_5_05_02_00
2. linux-2.6.37-psp04.04.00.01
//====================================

this is my pre-requested work
//====================================
step 1. flash uboot and linux kernel to SD card.

step 2. under the ezsdk folder, make all to build all resource
~/ti-ezsdk_dm814x-evm_5_05_02_00$ make all

step 3. prepare all needed files like follow:
dm814x_hdcpss_v4l2.xem3
slaveloader_release
syslink.ko
vpss.ko
ti81xxvo.ko
tvp7002.ko
ti81xxvin.ko
ti81xxfb.ko
ti81xxhdmi.ko
//====================================

this is my shell command
//====================================
root@dm814x-evm:/media/sda1/ko# #disable matrix gui
root@dm814x-evm:/media/sda1/ko# /etc/init.d/matrix-gui-e stop
Stopping Matrix GUI application.
root@dm814x-evm:/media/sda1/ko# /etc/init.d/pvr-init stop
Stopping PVR
root@dm814x-evm:/media/sda1/ko# echo 0 > /sys/devices/platform/vpss/graphics0/enabled
VPSS_GRPX : please open fb0 node first.
root@dm814x-evm:/media/sda1/ko# cat /sys/devices/platform/vpss/graphics0/enabled
0
root@dm814x-evm:/media/sda1/ko#insmod ti81xxvo.ko
root@dm814x-evm:/media/sda1/ko#insmod syslink.ko
root@dm814x-evm:/media/sda1/ko#./slaveloader_release startup VPSS-M3 dm814x_hdvpss_v4l2.xem3

Attached to slave procId 2.
Loading procId 2.
Loaded file dm814x_hdvpss_v4l2.xem3 on slave procId 2.
Started slave procId 2.

root@dm814x-evm:/media/sda1/ko#insmod vpss.ko
root@dm814x-evm:/media/sda1/ko#insmod ti81xxfb.ko
root@dm814x-evm:/media/sda1/ko#insmod ti81xxhdmi.ko
root@dm814x-evm:/media/sda1/ko#insmod tvp7002.ko
root@dm814x-evm:/media/sda1/ko#insmod ti81xxvin.ko
root@dm814x-evm:/media/sda1/ko# lsmod
Module Size Used by
ti81xxvin 29276 1
tvp7002 6429 1
ti81xxvo 21210 0
tlc59108 1545 0
ti81xxhdmi 17685 0
ti81xxfb 21979 0
vpss 74936 4 ti81xxvin,ti81xxvo,ti81xxhdmi,ti81xxfb
syslink 1133911 0
ipv6 214095 14
root@dm814x-evm:/media/sda1/bin# ./saLoopBack
VPSS_FVID2: contrl event 0x1004001a timeout
VPSS_DCTRL: failed to get venc info.
Driver Name: ti81xxvin
Driver bus info: TI81xx Platform
Driver is capable of doing capture
//====================================

  • Hello,

    What is the software release that you are using here?

    Best Regards,

    Margarita

  • Hello,

    Could you try:

    root@dm814x-evm:~# /etc/init.d/matrix-gui-e stop
    Stopping Matrix GUI application.
    root@dm814x-evm:~# /etc/init.d/pvr-init stop
    Stopping PVR
    root@dm814x-evm:~# cd /usr/share/ti/ti-media-controller-utils/
    root@dm814x-evm:/usr/share/ti/ti-media-controller-utils# ./load-hd-firmware.sh stop

    root@dm814x-evm:/usr/share/ti/ti-media-controller-utils# ./load-hd-v4l2-firmware
    .sh start

    root@dm814x-evm:./saLoopBack

    Also could you post your bootargs.

    Let me know the result.

    Best Regards,

    Margarita

  • Hi,

    1. My software release version is ti-ezsdk-dm814x-evm_5_05_02_00, and psp version is linux-2.6.37-psp04.04.00.01.
    2. I try to follow your suggest steps, then get error message "Setting DV Preset failed".

    root@dm814x-evm:/media/sda1/bin# ./saLoopBack
    Driver Name: ti81xxvin
    Driver bus info: TI81xx Platform
    Driver is capable of doing capture
    saLoopBack:
    Mode set is 0
    Setting DV Preset failed

    I find this error happen in here isn't a valid video signal to the TVP7002 ADC, is right?
    and i had check the connection between media player and DM8148, like this :
    media player -> dm8148

    (connection is included component RCA jacks, which are Y(green,J9), Pb(blue,J8), Pr(red,J10) )

    3. I list these bootargs, but not sure that shell command is correct, please check.

    root@dm814x-evm:/media/sda1/bin# cat /proc/cmdline
    console=ttyO0,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=364M@0x80000000 mem=320M@0x9FC00000 vmalloc=500M notifyk.vpssm3_sva=0xBF900000 ip=off noinitrd

  • Hello,

    chrishuang96 said:
    Setting DV Preset failed

    Please check IO expansion board is connected properly. And also make sure that Y, Pb and Pr of component in are connected in respective pins. Because setting/querying of DV preset fails means that  it is not able to detect the input resolution.

    Could you provide me details about your video source resolution etc.?

    chrishuang96 said:
    (connection is included component RCA jacks, which are Y(green,J9), Pb(blue,J8), Pr(red,J10) )

    This is correct.

    Best Regards,

    Margarita

  • Hi,
    1. The error Message "Setting DV Preset failed" is resolved, the checking steps are follow like these:
    - check hardware connection is ok, and Y, Pb and Pr of component in are connected in respective pins.
    - modify media player output resolution to 1080p 60Hz.

    2 After execute ./saLoopBack, result the other error messages, and i find these error because in default mode LCD is set for 800X480 resolution, so need to modify it, right? and i also need to your confirmation that  this example default display on LCD.

        VPSS_GRPX : (0)- region(1920x1080) out of frame(800x480).
        Error writing variable information.
        : Invalid argument
        Error in setting up of Buffers


    Then i execute follow shell commands, then error is gone.

    echo 0 > /sys/devices/platform/vpss/display1/enabled
    echo 1080p-60 > /sys/devices/platform/vpss/display1/mode
    echo 1 > /sys/devices/platform/vpss/display1/enabled

    3. I reset dm8148 kit and do the steps again, but screen no video display, and instead to show half blanking and half brightness on LCD.
    Can you give me some advice?

    *********************************************************************
    root@dm814x-evm:~#/etc/init.d/matrix-gui-e stop
    root@dm814x-evm:~#/etc/init.d/pvr-init stop
    root@dm814x-evm:~#cd /usr/share/ti/ti-media-controller-utils/
    root@dm814x-evm:/usr/share/ti/ti-media-controller-utils/#./load-hd-firmware.sh stop
    root@dm814x-evm:/usr/share/ti/ti-media-controller-utils/#./load-hd-v4l2-firmware.sh start
    root@dm814x-evm:/usr/share/ti/ti-media-controller-utils/#echo 0 > /sys/devices/platform/vpss/display1/enabled
    root@dm814x-evm:/usr/share/ti/ti-media-controller-utils/#echo 1080p-60 > /sys/devices/platform/vpss/display1/mode
    root@dm814x-evm:/usr/share/ti/ti-media-controller-utils/#echo 1 > /sys/devices/platform/vpss/display1/enabled
    root@dm814x-evm:/usr/share/ti/ti-media-controller-utils/#cd /media/sda1/bin/
    root@dm814x-evm:/media/sda1/bin# ./saLoopBack
    Driver Name: ti81xxvin
    Driver bus info: TI81xx Platform
    Driver is capable of doing capture
    saLoopBack:
    Mode set is 1080P60
    I2C No Ack

    Driver Name:
    Driver bus info: ? @@`
    =============================================================
    Capture Format:
    =============================================================
    fmt.type = 1
    fmt.width = 1920
    fmt.height = 1080
    fmt.pixelformat = 1448695129
    fmt.bytesperline = 3840
    fmt.sizeimage = 4147200
    =============================================================
    =============================================================
    Display Format:
    =============================================================
    fmt.type = 2
    fmt.width = 1920
    fmt.height = 1080
    fmt.pixelformat = 1448695129
    fmt.bytesperline = 3840
    fmt.sizeimage = 4147200
    =============================================================
    ------------[ cut here ]------------
    WARNING: at kernel/softirq.c:159 local_bh_enable+0x54/0xc4()
    Modules linked in: tlc59108 ti81xxhdmi ti81xxvin tvp7002 ti81xxvo ti81xxfb vpss syslink ipv6 [last unloaded: syslink]
    Backtrace:
    [<c004bbd0>] (dump_backtrace+0x0/0x110) from [<c03ef4d8>] (dump_stack+0x18/0x1c)
    r7:00000000 r6:c0075cd0 r5:c04ce252 r4:0000009f
    [<c03ef4c0>] (dump_stack+0x0/0x1c) from [<c0070738>] (warn_slowpath_common+0x54/0x6c)
    [<c00706e4>] (warn_slowpath_common+0x0/0x6c) from [<c0070774>] (warn_slowpath_null+0x24/0x2c)
    r9:c058b5bc r8:d708c800 r7:0000000e r6:d6743a00 r5:c05628a0
    r4:c05b8240
    [<c0070750>] (warn_slowpath_null+0x0/0x2c) from [<c0075cd0>] (local_bh_enable+0x54/0xc4)
    [<c0075c7c>] (local_bh_enable+0x0/0xc4) from [<c006a5b0>] (omap_mbox_msg_send+0xcc/0xdc)
    r5:c05628a0 r4:00000000
    [<c006a4e4>] (omap_mbox_msg_send+0x0/0xdc) from [<c030fce8>] (notify_shm_drv_send_event+0x1c8/0x208)
    r5:00000001 r4:00000000
    [<c030fb20>] (notify_shm_drv_send_event+0x0/0x208) from [<c030d478>] (notify_send_event+0x114/0x26c)
    [<c030d364>] (notify_send_event+0x0/0x26c) from [<bf2aaa08>] (vps_fvid2_queue+0xe4/0x21c [vpss])
    [<bf2aa924>] (vps_fvid2_queue+0x0/0x21c [vpss]) from [<bf2b3ccc>] (capture_queue+0x50/0x64 [vpss])
    r8:bf2d9464 r7:60000013 r6:d5c62780 r5:00000000 r4:d5886c00
    [<bf2b3c7c>] (capture_queue+0x0/0x64 [vpss]) from [<bf2d8210>] (ti81xxvin_buffer_queue+0x9c/0xe8 [ti81xxvin])
    r5:d5917400 r4:d5886c00
    [<bf2d8174>] (ti81xxvin_buffer_queue+0x0/0xe8 [ti81xxvin]) from [<c02e6c70>] (videobuf_streamon+0x80/0xd0)
    r7:60000013 r6:d59175c4 r5:d5917504 r4:d5c62780
    [<c02e6bf0>] (videobuf_streamon+0x0/0xd0) from [<bf2d7c88>] (vidioc_streamon+0x244/0x400 [ti81xxvin])
    r7:d5ec7000 r6:00000001 r5:d5917400 r4:d5917504
    [<bf2d7a44>] (vidioc_streamon+0x0/0x400 [ti81xxvin]) from [<c02dc578>] (__video_do_ioctl+0x1618/0x3f34)
    r6:40045612 r5:00000000 r4:00000001
    [<c02daf60>] (__video_do_ioctl+0x0/0x3f34) from [<c02dad50>] (__video_usercopy+0x2e4/0x428)
    [<c02daa6c>] (__video_usercopy+0x0/0x428) from [<c02daec4>] (video_ioctl2+0x30/0x38)
    [<c02dae94>] (video_ioctl2+0x0/0x38) from [<c02d9f04>] (v4l2_ioctl+0xe8/0x11c)
    r5:d5ec7000 r4:d5ce9400
    [<c02d9e1c>] (v4l2_ioctl+0x0/0x11c) from [<c00d76ec>] (vfs_ioctl+0x28/0x44)
    r9:d670c000 r8:be848c74 r7:00000003 r6:00000003 r5:d5ce9400
    r4:00000000
    [<c00d76c4>] (vfs_ioctl+0x0/0x44) from [<c00d7dfc>] (do_vfs_ioctl+0x500/0x540)
    [<c00d78fc>] (do_vfs_ioctl+0x0/0x540) from [<c00d7e94>] (sys_ioctl+0x58/0x7c)
    [<c00d7e3c>] (sys_ioctl+0x0/0x7c) from [<c0047e00>] (ret_fast_syscall+0x0/0x30)
    r8:c0047fa8 r7:00000036 r6:000124d0 r5:0001215c r4:be848c74
    ---[ end trace 4a48759234f92622 ]---
    Count=0
    Frame rate = 62
    I2C No Ack

    *********************************************************************

  • Hi,

    I resolve the display problem. After connect HDMI, the video capture and display is OK, now i can develop my algorithm.

    By the way if i need DSP side to run image process algorithm, which things are i need to know?  thank you your help.