binaries on linux bsp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

binaries on linux bsp

Jump to solution
4,038 Views
d_li
Contributor III

Board : bsc9131rdb

U-Boot : Poky (Yocto Project Reference Distro) 1.6 

 

attempt to run ipc_integration demo from demos included with CW 10.5.2 Starcore

 

root@bsc9131rdb:~# ./ipc_9x31_dbg.bin

-sh: ./ipc_9x31_dbg.bin: cannot execute binary file: Exec format error

 

The readme for this demo says  "execution can be done only through Linux console". I do see "-arch psc9131" appended to the arguments used to call psc913x_bin_creator.exe. I have also tried run other binaries that were created using the psc9131x_bin_creator (left the post-build step included w/ the demos unaltered) with the same error.

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
3,261 Views
AdrianR
NXP Employee
NXP Employee

Documentation on loading the DSP from Linux and running the ipc test is in the infocenter. Were you able to open the link?

In SDOS demos, ipc_integration is to be run using dsp_bt (see infocenter) and ipc_demo_sc_only is to be run using CW for SC only.

View solution in original post

0 Kudos
Reply
9 Replies
3,261 Views
lunminliang
NXP Employee
NXP Employee

Also please use WUSDK1.5 release, DSP_BT is not supported for 913x on SDK1.6.

See here the feature support:

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F2880375.html


0 Kudos
Reply
3,261 Views
lunminliang
NXP Employee
NXP Employee

Did you load the image with dsp_bt?

0 Kudos
Reply
3,261 Views
d_li
Contributor III

Sep 9, 2014 9:48 AM

I am using the prebuilt images. For the ramdisk image, name is fsl-image-core-bsc9131rdb-20140610221219.rootfs.ext2.gz.u-boot

I believe the fsl-image-core has the necessary libraries in. Description in help is "This is a small image somewhat like “fsl-image-minimal” except It contains all of the Freescale-specific SDK packages such as USDPAA, etc."

Is there a quick way I can check if my ramdisk image has dsp_bt?

Sep 9, 2014 9:50 AM

I get the same error for other demos as well (not ipc related..) as I mentioned before in my 1st post.

Sep 11, 2014 2:03 PM

I have determined that my original image that I was using lacked ipc, but that was not the cause for the issue at hand. For some demos, I see messages like

$ ./basic_demo_9x31.bin: line 3: syntax error: unexpected ")"

which seems to say that my .bin is compiled for something else?

psc913x_bin_creator.exe makes a call to SC\StarCore_Support\compiler\bin\sc100-elf2xx.exe to make the .bin from the  eld

Edit: consolidate replies so posts show in chronological order

0 Kudos
Reply
3,261 Views
AdrianR
NXP Employee
NXP Employee

The user guide for loading DSP images from Linux can be found here: Freescale Technical Information Center

To build the necessary Linux modules / apps (dsp_bt, ipc_test) you can use yocto (they are included in fsl-image-full, if you've already this rootfs).

Hope this helps

0 Kudos
Reply
3,261 Views
d_li
Contributor III

In the BSC9131 quick start guide,

Doc Number: BSC9131RDBQSG REV 0

On page 10, it seems to imply that I should not be using dsp_bt. I also compared the documentation for the IPC demo w/ codewarrior 10.6 (b4860) and 10.7 (psc913x) and it seems the instructions for loading w/ dsp_bt are on 10.6 but not on 10.7. Is there something I am missing?

0 Kudos
Reply
3,262 Views
AdrianR
NXP Employee
NXP Employee

Documentation on loading the DSP from Linux and running the ipc test is in the infocenter. Were you able to open the link?

In SDOS demos, ipc_integration is to be run using dsp_bt (see infocenter) and ipc_demo_sc_only is to be run using CW for SC only.

0 Kudos
Reply
3,261 Views
d_li
Contributor III

Thanks for clearing that up. So SDOS binaries can only be run on BSP through dsp_bt?

0 Kudos
Reply
3,261 Views
lunminliang
NXP Employee
NXP Employee

Hi, I confirm that this is the only way to boot SDOS from Linux.

0 Kudos
Reply
3,261 Views
lunminliang
NXP Employee
NXP Employee

I am not aware of other ways so far.