Build the gst_ti with Angstrom for BeagleBoard(I had few questions)

Hi, Diego dompe

I have saw your thread about how to enable DSP of beagleboard, did you get successful in this process? The thread is at:

https://gstreamer.ti.com/gf/project/gstreamer_ti/wiki/?pagename=BuildingWithAngstrom

and I remain to have some questions:

first, let me descript my process to you, please.

1)my OE environment is already been set up on my linux pc.

2)download bios_5_33_02, install it on $HOME/TI/bios_5_33_02

3)download xdctools_setuplinux_3_10_03, install it on $HOME/TI/xdctools_3_10_03

4)download codec_engine_2_21.tar.gz, and then copy it to OE download directory.

But, when I am executing this: md5sum $OE_HOME/tmp/downloads/codec_engine_2_21.tar.gz $OE_HOME/tmp/downloads/codec_engine_2_21.tar.gz.md5sum,

An error is shown out as below:

6cacb7db6eb61c64395be4ddc737095d codec_engine_2_12.tar.gz

Md5sum: codec_engine_2_21.tar.gz.md5: No such file or directory.

I don’t pay attention to it, since I ignored it, and go on next step.

  1. set up OE recipes of dsplink in, $OE_HOME/openebedded/recipes/dsplink/ti-paths.inc as below(all of these have been installed on my linux pc):

Path to the dir where the TI tools are unpacked

TITOOLSDIR ?= “$HOME/TI”

Path under TITOOLSDIR where dspbios is unpacked

TIBIOSDIR ?= “$HOME/TI/bios_5_33_02”

TIXDCTOOLSDIR ?= “${TITOOLSDIR}/xdctools_3_10_03”

Path under TITOOLSDIR where the dsp toolchain is unpacked

TICGTOOLSDIR ?= “$HOME/TI/cg6x_6_0_16”

  1. When I excute bitbake codec_engine, I got these errors:

DEBUG: Executing task do_fetch

NOTE: package ti-codec-engine-221-r21: task do_fetch: started

NOTE: fetch http://install.tarball.in.source.dir/codec_engine_2_21.tar.gz

–2009-04-07 16:37:32-- http://install.tarball.in.source.dir/codec_engine_2_21.tar.gz

Resolving install.tarball.in.source.dir… failed: Name or service not known.

