Loading DSP using IPC on B4860QDS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Loading DSP using IPC on B4860QDS

1,237 次查看
andrewmarles
Contributor I

I am having an issue loading code on the B4860QDS platform.  This is using the most recent 2.0 SDK as well as with 1.9.  The application I am loading is the ipc_integration demo from the SmartDSP examples.  I have converted the bin using sc100-elf2xx.exe. dsp_bt fails with the following error:

root@b4860:/ipc# ./dsp_bt -h 0 -c 0 -i c0_ipc_demo_b4860_dbg.bin
===B4860QDS DSP boot Application (3.1.0) ===
SYSTEM MAP
DSP PrivArea: Addr=80000000 Size=7ff00000
Shared CtrlArea: Addr=fff00000 Size=100000
DSP Core0 M2: Addr=0 Size=0
DSP Core1 M2: Addr=0 Size=0
DSP M3: Addr=c40000000 Size=8000
PA CCSRBAR: Addr =ffe000000 Size=1000000
DSP CCSRBAR: Addr =ffe000000 Size=1000000
PA Shared Area: Addr=50000000 Size=f000000
DSP Shared Area: Addr=5f000000 Size=1000000
Waiting for FI
Waiting for FI
Waiting for FI
L2 cache cluster2 init
Loading Dsp image c0_ipc_demo_b4860_dbg.bin

Error in mapping physical address 100000000 to virtual address in load_dsp_image
Error in loading Dsp image StarCore

I have re-compiled the kernel as indicated in the SDK documentation, but the error persists.  I have found somewhat similar issues discussed elsewhere.

Is there a current SDK example with a known good configuration to demonstrate IPC functionality?

标签 (1)
标记 (1)
0 项奖励
1 回复

884 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Andrew Marles,

It seems that there is problem in the memory allocation, please check whether you missed some steps as the following.

u-boot bootargs:

=>setenv bootm_size 0x70000000

=>setenv bootargs 'console=ttyS0,115200 default_hugepagesz=256m hugepagesz=256m hugepages=1'

cd /usr/driver/IPC/single_rat/
echo 0x10000000 > /proc/sys/kernel/shmmax
insmod hetmgr.ko
insmod shm.ko
insmod l1d.ko
mknod /dev/fsl_l1d c 249 0
mknod /dev/fsl_shm c 250 0
mknod /dev/het_mgr c 251 0


# ./dsp_bt -h 1 -c 0 -i c0.bin -c 1 -i c1.bin

# ./ipc_test -r 0 -i 10

In addition, please refer to the following Kernel build option.

1. Diable the Kernel dma engine

Device Drivers  --->
 [ ] DMA Engine support  --->

2. Enable Userspace's I/O driver

Device Drivers  --->
 <*> Userspace I/O drivers  --->
  <*> Freescale DMA support

3. Build below packages into rootfs

NOTE: fsl-image-core.bb

IMAGE_INSTALL += " \

    ipc-ust \
    ipc-modules-single \
    ipc-modules-multi \
"

If your problem persists, please attach your whole console log.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励