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.

ti816x_hdvpss.xem3 image loading fails on DM8168 based custom board and boar hangs

Hi,

I am using DM8168 based custom board, with EZSDK 5.05.02.00 (PSP 04.04.00.01)

By default, we are loading HDVPSS prebuilt image named 'dm816x_hdvpss.xem3' of around 21MB size with firmware_load script.

Now we need to change the HDVPSS image, we compiled the HDVPSS image according the README.txt in HDVPSS directory, (Note: There were no changes made in HDVPSS codes, but only compiled in our PC. Previously it was taking prebuilt images), after making necessary changes in Rules.make and Makefile, and got new HDVPSS core image named 'ti816x_hdvpss.xem3', around 9.1MB size only. And copied the new image file in 'usr/share/ti/ti-media-controller-utils/ti816x_hdvpss.xem3' and edited the script in 'etc/init.d/load-hd-firmware.sh' in order to load the ti816x_hdvpss.xem3. And on booting, it hangs on loading this newly compiled image, and reboots after few minutes. If I change the load-hd-firmware.sh script back to load the prebuilt image dm816x_hdvpss.xem3, there is no issue, board is booting and working fine.

As per DM816X_AM389X_VPSS_Video_Driver_User_Guide, I have changed the firmware_load ti816x_hdvpss.xem3 to

./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3, then I got as below:

Attached to slave procId 2.
Loading procId 2.
Loaded file /usr/share/ti/ti-media-controller-utils/ti816x_hdvpss.xem3 on slave procId 2.
Started slave procId 2.
Loading C67X DSP Firmware

I hope, the ti816x_hdvpss.xem3 is loaded successfully, and after that the prints are coming like below:

...............................................................................
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 vpss (/lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/vpss.ko): No such device
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 ti81xxfb (/lib/modules/2.6.37/kernel/drivers/video/ti81xx/ti81xxfb/ti81xxfb.ko): No such device
open /dev/fb0: No such file or directory
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/ti81xx/ti81xxhdmi/ti81xxhdmi.ko): No such device
Starting system message bus: dbus.
EXT3-fs: barriers not enabled
...........................................

and booting is complete.

After that I have followed processors.wiki.ti.com/.../TI81XX_PSP_VIDEO_CAPTURE_Driver_User_Guide for loading 

VPSS module by insmod vpss.ko. It also ends up as below eventhough I have copied vpss.ko in the directory /lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/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
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 vpss (/lib/modules/2.6.37/kernel/drivers/video/ti81xx/vpss/vpss.ko): No such device

Then as per e2e.ti.com/.../1178264. still the out put has no change, prints are coming like below:

notify_shm_drv_sendevent failed! status = 0xfffffff0
notify_send_event failed! status = 0xfffffff0

What else I have to do ?

  • Hello,

    You should build it by following the user guide in the ezsdk/docs/overlay installer build instruction pdf.


    BR
    Margarita
  • Hello,

    What you are trying to run?
    If you are trying to run v4l2 demos please load the v4l2 firmware.
    Check in the docs folder in ezsdk the user guides.

    BR
    Margarita
  • Hi,

    I want to change the HDVPSS image. Currently it is loading with prebuilt images (dm816x_hdvpss.xem3).

    I had compiled HDVPSS image in the component_sources directory, and got tm816x_hdvpss.xem3. (Note: I didnt make any changes in the HDVPSS code currently, but after this I need to change. I just built the default image.) as per the hdvpss user guide.

    On loading this newly generated hdvpss (ti816x_hdvpss.xem3) is the issue. If I am loading prebuilt image (dm816x_hdvpss.xem3) there is no issue.

     

  • Hello,

    Please try to rebuild the default M3 firmware as is described in overlay user guide in the docs folder in ezsdk.

    Let me know the result.

    It is normal to observe a difference in size for the both firmwares which you pointed. The "big" one includes OMX etc.

    As I said I would recommend you to rebuild the firmware by" make -f Overlay.Makefile all " command (ezsdk/docs/overlay installer build instruction pdf) and to load it with firmware_loader

    BR
    Margarita

  • Hi,

    I couldn't find overlay_installer_build_instruction.pdf , but the following docs are only there: DM816x_C6A816x_AM389x_EVM_Quick_start_guide.pdf and DM816x_EZ_Software_Developers_Guide.pdf.

    How can I include OMX in the HDVPSS using Overlay.Makefile and Overlay.Rules.Make ?
  • Hello,

    Are you have the overlay package?

    BR
    Margarita
  • Hi Margarita,

    The issue is solved.
    Overlay package is integrated with ezsdk, and we are building the whole firmware together with this command:
    "make -f Overlay.Makefile all".

    But, we were taking the output generated in "component-sources/hdvpss_01_00_01_44/build/ti816x_hdvpss/bin/ti816x-evm/ti816x_hdvpss.xem3" which is 9.1 MB only.
    we copied the file "component-sources/omx-ti81xx-src_05_02_00_48/bin/dm816xbm/bin/ti816x-evm/dm816xbm_m3vpss_whole_program_debug.xem3" which is 21MB to "usr/share/ti/ti-media-controller-utils/ " directory and loaded with firmware_loader. This works .

    Thanks for your inputs.

    Just for information, Can we use the hdvpss binary "component-sources/hdvpss_01_00_01_44/build/ti816x_hdvpss/bin/ti816x-evm/ti816x_hdvpss.xem3" compiled without omx in any application?
  • Hello,

    I am glad that issue is resolved.

    Arun K R said:
    Just for information, Can we use the hdvpss binary "component-sources/hdvpss_01_00_01_44/build/ti816x_hdvpss/bin/ti816x-evm/ti816x_hdvpss.xem3" compiled without omx in any application?

    If you want to use only V4L2 capture + V4L2 display + fbdev than "small" firmware  should be fine,  if you want to use encode/decode or any of OpenMax components you need to use the other one.

    Please close this thread if is answering your questions.

    BR
    Margarita