wget: unable to resolve host address `install.tarball.in.source.dir’

NOTE: fetch http://www.angstrom-distribution.org/unstable/sources/codec_engine_2_21.tar.gz

–2009-04-07 16:37:32-- http://www.angstrom-distribution.org/unstable/sources/codec_engine_2_21.tar.gz

Resolving www.angstrom-distribution.org… 85.214.40.226

Connecting to www.angstrom-distribution.org|85.214.40.226|:80… connected.

HTTP request sent, awaiting response… 404 Not Found

2009-04-07 16:37:37 ERROR 404: Not Found.

NOTE: Task failed: Fetch failed: http://install.tarball.in.source.dir/codec_engine_2_21.tar.gz

NOTE: package ti-codec-engine-221-r21: task do_fetch: failed

ERROR: TaskFailed event exception, aborting

It indicate that the download codec_engine_2_21.tar.gz process is failed. But I download it manually, and put it at OE download directory.

Any help is highly appreciated.

Thank in advance

/favor

Hi,

The web instructions are still incomplete (will try to fix them ASAP).

If the file codec_engine_2_21.tar.gz is in your download directory, the process shouldn’t fail. Either your file name is wrong, or you copy it to a wrong place.

Regards,

Diego

Hello

1) copy codec_engine_2_21.tar.gz in
sources/org.openembedded.dev/recipes/dsplink/files

2) And update your
sources/org.openembedded.dev/recipes/dsplink/ti-codec-engine_2.21.bb

SRC_URI = "file://codec_engine_2_21.tar.gz \
           file://cmem-class-device-27-and-sched-include-fix.patch;patch=1 \
           file://sdma-class-device-and-includes-fix.patch;patch=1 \
           file://dsplink-semaphore-27.patch;patch=1 \
           file://dsplink-add-class-device-create-support.patch;patch=1 \
           file://lpm-device-create-and-semaphore-include-fix.patch;patch=1 \
           file://lpm-make-symbol-warnings-fix.patch;patch=1 \
           file://Makefile-dsplink-gpp \
           file://Makefile-dsplink-dsp \
           file://loadmodules-ti-dsplink-apps.sh \
           file://unloadmodules-ti-dsplink-apps.sh \
           file://loadmodules-ti-codec-engine-apps.sh \
           file://unloadmodules-ti-codec-engine-apps.sh \
"

This will get you going.

-Brijesh Singh

hi.

I follow Brijesh’s advice, so I can keep on going. But when I reached to QA process of ti-codec-engine packages,

I meet with some QA errors, the follow three errors are only part among them:

ERROR: QA Issue: No GNU_HASH in the elf binary: ‘/home/user/myoe/tmp/work/beagleboard-angstrom-linux-gnueabi/ti-codec-engine-221-r24/install/ti-codec-engine-apps/usr/share/ti-codec-engine/examples/apps/image_copy/bin/evm3530/app_local.xv5T’
ERROR: QA Issue: No GNU_HASH in the elf binary: ‘/home/user/myoe/tmp/work/beagleboard-angstrom-linux-gnueabi/ti-codec-engine-221-r24/install/ti-codec-engine-apps/usr/share/ti-codec-engine/examples/apps/image_copy/bin/evm3530/app_remote.xv5T’
ERROR: QA Issue: No GNU_HASH in the elf binary: ‘/home/user/myoe/tmp/work/beagleboard-angstrom-linux-gnueabi/ti-codec-engine-221-r24/install/ti-codec-engine-apps/usr/share/ti-codec-engine/examples/apps/image1_copy/bin/evm3530/app_local.xv5T’

does these error have any influences on my building of this package?

if it doesn’t have any influence on it, then, I will try to build gstreamer-ti. I hope this can help me to use The DSP of the omap3.

In addition, can you tell me why should I bitbake ti-codec-engine before I want to bitbake gstreamer-ti plugin for using DSP? I mean what’s it used for, does it be used as some decode/code libraries of gstreamer-ti?

thanks

Hi,

How to enable USB for beagle board in u-boot.?

Regards,
Sanjeev

hi.
as I ingnored previous QA errors, I could go on building. And then on, this error is out.

NOTE: Running task 1157 of 1741 (ID: 227, /home/user/myoe/openembedded/recipes/dsplink/ti-dmai_svn.bb, do_fetch)
NOTE: package ti-dmai-120+svnr36-r24: task do_fetch: started
NOTE: fetch http://www.angstrom-distribution.org/unstable/sources/BRIJESH_GIT_022309_gforge.ti.com_.svn.dmai.branches_36_.tar.gz
–2009-04-08 13:31:23-- http://www.angstrom-distribution.org/unstable/sources/BRIJESH_GIT_022309_gforge.ti.com_.svn.dmai.branches_36_.tar.gz
Resolving www.angstrom-distribution.org… 85.214.40.226
Connecting to www.angstrom-distribution.org|85.214.40.226|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2009-04-08 13:31:25 ERROR 404: Not Found.

NOTE: Fetch svn://gforge.ti.com/svn/dmai/branches;module=BRIJESH_GIT_022309;proto=https;user=anonymous;pswd=’’
Error validating server certificate for ‘https://gforge.ti.com:443’:

  • The certificate is not issued by a trusted authority. Use the
    fingerprint to validate the certificate manually!
    Certificate information:
  • Hostname: www.omapzoom.org
  • Valid: from Wed, 07 Jan 2009 22:05:27 GMT until Wed, 15 Jul 2009 22:30:39 GMT
  • Issuer: 07969287, http://certificates.godaddy.com/repository, GoDaddy.com, Inc., Scottsdale, Arizona, US
  • Fingerprint: 74:80:f6:c5:4c:e5:c3:3f:70:ef:58:fd:f8:b6:c8:f6:6e:40:fc:58
    ®eject, accept (t)emporarily or accept §ermanently? svn: OPTIONS of ‘https://gforge.ti.com/svn/dmai/branches/BRIJESH_GIT_022309’: Server certificate verification failed: issuer is not trusted (https://gforge.ti.com)
    NOTE: Task failed: Fetch failed: Fetch command export SSH_AUTH_SOCK=/tmp/keyring-xGFuRB/ssh; export PATH=/home/user/myoe/tmp/staging/i686-linux/usr/bin/beagleboard-angstrom-linux-gnueabi:/home/user/myoe/tmp/staging/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi:/home/user/myoe/tmp/staging/i686-linux/usr/sbin:/home/user/myoe/tmp/staging/i686-linux/usr/bin:/home/user/myoe/tmp/cross/armv7a/bin:/home/user/myoe/tmp/staging/i686-linux/sbin:/home/user/myoe/tmp/staging/i686-linux/bin:/home/user/myoe/opt/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games; /usr/bin/env svn co --username anonymous --password ‘’ -r 36 https://gforge.ti.com/svn/dmai/branches/BRIJESH_GIT_022309@36 BRIJESH_GIT_022309 failed with signal 1, output:
    Error validating server certificate for ‘https://gforge.ti.com:443’:
  • The certificate is not issued by a trusted authority. Use the
    fingerprint to validate the certificate manually!
    Certificate information:
  • Hostname: www.omapzoom.org
  • Valid: from Wed, 07 Jan 2009 22:05:27 GMT until Wed, 15 Jul 2009 22:30:39 GMT
  • Issuer: 07969287, http://certificates.godaddy.com/repository, GoDaddy.com, Inc., Scottsdale, Arizona, US
  • Fingerprint: 74:80:f6:c5:4c:e5:c3:3f:70:ef:58:fd:f8:b6:c8:f6:6e:40:fc:58
    ®eject, accept (t)emporarily or accept §ermanently? svn: OPTIONS of ‘https://gforge.ti.com/svn/dmai/branches/BRIJESH_GIT_022309’: Server certificate verification failed: issuer is not trusted (https://gforge.ti.com)

NOTE: package ti-dmai-120+svnr36-r24: task do_fetch: failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/user/myoe/openembedded/recipes/dsplink/ti-dmai_svn.bb do_fetch failed
ERROR: Task 227 (/home/user/myoe/openembedded/recipes/dsplink/ti-dmai_svn.bb, do_fetch) failed
NOTE: Tasks Summary: Attempted 1156 tasks of which 1147 didn’t need to be rerun and 1 failed.
ERROR: ‘/home/user/myoe/openembedded/recipes/dsplink/ti-dmai_svn.bb’ failed

And, I want to know, if it’s you, how do you solve this problem?

but this error didn’t stop me to keep on going. I solved this error manually, I did like this to solve this issue.

user@ubuntu810desktop:~$ svn co https://gforge.ti.com/svn/dmai/branches/BRIJESH_GIT_022309
Error validating server certificate for ‘https://gforge.ti.com:443’:

  • The certificate is not issued by a trusted authority. Use the
    fingerprint to validate the certificate manually!
    Certificate information:
  • Hostname: www.omapzoom.org
  • Valid: from Wed, 07 Jan 2009 22:05:27 GMT until Wed, 15 Jul 2009 22:30:39 GMT
  • Issuer: 07969287, http://certificates.godaddy.com/repository, GoDaddy.com, Inc., Scottsdale, Arizona, US
  • Fingerprint: 74:80:f6:c5:4c:e5:c3:3f:70:ef:58:fd:f8:b6:c8:f6:6e:40:fc:58
    ®eject, accept (t)emporarily or accept §ermanently? p [I accept, then download it]

When I download this to my user home directory, the structure of directories like this:

BRIJESH_GIT_022309
–davinci_multimedia_application_interface

then, I packaged the ‘BRIJESH_GIT_022309’ to BRIJESH_GIT_022309_gforge.ti.com_.svn.dmai.branches_36_.tar.gz, and copy it to oe download directory.
So, it can get going on.

but later on, another error is comes out again(see below). This time, I don’t know what to do now. any idea?

Makefile:58: warning: overriding commands for target makebuildable' Makefile:55: warning: ignoring old commands for target makebuildable’
Makefile:61: warning: overriding commands for target makebuildable' Makefile:58: warning: ignoring old commands for target makebuildable’
Makefile:64: warning: overriding commands for target makebuildable' Makefile:61: warning: ignoring old commands for target makebuildable’
Makefile:52: Your BIOS needs to be patched for SDSCM00004525!
Makefile:52: *** Please copy /TI//TI/bios_5_33_02/packages/ti/rtdx/package_export.xdc to /TI//TI/bios_5_33_02/packages/ti/rtdx/package.xdc. Stop.

  • die ‘oe_runmake failed’
  • oefatal ‘oe_runmake failed’
  • echo FATAL: ‘oe_runmake failed’
    FATAL: oe_runmake failed
  • exit 1
    ERROR: function do_compile failed
    ERROR: see log in /home/user/myoe/tmp/work/beagleboard-angstrom-linux-gnueabi/ti-codec-combos-316-r15/temp/log.do_compile.14017
    NOTE: Task failed: /home/user/myoe/tmp/work/beagleboard-angstrom-linux-gnueabi/ti-codec-combos-316-r15/temp/log.do_compile.14017
    NOTE: package ti-codec-combos-316-r15: task do_compile: failed
    ERROR: TaskFailed event exception, aborting
    ERROR: Build of /home/user/myoe/openembedded/recipes/dsplink/ti-codec-combos_3.16.bb do_compile failed
    ERROR: Task 375 (/home/user/myoe/openembedded/recipes/dsplink/ti-codec-combos_3.16.bb, do_compile) failed
    NOTE: Tasks Summary: Attempted 1180 tasks of which 1180 didn’t need to be rerun and 1 failed.
    ERROR: ‘/home/user/myoe/openembedded/recipes/dsplink/ti-codec-combos_3.16.bb’ failed
    NOTE: build 200904081448: completed

any help is very appreciated.

thanks

/favor

sanju More wrote:

Hi,

How to enable USB for beagle board in u-boot.?

Do you know

http://elinux.org/U-boot_musb_gadget_support

?

In case you use Rev C with preinstalled U-Boot from

http://code.google.com/p/beagleboard/wiki/BeagleboardRevCValidation

I'm not sure what's already done there, though. But above article should show you the basics.

Best regards

Dirk

hi.
Although, when I bitbake gstreamer-ti, I meet with some package QA problems. Since I ingnored previous QA errors, I could go on building. And then on, this error is out.

NOTE: Running task 1157 of 1741 (ID: 227, /home/user/myoe/openembedded/recipes/dsplink/ti-dmai_svn.bb, do_fetch)
NOTE: package ti-dmai-120+svnr36-r24: task do_fetch: started
NOTE: fetch http://www.angstrom-distribution.org/unstable/sources/BRIJESH_GIT_022309_gforge.ti.com_.svn.dmai.branches_36_.tar.gz
–2009-04-08 13:31:23-- http://www.angstrom-distribution.org/unstable/sources/BRIJESH_GIT_022309_gforge.ti.com_.svn.dmai.branches_36_.tar.gz

Resolving www.angstrom-distribution.org… 85.214.40.226
Connecting to www.angstrom-distribution.org|85.214.40.226|:80… connected.
HTTP request sent, awaiting response… 404 Not Found

2009-04-08 13:31:25 ERROR 404: Not Found.

NOTE: Fetch svn://gforge.ti.com/svn/dmai/branches;module=BRIJESH_GIT_022309;proto=https;user=anonymous;pswd=’’
Error validating server certificate for ‘https://gforge.ti.com:443’:

And, I want to know, if it’s you, how do you solve this problem?
but this error didn’t stop me to keep on going. I solved this error manually, I did like this to solve this issue.

user@ubuntu810desktop:~$ svn co https://gforge.ti.com/svn/dmai/branches/BRIJESH_GIT_022309
Error validating server certificate for ‘https://gforge.ti.com:443’:

  • The certificate is not issued by a trusted authority. Use the
    fingerprint to validate the certificate manually!
    Certificate information:
  • Hostname: www.omapzoom.org
  • Valid: from Wed, 07 Jan 2009 22:05:27 GMT until Wed, 15 Jul 2009 22:30:39 GMT
  • Issuer: 07969287, http://certificates.godaddy.com/repository, GoDaddy.com, Inc., Scottsdale, Arizona, US
  • Fingerprint: 74:80:f6:c5:4c:e5:c3:3f:70:ef:58:fd:f8:b6:c8:f6:6e:40:fc:58
    ®eject, accept (t)emporarily or accept §ermanently? p [I accept, then download it]

When I download this to my user home directory, then, I packaged the “BRIJESH_GIT_022309” to “BRIJESH_GIT_022309_gforge.ti.com_.svn.dmai.branches_36_.tar.gz”, and copy it to oe download directory. So, it can get going on.
but later on, another error is comes out again(see below). This time, I don’t know what to do now. any idea?

OE:beagleboard user@ubuntu810desktop:~$ tail /home/user/myoe/tmp/work/beagleboard-angstrom-linux-gnueabi/ti-codec-combos-316-r15/temp/log.do_compile.17102
Makefile:55: warning: ignoring old commands for target makebuildable' Makefile:61: warning: overriding commands for target makebuildable’
Makefile:58: warning: ignoring old commands for target makebuildable' Makefile:64: warning: overriding commands for target makebuildable’
Makefile:61: warning: ignoring old commands for target makebuildable' Makefile:67: warning: overriding commands for target makebuildable’
Makefile:64: warning: ignoring old commands for target `makebuildable’
Makefile:52: Your BIOS needs to be patched for SDSCM00004525!
Makefile:52: *** Please copy /TI//TI/bios_5_33_02/packages/ti/rtdx/package_export.xdc to /TI//TI/bios_5_33_02/packages/ti/rtdx/package.xdc. Stop.
FATAL: oe_runmake failed

