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 open codec engine

Hi,

I have a DM6446 EVM and when I start the demo examples (decode, encode etc) the following error appears:

/loadmodules.sh
ioremap_nocache(0x87800000, 8388608)=0xc8080000
allocated heap buffer 0xc8080000 of size 0xf7000
cmem initialized 4 pools between 0x87800000 and 0x88000000
DSPLINK Module (1.40.05_p1) created on Date: Nov 20 2007 Time: 11:01:11

./decode -v data/videos/davincieffect_pal.mpeg4 -t 20

Decode demo started.
TraceUtil> Error: Failed to open codec engine "decode"
TraceUtil> Error: Aborting TraceUtil_start
Decode Error: Failed to open codec engine decode
Decode Error: Failed to open codec engine decode

What does it mean? How can I solve the problem? I read so much problems related to this subject on net  but I can not find any solution.

Thanks

  • The most common error in this area is using software components from different releases together.  This is very easy to do when you consider the different locations where the softwae components may reside; for example, a user can be working on an NFS mounted file-system and then switches to HDD without realizing it has not been updated to the same software release version as other components.  I have ran the demos in the latest release (1.30.00.41) and can confirm they work.  Have you finish going thru GSG.

  • I have already had a DM355 EVM and when I switched to DM6446EVM I also add below files to my DVSDK(1_30_00_41) and I follow the instructions in GSG.

    dsp_bios_setuplinux_5_31_08_15.bin

    TI-C6x-CGTEVAL-v6.0.15.1.bin

    I did all in GSG except "4.8 Testing the Build Environment".

    Can you tell me which files do I need just for the decode example for example? (What I have are: loadmodules.sh, cmemk.ko, dsplinkk.ko, decode, and the video data)

    Do I need to add a codec to the same directory?

     

     

     

  • Section 4.5 and 4.6 of GSG are key since both these sections can be configured for DM355 or DM6446 and must be configured for the correct platform for things to work correctly.  Completing section 4.6 of the GSG should have copied the necessary DM6446 files over to the file system. 

    I would double check section 4.5 and 4.6 in GSG first; if this does not work, please attach a full log starting from the boot process all the way to the error you get when you run the demo.

  • 1)When I came to my office today and started the DVEVM6446 and run ./decode  it can start without a problem.  I did not change anything in my file system. Also ./dvevmdemo can work without any problem. But ./decode gave this error once and I had to restart the system :

    root@192.168.184.70:/opt/dvsdk/dm6446# DSP-side configuration mismatch/failure
    0              -> success
    Positive value -> DSP-side failure code.
    (Uint32) -1    -> DSP-side component was not initialized.

        DRV configuration status    [0x0]
        IPS configuration status    [0x1]
        POOL configuration status   [0xffffffff]
        MPCS configuration status   [0xffffffff]
        MPLIST configuration status [0xffffffff]
        MQT configuration status    [0xffffffff]
        RINGIO configuration status [0xffffffff]

    2)In addition to that I could not run ./encodedecode which gives the error:

    Encodedecode demo started.
    TraceUtil> Error: Failed to open codec engine "encodedecode"
    TraceUtil> Error: Aborting TraceUtil_start
    Encodedecode Error: Failed to open codec engine encodedecode
    Encodedecode Error: Failed to open codec engine encodedecode

    How can I solve this problem ?

    3)Here is my working but unstable boot proccess

     

    U-Boot 1.1.3 (Dec  4 2006 - 12:05:38)

    U-Boot code: 81080000 -> 81097628  BSS: -> 810A0018
    RAM Configuration:
    Bank #0: 80000000 256 MB
    Flash: 16 MB
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock :- 297MHz
    DDR Clock :- 162MHz
    Hit any key to stop autoboot:  0
    BOOTP broadcast 1
    DHCP client bound to address 192.168.184.70
    TFTP from server 192.168.170.238; our IP address is 192.168.184.70
    Filename 'uImage'.
    Load address: 0x80700000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #########################################
    done
    Bytes transferred = 1538564 (177a04 hex)
    ## Booting image at 80700000 ...
       Image Name:   Linux-2.6.10_mvl401
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1538500 Bytes =  1.5 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
    OK

    Starting kernel ...

    Uncompressing

    Linu....................................................................................................

    .. done, bootLinux version 2.6.10_mvl401 (root@localhost.localdomain) (gcc version 3.4.3 (MontaVista

    3.4.3-25.0.104.0600975 2006-07-06)) #1 Wed Mar 18 10:07:51 EET 2009
    CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
    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
    Machine: DaVinci EVM
    Memory policy: ECC disabled, Data cache writeback
    DM6443
    Built 1 zonelists
    Kernel command line: video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K

    davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal console=ttyS0,115200n8 noinitrd rw

    ip=dhcp root=/dev/nfs nfsroot=192.168.171.89:/home/ferhat_olgun/workdir/filesys,nolock mem=120M
    PID hash table entries: 512 (order: 9, 8192 bytes)
    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: 120MB = 120MB total
    Memory: 118272KB available (2656K code, 529K data, 180K init)
    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    CPU: Testing write buffer coherency: ok
    spawn_desched_task(00000000)
    desched cpu_callback 3/00000000
    ksoftirqd started up.
    desched cpu_callback 2/00000000
    desched thread 0 started up.
    NET: Registered protocol family 16
    DaVinci: 71 gpio irqs
    Registering platform device 'serial8250.0'. Parent at platform
    Registering platform device 'musb_hdrc'. Parent at platform
    Registering platform device 'mmc.0'. Parent at platform
    DaVinci I2C DEBUG: 10:00:10 Mar 18 2009
    Registering platform device 'i2c'. Parent at platform
    ch0 default output "COMPOSITE", mode "PAL"
    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
    musb_hdrc: version 2.2a/db-0.4.8 [cppi-dma] [host] [debug=0]
    musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn)
    musb_hdrc: MHDRC RTL version 1.300
    musb_hdrc: USB Host mode controller at c8002000 using DMA, IRQ 12
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    MUX: initialized MCBSP0
    JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
    yaffs Mar 18 2009 09:58:39 Installing.
    Registering platform device 'davincifb.0'. Parent at platform
    davincifb davincifb.0: dm_osd0_fb:
    720x576x16@0,0 with framebuffer size 2025KB
    davincifb davincifb.0: dm_vid0_fb:
    720x576x16@0,0 with framebuffer size 2500KB
    davincifb davincifb.0: dm_osd1_fb:
    720x576x4@0,0 with framebuffer size 810KB
    davincifb davincifb.0: dm_vid1_fb:
    720x576x16@0,0 with framebuffer size 2500KB
    watchdog: TI DaVinci Watchdog Timer: timer margin 64 sec
    Registering platform device 'davinci_resizer.2'. Parent at platform
    Registering platform device 'davinci_previewer.2'. Parent at platform
    Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
    Registering platform device 'serial8250'. Parent at platform
    ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
    io scheduler noop registered
    io scheduler anticipatory registered
    RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
    loop: loaded (max 8 devices)
    Registering platform device 'ti_davinci_emac'. Parent at platform
    TI DaVinci EMAC: MAC address is 00:0e:99:02:5a:92
    TI DaVinci EMAC Linux version updated 5.0
    TI DaVinci EMAC: Installed 1 instances.
    netconsole: not configured, aborting
    i2c /dev entries driver
    Linux video capture interface: v1.00
    Registering platform device 'vpfe.1'. Parent at platform
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: NACK detected
    vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
    Registering platform device 'DavinciDisplay.1'. Parent at platform
    Trying to register davinci display video device.
    layer=c77f0c00,layer->video_dev=c77f0d64
    Trying to register davinci display video device.
    layer=c77f0a00,layer->video_dev=c77f0b64
    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>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
    hda: TOSHIBA MK4032GAX, ATA DISK drive
    elevator: using anticipatory as default io scheduler
    ide0 at 0xe10661f0-0xe10661f7,0xe10663f6 on irq 22
    hda: max request size: 1024KiB
    hda: 78140160 sectors (40007 MB), CHS=16383/255/63
     hda: hda1 hda2
        ide0: BM-DMA at 0xe1066000-0xe1066007, BIOS settings: hda:pio, hdb:pio
    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.0:USB HID core driver
    mice: PS/2 mouse device common for all mice
    mmc mmc.0: Supporting 4-bit mode
    mmc mmc.0: Using DMA mode
    Registering platform device 'davinci-audio.0'. Parent at platform
    NET: Registered protocol family 2
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 8192 bind 16384)
    NET: Registered protocol family 1
    NET: Registered protocol family 10
    IPv6 over IPv4 tunneling driver
    NET: Registered protocol family 17
    Sending DHCP requests ., OK
    IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.184.70
    IP-Config: Complete:
          device=eth0, addr=192.168.184.70, mask=255.255.192.0, gw=192.168.128.200,
         host=192.168.184.70, domain=karelarge.com, nis-domain=(none),
         bootserver=0.0.0.0, rootserver=192.168.171.89, rootpath=
    Looking up port of RPC 100003/2 on 192.168.171.89
    Looking up port of RPC 100005/1 on 192.168.171.89
    VFS: Mounted root (nfs filesystem).
    Freeing init memory: 180K
    INIT: version 2.85 booting
    Mounting a tmpfs over /dev...done.
    Creating initial device nodes...done.
    Activating swap...done.
    Remounting root filesystem...done.
    Calculating module dependencies
    Loading modules:
    Checking all file systems: fsck
    fsck 1.35 (28-Feb-2004)
    Mounting local filesystems: mount nothing was mounted
    Cleaning: /tmp /var/lock /var/run done.
    Setting up networking (ifupdown) ..
    Cleaning: /etc/network/run/ifstate 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: portmap.
    done.
    Setting pseudo-terminal access permissions...done.
    Updating /etc/motd...done.
    INIT: Entering runlevel: 3
    Starting NFS common utilities: statd lockd.
    Starting internet superserver: inetd.
    Starting MontaVista target tools daemon: mvltdmvltd version 2.1 MontaVista Software,Inc.
    mvltd[1043]: started on port 34577
    .
    MontaVista(R) Linux(R) Professional Edition 4.0.1 (0600980)

    192.168.184.70 login: root
    Last login: Sun Feb  1 12:00:36 2004 on console
    Linux 192.168.184.70 2.6.10_mvl401 #1 Wed Mar 18 10:07:51 EET 2009 armv5tejl GNU/Linux

    Welcome to MontaVista(R) Linux(R) Professional Edition 4.0.1 (0600980).


    root@192.168.184.70:~# cd opt
    -bash: cd: opt: No such file or directory
    root@192.168.184.70:~# cd ..
    root@192.168.184.70:/# cd opt
    root@192.168.184.70:/opt# ls
    dvsdk
    root@192.168.184.70:/opt# cd dvsdk/
    root@192.168.184.70:/opt/dvsdk# ls
    dm6446
    root@192.168.184.70:/opt/dvsdk# cd dm6446/
    root@192.168.184.70:/opt/dvsdk/dm6446# ls
    app.out    decode            dsplinkk__.ko  encodedecode      loadmodules.sh
    cmemk.ko   decode.txt        dvevmdemo      encodedecode.txt  out.dat
    cmemk_.ko  decodeCombo.x64P  encode         in.dat            thirdpartydemos
    data       dsplinkk.ko       encode.txt     interface         video_copy.x64P
    root@192.168.184.70:/opt/dvsdk/dm6446# ./loadmodules.sh
    ioremap_nocache(0x87800000, 8388608)=0xc8080000
    allocated heap buffer 0xc8080000 of size 0xf7000
    cmem initialized 4 pools between 0x87800000 and 0x88000000
    dsplinkk: no version for "struct_module" found: kernel tainted.
    dsplinkk: module license 'DSP/BIOS(TM) LINK' taints kernel.
    DSPLINK Module (1.40.05_p1) created on Date: Nov 20 2007 Time: 11:01:11
    root@192.168.184.70:/opt/dvsdk/dm6446# ./dvevmdemo
    insmod: error inserting 'cmemk.ko': -1 File exists
    insmod: error inserting 'dsplinkk.ko': -1 File exists
    Starting web server ...
    root@192.168.184.70:/opt/dvsdk/dm6446# ./encodedecode -r 720x480 -t 20
    Encodedecode demo started.
    TraceUtil> Error: Failed to open codec engine "encodedecode"
    TraceUtil> Error: Aborting TraceUtil_start
    Encodedecode Error: Failed to open codec engine encodedecode
    Encodedecode Error: Failed to open codec engine encodedecode
    Capturing 720x576 video (cropped to 720x486)

  • Looks like the u-boot version you are using (1.1.3) does not correspond to the u-boot version included with this software release (1.2.0); upgrading may fix the problem.