Hi all,
I'm using an AM5718 running a customized Linux generated by Yocto based on Processor SDK 02.00.00.00 and I tried to communicate with the DSP but no success. When I try to executed commands from opencl-examples, I get the message "segmentation fault".
Here are some messages extracted from boot log
[ 0.000000] Reserved memory: created CMA memory pool at 0x99000000, size 64 MiB
[ 0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x9d000000, size 32 MiB
[ 0.000000] Reserved memory: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
[ 0.000000] cma: Reserved 24 MiB at 0x97800000
...
[ 19.664686] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000
[ 19.672518] remoteproc0: 40800000.dsp is available
[ 19.696260] remoteproc0: Note: remoteproc is still under development and considered experimental.
[ 19.705580] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 19.807490] m25p80 spi32766.0: found n25q512ax3, expected n25q512a
[ 19.848399] m25p80 spi32766.0: n25q512ax3 (65536 Kbytes)
[ 19.853790] 8 ofpart partitions found on MTD device spi32766.0
[ 19.874119] Creating 8 MTD partitions on "spi32766.0":
[ 19.879302] 0x000000000000-0x000000020000 : "MLO"
[ 19.895146] 0x000000020000-0x0000000f0000 : "UBOOT"
[ 19.926805] 0x0000000f0000-0x000000100000 : "UBOOT.ENV"
[ 19.954989] 0x000000100000-0x0000009c0000 : "HMRS.ZIMAGE"
[ 19.987149] 0x0000009c0000-0x000000a00000 : "HMRS.DTB"
[ 20.015021] 0x000000a00000-0x000003bc0000 : "HMOS.ZIMAGE"
[ 20.039212] remoteproc0: registered virtio0 (type 7)
[ 20.050524] 0x000003bc0000-0x000003c00000 : "HMOS.DTB"
[ 20.097060] 0x000003c00000-0x000004000000 : "LOADS"
[ 20.124761] omap_hwmod: ocp2scp1: _wait_target_disable failed
[ 20.142592] remoteproc0: powering up 40800000.dsp
[ 20.184121] SCSI subsystem initialized
[ 20.262568] ahci 4a140000.sata: forcing PORTS_IMPL to 0x1
[ 20.284156] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[ 20.292732] ahci 4a140000.sata: flags: 64bit ncq sntf pm led clo only pmp pio slum part ccc apst
[ 20.358435] scsi host0: ahci
[ 20.364244] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 322
[ 20.410505] remoteproc0: Booting fw image dra7-dsp1-fw.xe66, size 21061800
[ 20.440801] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[ 20.446722] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[ 20.452610] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[ 20.496021] remoteproc0: RSC_INTMEM is deprecated. Please do not use this resource type to support loading into internal memories.
[ 20.531275] remoteproc0: remote processor 40800000.dsp is now up
........
Starting tiipclad daemon
Opened log file: lad.txt
numProcessors = 5 id = 0 baseId = 0
Spawned daemon: /usr/bin/lad_dra7xx
...
The LAD is started with only -l option (no -g option)
root@am57xx-vahm:/var/hmfudata/OPENCL/examples/opencl/simple# ps | grep lad
336 root 1624 S /usr/bin/lad_dra7xx -l lad.txt
355 root 2116 S grep lad
I've tried to restart LAD several times as below
root@am57xx-vahm:/var/hmfudata/OPENCL/examples/opencl/simple# killall lad_dra7xx
root@am57xx-vahm:/var/hmfudata/OPENCL/examples/opencl/simple# lad_dra7xx -l lad.txt
Opened log file: lad.txt
numProcessors = 5 id = 0 baseId = 0
Spawned daemon: lad_dra7xx
But nothing seems to be better.
root@am57xx-vahm:/var/hmfudata/OPENCL/examples/opencl/simple# ./simple
Segmentation fault
...
root@am57xx-vahm:/var/hmfudata/OPENCL/offline# ./offline
Segmentation fault
Does anyone have an idea what is the issue?
Thanks
Best regards