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.
Hi.
expert.
I try to run ipc_test app on QNX.
I use SDK7_1, QNX700.
When I just run tibin/ipc_test, I got a console message below.
and then I refer to https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1015234/faq-tda4vm-ipc_test-on-psdk-qnx-7-2-psdk-qnx-7-3
Q1. I builded with build command, but I get a error message on SDK7_1. on SDK7_3 building is ok.
cd <PSDK_RELEASE>/psdkqa/qnx
make all VISION_APPS_BUILD_FLAGS_MAK=0
Q2. Could you check my development version(SDK7.1 / QNX700)?
Do PSDK QNX 7.2 and PSDK QNX7.3 mean QNX720 and QNX710?
Is not QNX700 supported?
Thank you
Hi,
Regarding Q1:
Please provide full build log, when running below commands from release_71/ti-processor-sdk-rtos-j721e-evm-07_01_00_11/psdkqa/qnx. No build errors are expected.
make clean;
make all
Regarding Q2:
The TI SDK numbering convention, and QNX SDP numbering convention are not related, but do need to be understood.
The latest publicly available QNX Software Development Platform (SDP), is QNX SDP 7.1.
When TI releases an SDK, it will specify which QNX SDP the release(s) were tested against, and supports. This can be seen in the TI SDK release notes. For example the PSDK QNX 7.2 release notes ( 3.1. Release notes - 07_02_00 — Processor SDK QNX (ti.com)) specify the dependencies if using QNX SDP 7.0, or if using QNX SDP 7.1.
Regards,
kb
Hi,
Please provide full build log, when running below commands from release_71/ti-processor-sdk-rtos-j721e-evm-07_01_00_11/psdkqa/qnx. No build errors are expected.
Error occured.
boot log.
NOTICE: BL31: v2.2(release):Temp_0.0.0.3-2-gdba7d0950-dirty NOTICE: BL31: Built : 14:32:08, Mar 23 2022 I/TC: I/TC: OP-TEE version: Temp_0.0.0.3-2-gdba7d0950-dev (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 2022. 03. 23. (수) 05:32:11 UTC aarch64 I/TC: Initialized MMFLAGS=19 Welcome to QNX Neutrino 7.0 on the ADAS_PRK 2 Board Mailbox_plugInterrupt: interrupt Number 489, arg 0x1011EEB0 Mailbox_plugInterrupt: interrupt Number 490, arg 0x1011F050 Mailbox_plugInterrupt: interrupt Number 491, arg 0x1011F1F0 Mailbox_plugInterrupt: interrupt Number 492, arg 0x1011F390 Mailbox_plugInterrupt: interrupt Number 493, arg 0x1011F530 Starting TI IPC Resmgr suggested mask to set for EL0 timer access: 0x303 cntkctl_el1: setting bits 0x303, new value 0x303 suggested mask to set for EL0 timer access: 0x303 cntkctl_el1: setting bits 0x303, new value 0x303 Path=0 - am65x target=0 lun=0 Direct-Access(0) - SDMMC: S0J56X Rev: 1.0 eMMC Filesystem partitionA mount!! startup.sh start!! kern.mbuf.nmbclusters: 8192 -> 262114 Starting PMIC Resmgr Setting env variables. # TTS-EXEC: secpol_path=/fs/ph00_qnx/secpol.bin DMIU Service Started DMIU initialization successful [VPUSwUp]Start EthDiag for VPU!! [VPUSwUp]ADAS_PRK 1.5 (1220) [VPUSwUp]UDS version : 3.1.1 [VPUSwUp]TP Layer version : 3.2.0 info: starting LogFlushDaemon, foreground=0 ESM Init Done. [VPUSwUp]Session is changed to 01
I tried to build as below.(SDK7.1, QNX700) result is same(ipc_test)
1. skip "make all VISION_APPS_BUILD_FLAGS_MAK=0" because of building error. <- Q1. Is this process necessary on SDK7.1?
2. build remote cores
make BUILD_PROFILE=release BOARD=j721e_evm TREAT_WARNINGS_AS_ERROR=no DISABLE_RECURSE_DEPS=no CORE=mcu1_1 ex02_bios_multicore_echo_test
make BUILD_PROFILE=release BOARD=j721e_evm TREAT_WARNINGS_AS_ERROR=no DISABLE_RECURSE_DEPS=no CORE=mcu2_0 ex02_bios_multicore_echo_test
make BUILD_PROFILE=release BOARD=j721e_evm TREAT_WARNINGS_AS_ERROR=no DISABLE_RECURSE_DEPS=no CORE=mcu2_1 ex02_bios_multicore_echo_test
make BUILD_PROFILE=release BOARD=j721e_evm TREAT_WARNINGS_AS_ERROR=no DISABLE_RECURSE_DEPS=no CORE=mcu3_0 ex02_bios_multicore_echo_test
make BUILD_PROFILE=release BOARD=j721e_evm TREAT_WARNINGS_AS_ERROR=no DISABLE_RECURSE_DEPS=no CORE=mcu3_1 ex02_bios_multicore_echo_test
make BUILD_PROFILE=release BOARD=j721e_evm TREAT_WARNINGS_AS_ERROR=no CORE=c66xdsp_1 ex02_bios_multicore_echo_test
make BUILD_PROFILE=release BOARD=j721e_evm TREAT_WARNINGS_AS_ERROR=no CORE=c66xdsp_2 ex02_bios_multicore_echo_test
make BUILD_PROFILE=release BOARD=j721e_evm TREAT_WARNINGS_AS_ERROR=no CORE=c7x_1 ex02_bios_multicore_echo_test
make BUILD_PROFILE=release BOARD=j721e_evm TREAT_WARNINGS_AS_ERROR=no DISABLE_RECURSE_DEPS=no CORE=mcu1_0 ex02_bios_multicore_echo_testb
3. copy remote cores image
cp ${PDK_INSTALL_PATH}/ti/binary/ex02_bios_multicore_echo_test/bin/j721e_evm/ex02_bios_multicore_echo_test_c7x_1_release.xe71 ${ROOTFS}/lib/firmware/j7-c71_0-fw
cp ${PDK_INSTALL_PATH}/ti/./binary/ex02_bios_multicore_echo_test/bin/j721e_evm/ex02_bios_multicore_echo_test_c66xdsp_2_release.xe66 ${ROOTFS}/lib/firmware/j7-c66_1-fw
cp ${PDK_INSTALL_PATH}/ti/./binary/ex02_bios_multicore_echo_test/bin/j721e_evm/ex02_bios_multicore_echo_test_c66xdsp_1_release.xe66 ${ROOTFS}/lib/firmware/j7-c66_0-fw
cp ${PDK_INSTALL_PATH}/ti/./binary/ex02_bios_multicore_echo_test/bin/j721e_evm/ex02_bios_multicore_echo_test_mcu3_1_release.xer5f ${ROOTFS}/lib/firmware/j7-main-r5f1_1-fw
cp ${PDK_INSTALL_PATH}/ti/./binary/ex02_bios_multicore_echo_test/bin/j721e_evm/ex02_bios_multicore_echo_test_mcu3_0_release.xer5f ${ROOTFS}/lib/firmware/j7-main-r5f1_0-fw
cp ${PDK_INSTALL_PATH}/ti/./binary/ex02_bios_multicore_echo_test/bin/j721e_evm/ex02_bios_multicore_echo_test_mcu2_1_release.xer5f ${ROOTFS}/lib/firmware/j7-main-r5f0_1-fw
cp ${PDK_INSTALL_PATH}/ti/./binary/ex02_bios_multicore_echo_test/bin/j721e_evm/ex02_bios_multicore_echo_test_mcu2_0_release.xer5f ${ROOTFS}/lib/firmware/j7-main-r5f0_0-fw
cp ${PDK_INSTALL_PATH}/ti/./binary/ex02_bios_multicore_echo_test/bin/j721e_evm/ex02_bios_multicore_echo_test_mcu1_1_release.xer5f ${ROOTFS}/lib/firmware/j7-mcu-r5f0_1-fw
cp ${PDK_INSTALL_PATH}/ti/./binary/ex02_bios_multicore_echo_testb/bin/j721e_evm/ex02_bios_multicore_echo_testb_mcu1_0_release.xer5f ${ROOTFS}/lib/firmware/j7-mcu-r5f0_0-fw
but this succeeded
cd vision_apps
make sdk
make qnx_fs_create_sd
[target] $ ./vx_app_qnx_arm_ipc.out
Thank you.
Hi,
Thank for the logs and description. Are (a) to (c) an accurate summary of current status:
a) TI SDK 7.1 is under test
b) Vision Apps vx_app_qnx_arm_ipc.out works.
c) Running ipc_echo test does not work.
Regarding (c), the ipc_echo_test binary that runs on the A72, is dependent on the proper images being in place on the C7/C6/R5 cores. All cores must be built to recognize the memory space being used by IPC. In your step (3), it appears that the required images are built and copied to an SD card, so the missing piece is likely the A72 binaries that are being run.
In installing SDK 7.1 locally was able to build and ipc_test with below log generated.
U-Boot SPL 2021.01-g15769936a5 (Dec 20 2021 - 17:09:03 +0000) Model: Texas Instruments K3 J721E SoC Board: J721EX-PM2-SOM rev E6 SYSFW ABI: 3.1 (firmware rev 0x0015 '21.9.1--v2021.09a (Terrific Lla') Trying to boot from MMC2 Starting ATF on ARM64 core... NOTICE: BL31: v2.5(release):08.01.00.006-dirty NOTICE: BL31: Built : 16:34:52, Dec 20 2021 U-Boot SPL 2021.01-g15769936a5 (Dec 20 2021 - 16:36:05 +0000) Model: Texas Instruments K3 J721E SoC Board: J721EX-PM2-SOM rev E6 SYSFW ABI: 3.1 (firmware rev 0x0015 '21.9.1--v2021.09a (Terrific Lla') Detected: J7X-BASE-CPB rev E3 Detected: J7X-VSC8514-ETH rev E2 Trying to boot from MMC2 U-Boot 2021.01-g15769936a5 (Dec 20 2021 - 16:36:05 +0000) SoC: J721E SR1.0 Model: Texas Instruments K3 J721E SoC Board: J721EX-PM2-SOM rev E6 DRAM: 4 GiB Flash: 0 Bytes MMC: sdhci@4f80000: 0, sdhci@4fb0000: 1 In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Detected: J7X-BASE-CPB rev E3 Detected: J7X-VSC8514-ETH rev E2 Net: am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000 eth0: ethernet@46000000 Hit any key to stop autoboot: 0 Timed out in wait_for_bb: status=1000 Timed out in wait_for_bb: status=1000 Timed out in wait_for_bb: status=1000 pca953x gpio@22: Error reading output register switch to partitions #0, OK mmc1 is current device Timed out in wait_for_bb: status=1000 pca953x gpio@22: Error reading output register SD/MMC found on device 1 Failed to load 'boot.scr' 530 bytes read in 9 ms (56.6 KiB/s) Loaded env from uEnv.txt Importing environment from mmc1 ... Running uenvcmd ... k3_r5f_rproc r5f@41000000: Core 1 is already in use. No rproc commands work k3_r5f_rproc r5f@41400000: Core 2 is already in use. No rproc commands work 4342816 bytes read in 188 ms (22 MiB/s) Load Remote Processor 2 with data@addr=0x82000000 4342816 bytes: Success! 4342800 bytes read in 188 ms (22 MiB/s) Load Remote Processor 3 with data@addr=0x82000000 4342800 bytes: Success! 4342796 bytes read in 188 ms (22 MiB/s) Load Remote Processor 4 with data@addr=0x82000000 4342796 bytes: Success! 4342800 bytes read in 187 ms (22.1 MiB/s) Load Remote Processor 5 with data@addr=0x82000000 4342800 bytes: Success! 5517888 bytes read in 236 ms (22.3 MiB/s) Load Remote Processor 6 with data@addr=0x82000000 5517888 bytes: Success! 5517904 bytes read in 236 ms (22.3 MiB/s) Load Remote Processor 7 with data@addr=0x82000000 5517904 bytes: Success! 11463312 bytes read in 70 ms (156.2 MiB/s) Load Remote Processor 8 with data@addr=0x82000000 11463312 bytes: Success! 8144272 bytes read in 345 ms (22.5 MiB/s) ## Starting application at 0x80080000 ... MMU: 16-bit ASID 44-bit PA TCR_EL1=b5183519 cpu0: MPIDR=80000000 cpu0: MIDR=411fd080 Cortex-A72 r1p0 cpu0: CWG=4 ERG=4 Dminline=4 Iminline=4 PIPT cpu0: CLIDR=a200023 LoUU=1 LoC=2 LoUIS=1 cpu0: L1 Icache 48K linesz=64 set/way=256/3 cpu0: L1 Dcache 32K linesz=64 set/way=256/2 cpu0: L2 Unified 1024K linesz=64 set/way=1024/16 Display set to R5 Loading IFS...decompressing...done cpu1: MPIDR=80000001 cpu1: MIDR=411fd080 Cortex-A72 r1p0 cpu1: CWG=4 ERG=4 Dminline=4 Iminline=4 PIPT cpu1: CLIDR=a200023 LoUU=1 LoC=2 LoUIS=1 cpu1: L1 Icache 48K linesz=64 set/way=256/3 cpu1: L1 Dcache 32K linesz=64 set/way=256/2 cpu1: L2 Unified 1024K linesz=64 set/way=1024/16 System page at phys:0000000080011000 user:ffffff8040254000 kern:ffffff8040251000 Starting next program at vffffff8060086e10 All ClockCycles offsets within tolerance Welcome to QNX Neutrino 7.1.0 on the TI J721E EVM Board!! Starting random service ... start serial driver omap_i2c_reset: Bus busy after reset, try to recover it by sending SCK and STOP on the bus omap_i2c_reset: Bus still busy after bus recovering omap_i2c_reset: reset I2C interface failed i2c-master: mfuncs.init failed Process 7 (i2c-omap35xx) terminated SIGSEGV code=1 fltno=11 ip=00000047235903f0(/proc/boot/i2c-omap35xx@_btext+0x0000000000000640) mapaddr=00000000000023f0. ref=0000000000000008 Unable to access "/dev/i2c0" (2) Starting MMC/SD memory card driver... eMMC Starting MMC/SD memory card driver... SD Starting XHCI driver on USB3SS0 and USB3SS1 Path=0 - am65x target=0 lun=0 Direct-Access(0) - SDMMC: S0J56X Rev: 1.0 Setting environment variables... done.. Looking for user script to run: /ti_fs/scripts/user.sh Running user script... user.sh called... Setting additional environment variables... Starting tisci-mgr.. Starting shmemallocator.. Starting tiipc-mgr.. Mailbox_plugInterrupt: interrupt Number 489, arg 0x4CF71EA0 Mailbox_plugInterrupt: interrupt Number 490, arg 0x4CF72040 Mailbox_plugInterrupt: interrupt Number 491, arg 0x4CF721E0 Mailbox_plugInterrupt: interrupt Number 492, arg 0x4CF72380 Mailbox_plugInterrupt: interrupt Number 493, arg 0x4CF72520 Starting TI IPC Resmgr Starting tiudma-mgr.. Start screen.. screen started with dss_on_r5 configuration.. done... J7EVM@QNX:/# cd /ti_fs/tibin J7EVM@QNX:/ti_fs/tibin# ip ipc_test iperf2 iperf3 J7EVM@QNX:/ti_fs/tibin# ipc_test IPC_echo_test (core : mpu1_0) ..... responderFxn will stay active. Please use ctrl-c to exit the test when finished. SendTask9: mpu1_0 <--> C7X_1, Ping- 10, pong - 10 completed SendTask7: mpu1_0 <--> C66X_1, Ping- 10, pong - 10 completed SendTask8: mpu1_0 <--> C66X_2, Ping- 10, pong - 10 completed SendTask6: mpu1_0 <--> mcu3_1, Ping- 10, pong - 10 completed SendTask4: mpu1_0 <--> mcu2_1, Ping- 10, pong - 10 completed SendTask5: mpu1_0 <--> mcu3_0, Ping- 10, pong - 10 completed SendTask3: mpu1_0 <--> mcu2_0, Ping- 10, pong - 10 completed
In step (3) of (+) [FAQ] TDA4VM: IPC_Test on PSDK QNX 7.2 / PSDK QNX 7.3 - Processors forum - Processors - TI E2E support forums, it indicates that the A72 binaries must be rebuilt from the psdkqa/qnx directory.
In your build environment, please try the following:
cd psdkqa/qnx
make clean
make
cd ../vision_apps
make qnx_fs_install_sd
The intent is to ensure that the A72 binaries are built correctly, and copied to the SD card.
Regards,
kb