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.

add v4l2 driver in 8148 EVM

Other Parts Discussed in Thread: TLC59108, TVP7002

hi,

I can not add v4l2 driver in 8148 EVM.

My kernel is uImage-dm814x-evm.bin of ezsdk5.03..

My bootargs are: console=ttyO0,115200n8 rootwait rw mem=256M earlyprintk notifyk.vpssm3_sva=0xa0000000 vram=50M ti814xfb.vram=0:16M,1:16M,2:6M root=/dev/nfs nfsroot=192.168.2.76:/root/targetfs ip=192.168.2.79

But,

when i  insmod vpss.ko

Serial print error:

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_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

Regards,

zhan

  • Hi,

    I think you forgot to load the binary. Following are the steps to be followed to load binary.

    http://processors.wiki.ti.com/index.php/TI81XX_VPSS_Video_Driver_User_Guide#Load_VPSS.2C_Fbdev.2C_and_V4L2_Display_Driver_Modules

    Regards,

    Hardik Shah

  • Shah,

    Thanks for your help

    My steps were:

    1.In the Linux boot process ,

    ...................................

    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
    FATAL: Error inserting ti81xxhdmi (/lib/modules/2.6.37/kernel/drivers/video/ti81
    xx/ti81xxhdmi/ti81xxhdmi.ko): No such device
    Starting system message bus: dbus.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    ......................

    2.but i can login on my 8148EVM,i do

    root@dm814x-evm:/# lsmod
    Module                  Size  Used by
    bufferclass_ti          4946  0
    pvrsrvkm              155474  1 bufferclass_ti
    tlc59108                1545  0
    syslink              1112651  0
    ipv6                  209855  12
    root@dm814x-evm:/# cd TI814x-HDVPSS-01.00.01.33/
    root@dm814x-evm:/TI814x-HDVPSS-01.00.01.33# ls
    slaveloader              ti81xxfb.ko              tlc59108.ko
    syslink.ko               ti81xxhdmi.ko            tvp7002.ko
    ti814x_hdvpss_1G.xem3    ti81xxvin.ko             vpss.ko
    ti814x_hdvpss_512M.xem3  ti81xxvo.ko
    root@dm814x-evm:/TI814x-HDVPSS-01.00.01.33# ./slaveloader startup VPSS-M3 ti814x

    _hdvpss_1G.xem3
    Attached to slave procId 2.
    Loaded file ti814x_hdvpss_1G.xem3 on slave procId 2.
    Started slave procId 2.
    root@dm814x-evm:/TI814x-HDVPSS-01.00.01.33#
    root@dm814x-evm:/lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss# ls
    vpss.ko
    root@dm814x-evm:/lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss#
    root@dm814x-evm:/lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss# insmod vps

    s.ko sbufaddr=0xa0200000
    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
    root@dm814x-evm:/lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss#


    Will you help me?

    thanks

    zhan


  • Hi,

    It seems you have 512MB board and you are trying to load 1G binary. Please confirm that you have 1GB board and not 512MB board. If you have 512MB board u-boot will also require change. which PSP release are you using?

    Regards,

    Hardik Shah

  • Shah,

    Thanks for the very quick response.

    I think i have 512MB board.I change my u-boot argument,but result is same!

    The bootargs are:

    bootfile=uImage-dm814x-evm.bin
    bootargs=console=ttyO0,115200n8 rootwait rw mem=256M earlyprintk notifyk.vpssm3_
    sva=0x8DB00000 vram=50M ti814xfb.vram=0:16M,1:16M,2:6M root=/dev/nfs nfsroot=192
    .168.2.76:/root/targetfs ip=192.168.2.79

    PSP:linux-2.6.37-psp04.01.00.06.patch2

    Can you tell me how to do it? Could you provide the bootargs and all steps to load M3 firware and modules?

    Thanks,

    zhan

  • Hi,

    I think you have to change u-boot code also for 512MB board. You can refer to u-boot userGuide for same. Further you need to load 512MB .xem3 which is packaged with PSP.

    Regards,

    Hardik Shah

  • Zhan,

    the firmware inside PSP release is different with the one in EZSDK, they have different memory map.

    for the EZSDK firmware: please read below link:

    http://processors.wiki.ti.com/index.php/EZSDK_Memory_Map#Changing_Memory_Map_For_512MB_Board

    for PSP firmware, please read below link:

    http://processors.wiki.ti.com/index.php/DM814X_AM387X_VPSS_Video_Driver_User_Guide#Read_This_First

    Regards,

    yihe

  • Hi Hardik,

    If I want to work on v4l2 capture, do I still have to use 512MB .xem3 or still use dm814x_hdvpss_v4l2.xem3?

    Please confirm this.

    Thanks,

    Jun