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

Other Parts Discussed in Thread: TVP7002

We too are not having any luck with saLoopBack. I am supplying a 1080P signal from a DVD player to the J5-J7 inputs.

These are the exact steps we used to set up and the error. What if anything should we do differently?

1) Download the latest PSP ("TI816X-LINUX-PSP-04.00.02.14.tgz"
and "DM816x HDVPSS binary package") from http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/psp/LinuxPSP/DM816x_04_00/04_00_02_14/index_FDS.html

2) Unpack
"TI816X-LINUX-PSP-04.00.02.14.tgz" into ${EZSDK}/board-support.

3) Unpack "DM816x HDVPSS binary package"
into ${NFSROOT}/home/root.

4) Copy 'syslink.ko' in the unpacked files to
‘/targetfs/lib/modules/2.6.37/kernel/drivers/dsp’ (Make a backup of the
previous one).

5) Copy
'${EZSDK}/board-support/prebuilt-images/dm816x-firmware_05_02_00_30/dm816x_hdvpss_v4l2.xem3'
to the folder that you unpacked "DM816x HDVPSS binary package".

6) Modify ‘/targetfs/etc/init.d/load-hd-firmware.sh’.

- Change 'modprobe syslink' to 'insmod
/lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko'.

- Comment out 'firmware_loader $HDVICP2_ID
/usr/share/ti/ti-media-controller-utils/dm816x_hdvicp.xem3 start'

- Comment out 'firmware_loader $HDVPSS_ID
/usr/share/ti/ti-media-controller-utils/dm816x_hdvpss.xem3 start'

- Comment out 'firmware_loader $HDVICP2_ID
/usr/share/ti/ti-media-controller-utils/dm816x_hdvicp.xem3 stop'

- Comment out 'firmware_loader $HDVPSS_ID
/usr/share/ti/ti-media-controller-utils/dm816x_hdvpss.xem3 stop'

7) Unpack
"${EZSDK}/board-support/TI816X-LINUX-PSP-04.00.02.14/src/examples/examples.tar.gz".

8) Modify
"${EZSDK}/board-support/TI816X-LINUX-PSP-04.00.02.14/src/examples/video/Rules.make".

- Set KERNEL_DIR correctly (e.g. KERNEL_DIR =
/home/hanmekim/ti-ezsdk_dm816x-evm_5_03_01_15/board-support/linux-2.6.37-psp04.00.01.13.patch2).

- Set CROSS_COMPILE correctly (e.g. CROSS_COMPILE =
/home/hanmekim/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-)

9) Compile the video examples.

- $ cd to the video examples folder.
- $ make all

10) Copy all compiled executable files in to the same folder that you unpacked "DM816x HDVPSS binary package".

11) Flash the pre-built u-boot
(${EZSDK}/board-support/TI816X-LINUX-PSP-04.00.02.14/images/u-boot/ti816x/)

and uImage
(${EZSDK}/board-support/TI816X-LINUX-PSP-04.00.02.14/images/kernel/ti816x/).

11.5) Environment Settings

# setenv bootcmd ‘nand read 0x81000000 0x280000 0x251000;bootm 0x81000000’

# setenv autoload no

# setenv nfsserver 192.168.1.164

# setenv bootargs ‘console=ttyO2,115200n8
root=/dev/nfs nfsroot=192.168.1.164:/home/ndi-rs/targetfs,nolock rw mem=256M earlyprink vram=50M ti816xfb.vram=0:16M,1:16M,2:6M notifyk.vpssm3_sva=0xBF900000 ip=dhcp’

TI8168_EVM# saveenv

TI8168_EVM# boot

12) Connect a component video source to J5~J7 connectors on the daughter board.

13) Run the video input/output example application
on your EVM board.

- #cd to the folder that has all compiled executable files and the DM816x HDVPSS binary package.

- # ./slaveloader startup VPSS-M3 dm816x_hdvpss_v4l2.xem3

- # insmod vpss.ko

- # insmod ti81xxfb.ko vram=0:40M,1:1M,2:1M

- # insmod ti81xxvo.ko

- # insmod tvp7002.ko

- # insmod ti81xxvin.ko

- # ./saLoopBack.

14) We get no video and the following:


root@dm816x-evm:~/_installations# ./saLoopBack                                 

Driver Name:ti81xxvin                                                         

Driver bus info: TI81xx Platform                                               

Driver is capable of doing capture                                             

