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.

Failed to create osd window device

why "Failed to create osd window device " when running the demos(encodedecode )

my Flash boot with NFS file system :
       setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=192.168.0.15:255.255.255.0:192.168.253.1 root=/dev/nfs nfsroot=192.168.0.12:/home/gzj/workdir/filesys,nolock mem=118M

my steps:
      First execute this script
             ./loadmodules.sh
      Then: run the encodedecode;
            the terminal print :
              
      root@192.168.0.15:/opt/dvsdk/dm6446# ./encodedecode -o
                      Encodedecode demo started.
                      Error: Failed to create osd window device
                      Error: Failed to create UI
     root@192.168.0.15:/opt/dvsdk/dm6446#


it didn't work either NFS or hard drive file system
but it can run ./encodedecode or ./encodedecode -i   whether each one

note:the file encodedecode is copyed from /home/gzj/dvsdk_2_00_00_22/install/dm6446  when  NFS

  • Please set your bootargs per Getting Started Guide and let us know if this fixes this issue.  You need to define the size of your video buffers in bootargs.

  •   Hi:Juan thank you very much for your reply
          it does not work!
         it's my NFS and terminal print :
         ============================================================
         DaVinci EVM #setenv bootcmd 'nboot 0x80700000 0 0x200000;bootm'
         DaVinci EVM #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=192.168.0.15:255.255.255.0:192.168.0.1 root=/dev/nfs nfsroot=192.168.0.12:/home/gzj/workdir/filesys,nolock mem=118M
         --------------------------------------------------------------------------------------
         Welcome to MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921).

    root@192.168.0.15:~# cd /opt
    root@192.168.0.15:/opt# ls
    gzj_exp  hello  installko
    root@192.168.0.15:/opt# cd installko/;ls
    cmemk.ko  dsplinkk.ko  loadmodules.sh
    root@192.168.0.15:/opt/installko# ./loadmodules.sh
    CMEMK module: built on Dec  2 2009 at 10:39:27
      Reference Linux version 2.6.18
      File /home/gzj/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    ioremap_nocache(0x87600000, 10485760)=0xc8000000
    allocated heap buffer 0xc8000000 of size 0x2c000
    cmem initialized 5 pools between 0x87600000 and 0x88000000
    dsplinkk: no version for "struct_module" found: kernel tainted.
    DSPLINK Module (1.61.03) created on Date: Apr 16 2009 Time: 18:22:23
    root@192.168.0.15:/opt/installko# cd ../gzj_exp/encodedecode/;ls
    data  encodedecode  loopbackCombo.x64P
    root@192.168.0.15:/opt/gzj_exp/encodedecode# ./encodedecode -o
    Encodedecode demo started.
    Error: Failed to create osd window device
    Error: Failed to create UI
    root@192.168.0.15:/opt/gzj_exp/encodedecode#
    =======================================================================================

  • can you send the entire boot log to see if there were any errors during the boot process.  also, have you modified any of the code?  If so, what portions?

  • Hello, juan I'm sorry .some time ago I has been studying that video network transmission, it has not solve this problem, and now that piece done, and there are back here, and my whole boot is as follows:

    ################################################################################################

    TI UBL Version: 1.50
    Booting Catalog Boot Loader
    BootMode = NAND
    Starting NAND Copy...
    Valid magicnum, 0xA1ACED66, found in block 0x00000006.
       DONE
    Jumping to entry point at 0x81080000.
    
    
    U-Boot 1.2.0 (Apr 13 2009 - 12:08:08)
    
    I2C:   ready
    DRAM:  256 MB
    unknown vendor=0 Flash:  0 kB
    NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0x36 (Samsung NAND 64MiB 1,8V 8-bit)
    64 MiB
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock :- 297MHz
    DDR Clock :- 162MHz
    MSP430 Firmware supports AM/PM Feature
    Hit any key to stop autoboot:  0 
    
    Loading from NAND 64MiB 1,8V 8-bit, offset 0x200000
       Image Name:   Linux-2.6.18_pro500-davinci_evm-
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2018280 Bytes =  1.9 MB
       Load Address: 80008000
       Entry Point:  80008000
    ## Booting image at 80700000 ...
       Image Name:   Linux-2.6.18_pro500-davinci_evm-
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2018280 Bytes =  1.9 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux..................................................................................................................................... done, booting the kernel.
    Linux version 2.6.18_pro500-davinci_evm-arm_v5t_le (x0029463@aspbuild11) (gcc version 4.2.0 20070126 (prerelease) (MontaVista 4.2.0-3.0.0.0702771 2007-03-10)) #1 PREEMPT Wed May 20 01:14:17 IST 2009
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    Machine: DaVinci EVM
    Memory policy: ECC disabled, Data cache writeback
    DaVinci DM6443 variant 0x1
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
    Built 1 zonelists.  Total pages: 30208
    Kernel command line: video=davincifb:vid0=0,2500k:vid1=0,2500k:osd0=720x576x16,2025k davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=ntsc console=ttyS0,115200n8 noinitrd rw ip=192.168.0.15:255.255.255.0:192.168.0.1 root=/dev/hda1 mem=118M
    PID hash table entries: 512 (order: 9, 2048 bytes)
    Clock event device timer0_0 configured with caps set: 03
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 118MB = 118MB total
    Memory: 115328KB available (3461K code, 689K data, 176K init)
    Security Framework v1.0.0 initialized
    Capability LSM initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    NET: Registered protocol family 16
    DaVinci: 71 gpio irqs
    WARNING: both IDE and NOR flash are enabled, but share pins.
            Disable IDE for NOR support.
    ch0 default output "COMPOSITE", mode "NTSC"
    MUX: initialized LOEEN
    MUX: initialized LFLDEN
    VPBE Encoder Initialized
    LogicPD encoder initialized
    SCSI subsystem initialized
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 4096 bind 2048)
    TCP reno registered
    davinci_spi_board_init: NO spi support
    VFS: Disk quotas dquot_6.5.1
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    squashfs: version 3.1 (2006/08/19) Phillip Lougher
    JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
    yaffs May 20 2009 01:11:27 Installing. 
    SGI XFS with no debug enabled
    Initializing Cryptographic API
    io scheduler noop registered
    io scheduler anticipatory registered (default)
    LTT : ltt-facilities init
    LTT : ltt-facility-core init in kernel
    davincifb davincifb: dm_osd0_fb: Initial window configuration is invalid.
    davincifb davincifb: dm_osd0_fb: 720x576x16@0,0 with framebuffer size 1KB
    davincifb davincifb: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 2KB
    davincifb davincifb: dm_osd1_fb: 720x480x4@0,0 with framebuffer size 675KB
    davincifb davincifb: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 2KB
    davincifb davincifb.0: dm_osd0_fb: Failed to obtain ownership of OSD window.
    DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
    Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfec20000 (irq = 40) is a 16550A
    RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
    netconsole: not configured, aborting
    TI DaVinci EMAC: MAC address is 00:0e:99:02:42:8f
    TI DaVinci EMAC Linux version updated 4.0
    TI DaVinci EMAC: Installed 1 instances.
    Linux video capture interface: v2.00
    vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
    Trying to register davinci display video device.
    layer=c06e4600,layer->video_dev=c06e4760
    Trying to register davinci display video device.
    layer=c06e4400,layer->video_dev=c06e4560
    davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
    
     Davici AEW Driver cannot be loaded
     VIDEO PORT is not enabledData Flow path from CCDC is disabled
    
     Davinci AF driver cannot be loaded
     VIDEO PORT is not enabled 
     CCDC needs to be configured<6>i2c /dev entries driver
    Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
    MUX: initialized HDIREN
    MUX: initialized ATAEN
        ide0: MMIO-DMA , BIOS settings: hda:pio, hdb:pio
    hda: TOSHIBA MK4032GAX, ATA DISK drive
    ide0 at 0xfec661f0-0xfec661f7,0xfec663f6 on irq 22
    hda: max request size: 512KiB
    hda: 78140160 sectors (40007 MB), CHS=16383/255/63, UDMA(66)
    hda: cache flushes supported
     hda: hda1 hda2
    Initializing USB Mass Storage driver...
    usbcore: registered new driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new driver usbhid
    drivers/usb/input/hid-core.c: v2.6:USB HID core driver
    musb_hdrc: version 6.0, cppi-dma, host, debug=0
    musb_hdrc musb_hdrc: No DMA interrupt line
    musb_hdrc: USB Host mode controller at c785e000 using DMA, IRQ 12
    musb_hdrc musb_hdrc: MUSB HDRC host driver
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    mice: PS/2 mouse device common for all mice
    rtc_davinci_evm rtc_davinci_evm: rtc intf: proc
    rtc_davinci_evm rtc_davinci_evm: rtc intf: dev (254:0)
    rtc_davinci_evm rtc_davinci_evm: rtc core: registered rtc_davinci_evm as rtc0
    rtc0: hours 12-23 are misreported as duplicate hours 00-11
    davinci-mmc davinci-mmc.0: Supporting 4-bit mode
    davinci-mmc davinci-mmc.0: Using DMA mode
    Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
    ASoC version 0.13.1
    MUX: initialized MCBSP
    AIC3X Audio Codec 0.1
    asoc: aic3x <-> davinci-i2s mapping ok
    ALSA device list:
      #0: DaVinci EVM (aic3x)
    IPv4 over IPv4 tunneling driver
    TCP bic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    Time: timer0_1 clocksource has been installed.
    Clock event device timer0_0 configured with caps set: 08
    Switched to high resolution mode on CPU 0
    rtc_davinci_evm rtc_davinci_evm: setting the system clock to 2004-02-01 03:58:37 (1075607917)
    IP-Config: Guessing netmask 255.255.255.0
    IP-Config: Complete:
          device=eth0, addr=192.168.0.15, mask=255.255.255.0, gw=192.168.0.1,
         host=192.168.0.15, domain=, nis-domain=(none),
         bootserver=255.255.255.0, rootserver=255.255.255.0, rootpath=
    EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS on hda1, internal journal
    EXT3-fs: recovery complete.
    EXT3-fs: mounted filesystem with ordered data mode.
    VFS: Mounted root (ext3 filesystem).
    Freeing init memory: 176K
    INIT: version 2.86 booting
    Starting the hotplug events dispatcher: udevd.
    Synthesizing the initial hotplug events...done.
    Waiting for /dev to be fully populated...done.
    Activating swap...done. 
    Remounting root filesystem...done. 
    Calculating module dependencies
    WARNING: Couldn't open directory /lib/modules/2.6.18_pro500-davinci_evm-arm_v5t_le: No such file or directory
    FATAL: Could not open /lib/modules/2.6.18_pro500-davinci_evm-arm_v5t_le/modules.dep.temp for writing: No such file or directory
    Loading modules: 
    Checking all file systems: fsck
    fsck 1.40 (29-Jun-2007)
    Mounting local filesystems: mount nothing was mounted
    Setting up networking ....
    /etc/network/options is deprecated.
    Setting up IP spoofing protection: rp_filter done.
    Disabling IPv4 packet forwarding: done.
    Disabling TCP/IP Explicit Congestion Notification: done.
    Starting network interfaces: done.
    Starting hotplug subsystem:
       pci     
       pci      [success]
       usb     
       usb      [success]
       isapnp  
       isapnp   [success]
       ide     
       ide      [success]
       input   
       input    [success]
       scsi    
       scsi     [success]
    done.
    Starting portmap daemon....
    Cleaning: /tmp /var/lock /var/run done.
    Updating /etc/motd...done.
    INIT: Entering runlevel: 3
    Starting system log daemon: syslogd klogd.
    Starting NFS common utilities: statd.
    Starting internet superserver: inetd.
    Starting OpenBSD Secure Shell server: sshd. 
    CMEMK module: built on May 26 2009 at 09:30:32
      Reference Linux version 2.6.18
      File /db/atree/library/trees/linuxdemos/linuxdemos-d28x/imports/DEMO_common/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    ioremap_nocache(0x87600000, 10485760)=0xc8000000
    allocated heap buffer 0xc8000000 of size 0x2c000
    cmem initialized 5 pools between 0x87600000 and 0x88000000
    dsplinkk: no version for "struct_module" found: kernel tainted.
    DSPLINK Module (1.61.03) created on Date: May 26 2009 Time: 09:35:23
    Starting web server ...
     thttpd
    
    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921)
    
    192.168.0.15 login: root
    Last login: Sun Feb  1 03:03:18 2004 on console
    Linux 192.168.0.15 2.6.18_pro500-davinci_evm-arm_v5t_le #1 PREEMPT Wed May 20 01:14:17 IST 2009 armv5tejl GNU/Linux
    
    Welcome to MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921).
    
    root@192.168.0.15:~# cd /opt/;ls
    app             config  javaapplet                 readme.txt     sprc343a.gz
    cfgquality      dsp     javaapplet_pal             simpleweb
    cfgquality_pal  dvsdk   javaapplet_update1.tar.gz  simpleweb_pal
    root@192.168.0.15:/opt# cd dvsdk/;ls
    dm6446
    root@192.168.0.15:/opt/dvsdk# cd dm6446/;ls
    cmemk.ko    decodeCombo.x64P  encodeCombo.x64P  loadmodules.sh
    data        dsplinkk.ko       encodedecode      loopbackCombo.x64P
    decode      encode            encodedecode.txt  thirdpartydemos
    decode.txt  encode.txt        interface         web
    root@192.168.0.15:/opt/dvsdk/dm6446# ./encode -v test.264 -o
    Encode demo started.
    Error: Failed to create osd window device
    Error: Failed to create UI
    root@192.168.0.15:/opt/dvsdk/dm6446#
    /******************************************************************************************/
    this is my  all types  no nfs  I only run this:
       press:"reset"
       (when it's boot all; I press:)
        root@192.168.0.15:~# cd /opt/;ls
        root@192.168.0.15:/opt# cd dvsdk/;ls
        root@192.168.0.15:/opt/dvsdk# cd dm6446/;ls
        root@192.168.0.15:/opt/dvsdk/dm6446# ./encode -v test.264 -o
       ##########then print:###################################### 
          Encode demo started.
          Error: Failed to create osd window device
          Error: Failed to create UI
       #############################################################
       can you tell why?thans!!juan

  • hi juan,OSD and video can be worked:
    this is my NFS:
            setenv bootargs video=davincifb:vid0=0,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd) console=ttyS0,115200n8 noinitrd rw ip=192.168.0.15:255.255.255.0:192.168.0.1 root=/dev/nfs nfsroot=192.168.0.12:/home/gzj/workdir/filesys,nolock mem=118M

    I just modified the GSG said above, that vid1 = 0,2500K,
     
     I don't know that why the GSG(SPRU66F) 's  nfs  does not work????
    can you tell me ???,thanks you
  • looks like it is failing to create OSD window device; the boot log seems to indicate the device was created appropriately (you can check to ensure /dev/fb/0 device node is present), therefore, it could be that the size requested in wrong (default is NTSC, or you can specify one via -y option in demo, see encode.txt file), or it is not detecting a valid video input source.  I assume you have something connected to the video input of the EVM correct?

    The DVSDK software works on our DVEVM, several people are using it.  Therefore, if you followed the GSG correctly, this should work on our EVM hardware (no guarantees on other hardware).  If you are using our hardware EVM, I would recommend you make sure the hardware is connected correctly and the DVSDK software installed per GSG.  If you are not using our hardware, then it is time to start debugging... you have the demo source code so you can look for the place in the code where the corresponding error message is being printed from and add additional debug to get more information.