Other Parts Discussed in Thread: AM5718
Hi TI.
I’m trying to get familiar with the IPC examples in http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_IPC.html.
I'm using IDK572 and SDK6.0.
It seems that doc hasn’t been updated for a while and there is a crash and build error.
1. Getting a build error when issuing “make ti-ipc-linux”
linux_devkit/environment-setup, line 24 sets “--sysroot=/home/chchlee/ti-processor-sdk-linux-rt-am57xx-evm-06.00.00.07/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi'”
But configure (in ipc_3_50_03_05) expects “–with_sysroot” and therefor complains. (autoconf) version issue?
So temporarily set
export CC="${TOOLCHAIN_PREFIX}gcc --with-sysroot=$SDK_PATH_TARGET
Now I can at least build the example.
2. Boot issue
When the I make, install the DSP1 and DSP2 code for ex02_messageq Linux often freezes while booting….
[ OK ] Found device /dev/ttyS2.
[ 9.524350] remoteproc remoteproc2: powering up 40800000.dsp
[ 9.540460] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 4311468
[ 9.584396] remoteproc remoteproc3: powering up 41000000.dsp
[ 9.584416] remoteproc remoteproc3: Booting fw image dra7-dsp2-fw.xe66, size 4156096
[ 9.584590] omap-iommu 41501000.mmu: 41501000.mmu: version 3.0
[ 9.584627] omap-iommu 41502000.mmu: 41502000.mmu: version 3.0
[ 9.618452] virtio
…or endlessly outputs console messages, see attached file.
About every 3rd times it boots properly and I can successfully run "./app_host DSP1" and output is as expected.
My best guess is that there a race condition: there is a FW running on arm which expects the original dra7-dsp1/2-fw.xe66 (dra7-dso1-fw.xe66.opencl-monitor ?)
3. The “Multi-core demonstration are not anymore found in SDK6.0 matrix launcher
4. The related documentation is somewhat confusing:
There is s section “Build IPC Linux examples”: This builds the Arm part with Linux and DSP part with RTOS. Right?
There is s section “Build IPC RTOS examples”: This builds the Arm part with TI RTOS and DSP part with RTOS. Right?
Before these two section there is “Rebuilding the demo”: this seems to be doing the same “Build IPC Linux examples”?
6. Documentation:
Ok: this “IPC Linux Library” is built. But there is no info if it is statically linked to the demo apps, or how it can be installed after making it. It seems that the library is already part of the rootfs.
ldd app_host
linux-vdso.so.1 (0xbee8c000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb6ea7000)
libc.so.6 => /lib/libc.so.6 (0xb6d65000)
librt.so.1 => /lib/librt.so.1 (0xb6d4e000)
libtiipc.so.1 => /usr/lib/libtiipc.so.1 (0xb6d34000)
libtiipcutils.so.1 => /usr/lib/libtiipcutils.so.1 (0xb6d20000)
libtitransportrpmsg.so.1 => /usr/lib/libtitransportrpmsg.so.1 (0xb6d0a000)
/lib/ld-linux-armhf.so.3 (0xb6ee4000)
7. Documentation
In section “Run IPC Linux examples”, after building “make ti-ipc-linux” and “make ti-ipc-linux-examples”
But I get:
chchlee@ubuntu:~/ti/ipc_3_50_03_05/examples$ ls -l
total 40
drwxr-xr-x 4 chchlee chchlee 4096 Jul 23 15:10 AM571X_bios_elf
drwxr-xr-x 4 chchlee chchlee 4096 Jul 23 15:10 AM572X_bios_elf
drwxr-xr-x 2 chchlee chchlee 4096 Jul 23 15:10 DRA7XX_android_elf
drwxr-xr-x 6 chchlee chchlee 4096 Jul 23 15:10 DRA7XX_bios_elf
drwxr-xr-x 6 chchlee chchlee 4096 Jul 23 15:10 DRA7XX_linux_elf
drwxr-xr-x 2 chchlee chchlee 4096 Jul 23 15:10 DRA7XX_qnx_elf
So the Linux examples are found under DRA7XX_linux_elf, not AM57…
Best regards, Chris