Any help is very appreciated.

thanks

Hi,

I follow this page https://omapzoom.org/gf/project/gstreamer_ti/scmsvn/?action=browse&path=%2Ftrunk%2Fgstreamer_ti%2FREADME.TXT&view=markup to build gstreamer_ti

In the beginning, it’s ok. But when it reached to build libmad package, the error comes out like below.

Could you give me some suggestion, please?

cc1: error: unrecognized command line option "-fforce-mem"
make[7]: *** [version.lo] Error 1
make[7]: Leaving directory `/home/user/source/gstreamer_ti/opensource_build/libmad-0.15.1b'
make[6]: *** [install-recursive] Error 1
make[6]: Leaving directory `/home/user/source/gstreamer_ti/opensource_build/libmad-0.15.1b'
make[5]: *** [install] Error 2
make[5]: Leaving directory `/home/user/source/gstreamer_ti/opensource_build/libmad-0.15.1b'
make[4]: *** [mad.build] Error 2
make[4]: Leaving directory `/home/user/source/gstreamer_ti/opensource_build'
make[3]: *** [base] Error 2
make[3]: Leaving directory `/home/user/source/gstreamer_ti/opensource_build'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/user/source/gstreamer_ti/opensource_build'
make[1]: *** [opensource_build] Error 2
make[1]: Leaving directory `/home/user/source/gstreamer_ti'
make: *** [all] Error 2

     thank you.

