Tool/software: TI-RTOS
We are using the early boot late attach. It works fine most of the time but sometimes it fails.
I sent the TI-RTOS code to Venkat, Nicolas is on a month vacation (France)
Here is a piece, it seems to get stalled in an infinite loop waiting for Linux
static Void v_iHostCommandListener_TaskFxn(UArg arg0, UArg arg1)
{
System_printf("entering v_iHostCommandListener_TaskFxn\n");
// Wait until the host is running, before trying to set up IPC
Char hostStatus = 0;
do {
hostStatus = Resource_getVdevStatus(VIRTIO_ID_RPMSG);
if (hostStatus == 0)
{
Task_sleep(200);
}
} while (hostStatus == 0);
// Block on connecting to host, until it sets up rpmsg
System_printf("initializing IPC\n");
IpcMgr_ipcStartup();
System_printf("v_iHostCommandListener_TaskFxn: started IPC\n");
while (TRUE) // loop forever
{
MessageQ_Params msgqParams;
MessageQ_Handle hostCommandQueue; // created locally
Bool queueIsGood = FALSE;
Bool hostIsRunning = FALSE;
// Create the local message queue for inbound commands from the Host processor
MessageQ_Params_init(&msgqParams);
System_printf("v_iHostCommandListener_TaskFxn creating App_HostCommandMsgQueueName\n");
hostCommandQueue = MessageQ_create(App_HostCommandMsgQueueName, &msgqParams);
if (hostCommandQueue != NULL)
Here when it doesn't fail
[ 9.007893] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000
[ 9.100803] remoteproc0: 58820000.ipu is available
[ 9.144127] remoteproc0: Note: remoteproc is still under development and considered experim.
[ 9.228546] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ 9.343862] [drm] Initialized pvr 1.14.3699939 20110701 on minor 1
Starting Connection service...
[ 9.402938] omap-rproc 55020000.ipu: assigned reserved memory node ipu2_cma@95800000
Starting Network Service...
[ 9.488911] remoteproc1: 55020000.ipu is available
[ 9.527794] remoteproc0: registered virtio0 (type 7)
[ 9.547681] remoteproc1: Note: remoteproc is still under development and considered experim.
[ OK ] Started Permit User Sessions.
[ 9.604699] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
[ 9.701250] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility.
[ OK ] Started Network Service.
[ 10.009747] remoteproc1: registered virtio1 (type 7)
[ OK ] Started rc.pvr.service.
[ 11.094744] remoteproc0: powering up 58820000.ipu
[ 11.185924] remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 5053996
[ 11.225482] remoteproc0: remote processor 58820000.ipu is now up
[ 11.232637] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 11.287392] remoteproc1: powering up 55020000.ipu
[ 11.333067] remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3747276
[ 11.340208] virtio_rpmsg_bus virtio0: creating channel rpmsg-proto addr 0x3d
[ 11.414165] remoteproc1: remote processor 55020000.ipu is now up
[ 11.452798] virtio_rpmsg_bus virtio1: rpmsg host is online
[ 11.458387] virtio_rpmsg_bus virtio1: creating channel rpmsg-rpc addr 0x65
[ 11.479444] virtio_rpmsg_bus virtio1: creating channel rpmsg-rpc addr 0x66
[ 11.524728] NET: Registered protocol family 41
[ 11.530481] rpmsg_rpc rpmsg1: probing service dce-callback with src 1024 dst 101
[ 11.542703] rpmsg_rpc rpmsg2: probing service rpmsg-dce with src 1025 dst 102
[ 11.587619] rpmsg_rpc rpmsg1: published functions = 4
[ 11.592734] rpmsg_rpc rpmsg2: published functions = 9
and when it fails
[ 10.945251] remoteproc0: powering up 58820000.ipu
[ 11.043582] remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 5053996
[ 11.101353] remoteproc0: remote processor 58820000.ipu is now up
[ 11.147023] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 11.169372] remoteproc1: powering up 55020000.ipu
[ 11.210862] remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3747276
[ 11.258748] remoteproc1: remote processor 55020000.ipu is now up
[ 11.296549] virtio_rpmsg_bus virtio1: rpmsg host is online
[ 11.302094] virtio_rpmsg_bus virtio1: creating channel rpmsg-rpc addr 0x65
[ 11.337193] virtio_rpmsg_bus virtio1: creating channel rpmsg-rpc addr 0x66
[ 11.387802] rpmsg_rpc rpmsg0: probing service dce-callback with src 1024 dst 101
[ 11.425851] rpmsg_rpc rpmsg1: probing service rpmsg-dce with src 1025 dst 102
[ 11.433039] rpmsg_rpc rpmsg0: published functions = 4
[ 11.456295] rpmsg_rpc rpmsg1: published functions = 9
Michel Catudal
ACTIA Corp