This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TDA2EXEVM: remoteproc rpmsg virtio attchment and load flow

Part Number: TDA2EXEVM

Tool/software: Linux

Hi all,

we are using TDA2EXEVM. Linux (A15)+ BIOS(IPU2). sdk version VISION_SDK_02_12_00_00.

1. remoteproc rpmsg virtio attchment and load flow any doc for tda2ex soc?


2. We are using A15 and IPU2 core only. For IPU2 firmware load and start through remoteproc.

PROC_IPU1_0_INCLUDE=no
PROC_IPU1_1_INCLUDE=no
PROC_IPU2_INCLUDE=yes
PROC_A15_0_INCLUDE=yes
PROC_DSP1_INCLUDE=no

in this case below case not getting true

 if (state == CORE_APP_INITSTATUS_CONFIRM_INIT_DONE)
  {
            initDone[procId] = TRUE;
   }

above config ./vision_sdk_linux_demo.out stops after below log

[   12.341626] rundemo.sh[116]:  [HOST]  OSA: MEM: 0: Mapped 0xa0100000 to 0xb694c000 of size 0x00100000
[   12.371346] rundemo.sh[116]:  [HOST]  OSA: MEM: 1: Mapped 0x84203000 to 0xa6f4c000 of size 0x0fa00000
[   12.401172] rundemo.sh[116]:  [HOST]  OSA: MEM: 2: Mapped 0xa0200000 to 0xa6e8c000 of size 0x00040000
[   12.431172] rundemo.sh[116]:  [HOST]  OSA: MEM: 3: Mapped 0xa02c0000 to 0xa6ecc000 of size 0x00080000
[   12.461176] rundemo.sh[116]:  [HOST]  OSA: HOST Remote Log Shared Memory @ 0xa024f140
[   12.481072] rundemo.sh[116]:  [HOST]  OSA: IPU2 Remote Log Shared Memory @ 0xa0363da0
[   12.501016] rundemo.sh[116]:  [HOST] [HOST  ]     19.437961 s:  SYSTEM: System A15 Init in progress !!!
[   12.531015] rundemo.sh[116]:  [HOST] [IPU2  ]     18.559598 s:  ***** IPU2 Firmware build time 10:49:56 Aug  7 2017
[   12.561025] rundemo.sh[116]:  [HOST] [IPU2  ]     18.559781 s:  *** SYSTEM: CPU Frequency <ORG = 212800000 Hz>, <NEW = 212800000 Hz>
[   12.591019] rundemo.sh[116]:  [HOST] [IPU2  ]     18.562953 s:  SYSTEM: System Common Init in progress !!!
[   12.621317] rundemo.sh[116]:  [HOST] [IPU2  ]     18.572134 s:  SYSTEM: IPC init in progress !!!
[   12.651061] rundemo.sh[116]:  [HOST] [IPU2  ]     18.572256 s:  SYSTEM: Notify init done !!!
[   12.681121] rundemo.sh[116]:  [HOST] [IPU2  ]     18.573994 s:  SYSTEM: MsgQ init done !!!
[   12.692038] rundemo.sh[116]:  [HOST] [IPU2  ]     18.574361 s:  SYSTEM: IPC init DONE !!!
[   12.721012] rundemo.sh[116]:  [HOST] [IPU2  ]     18.579424 s:  SYSTEM: System Common Init Done !!!
[   12.751017] rundemo.sh[116]:  [HOST] [IPU2  ]     18.579515 s:  SYSTEM: System Init in progress !!!
[   12.781068] rundemo.sh[116]:  [HOST] [IPU2  ]     18.579576 s:  SYSTEM: BSP Common Init in progress !!!
[   12.811039] rundemo.sh[116]:  [HOST] [IPU2  ]     18.579668 s:  SYSTEM: BSP Common Init Done !!!

3. if we enable PROC_DSP1_INCLUDE=yes

./vision_sdk_linux_demo.out executes properly.  why PROC_DSP1_INCLUDE must include?

4.  I want to optimize boot time. is it possible remotecore0 to load only ipu2 firmware. how to avoid remotecore1, remotecore2 ?

Regards,

