install-gst-dsp.sh - assembler errors

Hi,

I have installed Debian on BB xM using NetInstall method described here:
http://elinux.org/BeagleBoardUbuntu#Method_2:_Use_the_NetInstall_method
Everything seams to work fine. Just for the info, here is the output
from uname -a:
Linux t3 3.2.2-x3 #1 SMP Thu Jan 26 18:35:22 UTC 2012 armv7l GNU/Linux
There is no monitor connected to BB and I was using serial console for
the installation:
sudo ./mk_mmc.sh --mmc /dev/mmcblk0 --uboot beagle_xm --serial-mode

After that, I was trying to install gst-dsp by following instructions
on the same page:
http://elinux.org/BeagleBoardUbuntu#DSP
Executing install-DSP.sh works find and after "dsp start" dsp-test
does not report any errors. However, running install-gst-dsp.sh prints
compilation errors and I hope someone can suggest what might be wrong
or provide other tips how to solve it.

The following is what I see when (re)running install-gst-dsp.sh. After
that, if I try to run gst-inspect | grep dsp there is no such plugins
found. I would really appreciate any suggestions.

Thanks,
Andrey.

root@t3:~# ./install-gst-dsp.sh
64 bytes from bk-in-f99.1e100.net (173.194.69.99): icmp_req=1 ttl=50
time=62.2 ms
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
git-core is already the newest version.
gstreamer-tools is already the newest version.
libgstreamer0.10-dev is already the newest version.
pkg-config is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
   CLEAN clean
removed `dsp_bridge.o'
removed `gstdspbase.o'
removed `gstdspbuffer.o'
removed `gstdspdummy.o'
removed `gstdsph263enc.o'
removed `gstdspjpegenc.o'
removed `gstdspmp4venc.o'
removed `gstdspvdec.o'
removed `gstdspvenc.o'
removed `log.o'
removed `plugin.o'
removed `util.o'
removed `dsp_bridge.d'
removed `gstdspbase.d'
removed `gstdspbuffer.d'
removed `gstdspdummy.d'
removed `gstdsph263enc.d'
removed `gstdspjpegenc.d'
removed `gstdspmp4venc.d'
removed `gstdspparse.d'
removed `gstdspvdec.d'
removed `gstdspvenc.d'
removed `log.d'
removed `plugin.d'
removed `util.d'
Already up-to-date.
   CC plugin.o
   CC gstdspbuffer.o
   CC gstdspdummy.o
   CC gstdspbase.o
   CC gstdspvdec.o
   CC gstdspvenc.o
   CC gstdsph263enc.o
   CC gstdspmp4venc.o
   CC gstdspjpegenc.o
   CC dsp_bridge.o
   CC util.o
   CC log.o
   CC gstdspparse.o
/tmp/cczYeE5F.s: Assembler messages:
/tmp/cczYeE5F.s:68: Error: selected processor does not support `rev ip,ip'
/tmp/cczYeE5F.s:162: Error: selected processor does not support `rev r3,r3'
/tmp/cczYeE5F.s:560: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:604: Error: selected processor does not support `rev r6,r6'
/tmp/cczYeE5F.s:749: Error: selected processor does not support `rev r1,r1'
/tmp/cczYeE5F.s:819: Error: selected processor does not support `rev r3,r3'
/tmp/cczYeE5F.s:943: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:1000: Error: selected processor does not support `rev sl,sl'
/tmp/cczYeE5F.s:1187: Error: selected processor does not support `rev ip,ip'
/tmp/cczYeE5F.s:1279: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:2153: Error: selected processor does not support `rev r3,r3'
/tmp/cczYeE5F.s:2188: Error: selected processor does not support `rev r7,r7'
/tmp/cczYeE5F.s:2248: Error: selected processor does not support `rev r3,r3'
/tmp/cczYeE5F.s:2320: Error: selected processor does not support `rev r3,r3'
/tmp/cczYeE5F.s:2344: Error: selected processor does not support `rev r7,r7'
/tmp/cczYeE5F.s:2476: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:2512: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:2557: Error: selected processor does not support `rev r3,r3'
/tmp/cczYeE5F.s:2695: Error: selected processor does not support `rev r4,r4'
/tmp/cczYeE5F.s:2804: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:2864: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:2922: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:2985: Error: selected processor does not support `rev r3,r3'
/tmp/cczYeE5F.s:3085: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:3155: Error: selected processor does not support `rev r1,r1'
/tmp/cczYeE5F.s:3265: Error: selected processor does not support `rev r4,r4'
/tmp/cczYeE5F.s:3311: Error: selected processor does not support `rev r4,r4'
/tmp/cczYeE5F.s:3357: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:3447: Error: selected processor does not support `rev r3,r3'
/tmp/cczYeE5F.s:3655: Error: selected processor does not support `rev r2,r2'
/tmp/cczYeE5F.s:3709: Error: selected processor does not support `rev r2,r2'
make: *** [gstdspparse.o] Error 1
   CC gstdspparse.o