/favor

I think you are trying to compile libmad with gcc 4.3. A bit of google
search results in this bug report.

http://sourceforge.net/tracker/index.php?func=detail&aid=1941235&group_id=12349&atid=112349

-Brijesh

hi. Brijesh

you are right. thank you!

2009/4/10 Brijesh Singh <brijesh.ksingh@gmail.com>

hi,

where can I download 1: code generation tools (for beagle board
+angstrom)
                                   2: DMAI
?

as according to the following gst_ti project instructions, I can find
any source files

Thanks in advance!

0. First step is to build a minimal environment for Angstrom and
Beagle using the instructions from here:
http://elinux.org/BeagleBoardAndOpenEmbeddedGit

1. Download and install code generation tools for Linux from
http://elinux.org/BeagleBoardAndOpenEmbeddedGit

Install on the default location (/opt/TI) and then create a symbolic
link so OE can find them on the location he uses:

sudo mkdir /OE/
sudo ln -s /opt/TI /OE/TI

hi. michael.

you can download all you needed at :https://www-a.ti.com/downloads/sds_support/targetcontent/dvsdk/oslinux_dvsdk/v3_00_3530/index.html.
of cause, you need a TI account in order to download these resources.

The DMAI, according to the official statement, it has been include in the OMAP3530 DVSDK 3.0. But also, you can download you own as you like.
it can be found at here: https://www-a.ti.com/downloads/sds_support/applications_packages/dmai/index.htm