saLoopBack:                                                                    

Mode set is 0                                                                 

Setting DV Preset failed

Your help in this matter is greatly appreciated.

 

  • Just a suggestion:

    I get this when my camera source is turned off. Otherwise I get mode is set to 720p. 

    Also in the example, memory map from one of the fb display devices buffer is used to do video capture. I had to modify that call to set the size requested explictly to 720*1280*2 per buffer, to a total of 8 buffers.

    Otherwise, there is tearing in the output video.

    Your issue is also covered here: http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/154472.aspx#559655

    There are two HDVPSS  firmwares in the EZSDK 3.01( http://software-dl.ti.com/dsps/dsps_public_sw/ezsdk/latest/index_FDS.html), to switch between them use the following instructions (from another e2e post):

     $ cp /usr/share/ti/ti-media-controller-utils/load-hd-v4l2-firmware.sh /etc/init.d/load-hd-firmware.sh

    $ sync

     Now power cycle your board.

     To revert your changes back to use the default firmware which supports OMX Capture please run the following command

     $ cp /usr/share/ti/ti-media-controller-utils/load-hd-firmware.sh /etc/init.d/load-hd-firmware.sh

    $ sync

     Now power cycle your board.

    RV

  • Hi,

    This happens when VIP is not able to detect the source. You can check following things.

    1. Try reconnecting daughter card to base board. This may be one issue. We have seen this.

    2. Make sure that Y, Pb and Pr are connected properly.

    Is this the first time you are trying capture or did it work for PSP13_patch2

    Regards,

    Hardik Shah

  • Hello,

    Thank you for your response.

    1) I disconnected and reconected the daughter card.

    2) We checked the video signal with 'scope all the way to the IC. And have double checked Y, PB and Pr.

    3) This is the first time we have attempted this.

    Do you see anything in our steps that we are doing incorrectly?

     

    Thank you,

    Chris 

  • Apparently DVD players will not supply 1080p (or 720p) on the component outputs due to copyright/encryption etc.

    We will assume then that our setup is correct and find an appropriate 1080p/720p source.

    Thank you.

  • Hi,

    I am not sure why are you not able to get this up. But if you are suspecting the DVD player, You can modify any of the V4L2 display application to throw display on component output of DM816x. Connect component output of DM8168 to component input. This way you will be sure that source is not a problem.

    Regards,

    Hardik Shah

  • Thank you. Okay I am now sure of the source. I am using an XBOX 360 with a "HD AV cable" hooked up to the component inputs.

    With the XBOX set to 720p and 1080i I got no output but when set to 1080P I get this crash dump (and no video out).

     

     

    dm816x-evm login: root

    root@dm816x-evm:~# ./slaveloader startup VPSS-M3 dm816x_hdvpss_v4l2.xem3

    Attached to slave procId 2.

    Loaded file dm816x_hdvpss_v4l2.xem3 on slave procId 2.

    Started slave procId 2.

    root@dm816x-evm:~# insmod vpss.ko

    root@dm816x-evm:~# insmod ti81xxfb.ko vram=0:40M,1:1M,2:1M

    root@dm816x-evm:~# insmod ti81xxvo.ko

    root@dm816x-evm:~# insmod tvp7002.ko

    root@dm816x-evm:~# insmod ti81xxvin.ko

    tvp7002 2-005d: tvp7002 found @ 0x5d (OMAP I2C adapter)

    tvp7002 2-005d: Rev. 02 detected.

    ti81xxvin ti81xxvin: registered sub device tvp7002

    ti81xxvin ti81xxvin: TI81xx HDVPSS Capture driver initialized

    root@dm816x-evm:~# ./saLoopBack

    Driver Name: ti81xxvin

    Driver bus info: TI81xx Platform

    Driver is capable of doing capture

    saLoopBack:

    Mode set is 1080P60

    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: ti81xxvin tvp7002 ti81xxvo ti81xxfb vpss syslink

    Backtrace:

    [<c0048bb8>] (dump_backtrace+0x0/0x110) from [<c036c570>] (dump_stack+0x18/0x1c)

    r7:00000000 r6:c00718fc r5:c042f5da r4:0000009f

    [<c036c558>] (dump_stack+0x0/0x1c) from [<c006c380>] (warn_slowpath_common+0x54/0x6c)

    [<c006c32c>] (warn_slowpath_common+0x0/0x6c) from [<c006c3bc>] (warn_slowpath_null+0x24/0x2c)

    r9:c04db7e4 r8:d088c800 r7:0000000e r6:cca8fa00 r5:c04b5634

    r4:c0506ac0

    [<c006c398>] (warn_slowpath_null+0x0/0x2c) from [<c00718fc>] (local_bh_enable+0x54/0xc4)

    [<c00718a8>] (local_bh_enable+0x0/0xc4) from [<c0066278>] (omap_mbox_msg_send+0xcc/0xdc)

    r5:c04b5634 r4:00000000

    [<c00661ac>] (omap_mbox_msg_send+0x0/0xdc) from [<c02ad67c>] (notify_shm_drv_send_event+0x1c8/0x208)

    r5:00000001 r4:00000000

    [<c02ad4b4>] (notify_shm_drv_send_event+0x0/0x208) from [<c02aae0c>] (notify_send_event+0x114/0x26c)

    [<c02aacf8>] (notify_send_event+0x0/0x26c) from [<bf141610>] (vps_fvid2_queue+0x94/0x1cc [vpss])

    [<bf14157c>] (vps_fvid2_queue+0x0/0x1cc [vpss]) from [<bf14a654>] (capture_queue+0x50/0x64 [vpss])

    r8:bf181404 r7:60000013 r6:cb7ab400 r5:00000000 r4:cb752800

    [<bf14a604>] (capture_queue+0x0/0x64 [vpss]) from [<bf1801c8>] (ti81xxvin_buffer_queue+0x9c/0xe8 [ti81xxvin])

    r5:cb6f1400 r4:cb752800

    [<bf18012c>] (ti81xxvin_buffer_queue+0x0/0xe8 [ti81xxvin]) from [<c0284664>] (videobuf_streamon+0x80/0xd0)

    r7:60000013 r6:cb6f15c4 r5:cb6f1504 r4:cb7ab400

    [<c02845e4>] (videobuf_streamon+0x0/0xd0) from [<bf17fc40>] (vidioc_streamon+0x244/0x400 [ti81xxvin])

    r7:ccbc3200 r6:00000001 r5:cb6f1400 r4:cb6f1504

    [<bf17f9fc>] (vidioc_streamon+0x0/0x400 [ti81xxvin]) from [<c0279f6c>] (__video_do_ioctl+0x1618/0x3f34)

    r6:40045612 r5:00000000 r4:00000001

    [<c0278954>] (__video_do_ioctl+0x0/0x3f34) from [<c0278744>] (__video_usercopy+0x2e4/0x428)

    [<c0278460>] (__video_usercopy+0x0/0x428) from [<c02788b8>] (video_ioctl2+0x30/0x38)

    [<c0278888>] (video_ioctl2+0x0/0x38) from [<c02778f8>] (v4l2_ioctl+0xe8/0x11c)

    r5:ccbc3200 r4:cb7ab880

    [<c0277810>] (v4l2_ioctl+0x0/0x11c) from [<c00d1954>] (vfs_ioctl+0x28/0x44)

    r9:cb732000 r8:beec2ca4 r7:00000003 r6:00000003 r5:cb7ab880

    r4:00000000

    [<c00d192c>] (vfs_ioctl+0x0/0x44) from [<c00d2064>] (do_vfs_ioctl+0x500/0x540)

    [<c00d1b64>] (do_vfs_ioctl+0x0/0x540) from [<c00d20fc>] (sys_ioctl+0x58/0x7c)

    [<c00d20a4>] (sys_ioctl+0x0/0x7c) from [<c0044e00>] (ret_fast_syscall+0x0/0x30)

    r8:c0044fa8 r7:00000036 r6:000124d0 r5:0001215c r4:beec2ca4

    ---[ end trace d5bd1fa2ed8ef5d7 ]---

    Count=0

    Frame rate = 62

    root@dm816x-evm:~#

  • Update:

    I see that the same issue "spinlock_irq_save" is addressed in this thread:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/154472.aspx?PageIndex=2

    After the prompt returns, I run saLoopback again without getting the warnings however I still do not het on video out on the LCD connected to the EVM's HDMI output.

     

  • We got it. We needed to load the HDMI module.

    insmod ti81xxhdmi.ko

    Thank you for your support.

  • Hi,

    Crash dump is a know issue. Further PS3 will be able to give 1080I60 and 720P60. You have to configure it using settings-->display settings menu under PS3. We have tested both modes.

    Regards,

    Hardik Shah