RAJ M

  • Hi Raj,

    I have forwarded your question to VisionSDK experts.

    Regards,
    Yordan
  • Hi,

    Any update?

    Regards,
    RAJ M
  • Raj
    Ideally you can exclude DSP1 if not required, Did you make clean build after the configuration change? if not pls do
    rm -rf binaries
    make -j depend
    make -j

    regards, shiju
  • Hi shiju,

    Sorry for late respons

    I compiled as below

    rm -rf binaries

    make -j depend

    make -j

    My log:

    omap-rproc 55020000.ipu: assigned reserved memory node ipu2_cma@95800000

    remoteproc0: 55020000.ipu is available

    remoteproc0: Note: remoteproc is still under development and considered experimental.

    remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.

    omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000

    remoteproc1: 40800000.dsp is available

    remoteproc1: Note: remoteproc is still under development and considered experimental.

    remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guarante.

    remoteproc1: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2

    remoteproc1: failed to load dra7-dsp1-fw.xe66

    omap_rng 48090000.rng: OMAP Random Number Generator ver. 20

    remoteproc0: registered virtio0 (type 7)

    omap_rtc 48838000.rtc: already running

    omap_rtc 48838000.rtc: rtc core: registered 48838000.rtc as rtc1

    omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec

    remoteproc0: powering up 55020000.ipu

    remoteproc0: Booting fw image dra7-ipu2-fw.xem4, size 6640196

    omap-iommu 55082000.mmu: 55082000.mmu: version 2.1

    remoteproc0: remote processor 55020000.ipu is now up

    virtio_rpmsg_bus virtio0: rpmsg host is online

    virtio_rpmsg_bus virtio0: creating channel rpmsg-proto addr 0x50

    DMA: Module install successful, device major num = 246

    DRV: Module install successful

    rundemo done

    root@dra7xx-evm:/opt/dvr/bin#  [HOST]  OSA: MEM: 0: Mapped 0xa0100000 to 0xb69a1000 of size 0x00100000

    [HOST]  OSA: MEM: 1: Mapped 0x84203000 to 0xa6fa1000 of size 0x0fa00000

    [HOST]  OSA: MEM: 2: Mapped 0xa0200000 to 0xa6ee1000 of size 0x00040000

    [HOST]  OSA: MEM: 3: Mapped 0xa02c0000 to 0xa6f21000 of size 0x00080000

    [HOST]  OSA: HOST Remote Log Shared Memory @ 0xa024f140

    [HOST]  OSA: IPU2 Remote Log Shared Memory @ 0xa0363da0

    [HOST] [HOST  ]    167.449490 s:  SYSTEM: System A15 Init in progress !!!

    [HOST] [HOST  ]    167.449582 s:  SYSTEM: IPC: Init in progress !!!

    [HOST] [HOST  ]    167.449612 s:  SYSTEM: IPC: Notify init in progress !!!

    [HOST] [HOST  ]    167.453425 s:  SYSTEM: IPC: [IPU2] socket bind success !!! (dst vproc = 1, endpt = 81)

    [HOST] [HOST  ]    167.453455 s:  SYSTEM: IPC: [IPU2] socket info (family = 41, dst proc id = -1, endpt = 81) !!!

    [HOST] [HOST  ]    167.453516 s:  SYSTEM: IPC: [IPU2] socket connect success !!! (dst vproc = 1, endpt = 80)

    [HOST] [HOST  ]    167.453516 s:  SYSTEM: IPC: [IPU2] socket info (family = 41, dst proc id = -1, endpt = 1024) !!!

    [HOST] [HOST  ]    167.453699 s:  SYSTEM: IPC: Notify init DONE !!!

    [HOST] [HOST  ]    167.453730 s:  SYSTEM: MSGQ: MsgQ init in progress !!!

    [HOST] [HOST  ]    167.453882 s:  SYSTEM: MSGQ: MsgQ init DONE !!!

    [HOST] [HOST  ]    167.453882 s:  SYSTEM: IPC: Init DONE !!!

    [HOST] [HOST  ]    167.453882 s:  SYSTEM: Initializing A15 Links !!!

    [HOST] [HOST  ]    167.454004 s:  IPC_OUT_0 : Init done - linkid-0x2000000

    [HOST] [HOST  ]    167.454126 s:  IPC_OUT_1 : Init done - linkid-0x2000001

    [HOST] [HOST  ]    167.454218 s:  IPC_OUT_2 : Init done - linkid-0x2000002

    [HOST] [HOST  ]    167.454340 s:  IPC_OUT_3 : Init done - linkid-0x2000003

    [HOST] [HOST  ]    167.454462 s:  IPC_OUT_4 : Init done - linkid-0x2000004

    [HOST] [HOST  ]    167.454584 s:  IPC_IN_0 : Init done - linkid-0x200000a

    [HOST] [HOST  ]    167.454706 s:  IPC_IN_1 : Init done - linkid-0x200000b

    [HOST] [HOST  ]    167.454828 s:  IPC_IN_2 : Init done - linkid-0x200000c

    [HOST] [HOST  ]    167.454950 s:  IPC_IN_3 : Init done - linkid-0x200000d

    [HOST] [HOST  ]    167.455072 s:  IPC_IN_4 : Init done - linkid-0x200000e

    [HOST] [HOST  ]    167.455194 s:  IPC_IN_5 : Init done - linkid-0x200000f

    [HOST] [HOST  ]    167.455316 s:  IPC_IN_6 : Init done - linkid-0x2000010

    [HOST] [HOST  ]    167.455468 s:  NULL_0 : Init done - linkid-0x2000014

    [HOST] [HOST  ]    167.455560 s:  NULL_1 : Init done - linkid-0x2000015

    [HOST] [HOST  ]    167.455743 s:  NULL_SRC_0 : Init done - linkid-0x2000034

    [HOST] [HOST  ]    167.455865 s:  SGX3DSRV_0 : Init done - linkid-0x200003a

    [HOST] [HOST  ]    167.455987 s:  ALGORITHM_0 : Init done - linkid-0x200002c

    [HOST] [HOST  ]    167.456109 s:  ALGORITHM_1 : Init done - linkid-0x200002d

    [HOST] [HOST  ]    167.456231 s:  ALGORITHM_2 : Init done - linkid-0x200002e

    [HOST] [HOST  ]    167.456353 s:  ALGORITHM_3 : Init done - linkid-0x200002f

    [HOST] [HOST  ]    167.456505 s:  ALGORITHM_4 : Init done - linkid-0x2000030

    [HOST] [HOST  ]    167.456597 s:  ALGORITHM_5 : Init done - linkid-0x2000031

    [HOST] [HOST  ]    167.456749 s:  ALGORITHM_6 : Init done - linkid-0x2000032

    [HOST] [HOST  ]    167.456871 s:  ALGORITHM_7 : Init done - linkid-0x2000033

    [HOST] [HOST  ]    167.457054 s:  DUP0 : Init done - linkid-0x0

    [HOST] [HOST  ]    167.457268 s:  DUP1 : Init done - linkid-0x0

    [HOST] [HOST  ]    167.457451 s:  DUP2 : Init done - linkid-0x0

    [HOST] [HOST  ]    167.457664 s:  DUP3 : Init done - linkid-0x0

    [HOST] [IPU2  ]     13.420179 s:  ***** IPU2 Firmware build time 15:07:15 Aug 23 2017

    [HOST] [IPU2  ]     13.420362 s:  *** SYSTEM: CPU Frequency <ORG = 212800000 Hz>, <NEW = 212800000 Hz>

    [HOST] [IPU2  ]     13.423564 s:  SYSTEM: System Common Init in progress !!!

    [HOST] [IPU2  ]     13.432593 s:  SYSTEM: IPC init in progress !!!

    [HOST] [IPU2  ]     13.432684 s:  SYSTEM: Notify init done !!!

    [HOST] [IPU2  ]     13.434453 s:  SYSTEM: MsgQ init done !!!

    [HOST] [IPU2  ]     13.434758 s:  SYSTEM: IPC init DONE !!!

    [HOST] [IPU2  ]     13.439791 s:  SYSTEM: System Common Init Done !!!

    [HOST] [IPU2  ]     13.439943 s:  SYSTEM: System Init in progress !!!

    [HOST] [IPU2  ]     13.440004 s:  SYSTEM: BSP Common Init in progress !!!

    [HOST] [IPU2  ]     13.440096 s:  SYSTEM: BSP Common Init Done !!!

    [HOST] [IPU2  ]     13.440157 s:  SYSTEM: BSP Platform Init in progress !!!

    [HOST] [IPU2  ]    167.467608 s:  SYSTEM: ERROR: No link registered at link ID [73] !!!

    ASSERT (chains_common.c|ChainsCommon_appCtrlCommonInit|94)

     

    Regrads,

    RAJ M

  • Hi Raj,
    Could you please check the EVM rev on which you are running Linux binaries ?
    EVM : TDA2Ex
    Rev: ???

    Note:
    For TDA2Ex, Linux supported on Rev C & above
    I build linux binaries with (A15 & IPU2) & run on Rev C, it is working fine

    Regards
    Surya