From patchwork Wed Jun 15 15:19:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martin X-Patchwork-Id: 882482 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5FFJMlT015478 for ; Wed, 15 Jun 2011 15:19:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755414Ab1FOPTW (ORCPT ); Wed, 15 Jun 2011 11:19:22 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:60968 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755247Ab1FOPTV (ORCPT ); Wed, 15 Jun 2011 11:19:21 -0400 Received: by ewy4 with SMTP id 4so203981ewy.19 for ; Wed, 15 Jun 2011 08:19:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.43.19 with SMTP id k19mr335826eeb.187.1308151160168; Wed, 15 Jun 2011 08:19:20 -0700 (PDT) Received: by 10.14.53.16 with HTTP; Wed, 15 Jun 2011 08:19:16 -0700 (PDT) Date: Wed, 15 Jun 2011 17:19:16 +0200 Message-ID: Subject: tidspbridge: problems executing sample apps From: javier Martin To: linux-omap@vger.kernel.org Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 15 Jun 2011 15:19:39 +0000 (UTC) Hi, we have a Beagleboard xM (DM3730) and we are currently working with stable kernel 2.6.39 and we have compiled the tisdpbridge in the staging directory. In order to test basic DSP functionality we are using userspace-dspbridge from git repository git://dev.omapzoom.org/pub/scm/tidspbridge/userspace-dspbridge.git and commit 9c64192758fd066d1a3f50867919e7aa21f04387 And the following version of needed packages are being used: bios_5_41_07_24 TI_CGT_C6000_6.1.17 xdctools_3_20_06_81 1- If I try prebuilt binaries (both for DSP side and userspace) I get an execution error: root@beagleboard:/dspbridge# ./ping.out DSP device detected !! DSPNode[ 30.530944] DSPTrace: PING: **PING_TI_create: retval = 0x0 ** [ 30.530975] PING: PING_TI_execute: Entered ... [ 30.530975] Create succeeded[ 30.545135] DSPTrace: PING: PING_TI_execute: Received ping from GPP: cmd = 0xbebe0001; cnt = 0x200596aa [ 30.545166] DSPNode_registerNotify succeeded DSPNode_run succeeded Ping: Id 1.000000 Msg 0.000000 Mem 15408.000000 DSPNode_GetMessage failed: 0xffffffc2 Ping: Id 1.000000 Msg 1.000000 Mem 15408.000000 DSPNode_GetMessage failed: 0xffffffc2 2- If I compile only MPU samples and use DSP prebuilt binaries it works fine. 3- If I compile both DSP side and MPU side samples it also gives an execution error: root@beagleboard:/dspbridge# ./cexec.out ddspbase_tiomap3430.dof64P DSP device detected !! [ 45.862640] proc_load: Processor Loaded ddspbase_tiomap3430.dof64P [ 45.876892] proc_start: dsp in running state DSPProcessor_Sta[ 45.881927] procwrap_detach: deprecated dspbridge ioctl rt succeeded. Hit any key to terminate cexec. root@beagleboard:/dspbridge# ./ping.out DSP device detec[ 64.484649] procwrap_detach: deprecated dspbridge ioctl ted !! DSPNode_Create failed: 0xffffffe3 In order to achieve option (3) I had to apply the attached patch to fix some build errors and I had to copy libstdc++.so.5 to /usr/lib32/ since I am on a 64bit machine http://mirror.ovh.net/ubuntu//pool/universe/g/gcc-3.3/libstdc++5_3.3.6-15ubuntu4_i386.deb Do you know what combination of DSP bios, TI CGT and xdctools is most suitable for using with tidspbridge in kernel 2.6.39? Thank you. diff --git a/source/product.mak b/source/product.mak index 892faf5..1996366 100755 --- a/source/product.mak +++ b/source/product.mak @@ -13,12 +13,12 @@ # # DSP BIOS -SABIOS_VER = 5.33.04 -SABIOS_VER_2 = 5_33_04 +SABIOS_VER = 5.41.07.24 +SABIOS_VER_2 = 5_41_07_24 # CodeGen Tools CGT55_VER = 3.2.2 -CGT6X_VER = 6.0.7 +CGT6X_VER = 6.1.17 # Framework components FC_VER = 1_10_04 diff --git a/source/samplemakefile b/source/samplemakefile index 4d11610..ac9f772 100755 --- a/source/samplemakefile +++ b/source/samplemakefile @@ -83,8 +83,8 @@ BRIDGE_EXPORT_PACKAGES = dsp/ti/dspbridge/dsp/bridge_product SAMPLE_PACKAGES = samples/dsp -DLL_FILES=$(wildcard $(SAMPLE_PACKAGES)/*.dll64P)) -DOF_FILES=$(wildcard $(SAMPLE_PACKAGES)/*.dof64P)) +DLL_FILES=$(wildcard $(SAMPLE_PACKAGES)/*.dll64P) +DOF_FILES=$(wildcard $(SAMPLE_PACKAGES)/*.dof64P) .samples: .bridge_samples @@ -144,7 +144,7 @@ ifneq ($(DLL_FILES),) $(CP) -f $(DLL_FILES) $(TARGETDIR)/dspbridge/ endif ifneq ($(DOF_FILES),) - $(CP) -f $(DOF_FILES)/ $(TARGETDIR)/dspbridge/ + $(CP) -f $(DOF_FILES) $(TARGETDIR)/dspbridge/ endif #.execute_version_script: version.ksh $(VERSION_FILE) diff --git a/source/samples/dsp/ddspbase.tci b/source/samples/dsp/ddspbase.tci index 1746adc..d968cab 100755 --- a/source/samples/dsp/ddspbase.tci +++ b/source/samples/dsp/ddspbase.tci @@ -19,6 +19,8 @@ * */ +var chipType = environment["config.chipType"]; + /* bridge default is 512, that's not enough sometimes */ var traceSize = 512;