I would like to see your progress going on. I am also doing gstreamer/DSP task, if you found something, please let me know.
Good luck :slight_smile:

Best Regards

Hey Tang,

Thank you so, it's really great!
I'll let you know if any progress in this.
sofar,still downloading the setup files at 50kb/s...

Hi. all

    These days I am working on dsplink/gstreamer, I just have dsplink
worked, also, I have already compiled the gstreamer_ti plugin and
Ti-code-engine worked as well.

    I load dsplink module as below, I think it had been loaded successfully:

root@beagleboard:~#
/usr/share/ti-codec-engine/loadmodules-ti-codec-engine-apps.sh
You have 60324kB total memory for Linux
ioremap_nocache(0x85000000, 16777216)=0xc7000000
allocated heap buffer 0xc7000000 of size 0xea000
cmem initialized 7 pools between 0x85000000 and 0x86000000
DSPLINK Module (1.60) created on Date: Apr 8 2009 Time: 10:39:08

    I can do some dsplink test ( it works), I have the lpm modules
work as well, for example:

root@beagleboard:/usr/share/dspsample# ./lpmON.x470uC
==== LPM ON Test ====
app: LPM_open
app: LPM_set(LPM_CTRL_REFCOUNTOVR)
app: LPM_on
app: LPM_close
==== All Done ====

