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.
As the MCUSW demos are standalone demos hence the expectation is that they will not work out of the box along with Linux on A72 and other remote core firmwares.
Can you help me integrate the MCUSW can_profile_app (on MCU1_0 or MCU2_1) in such a system?
Patches
You can use the attached patch set on MCUSW and LINUX.
Additional to the above patches, in case you have MCAN (or MCU MCAN) enabled in Linux, please disable that as well.
Note: The above patches are on top of SDK7.1.
Steps
Instructions to apply patches and run MCU1_0 firmware for CAN:
1. Apply patches on MCUSW
1.1 cd mcusw/
1.2 git init
1.3 git add .
1.4 git commit -sm "first commit"
1.5 git am 0001-mcu2_1-can_profile_app-make-changes-to-load-from-u-b.patch
1.6 git am 0002-mcu1_0-can_profile_app-make-changes-to-load-from-R5-.patch
2. Rebuild can_profile_app
2.1 cd mcusw/build/
2.2 make can_profile_app BUILD_OS_TYPE=tirtos CORE=mcu1_0
3. Apply the patch on LINUX
3.1 cd linux-repo
3.2 git am 0001-arm64-dts-k3-j721e-common-proc-board-Disable-MCU-UAR.patch
3.3 git am 0002-arm64-dts-k3-j721e-common-proc-board-Disable-mcu_mca.patch
4. Rebuild LINUX DTB and replace in SD card
4.1 cd PSDKLA_INTALL_PATH
4.2 make linux-dtbs
4.3 replace the new k3-j721e-common-proc-board.dtb in SD card rootfs/boot/
5. Modify the UBOOT_DM parameter (Read https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/psdk_rtos/docs/user_guide/developer_notes_mcu1_0_sysfw.html developer note for why this is needed)
5.1 cd PSDKLA_INTALL_PATH
5.2 vi Makefile
5.3 modify UBOOT_DM to point to can_profile_app_mcu1_0_realease_strip.xer5f
6. Rebuild SPL and u-boot
6.1 cd PSDKLA_INTALL_PATH
6.2 make u-boot-r5_clean
6.3 make u-boot-a72_clean
6.4 make u-boot-r5
6.5 u-boot-a72
6.6 Replace the tiboot3.bin, tispl.bin and u-boot.img in the SD card BOOT/
7. Copy the MCU1_0 firmware in the rootfs/lib/firmware
7.1 cp mcusw/binary/can_profile_app/bin/j721e_evm/can_profile_app_mcu1_0_realease.xer5f SD_CARD/rootfs/lib/firmware/j7-mcu-r5f0_0-fw
8. Test with SD boot
Regards,
Karan
Patches for SDK8.2
System
Steps
1. Apply patches on MCUSW
1.1 cd mcusw/
1.2 git init
1.3 git add .
1.4 git commit -sm "first commit"
1.5 git am <PATH_TO_PATCHES>/MCUSW/*
2. Rebuild can_profile_app
2.1 cd mcusw/build/
2.2 make can_profile_app BUILD_OS_TYPE=tirtos CORE=mcu1_0
3. Apply the patch on LINUX
3.1 cd linux-repo
3.2 git am <PATH_TO_PATCHES>/LINUX/*
4. Rebuild LINUX DTB and replace in SD card
4.1 cd PSDKLA_INTALL_PATH
4.2 make linux-dtbs
4.3 replace the new k3-j721e-common-proc-board.dtb in SD card rootfs/boot/
5. Modify the UBOOT_DM parameter (Read https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/psdk_rtos/docs/user_guide/developer_notes_mcu1_0_sysfw.html developer note for why this is needed)
5.1 cd PSDKLA_INTALL_PATH
5.2 vi Makefile
5.3 modify UBOOT_DM to point to can_profile_app_mcu1_0_realease_strip.xer5f
6. Rebuild SPL and u-boot
6.1 cd PSDKLA_INTALL_PATH
6.2 make u-boot_clean
6.3 make u-boot
6.4 Replace the tispl.bin in the SD card's FAT32 partition (boot/)
7. Copy the MCU1_0 firmware in the rootfs/lib/firmware
7.1 cp mcusw/binary/can_profile_app/bin/j721e_evm/can_profile_app_mcu1_0_realease.xer5f SD_CARD/rootfs/lib/firmware/j7-mcu-r5f0_0-fw
8. Test with SD boot
Regards
Karan