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.

Problems Cloning the LCD display to the HDMI output

I've been able to run my program on both displays independently with the same timings, but not simultaniously.

Here is a snippit script that I'm running:

      
        modprobe vpss sbufaddr=0xBFB00000 mode=hdmi:1080p-60 debug=1 i2c_mode=1
        modprobe ti81xxfb vram=0:24M,1:16M,0:6M
        echo 5 > /sys/devices/platform/vpss/system/tiedvencs

        echo 2:hdmi,dvo2 > /sys/devices/platform/vpss/graphics0/nodes
        echo 0 > /sys/devices/platform/vpss/display0/enabled
        echo 0 > /sys/devices/platform/vpss/display1/enabled

        echo 75010,1366/50/77/30,768/7/19/5,1 > /sys/devices/platform/vpss/display0/timings
        echo 75010,1366/50/77/30,768/7/19/5,1 > /sys/devices/platform/vpss/display1/timings

        echo 1 > /sys/devices/platform/vpss/display0/enabled
        echo 1 > /sys/devices/platform/vpss/display1/enabled

        fbset -xres 1366 -yres 768 -vxres 1366 -vyres 768

        fbset -depth 32 -rgba 8/16,8/8,8/0,0/0
        modprobe ti81xxhdmi

And this is the output I am getting:

FIRMWARE: Default memory configuration is used
MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.1.1
FIRMWARE: Memory Configuration status : In Progress
FIRMWARE: 2 start Successful
Setting Timing
ti81xxfb ti81xxfb: failed to star.
open /dev/fb0: No such process
ti81xxfb ti81xxfb: failed to star.
open /dev/fb0: No such process
HDMI W1 rev 2.0
ti81xxfb ti81xxfb: failed to star.
./vpss.sh: line 65: can't create /dev/fb0: No such process

 

Is there somthing that I am missing?

Thanks,