root@beagleboard:/usr/share/dspsample# ./lpmOFF.x470uC
==== LPM OFF Test ====
app: LPM_open
app: LPM_set(LPM_CTRL_REFCOUNTOVR)
app: LPM_off
app: LPM_close
==== All Done ====

root@beagleboard:/usr/share/ti-dsplink# ./messagegpp message.out 10000
this works well with some normal messages output.

when I am uising gst-inspect command like below, I got these gst
elements. As we can see, I got gstreamer-ti plugin.

root@beagleboard:~/gstreamer_demo/omap3530# gst-inspect | grep TI
(gst-inspect-0.10:1663): GStreamer-WARNING **: Failed to load plugin '/usr/lib/g
streamer-0.10/libgstsubparse.so': /usr/lib/gstreamer-0.10/libgstsubparse.so: und
efined symbol: parse_sami
TICodecPlugin: TIDmaiVideoSink: TI DMAI Video Sink
TICodecPlugin: TIAuddec1: TI xDM 1.x Audio Decoder
TICodecPlugin: TIAuddec: TI xDM 0.9 Audio Decoder
TICodecPlugin: TIImgdec: TI xDM 0.9 Image Decoder
TICodecPlugin: TIImgdec1: TI xDM 1.0 Image Decoder
TICodecPlugin: TIImgenc: TI xDM 0.9 Image Encoder
TICodecPlugin: TIImgenc1: TI xDM 1.0 Image Encoder
TICodecPlugin: TIViddec2: TI xDM 1.2 Video Decoder
TICodecPlugin: TIViddec: TI xDM 0.9 Video Decoder
TICodecPlugin: TIVidenc: TI xDM 0.9 Video Encoder
TICodecPlugin: TIVidenc1: TI xDM 1.x Video Encoder
ffmpeg: ffdec_vcr1: FFMPEG ATI VCR1 decoder

however, those all above work well, I still cannot get
gstreamer/dsplink worked together, how and why? any ideas?

First test ~~~~~~~

root@beagleboard:~/mediaFile# gst-launch filesrc
location=/home/root/mediaFile/3.m4v ! qtdemux name=demux
demux.video_00 ! TIViddec2 ! TIDmaiVideoSink
(gst-launch-0.10:1699): GStreamer-WARNING **: Failed to load plugin
'/usr/lib/gstreamer-0.10/libgstsubparse.so':
/usr/lib/gstreamer-0.10/libgstsubparse.so: undefined symbol:
parse_sami
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ..
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 31982425 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
FREEING pipeline ...

Second test~~~~~~~

root@beagleboard:~/mediaFile# gst-launch -v filesrc
location=/home/root/mediaFile/3.m4v ! qtdemux name=demux
demux.video_00 ! TIViddec2 ! xvimagesink

(gst-launch-0.10:1714): GStreamer-WARNING **: Failed to load plugin
'/usr/lib/gstreamer-0.10/libgstsubparse.so':
/usr/lib/gstreamer-0.10/libgstsubparse.so: undefined symbol:
parse_sami
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not
initialise Xv output
Additional debug info:
xvimagesink.c(1668): gst_xvimagesink_xcontext_get (): /GstPipeline:pipeline0/Gst
XvImageSink:xvimagesink0:
Could not open display
Setting pipeline to NULL ...
FREEING pipeline ...

I didn’t get any video output on the screen. how should I do to test
if gstreamer/dsplink works? What about above tests errors?

thanks for your attention, any help is welcome.

Hello,

hi.

stefan: I dont use x server. thanks for you reminded me. I know why
the xv output error is occurred. cause I dont get x-server support on
my console image. I should use TIDmaiVideoSink, is that right?

Luther: I follow your instructions, I think I am not far away from
success. But I need more help.
when I play a video file like below, I got errors from mmcblk0 error.
I don't know why?
it just show a small rectangle with a TI brand mark on the right top
of it, except that, It didnt' show any thing.
instead, it hanged by the error.

any suggestions?
thanks

root@beagleboard:/usr/share/ti-codec-combos# modprobe sdmak
root@beagleboard:/usr/share/ti-codec-combos# gst-launch
--gst-debug=TI*:2 filesrc location=/home/root/mediaFile/Terminator\
Salvation.mp4 ! TIViddec2 codecName=mpeg4dec engineName=decode
genTimeStamps=FALSE ! TIDmaiVideoSink videoStd=D1_NTSC
displayStd=fbdev displayDevice=/dev/fb2

