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.

[TDA4]IPC/LLD echo_test issue

Hi,

   I test echo_test in all cores by SPL loading mode , but in linux remoteproc print log, only work in :

   IPC_echo_test (core: mcu3_0)

   IPC_echo_test (core: C66X_1)

   IPC_echo_test (core: C66X_2)

   IPC_echo_test (core: C7X_1)

   IPC_echo_test (core: mcu2_1)

   IPC_echo_test (core: mcu3_0)

  It is not all core work, why?

  Thank you

  • Hi,

    Linux SPL loads the binaries from /lib/firmware. 

    There are soft link which point to binaries which is being loaded.

    can you please run "ls -al /lib/firmware" on the targetfs?

    Thanks & Regards,

    Santosh

  • Hi, Santosh

       I run "ls -al /lib/firmware" on the targetfs. 

      log:

    dji@dji-desktop:/media/dji/rootfs/lib/firmware$ ls -al
    total 72052
    drwxr-xr-x 8 root root 4096 Nov 20 15:06 .
    drwxr-xr-x 11 root root 4096 Nov 20 14:43 ..
    -rw-r--r-- 1 root root 7228776 Nov 20 14:52 app_remoteswitchcfg_client.xer5f
    -rw-r--r-- 1 root root 1416996 Oct 24 12:28 app_remoteswitchcfg_server_pdk_mem_map_strip.xer5f
    -rw-r--r-- 1 root root 9814976 Nov 20 14:52 app_remoteswitchcfg_server.xer5f
    drwxr-xr-x 2 root root 4096 Oct 24 11:52 cadence
    -rwxr-xr-x 1 root root 1910700 Oct 24 12:23 cockpit_app_cockpit_bootstrap.out
    -rwxr-xr-x 1 root root 6429652 Oct 24 12:27 cockpit_app_cockpit_can_params_demo.out
    -rwxr-xr-x 1 root root 6216452 Oct 24 12:27 cockpit_app_cockpit_emulated_params_demo.out
    -rw-r--r-- 1 root root 2655264 Nov 20 15:06 ipc_echo_test_mcu3_0_release.xer5f
    -rw-r--r-- 1 root root 918268 Oct 24 11:41 iwlwifi-3160-17.ucode
    -rw-r--r-- 1 root root 1745176 Oct 24 11:40 iwlwifi-8000C-13.ucode
    -rw-r--r-- 1 root root 2351636 Oct 24 11:40 iwlwifi-8000C-16.ucode
    -rw-r--r-- 1 root root 2394060 Oct 24 11:40 iwlwifi-8000C-21.ucode
    -rw-r--r-- 1 root root 2120860 Oct 24 11:40 iwlwifi-8000C-22.ucode
    -rw-r--r-- 1 root root 2227284 Oct 24 11:40 iwlwifi-8000C-27.ucode
    -rw-r--r-- 1 root root 2310116 Oct 24 11:40 iwlwifi-8000C-31.ucode
    -rw-r--r-- 1 root root 2448976 Oct 24 11:40 iwlwifi-8000C-34.ucode
    -rw-r--r-- 1 root root 2486572 Oct 24 11:40 iwlwifi-8000C-36.ucode
    -rw-r--r-- 1 root root 2389968 Oct 24 11:40 iwlwifi-8265-21.ucode
    -rw-r--r-- 1 root root 1811984 Oct 24 11:40 iwlwifi-8265-22.ucode
    -rw-r--r-- 1 root root 2234528 Oct 24 11:40 iwlwifi-8265-27.ucode
    -rw-r--r-- 1 root root 2307104 Oct 24 11:40 iwlwifi-8265-31.ucode
    -rw-r--r-- 1 root root 2440780 Oct 24 11:40 iwlwifi-8265-34.ucode
    -rw-r--r-- 1 root root 2498044 Oct 24 11:40 iwlwifi-8265-36.ucode
    lrwxrwxrwx 1 root root 58 Nov 20 14:46 j7-c66_0-fw -> /lib/firmware/pdk-ipc/ipc_echo_test_c66xdsp_1_release.xe66
    lrwxrwxrwx 1 root root 58 Nov 20 14:46 j7-c66_1-fw -> /lib/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release.xe66
    lrwxrwxrwx 1 root root 54 Nov 20 14:46 j7-c71_0-fw -> /lib/firmware/pdk-ipc/ipc_echo_test_c7x_1_release.xe71
    lrwxrwxrwx 1 root root 56 Nov 20 14:46 j7-main-r5f0_0-fw -> /lib/firmware/pdk-ipc/ipc_echo_test_mcu2_0_release.xer5f
    lrwxrwxrwx 1 root root 56 Nov 20 14:46 j7-main-r5f0_1-fw -> /lib/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release.xer5f
    lrwxrwxrwx 1 root root 56 Nov 20 14:46 j7-main-r5f1_0-fw -> /lib/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release.xer5f
    lrwxrwxrwx 1 root root 56 Nov 20 14:46 j7-main-r5f1_1-fw -> /lib/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release.xer5f
    lrwxrwxrwx 1 root root 57 Nov 20 14:46 j7-mcu-r5f0_0-fw -> /lib/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release.xer5f
    lrwxrwxrwx 1 root root 56 Nov 20 14:46 j7-mcu-r5f0_1-fw -> /lib/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release.xer5f
    -rw-r--r-- 1 root root 108552 Oct 24 12:28 jailhouse.bin
    -rw-r--r-- 1 root root 2046 Oct 24 11:41 LICENCE.iwlwifi_firmware
    drwxr-xr-x 5 root root 4096 Nov 20 14:43 lyf
    drwxr-xr-x 2 root root 4096 Nov 20 15:06 pdk-ipc
    drwxr-xr-x 3 root root 4096 Nov 20 14:43 pdk-ipc_ok_backup
    drwxr-xr-x 2 root root 4096 Oct 24 14:28 pru
    -rwxr-xr-x 1 root root 247469 Oct 24 12:27 pvdec_full_bin.fw
    -rw-r--r-- 1 root root 1400832 Oct 24 12:19 rgx.fw.22.104.208.318
    -rw-r--r-- 1 root root 1400832 Oct 24 12:19 rgx.fw.22.104.208.318.vz
    drwxr-xr-x 2 root root 4096 Oct 24 12:27 ti-connectivity
    -rwxr-xr-x 1 root root 2179860 Oct 24 12:27 ti-display-sharing-j721e.bin

    Thanks & Regards,

    lei

  • Lei,

    Other two cores are loaded by R5 SPL. A72 only loads 

    C66X_1, C66X_2,  C7X_1, mcu2_1,  mcu3_0

    Please interrupt the boot, and print env variable.

    rproc_fw_binaries=3 /lib/firmware/j7-main-r5f0_1-fw 4 /lib/firmware/j7-main-r5f1_0-fw 6 /lib/firmware/j7-c66_0-fw 7 /lib/firmware/j7-c66_1-fw 8 /lib/firmware/j7-c71_0-fw

    Regards,

    Santosh

  • Santosh,

      The /lib/firmware/*fw  can loading by uboot boot or  remoteproc by my test.

       But  I am confused about the following two situations:

       1. If uboot loading fw, then remoteproc start & stop  not working. 

       2. If uboot not loading fw, then the first remoteproc work normal, but the second operation not working

      why do this?  

     Thanks & Regards,

    lei

  • Lei,

    Yes, ipc_echo_test does not work in second boot. This test was not designed for this functionality. Response_thread is blocked in rpmessage_recv and therefor it does not go in idle instruction. So when unloading, it does not go though clean power down sequence.