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.

TDA4VM: Is there any way to run RTOS on Integrated MCU and Linux on A53 at the same time

Part Number: TDA4VM


HI.

 with /cfs-file/__key/communityserver-discussions-components-files/791/sd_5F00_card_5F00_boot_5F00_partition.zipl, task[CanApp_TaskFxn] was able to be scheduled now .
  however, u-boot and linux hosted on A53 was not booting.

 Is there any way to run RTOS on Integrated MCU and Linux on A53 at the same time

  • Hi,

    Please confirm your use case. Do you want to load the can_profile_app from SPL/u-boot and boot linux along with that?

    Regards,

    Karan

  • Hi,

    The can_profile_app is for standalone driver benchmarking and that is why it doesn't work out of the box with Linux. Please see - https://e2e.ti.com/support/processors/f/791/t/931992 

    That being said. please look at https://e2e.ti.com/support/processors/f/791/p/906858/3371498#3371498 there are some patches attached which will help in this case.

    Regards,

    Karan

  • We have applied the patch downloaded from ./cfs-file/__key/communityserver-discussions-components-files/791/can_5F00_demo.7z
    to the mcusw/ directory.

    Test steps:
    1. place the application can_profile_app_mcu2_1_release.xer5f in the filesystem at /lib/firmware , remove the /lib/j7-main-r5f0_0-fw.
    2. power up the device, input follow command from u-boot prompt
    #rproc init
    #load mmc 1:2 0x90000000 /lib/firmware/j7-main-r5f0_0-fw
    #rproc load 3 0x90000000 0x${filesize}
    #rproc start 3

    Test result:
    1. we have some emulator connected to MCAN 11 CAN_H/CAN_L interface , no packet received.
    2. No valid signal was measured at MCAN11 TX/RX Pins using the oscilloscope .


    By the way, if rename /lib/firmware/can_profile_app_mcu2_1_release.xer5f to /lib/j7-main-r5f0_0-fw, load the application from kernel,
    u-boot will abort,and logs as follow:
    [18:55:54]U-Boot SPL 2020.07-00930-gd9ad616b67 (Aug 13 2020 - 19:13:27 +0800)
    [18:55:54]SYSFW ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla')
    [18:55:54]Reading on-board EEPROM at 0x50 failed 1
    [18:55:54]Trying to boot from TF
    [18:55:54]Remoteproc 2 started successfully
    [18:55:54]** File not found /lib/firmware/j7-mcu-r5f0_0-fw **
    [18:55:54]Starting ATF on ARM64 core...



    we want to boot rtos hosted on island MCU and Linux hosted on A53 at the same time.
    send and receive CAN message from CAN, expecially using MCU_CAN0 and MCU_CAN1.
    The solution you offer not work for this.

  • user5335884 said:
    1. place the application can_profile_app_mcu2_1_release.xer5f in the filesystem at /lib/firmware , remove the /lib/j7-main-r5f0_0-fw.

    The firmware is for MCU2_1. The can_profile_app supports MCU1_0 and MCU2_1, the patches are for MCU2_1 and not for MCU2_0.

    As you are using u-boot to load the fw, can you please put the firmware by any other name (like can_fw_mcu2_1) and then use the same commands but change j7-main-r5f0_0-fw  to can_fw_mcu2_1?

    #rproc init
    #load mmc 1:2 0x90000000 /lib/firmware/can_fw_mcu2_1
    #rproc load 3 0x90000000 0x${filesize}
    #rproc start 3

    Let me know if you still face a problem.

    Regards,

    Karan