(gst-launch-0.10:1629): GStreamer-WARNING **: Failed to load plugin
'/usr/lib/gstreamer-0.10/libgstsubparse.so':
/usr/lib/gstreamer-0.10/libgstsubparse.so: undefined symbol:
parse_sami Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:01.695709235 1628 0x1047c8 WARN TIViddec2 gsttividdec2.c:150
6:gst_tividdec2_frame_duration: framerate not specified; using 29.97fps
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
mmcblk0: error -84 transferring data
end_request: I/O error, dev mmcblk0, sector 1587845
end_request: I/O error, dev mmcblk0, sector 1587853
end_request: I/O error, dev mmcblk0, sector 1587861
end_request: I/O error, dev mmcblk0, sector 1587869
end_request: I/O error, dev mmcblk0, sector 1587877
end_request: I/O error, dev mmcblk0, sector 1587885
end_request: I/O error, dev mmcblk0, sector 1587893
end_request: I/O error, dev mmcblk0, sector 1587901
end_request: I/O error, dev mmcblk0, sector 1587909
end_request: I/O error, dev mmcblk0, sector 1587917
end_request: I/O error, dev mmcblk0, sector 1587925
end_request: I/O error, dev mmcblk0, sector 1587933
end_request: I/O error, dev mmcblk0, sector 1587941
end_request: I/O error, dev mmcblk0, sector 1587949
end_request: I/O error, dev mmcblk0, sector 1587957
end_request: I/O error, dev mmcblk0, sector 1587965

Hello,

I would suggest first testing your TIDmaiVideoSink and audio before
going further.

1) test audio - you should hear beep
gst-launch audiotestsrc ! alsasink

2) test video display - You should see test video on your moniter
gst-launch videotestsrc ! TIDmaiVideoSink videoStd=D1_NTSC
displayDevice=/dev/fb2 displayStd=fbdev

If above worked as expected then go to #3

3)
I see you are trying to play mp4 file but i dont see qtdemux in your
pipeline. To play mp4, do something like this:

gst-launch filesrc location=sample.mp4 ! typefind ! qtdemux name=demux
demux.audio_00 ! queue max-size-buffers=1800 max-size-time=0
max-size-bytes=0 ! typefind ! TIAuddec1 ! alsasink demux.video_00 !
typefind ! TIViddec2 ! TIDmaiVideoSink videoStd=D1_NTSC
displayDevice=/dev/fb2 displayStd=fbdev

Hope this will help.

I would suggest to read this page to get familiar with various
properties. http://wiki.davincidsp.com/index.php?title=GstTIPlugin_Elements

-Brijesh

hi. Brijesh

I want to tell you the result of the dsplink test today, and I would
like you give me some proposals.
1) I changed the bootargs, added the mem=88M.

I have see "New beagleboard demo image, now with 100% more DSP " at
google groups mailing list.
   https://groups.google.com/group/beagleboard/browse_thread/thread/a88dccbb7acc06c?pli=1

I set the loadmodule.sh file as follow:
modprobe cmemk phys_start=0x85800000 phys_end=0x86800000
pools=20x4096,8x131072,4x829440,1x5250000,1x1429440,1x256000
# insert DSP/BIOS Link driver
modprobe dsplinkk
# make /dev/dsplink
rm -f /dev/dsplink
mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
# insert Local Power Manager driver
modprobe lpm_omap3530
# insert sdma module
modprobe sdmak

2) load modules ok
root@beagleboard:~# ./loadmodule.sh
ioremap_nocache(0x85800000, 16777216)=0xc8000000
allocated heap buffer 0xc8000000 of size 0x522000
cmem initialized 6 pools between 0x85800000 and 0x86800000
DSPLINK Module (1.60) created on Date: Apr 8 2009 Time: 10:39:08

3) the first time, I use this command for playing mp4 video. this
time, an error is happened without any video display, but I could hear
its sound. with the same command, the second time, it can play this
mp4 video as normal, but with some "mmcblk0: error -84 transferring
data" errors.
except for that, it didn't play to its end of the video, and be hanged
after many(maybe fewer than 60 seconds) seconds. the video playing
don't go on, and stop at any point. I am confused why is this
happened.
I have read that thread, but still didn't know how to deal with this.

it seems that the gst-ti plugin and its TI codec combos is not robust
enough, is it? maybe I am wrong, please correct me.