/tmp/cctMbiby.s: Assembler messages:
/tmp/cctMbiby.s:68: Error: selected processor does not support `rev ip,ip'
/tmp/cctMbiby.s:162: Error: selected processor does not support `rev r3,r3'
/tmp/cctMbiby.s:560: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:604: Error: selected processor does not support `rev r6,r6'
/tmp/cctMbiby.s:749: Error: selected processor does not support `rev r1,r1'
/tmp/cctMbiby.s:819: Error: selected processor does not support `rev r3,r3'
/tmp/cctMbiby.s:943: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:1000: Error: selected processor does not support `rev sl,sl'
/tmp/cctMbiby.s:1187: Error: selected processor does not support `rev ip,ip'
/tmp/cctMbiby.s:1279: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:2153: Error: selected processor does not support `rev r3,r3'
/tmp/cctMbiby.s:2188: Error: selected processor does not support `rev r7,r7'
/tmp/cctMbiby.s:2248: Error: selected processor does not support `rev r3,r3'
/tmp/cctMbiby.s:2320: Error: selected processor does not support `rev r3,r3'
/tmp/cctMbiby.s:2344: Error: selected processor does not support `rev r7,r7'
/tmp/cctMbiby.s:2476: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:2512: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:2557: Error: selected processor does not support `rev r3,r3'
/tmp/cctMbiby.s:2695: Error: selected processor does not support `rev r4,r4'
/tmp/cctMbiby.s:2804: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:2864: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:2922: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:2985: Error: selected processor does not support `rev r3,r3'
/tmp/cctMbiby.s:3085: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:3155: Error: selected processor does not support `rev r1,r1'
/tmp/cctMbiby.s:3265: Error: selected processor does not support `rev r4,r4'
/tmp/cctMbiby.s:3311: Error: selected processor does not support `rev r4,r4'
/tmp/cctMbiby.s:3357: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:3447: Error: selected processor does not support `rev r3,r3'
/tmp/cctMbiby.s:3655: Error: selected processor does not support `rev r2,r2'
/tmp/cctMbiby.s:3709: Error: selected processor does not support `rev r2,r2'
make: *** [gstdspparse.o] Error 1
   CLEAN clean
removed `libgstomapfb.so'
removed `log.o'
removed `omapfb.o'
removed `log.d'
removed `omapfb.d'
Already up-to-date.
   CC omapfb.o
   CC log.o
   LINK libgstomapfb.so
install -m 755 -D libgstomapfb.so //usr/lib/gstreamer-0.10/libgstomapfb.so
   CLEAN clean
Already on 'master'
Already up-to-date.
error: branch 'firmware-tmp' not found.
Branch firmware-tmp set up to track remote branch firmware from origin.
Switched to a new branch 'firmware-tmp'
`firmware/test.dll64P' -> `/lib/dsp/test.dll64P'
Switched to branch 'master'
Deleted branch firmware-tmp (was b3e097c).
   CC dsp_load.o
   CC dsp_bridge.o
   LINK dsp-load
   CC dsp_probe.o
   CC log.o
   LINK dsp-probe
   CC dsp_test.o
   LINK dsp-test
   CC dsp_exec.o
   LINK dsp-exec
install -m 755 dsp-load -D /usr/bin/dsp-load
install -m 755 dsp-probe -D /usr/bin/dsp-probe
install -m 755 dsp-test -D /usr/bin/dsp-test
install -m 755 dsp-exec -D /usr/bin/dsp-exec
root@t3:~# gst-inspect | grep dsp
root@t3:~# gst-inspect | grep dsp

I wasn't expecting anyone to try to use the dsp on the slower armv4t
debian target so i never tested this..

But it looks like we just need to specify a sane cpu variant as it
definitively doesn't like the debian host gcc default 'armv4t'
setting..

Regards,

Thank you Robert for the quick response!

I wasn't expecting anyone to try to use the dsp on the slower armv4t
debian target so i never tested this..

It was not my intent to use the slower architecture. I just wanted to
try Debian. Is there a better option to use for Debian?

Thank you very much!
Andrey.

For right now, ubuntu oneiric is the best released option for a deb
based system.. When precise and wheezy get released, then
debian/ubuntu will be about equal on optimization settings.

BTW, depending on what you actually want to do with the DSP, angstrom
which uses "dsplink" has a lot more functionality then just the
"dspbridge" setup i've defaulted to with the ubuntu/debian images..

Regards,

Thank you Robert for the quick response!

I wasn't expecting anyone to try to use the dsp on the slower armv4t
debian target so i never tested this..

It was not my intent to use the slower architecture. I just wanted to
try Debian. Is there a better option to use for Debian?

What I man here is whether Wheezy (testing) supports the faster
architecture and known to work fine with gst-dsp? If yes, then would
mk_mmc.sh recognize wheezy with --distro parameter? Or would you
suggest to use Ubuntu instead?

Thanks,
Andrey.

At the moment, Wheezy (armel armv4t) can only be installed via first
installing squeeze, changing /etc/apt/sources.list and then updating
to wheezy.. (It'll probally have the exact same error as squeeze)

I just need to build a squeeze image, and tweak my script..

When we get closer to wheezy's freeze, there'll be two wheezy options
(armel:armv4t and armhf:armv7-a)

So when this is being generated:

http://ftp.us.debian.org/debian/dists/wheezy/main/installer-armhf/

Then my script can handle it.

For something right now, i'd use oneiric, i just tested it last week
and fixed a few things on my xM..

Regards,

For right now, ubuntu oneiric is the best released option for a deb
based system.. When precise and wheezy get released, then
debian/ubuntu will be about equal on optimization settings.

Ok. Got it.

BTW, depending on what you actually want to do with the DSP, angstrom
which uses "dsplink" has a lot more functionality then just the
"dspbridge" setup i've defaulted to with the ubuntu/debian images..

In fact, I am currently using Angstrom but want to try Debian because
I am using Debian on my development computer since many years and
thought that it would be nice to have the same system on the BB. Just
out of curiosity - if "dspbridge" has more functionality, what was
your motivation to pick "dsplink"?

Thank you,
Andrey.

reverse those.. :wink:

It's actually pretty simple, I picked 'dspbridge' over dsplink
because, at the time i was working on the dsp, that's what i got
working on target. So, someone else could easily implement the
dsplink bits if they wanted..

Regards,