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.

DM6446 osd issue

I am getting a  message "updavincifb davincifb.0: dm_osd0_fb: Failed to obtain ownership of OSD window" on booting the  linux-2.6.18_pro500 kernel and i cannot see the OSD window on the screen.
And when i run the demo application with the osd option
( ./decode  -v /opt/dvsdk/data/videos/davincieffect_nt
sc.m2v -k 1 -o 1) , i am getting the following errors

Error: Failed to create osd window device
Error: Failed to create UI

how can i get the osd window on my decode demo screen?..please help with this

  • Can you make sure that your u-boot bootargs settings match what is described in the corresponding DVSDK Getting Started Guide?  The required settings changed from mv4 to mv5 releases and this is reflected on the updated GSG for DVSDK 2.0

  • The bootargument iam passing according to the GSG document for DVSDK 2.0 is

    setenv bootargs video=davincifb:vid0=0,2500K: vid1=0,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd) console=ttyS0,115200n8 noinitrd rw ip=172.28.8.30 root=$(root) nfsroot=$(nfshost):$(rootpath),nolock mem=118M"

    But still the result is the same i am getting the following error
    Error: Failed to create osd window device
    Error: Failed to create UI

    Is this a driver issue ?....or is this problem with the interface or any arguments?..what exactly can yu suggest...please reply soon

  • hai juan

    well some success i could see the osd screen now[:D]

    well i tried booting it with following args

    setenv bootargs video=davincifb:vid0=720x480x16,2025K@0,0:vid1=720x480x16,2025K@0,0:osd0=720x480x16,1350K@0,0: osd1=720x480x4,1350K@0,0 davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd) console=ttyS0,115200n8 noinitrd rw ip=172.28.8.30 root=$(root) nfsroot=$(nfshost):$(rootpath),nolock mem=118M

    After booting i did

    root@172.28.8.30:~# fbset -fb /dev/fb/1 -xres 720 -yres 480 -vxres 720 -vyres 1440 -depth 16

    root@172.28.8.30:~# fbset -fb /dev/fb/3 -xres 720 -yres 480 -vxres 720 -vyres 1440 -depth 16

    And upon running the decode demo with the osd option ,

    ./decode -v /opt/dvsdk/data/videos/davincieffect_ntsc.m2v  -o

    I am able to see the 2 layers of OSD screen , But i am not able to see the decode video as am getting the following error

    DavinciDisplay DavinciDisplay.1: Display Manager failed to allocate layer
    DavinciDisplay DavinciDisplay.1: Unable to configure video layer for id = 0
    Error: Failed to create display device
    decode: ce/Vdec2.c:114: Vdec2_process: Assertion `Buffer_getNumBytesUsed(hInBuf) ' failed.

    Can you please tell me how to resolve this isssue .....it is very urgent juan we have our deadline nearing .



  • hai juan

    well some success i could see the osd screen now[:D]

    well i tried booting it with following args

    setenv bootargs video=davincifb:vid0=720x480x16,2025K@0,0:vid1=720x480x16,2025K@0,0:osd0=720x480x16,1350K@0,0: osd1=720x480x4,1350K@0,0 davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd) console=ttyS0,115200n8 noinitrd rw ip=172.28.8.30 root=$(root) nfsroot=$(nfshost):$(rootpath),nolock mem=118M

    After booting i did

    root@172.28.8.30:~# fbset -fb /dev/fb/1 -xres 720 -yres 480 -vxres 720 -vyres 1440 -depth 16

    root@172.28.8.30:~# fbset -fb /dev/fb/3 -xres 720 -yres 480 -vxres 720 -vyres 1440 -depth 16

    And upon running the decode demo with the osd option ,

    ./decode -v /opt/dvsdk/data/videos/davincieffect_ntsc.m2v  -o

    I am able to see the 2 layers of OSD screen , But i am not able to see the decode video as am getting the following error

    DavinciDisplay DavinciDisplay.1: Display Manager failed to allocate layer
    DavinciDisplay DavinciDisplay.1: Unable to configure video layer for id = 0
    Error: Failed to create display device
    decode: ce/Vdec2.c:114: Vdec2_process: Assertion `Buffer_getNumBytesUsed(hInBuf) ' failed.

    Can you please tell me how to resolve this isssue .....it is very urgent juan we have our deadline nearing .



  • I believe the key is the size you are assigning the video windows in your bootargs; per the GSG, these should be

    "video=davincifb:vid0=0,2500K:vid1=0,2500K

     

    "

     

  • hey hi juan,..

     i am glad its working now i was not trying with 480 resolution .now the video and the osd are coming. thankz a lot.btw weree will the ui code for the remote>?

  • hai juan,

    i am not getting a screen which shows the picture of the remote control after booting of the board so that i can set the remote as per the GSG document.

    And am also not able to see the main menu screen with which i can select the demo. Osd will only come while runing the application on command line ?

    please update me wth neccsaary details.

  • interface demo (which displays the menu options you can control via remote control) is normally launched automatically when booting from HDD, but does not launch automatically when booting via NFS (althought it is really dependant on the file-system init scripts).

    You can login to your target evm and cd to appropriate directory ( /opt/dvsdk/dm6446) and launch the demo manually

       % ./loadmodules.sh

       % ./interface

     

  • hai juan,

    can you tell me how to add the INTERFACE application in the4 start up so that it will start once the board gets booted up. i tried adding it in the /etc/init.d/rcS file but it showed me error that it cant find the modulees,

    so i added the loadmodules.sh application  in the rcS file , but still error is coming wchich says it cant niether insmod nor mknod . how will i add the application to run at initial boot time??  

  • When you boot from your HDD, you should find a script under

    /etc/init.d/dvevmdemo

    This script launches the interface demo automatically when you boot from HDD.  You can add the same script to your NFS based-file system under the same path.  I am attaching an old copy of this script I still have laying around (not sure if it has changed on new DVSDK), but you can give it a quick try.

    dvevmdemo
  • hi juan .......................

    i am new to dm6446.

    i have to display image of .jpeg or .png format  on video window 0 or 1 .

    is it possible . please answer as soon as possible .

    upto now we display the video on video window and an image on osd window.

    now the requirement is displaying an image and a video side by side in video window it self.

    -------------------------------------------------------------------------------------------------------------------------------

    another one dough is can i divide the video window into panels for displaying different images in each panel .

    please help me ... i always thank full for this.