root@beagleboard:/usr/share/ti-codec-combos# gst-launch --gst-debug=TI*:2 filesr
c location=/home/root/mediaFile/4.mp4 ! typefind ! qtdemux name=demux demux.aud
io_00 ! queue max-size-buffers=1800 max-size-time=0 max-size-bytes=0 ! typefind
! TIAuddec1 ! alsasink demux.video_00 ! typefind ! TIViddec2 ! TIDmaiVideoSink v
ideoStd=D1_NTSC displayDevice=/dev/fb2 displayStd=fbdev

0:00:02.932525634 1556 0x1b17d0 ERROR TIDmaiVideoSink gsttidmaivideosink
.c:1077:gst_tidmaivideosink_init_display: Failed to open display device

0:00:02.935852049 1556 0x1b17d0 ERROR TIDmaiVideoSink gsttidmaivideosink
.c:1249:gst_tidmaivideosink_render: Unable to initialize display

New clock: GstAudioSinkClock
WARNING: from element /GstPipeline:pipeline0: Internal GStreamer error: clock pr
oblem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GSt
reamer.
Additional debug info:
gstbin.c(2240): gst_bin_do_latency_func (): /GstPipeline:pipeline0:

test result: I can hear the video sound, but without any video display out.

root@beagleboard:/usr/share/ti-codec-combos# gst-launch --gst-debug=TI*:2 filesr
c location=/home/root/mediaFile/4.mp4 ! typefind ! qtdemux name=demux demux.aud
io_00 ! queue max-size-buffers=1800 max-size-time=0 max-size-bytes=0 ! typefind
! TIAuddec1 ! alsasink demux.video_00 ! typefind ! TIViddec2 ! TIDmaiVideoSink v
ideoStd=D1_NTSC displayDevice=/dev/fb2 displayStd=fbdev

WARNING: from element /GstPipeline:pipeline0: Internal GStreamer error: clock pr
oblem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GSt
reamer.
Additional debug info:
gstbin.c(2240): gst_bin_do_latency_func (): /GstPipeline:pipeline0:
Failed to configure latency of 0:00:00.000000000
mmcblk0: error -84 transferring data
end_request: I/O error, dev mmcblk0, sector 1420693
end_request: I/O error, dev mmcblk0, sector 1420701
end_request: I/O error, dev mmcblk0, sector 1420709
end_request: I/O error, dev mmcblk0, sector 1420773
0:01:25.549499504 1570 0x45b017c8 ERROR TIAuddec1 gsttiauddec1.c:111
4:gst_tiauddec1_decode_thread: fatal bit error

test result: I can see the video display and the sound as well. but
only can play few seconds, and hang.
except for that, an "end_request: I/O error" shows out.

4) I test another video with the same command, this time it can't play
anything at all, instead, CMEMK Error is happened. it seems it is the
cmem modprobe and mem of bootargs problem, but the previous test show
that I can use these arguments to play video, even though, few seconds
(20~35s). any ideas, why?

root@beagleboard:/usr/share/ti-codec-combos# gst-launch --gst-debug=TI*:2 filesr
c location=/home/root/mediaFile/Terminato.mp4 ! typefind ! qtdemux name=demux
demux.audio_00 ! queue max-size-buffers=1800 max-size-time=0 max-size-bytes=0 !
typefind ! TIAuddec1 ! alsasink demux.video_00 ! typefind ! TIViddec2 ! TIDmaiVi
deoSink videoStd=D1_NTSC displayDevice=/dev/fb2 displayStd=fbdev

CMEMK Error: get_phys: Unable to find phys addr for 0xbca65000
CMEMK Error: get_phys: get_user_pages() failed: -14
CMEMK Error: GETPHYS: Failed to convert virtual 0xbca65000 to physical.
CMEM Error: getPhys: Failed to gDMA transaction error with device 0
et physical address of 0xbca65000
New clock: GstAudioSinkClock
WARNING: from element /GstPipeline:pipeline0: Internal GStreamer error: clock pr
oblem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GSt
reamer.
Additional debug info:
gstbin.c(2240): gst_bin_do_latency_func (): /GstPipeline:pipeline0:
Failed to configure latency of 0:00:00.000000000

highly appreciated for your help

hi,neel

  sorry for that, neel. I don't meet with that problem.

    is that the detail error? I didn't see more error except "make[3]:
*** [DspBios/5.XX/OMAP3530/message.tcf.deb] Error 1".
I also think the previous line include more details about error, can
you post here. maybe someone knows will help you.

thanks.