Hello,
I am trying to achieve communication between ARM and DSP using IPC_3_36_02_13. I followed the steps given in the IPC_Linux_Install_Guide.pdf, but ran into an error while executing ARM side. The lad log prints when running messageq_single on DSP side and MessageQAPP on ARM side is given below:
root@keystone-evm:/lib# cat /var/tmp/LAD/lad.txt
[0.035140]
Initializing LAD... [0.035530]
opening FIFO: /tmp/LAD/LADCMDS
[26.874158] Retrieving command...
[26.874403]
LAD_CONNECT:
[26.874426] client FIFO name = /tmp/LAD/1936
[26.874439] client PID = 1936
[26.874457] assigned client handle = 0
[26.874551] FIFO /tmp/LAD/1936 created
[26.874684] FIFO /tmp/LAD/1936 opened for writing
[26.874741] sent response
[26.874755] DONE
[26.874765] Retrieving command...
[26.874817] Sending response...
[26.874852] Retrieving command...
[26.874904] LAD_MULTIPROC_GETCONFIG: calling MultiProc_getConfig()...
[26.874926] MultiProc_getConfig() - 9 procs
[26.874938] # processors in cluster: 9
[26.874949] cluster baseId: 0
[26.874959] ProcId 0 - "HOST"
[26.874970] ProcId 1 - "CORE0"
[26.874979] ProcId 2 - "CORE1"
[26.874989] ProcId 3 - "CORE2"
[26.874999] ProcId 4 - "CORE3"
[26.875008] ProcId 5 - "CORE4"
[26.875017] ProcId 6 - "CORE5"
[26.875026] ProcId 7 - "CORE6"
[26.875036] ProcId 8 - "CORE7"
[26.875045] status = 0
[26.875055] DONE
[26.875064] Sending response...
[26.875084] Retrieving command...
[26.875134] LAD_NAMESERVER_SETUP: calling NameServer_setup()...
[26.875167] NameServer_setup: entered, refCount=0
[26.875219] NameServer_setup: creating listener thread
[26.875392] NameServer_setup: exiting, refCount=1
[26.875433] status = 0
[26.875453] DONE
[26.875470] Sending response...
[26.875464] listener_cb: Entered Listener thread.
[26.875507] Retrieving command...
[26.875539] NameServer: waiting for unblockFd: 2, and socks: maxfd: 2
[26.875544] LAD_MESSAGEQ_GETCONFIG: calling MessageQ_getConfig()...
[26.875592] status = 0
[26.875603] DONE
[26.875613] Sending response...
[26.875634] Retrieving command...
[26.875672] LAD_MESSAGEQ_SETUP: calling MessageQ_setup()...
[26.875686] MessageQ_setup: entered, refCount=0
[26.875699] NameServer_create(): 'MessageQ'
[26.875738] MessageQ_setup: exiting, refCount=1
[26.875751] status = 0
[26.875761] DONE
[26.875771] Sending response...
[26.875792] Retrieving command...
[26.876032] NameServer_attach: created send socket: 5, procId 1
[26.881358] NameServer_attach: connect failed: procId=1, errno=22 (Invalid argument)
[26.881451] closing send socket: 5
[26.881482] Sending response...
[26.881507] Retrieving command...
[26.881563] NameServer_attach: created send socket: 5, procId 2
[26.886807] NameServer_attach: connect failed: procId=2, errno=22 (Invalid argument)
[26.886829] closing send socket: 5
[26.886855] Sending response...
[26.886879] Retrieving command...
[26.886926] NameServer_attach: created send socket: 5, procId 3
[26.892204] NameServer_attach: connect failed: procId=3, errno=22 (Invalid argument)
[26.892228] closing send socket: 5
[26.892253] Sending response...
[26.892277] Retrieving command...
[26.892330] NameServer_attach: created send socket: 5, procId 4
[26.897571] NameServer_attach: connect failed: procId=4, errno=22 (Invalid argument)
[26.897592] closing send socket: 5
[26.897616] Sending response...
[26.897640] Retrieving command...
[26.897687] NameServer_attach: created send socket: 5, procId 5
[26.902960] NameServer_attach: connect failed: procId=5, errno=22 (Invalid argument)
[26.902984] closing send socket: 5
[26.903009] Sending response...
[26.903033] Retrieving command...
[26.903084] NameServer_attach: created send socket: 5, procId 6
[26.908346] NameServer_attach: connect failed: procId=6, errno=22 (Invalid argument)
[26.908370] closing send socket: 5
[26.908396] Sending response...
[26.908419] Retrieving command...
[26.908528] NameServer_attach: created send socket: 5, procId 7
[26.913766] NameServer_attach: connect failed: procId=7, errno=22 (Invalid argument)
[26.913786] closing send socket: 5
[26.913810] Sending response...
[26.913834] Retrieving command...
[26.913880] NameServer_attach: created send socket: 5, procId 8
[26.919144] NameServer_attach: connect failed: procId=8, errno=22 (Invalid argument)
[26.919168] closing send socket: 5
[26.919193] Sending response...
[26.919218] Retrieving command...
[26.919537] LAD_MESSAGEQ_CREATE: calling MessageQ_create(0x117c8, 0x117e8)...
[26.919566] MessageQ_create: creating 'HOST'
[26.919587] NameServer_add: Entered key: 'HOST', data: 0x80
[26.919602] MessageQ_create: returning obj=0x125d0, qid=0x80
[26.919614] status = 0
[26.919625] DONE
[26.919635] Sending response...
[26.919655] Retrieving command...
[26.919752] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[26.919773] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[26.919787] NameServer_getRemote: no socket connection to processor 1
[26.919800] NameServer_getRemote: no socket connection to processor 2
[26.919812] NameServer_getRemote: no socket connection to processor 3
[26.919823] NameServer_getRemote: no socket connection to processor 4
[26.919834] NameServer_getRemote: no socket connection to processor 5
[26.919846] NameServer_getRemote: no socket connection to processor 6
[26.919857] NameServer_getRemote: no socket connection to processor 7
[26.919868] NameServer_getRemote: no socket connection to processor 8
[26.919879] value = 0x80
[26.919890] status = -5
[26.919901] DONE
[26.919911] Sending response...
[26.919932] Retrieving command...
[27.920052] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[27.920073] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[27.920086] NameServer_getRemote: no socket connection to processor 1
[27.920098] NameServer_getRemote: no socket connection to processor 2
[27.920109] NameServer_getRemote: no socket connection to processor 3
[27.920121] NameServer_getRemote: no socket connection to processor 4
[27.920132] NameServer_getRemote: no socket connection to processor 5
[27.920144] NameServer_getRemote: no socket connection to processor 6
[27.920155] NameServer_getRemote: no socket connection to processor 7
[27.920166] NameServer_getRemote: no socket connection to processor 8
[27.920177] value = 0x80
[27.920188] status = -5
[27.920198] DONE
[27.920208] Sending response...
[27.920230] Retrieving command...
[28.920341] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[28.920361] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[28.920373] NameServer_getRemote: no socket connection to processor 1
[28.920385] NameServer_getRemote: no socket connection to processor 2
[28.920397] NameServer_getRemote: no socket connection to processor 3
[28.920408] NameServer_getRemote: no socket connection to processor 4
[28.920419] NameServer_getRemote: no socket connection to processor 5
[28.920430] NameServer_getRemote: no socket connection to processor 6
[28.920441] NameServer_getRemote: no socket connection to processor 7
[28.920452] NameServer_getRemote: no socket connection to processor 8
[28.920463] value = 0x80
[28.920474] status = -5
[28.920485] DONE
[28.920494] Sending response...
[28.920516] Retrieving command...
[29.920626] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[29.920645] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[29.920658] NameServer_getRemote: no socket connection to processor 1
[29.920670] NameServer_getRemote: no socket connection to processor 2
[29.920681] NameServer_getRemote: no socket connection to processor 3
[29.920692] NameServer_getRemote: no socket connection to processor 4
[29.920703] NameServer_getRemote: no socket connection to processor 5
[29.920714] NameServer_getRemote: no socket connection to processor 6
[29.920725] NameServer_getRemote: no socket connection to processor 7
[29.920736] NameServer_getRemote: no socket connection to processor 8
[29.920747] value = 0x80
[29.920757] status = -5
[29.920768] DONE
[29.920778] Sending response...
[29.920799] Retrieving command...
[30.920908] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[30.920927] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[30.920940] NameServer_getRemote: no socket connection to processor 1
[30.920952] NameServer_getRemote: no socket connection to processor 2
[30.920963] NameServer_getRemote: no socket connection to processor 3
[30.920984] NameServer_getRemote: no socket connection to processor 4
[30.920996] NameServer_getRemote: no socket connection to processor 5
[30.921007] NameServer_getRemote: no socket connection to processor 6
[30.921019] NameServer_getRemote: no socket connection to processor 7
[30.921029] NameServer_getRemote: no socket connection to processor 8
[30.921041] value = 0x80
[30.921051] status = -5
[30.921062] DONE
[30.921071] Sending response...
[30.921094] Retrieving command...
[31.921203] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[31.921223] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[31.921236] NameServer_getRemote: no socket connection to processor 1
[31.921247] NameServer_getRemote: no socket connection to processor 2
[31.921258] NameServer_getRemote: no socket connection to processor 3
[31.921269] NameServer_getRemote: no socket connection to processor 4
[31.921280] NameServer_getRemote: no socket connection to processor 5
[31.921291] NameServer_getRemote: no socket connection to processor 6
[31.921302] NameServer_getRemote: no socket connection to processor 7
[31.921313] NameServer_getRemote: no socket connection to processor 8
[31.921324] value = 0x80
[31.921334] status = -5
[31.921345] DONE
[31.921354] Sending response...
[31.921376] Retrieving command...
[32.921484] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[32.921503] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[32.921516] NameServer_getRemote: no socket connection to processor 1
[32.921528] NameServer_getRemote: no socket connection to processor 2
[32.921539] NameServer_getRemote: no socket connection to processor 3
[32.921551] NameServer_getRemote: no socket connection to processor 4
[32.921562] NameServer_getRemote: no socket connection to processor 5
[32.921573] NameServer_getRemote: no socket connection to processor 6
[32.921584] NameServer_getRemote: no socket connection to processor 7
[32.921595] NameServer_getRemote: no socket connection to processor 8
[32.921606] value = 0x80
[32.921617] status = -5
[32.921627] DONE
[32.921637] Sending response...
[32.921659] Retrieving command...
[33.921767] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[33.921787] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[33.921799] NameServer_getRemote: no socket connection to processor 1
[33.921812] NameServer_getRemote: no socket connection to processor 2
[33.921823] NameServer_getRemote: no socket connection to processor 3
[33.921834] NameServer_getRemote: no socket connection to processor 4
[33.921845] NameServer_getRemote: no socket connection to processor 5
[33.921855] NameServer_getRemote: no socket connection to processor 6
[33.921866] NameServer_getRemote: no socket connection to processor 7
[33.921877] NameServer_getRemote: no socket connection to processor 8
[33.921888] value = 0x80
[33.921899] status = -5
[33.921910] DONE
[33.921920] Sending response...
[33.921941] Retrieving command...
[34.922051] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[34.922070] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[34.922083] NameServer_getRemote: no socket connection to processor 1
[34.922094] NameServer_getRemote: no socket connection to processor 2
[34.922106] NameServer_getRemote: no socket connection to processor 3
[34.922117] NameServer_getRemote: no socket connection to processor 4
[34.922128] NameServer_getRemote: no socket connection to processor 5
[34.922139] NameServer_getRemote: no socket connection to processor 6
[34.922150] NameServer_getRemote: no socket connection to processor 7
[34.922161] NameServer_getRemote: no socket connection to processor 8
[34.922172] value = 0x80
[34.922183] status = -5
[34.922193] DONE
[34.922203] Sending response...
[34.922225] Retrieving command...
[35.922333] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[35.922352] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[35.922374] NameServer_getRemote: no socket connection to processor 1
[35.922386] NameServer_getRemote: no socket connection to processor 2
[35.922397] NameServer_getRemote: no socket connection to processor 3
[35.922408] NameServer_getRemote: no socket connection to processor 4
[35.922419] NameServer_getRemote: no socket connection to processor 5
[35.922430] NameServer_getRemote: no socket connection to processor 6
[35.922441] NameServer_getRemote: no socket connection to processor 7
[35.922452] NameServer_getRemote: no socket connection to processor 8
[35.922463] value = 0x80
[35.922473] status = -5
[35.922484] DONE
[35.922493] Sending response...
[35.922515] Retrieving command...
[36.922624] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[36.922643] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[36.922656] NameServer_getRemote: no socket connection to processor 1
[36.922667] NameServer_getRemote: no socket connection to processor 2
[36.922678] NameServer_getRemote: no socket connection to processor 3
[36.922690] NameServer_getRemote: no socket connection to processor 4
[36.922701] NameServer_getRemote: no socket connection to processor 5
[36.922712] NameServer_getRemote: no socket connection to processor 6
[36.922723] NameServer_getRemote: no socket connection to processor 7
[36.922734] NameServer_getRemote: no socket connection to processor 8
[36.922745] value = 0x80
[36.922755] status = -5
[36.922766] DONE
[36.922776] Sending response...
[36.922798] Retrieving command...
[37.922906] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x124e8, 'SLAVE_CORE0')...
[37.922925] NameServer_getLocal: entry key: 'SLAVE_CORE0' not found!
[37.922937] NameServer_getRemote: no socket connection to processor 1
[37.922949] NameServer_getRemote: no socket connection to processor 2
[37.922960] NameServer_getRemote: no socket connection to processor 3
[37.922971] NameServer_getRemote: no socket connection to processor 4
[37.922982] NameServer_getRemote: no socket connection to processor 5
[37.922993] NameServer_getRemote: no socket connection to processor 6
[37.923004] NameServer_getRemote: no socket connection to processor 7
[37.923014] NameServer_getRemote: no socket connection to processor 8
[37.923026] value = 0x80
[37.923037] status = -5
[37.923047] DONE
[37.923057] Sending response...
[37.923080] Retrieving command...
[38.360955] LAD_MESSAGEQ_DESTROY: calling MessageQ_destroy()...
[38.360972] MessageQ_destroy: entered, refCount=1
[38.360984] MessageQ_delete: deleting 0x125d0
[38.361004] MessageQ_delete: returning 0
[38.361023] MessageQ_destroy: exiting, refCount=0
[38.361036] status = 0
[38.361046] DONE
[38.361056] Sending response...
[38.361078] Retrieving command...
[38.361119] LAD_NAMESERVER_DESTROY: calling NameServer_destroy()...
[38.361134] NameServer_destroy: entered, refCount=1
[38.361145] NameServer_destroy: shutdown listener...
[38.361169] NameServer_destroy: joining listener thread...
[38.361183] NameServer: back from select()
[38.361211] NameServer: listener thread, event: SHUTDOWN
[38.361309] NameServer_destroy: exiting, refCount=0
[38.361327] status = 0
[38.361338] DONE
[38.361348] Sending response...
[38.361369] Retrieving command...
[38.361412]
LAD_DISCONNECT: [38.361425]
client handle = 0[38.361437]
closing FIFO /tmp/LAD/1936 (filePtr=0x122e8)
[38.361514] done, unlinking /tmp/LAD/1936
[38.361578] DONE
[38.361593] Retrieving command...
[38.361993] EOF detected on FIFO, closing FIFO: /tmp/LAD/LADCMDS
[38.362049]
opening FIFO: /tmp/LAD/LADCMDS
With some debug prints while building Linux kernel, I found out that certain kernel modules are not built such as remoteproc, virtio_rmpsg_bus, rpmsg_proto etc.
Please can anyone suggest how to generate these modules. I followed all the steps in install guide and added patch (wherever necessary) and did make modules but still it is not building.
I am using TCI6638 board with MCSDK 3_01_04_07 and Linux 3.10 as given in the MCSDK Userguide.
regards,
Vishnu