-Jared Falter

 

  • Which PSP release did you use?  Which platform did you use?

    Not all release and platform support

     The normal stes to setup cloning is below:

    1.load vpss moudle

    modprobe vpss sbufaddr=0xBFB00000 mode=hdmi:1080p-60 debug=1 i2c_mode=1

    2. set up the timing for both display
            echo 0 > /sys/devices/platform/vpss/display0/enabled
            echo 0 > /sys/devices/platform/vpss/display1/enabled

            echo 75010,1366/50/77/30,768/7/19/5,1 > /sys/devices/platform/vpss/display0/timings
            echo 75010,1366/50/77/30,768/7/19/5,1 > /sys/devices/platform/vpss/display1/timings
    3. setup the tiedvenc, there is no need to echo 1 > /sys/..../display#/enabled, 
            echo 5 > /sys/devices/platform/vpss/system/tiedvencs

    4. let the fb0 output to both display

            echo 2:hdmi,dvo2 > /sys/devices/platform/vpss/graphics0/nodes
    5. load FBDev driver, if fbdev.ko is loaded before timing configuraiton, then fbset -xres -yres need be used

            modprobe ti81xxfb vram=0:24M,1:16M,0:6M

    Regards,

    yihe

  • Thanks for the reply

    I'm using the ti-ezsdk_dm816x-evm_5_02_02_60 on a 8168 board. The psp verions for the linux kernal in the ezsdk shows 04.00.00.12.

    my script now looks like this:

         modprobe vpss sbufaddr=0xBFB00000 mode=hdmi:1080p-60,dvo2:1080p-60,hdcomp:180p-60 debug=1 i2c_mode=1

         echo 0 > /sys/devices/platform/vpss/display0/enabled
         echo 0 > /sys/devices/platform/vpss/display1/enabled


        echo Setting Timing
        echo 75010,1366/50/77/30,768/7/19/5,1 > /sys/devices/platform/vpss/display0/timings
        echo 75010,1366/50/77/30,768/7/19/5,1 > /sys/devices/platform/vpss/display1/timings


        echo 5 > /sys/devices/platform/vpss/system/tiedvencs


        echo 2:hdmi,dvo2 > /sys/devices/platform/vpss/graphics0/nodes
        echo loading ti81xxfb

        modprobe ti81xxfb vram=0:24M,1:16M,2:6M

    When I try to check settings with fbset after I run this script I just get an error saying ti81xxfb: failed to star.

  • PSP 04.00.00.12 does not support cloning. It is supported in PSP 04.00.01.13 release.

    Regards,

    yihe 

  • I downloaded the 04.00.01.13 version of the PSP compiled the kernel and its modules.

    With and without the patch that was provided on the download page of the psp verion i get the following errors when trying to insmod vpss.ko.

    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    VPSS_CORE : Failed to init fvid2 interface,
    vpss: probe of vpss failed with error -22
    VPSS_CORE : failed to register ti81xx-vpss driver
    insmod: error inserting 'vpss.ko': -1 No such device

     

    I've been following the Video Driver User Guide PSP 04.00.01.13.

    I have added notifyk.vpssm3_sva=0xA0000000 to my bootargs. Looking at other posts leads me to believe it my be related to this setting though.

  • Could you tell which .xem3 was loaded, from your SDK release or PSP 04.00.01.13 release? they are different firmware and have different memory map(notifyk.vpssm3_sva and vpss.sbufaddr).

    Please provide your bootargs and steps to load .xem3 and vpss.ko

    Regards,

    yihe

  • I loaded the ti816x_hdvpss.xem3 that was in the hdvpss binary package on the PSP 04.00.01.13 page.

    My boot args are as follows:

        console=ttyO2,115200n8 rootwait root=/dev/nfs nfsroot=10.40.100.11:/home/jaredf/targetfs rw mem=128M earlyprink notifyk.vpssm3_sva=0xA0000000 vram=50M ti816xfb.vram=0:16M,1:16M,2:6M ip=dhcp noinitrd

    The steps i used to load the driver are:

        insmod syslink.ko

        ./slaveloader startup VPSS-M3 ./ti816x_hdvpss.xem3

        insmod vpss.ko sbufaddr=0xA0200000

     

    When I loaded the pre-compiled image of the kernel it didn't give me the errors when loading vpss.  I need to be able to recomple the kernel though.

     

  • I went ahead and rebuilt everything from scratch and everything works now.

     

    Thanks,

    Jared Falter

  • Good to hear it is working.

    Regards,

    yihe

  • HI,

    I am using kernel from TI816X PSP 04.00.02.14. Here while installing the vpss my kernel getting crashed. But the kernel is loaded. 

    My bootargs are:

    bootargs 'console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprink vram=50M ti816xfb.vram=0:16M,1:16M,2:6M ip=off noinitrd 
    notifyk.vpssm3_sva=0xA0000000'
    
    
    Here the below steps I did:
    
    
     insmod syslink.ko  (Syslink_02_00_04_83 release)
     ./slaveloader startup VPSS-M3 ./ti816x_hdvpss.xem3 (HDVPSS 01.00.01.33 release)
    insmod vpss.ko sbufaddr=0xA0200000
    After this I am getting below crashing message:
    
    
    Unable to handle kernel NULL pointer dereference at virtual address 00000002
    pgd = cbc90000
    [00000002] *pgd=8be07031, *pte=00000000, *ppte=00000000
    Internal error: Oops: 17 [#1]
    last sysfs file: /sys/kernel/uevent_seqnum
    Modules linked in: vpss(+) syslink
    CPU: 0 Not tainted (2.6.37 #3)
    PC is at pcf8575_ths7375_enable+0x30/0x78
    LR is at vps_dc_init+0xa6c/0xbc8 [vpss]
    pc : [<c005bd90>] lr : [<bf155b90>] psr: 60000013
    sp : cca5fd60 ip : cca5fd98 fp : cca5fd94
    r10: 00000000 r9 : 00000000 r8 : cca5fd64
    r7 : 00000000 r6 : bf14fa2c r5 : c049e63c r4 : 00000000
    r3 : 00000000 r2 : 0000000c r1 : 00000000 r0 : cca5fd64
    Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
    Control: 10c5387d Table: 8bc90019 DAC: 00000015
    Process insmod (pid: 989, stack limit = 0xcca5e2e8)
    Stack: (0xcca5fd60 to 0xcca60000)
    fd60: cca5fd94 00000003 bf143988 00000004 00000000 00000004 00000000 bf14fa2c
    fd80: bf14f8ec c0475dd8 cca5fe0c cca5fd98 bf155b90 c005bd6c 00000003 cb6cfe80
    fda0: 00000000 c0475dc8 c048b678 00000002 00000003 00000002 00000004 00000000
    fdc0: 00000000 00000000 00000000 c0475dc8 cca5fe0c cca5fde0 0000057c 0000057c
    fde0: 00000000 00000000 c0475dc8 bf14fd40 cca40780 c048b678 cca5e000 00000000
    fe00: cca5fe2c cca5fe10 bf141104 bf155130 c0475dd0 c0475dd0 bf14f8b0 cca40780
    fe20: cca5fe3c cca5fe30 c01dfef0 bf14106c cca5fe5c cca5fe40 c01dee5c c01dfedc
    fe40: c0475dd0 c0475e04 bf14f8b0 cca40780 cca5fe7c cca5fe60 c01def84 c01ded98
    fe60: 00000000 c01def1c bf14f8b0 cca40780 cca5fea4 cca5fe80 c01de608 c01def28
    fe80: cc81bfb8 cc845b30 c018fe18 00000000 bf14f89c bf14f8b0 cca5feb4 cca5fea8
    fea0: c01dec80 c01de5c4 cca5fee4 cca5feb8 c01ddee0 c01dec6c bf14c13f cca5fec8
    fec0: 00000000 bf14f89c bf14f8b0 00012028 bf155000 00000000 cca5ff0c cca5fee8
    fee0: c01df2bc c01dde38 00000000 bf14f89c 00012008 00012028 bf155000 cca5e000
    ff00: cca5ff1c cca5ff10 c01e01dc c01df218 cca5ff34 cca5ff20 c01e0210 c01e019c
    ff20: 00000000 bf14fc1c cca5ff44 cca5ff38 bf155030 c01e01fc cca5ff7c cca5ff48
    ff40: c003942c bf15500c bf14fc1c 00012008 00012028 c0043fa8 00000000 bf14fc1c
    ff60: 00012008 00012028 c0043fa8 00000000 cca5ffa4 cca5ff80 c0096930 c0039368
    ff80: c00c2148 c00c2060 00000000 00020000 00000003 00000080 00000000 cca5ffa8
    ffa0: c0043e00 c00968a0 00000000 00020000 00012028 0001c4a4 00012008 00000001
    ffc0: 00000000 00020000 00000003 00000080 00012008 00000000 00012028 00000000
    ffe0: be90ced2 be90cc5c 00008da0 401dc7d4 60000010 00012028 7bef779e ee97d5f4
    Backtrace:
    [<c005bd60>] (pcf8575_ths7375_enable+0x0/0x78) from [<bf155b90>] (vps_dc_init+0xa6c/0xbc8 [vpss])
    r8:c0475dd8 r7:bf14f8ec r6:bf14fa2c r5:00000000 r4:00000004
    [<bf155124>] (vps_dc_init+0x0/0xbc8 [vpss]) from [<bf141104>] (vps_probe+0xa4/0x160 [vpss])
    [<bf141060>] (vps_probe+0x0/0x160 [vpss]) from [<c01dfef0>] (platform_drv_probe+0x20/0x24)
    r7:cca40780 r6:bf14f8b0 r5:c0475dd0 r4:c0475dd0
    [<c01dfed0>] (platform_drv_probe+0x0/0x24) from [<c01dee5c>] (driver_probe_device+0xd0/0x190)
    [<c01ded8c>] (driver_probe_device+0x0/0x190) from [<c01def84>] (__driver_attach+0x68/0x8c)
    r7:cca40780 r6:bf14f8b0 r5:c0475e04 r4:c0475dd0
    [<c01def1c>] (__driver_attach+0x0/0x8c) from [<c01de608>] (bus_for_each_dev+0x50/0x84)
    r7:cca40780 r6:bf14f8b0 r5:c01def1c r4:00000000
    [<c01de5b8>] (bus_for_each_dev+0x0/0x84) from [<c01dec80>] (driver_attach+0x20/0x28)
    r6:bf14f8b0 r5:bf14f89c r4:00000000
    [<c01dec60>] (driver_attach+0x0/0x28) from [<c01ddee0>] (bus_add_driver+0xb4/0x234)
    [<c01dde2c>] (bus_add_driver+0x0/0x234) from [<c01df2bc>] (driver_register+0xb0/0x13c)
    [<c01df20c>] (driver_register+0x0/0x13c) from [<c01e01dc>] (platform_driver_register+0x4c/0x60)
    r9:cca5e000 r8:bf155000 r7:00012028 r6:00012008 r5:bf14f89c
    r4:00000000
    [<c01e0190>] (platform_driver_register+0x0/0x60) from [<c01e0210>] (platform_driver_probe+0x20/0x70)
    [<c01e01f0>] (platform_driver_probe+0x0/0x70) from [<bf155030>] (vps_init+0x30/0x5c [vpss])
    r5:bf14fc1c r4:00000000
    [<bf155000>] (vps_init+0x0/0x5c [vpss]) from [<c003942c>] (do_one_initcall+0xd0/0x1a4)
    [<c003935c>] (do_one_initcall+0x0/0x1a4) from [<c0096930>] (sys_init_module+0x9c/0x1bc)
    [<c0096894>] (sys_init_module+0x0/0x1bc) from [<c0043e00>] (ret_fast_syscall+0x0/0x30)
    r7:00000080 r6:00000003 r5:00020000 r4:00000000
    Code: e3a0200c e1a00008 e5957000 e2044003 (e1d760b2)
    ---[ end trace f7e82222099e2eae ]---
    Segmentation fault
    
    
    If I insert the module vpss directly means, I am getting below message:
    root@dm816x-evm:~# insmod vpss.ko
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0^C
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0^C^C^C^C^C^C^C^C^C^C^C^C
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    notify_shm_drv_sendevent failed! status = 0xfffffff0
    notify_send_event failed! status = 0xfffffff0
    
    
    Can anybody tell me what is the problem and help me how to insert vpss module.
    
    
    Thanks in advance
    
    
    regards,
    Salih