Ticket Name: Linux/TDA2: sample_app nullSrc_display how to change ? Query Text: Part Number: TDA2 Tool/software: Linux i build SDK_VISION_03_02_00_00 sample_app , there is a nullSrc_display link use DSP copy data. vision_sdk\sample_app\src\rtos\alg_plugins\framecopy\frameCopyAlgoLocalDma.c i change code of this rebuild but when i run it not change i move away this print , but it also have this print inf Vps_printf(" ALG_FRAMECOPY: DMA: Allocated CH (TCC) = %d (%d)\n", pAlgHandle->edmaChId, pAlgHandle->tccId); edma3Result = EDMA3_DRV_clearErrorBits( pAlgHandle->hEdma, pAlgHandle->edmaChId ); i add Vps_printf but it doesnot take effect! i dont know why? Responses: Hi Shuai What i understand is you are trying to modify frame copy algo running on DSP , you have deleted the print but still you see the prints appearing when running the usecase . Please verify if you have built the libs and run the correct binary , Also try a clean build. Add a # error in the file and verify that the file is compiled and changes you are doing are in correct file. Regards Chetan.M Hi Chetan.M: this is my step 1、move away this obj (PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/binaries/sample_app/tda2xx_evm_linux_all/obj/app_alg_plugins/tda2xx-evm/66$) 2、move away this lib (PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/binaries/sample_app/tda2xx_evm_linux_all/lib/tda2xx-evm/66$) 3、change code (PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/sample_app/src/rtos/alg_plugins/framecopy$/frameCopyAlgoLocalDma.c) add Vps_printf(" wordWidth: DMA: height CH (TCC) = %d (%d)\n", pAlgHandle->frameCopyObj.maxWidth,pAlgHandle->frameCopyObj.maxHeight ); dell follow print if (edma3Result == EDMA3_DRV_SOK) { Vps_printf(" ALG_FRAMECOPY: DMA: Allocated CH (TCC) = %d (%d)\n", pAlgHandle->edmaChId, pAlgHandle->tccId); edma3Result = EDMA3_DRV_clearErrorBits( pAlgHandle->hEdma, pAlgHandle->edmaChId ); } else { Vps_printf(" ALG_FRAMECOPY: DMA: ERROR in EDMA CH allocation\n"); } 4、make -s -j depend 5、make -s -j 6、make sure PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/targetfs/opt/vision_sdk/sample_app.out is renew. 7、run sample_app.out i think it should make some print change , but it no change , [HOST] [HOST ] 1850.496065 s: #### ENTERING SAMPLE_APP:NULL SOURCE -> DISPLAY USE CASE #### [HOST] [HOST ] 1850.520161 s: IPC_OUT_0 : Create in progress !!! [HOST] [HOST ] 1850.520252 s: IPC_OUT_0 : Create Done !!! [HOST] [DSP1 ] 1850.520344 s: IPC_IN_0 : Create in progress !!! [HOST] [DSP1 ] 1850.520740 s: IPC_IN_0 : Create Done !!! [HOST] [DSP1 ] 1850.520954 s: ALGORITHM: Create in progress (algId = 0) !!! [HOST] [DSP1 ] 1850.521076 s: ALG_FRAMECOPY: DMA: Allocated CH (TCC) = 0 (0) [HOST] [DSP1 ] 1850.571463 s: ALGORITHM: Create Done (algId = 0) !!! [HOST] [DSP1 ] 1850.571707 s: IPC_OUT_0 : Create in progress !!! [HOST] [DSP1 ] 1850.571829 s: IPC_OUT_0 : Create Done !!! [HOST] [IPU2 ] 1850.572073 s: IPC_IN_0 : Create in progress !!! [HOST] [IPU2 ] 1850.573171 s: IPC_IN_0 : Create Done !!! I don't know why. i think obj lib and sample_app.out is renew! If I modify the code make some mistake, compile will also prompt. so i think the code was compiled! Are you booting from SD / nfs , I suspect the booting is happening from different location and build binary is different , Try md5sum check on both binaries and ensure running binary and built are same Regards Chetan.M Hi Chetan.M i am booting from NFS , I ADD print in (PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/sample_app/src/hlos/chains_common/chains_main.c) it have reaction! but change in (PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/sample_app/src/rtos/alg_plugins/framecopy/frameCopyAlgoLocalDma.c) no reaction! BESTWISHES SHUAI Shuai , You are running frame copy on A15 or DSP .. ? Regards Chetan.M can you build it as BUILD_ALGORITHMS=yes from the \apps\configs\\cfg.mk Regards Chetan.M ok! let me thy , i running frame copy on DSP! BESTWISHESH SHUAI Thanks Shuai , Please let me know if it solved the issue Regards Chetan.M Hi Chetan.M BUILD_ALGORITHMS=yes then make -s -j failed make: *** /home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/algorithms: No such file or directory. Stop. make[3]: *** [algorithmslib] Error 2 Hi Shuai , Not all algo src is released , hence you are getting the error Regards Chetan.M Hi : Chetan.M in PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/ have apps sample_app binaries build docs links_fw no algorithms so how to solve this problem? make: *** /home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/algorithms: No such file or directory. Stop. make[3]: *** [algorithmslib] Error 2 i think set BUILD_ALGORITHMS=no PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/sample_app/src/rtos/alg_plugins/framecopy$/frameCopyAlgoLocalDma.c is builded ,as i move obj of frameCopyAlgoLocalDma.c , rebulid creat PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/binaries/sample_app/tda2xx_evm_linux_all/obj/app_alg_plugins/tda2xx-evm/66/release$/frameCopyAlgoLocalDma.se66 and frameCopyAlgoLocalDma.oe66 . Hi Shuai , i am not able to understand your problem Regards Chetan.M Hi Chetan.M: this is my step 1、move away this obj (PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/binaries/sample_app/tda2xx_evm_linux_all/obj/app_alg_plugins/tda2xx-evm/66$) 2、move away this lib (PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/binaries/sample_app/tda2xx_evm_linux_all/lib/tda2xx-evm/66$) 3、change code (PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/sample_app/src/rtos/alg_plugins/framecopy$/frameCopyAlgoLocalDma.c) add Vps_printf(" wordWidth: DMA: height CH (TCC) = %d (%d)\n", pAlgHandle->frameCopyObj.maxWidth,pAlgHandle->frameCopyObj.maxHeight ); dell follow print if (edma3Result == EDMA3_DRV_SOK) { Vps_printf(" ALG_FRAMECOPY: DMA: Allocated CH (TCC) = %d (%d)\n", pAlgHandle->edmaChId, pAlgHandle->tccId); edma3Result = EDMA3_DRV_clearErrorBits( pAlgHandle->hEdma, pAlgHandle->edmaChId ); } else { Vps_printf(" ALG_FRAMECOPY: DMA: ERROR in EDMA CH allocation\n"); } 4、make -s -j depend 5、make -s -j 6、make sure PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/targetfs/opt/vision_sdk/sample_app.out is renew. 7、run sample_app.out i think it should make some print change , but it no change , [HOST] [HOST ] 1850.496065 s: #### ENTERING SAMPLE_APP:NULL SOURCE -> DISPLAY USE CASE #### [HOST] [HOST ] 1850.520161 s: IPC_OUT_0 : Create in progress !!! [HOST] [HOST ] 1850.520252 s: IPC_OUT_0 : Create Done !!! [HOST] [DSP1 ] 1850.520344 s: IPC_IN_0 : Create in progress !!! [HOST] [DSP1 ] 1850.520740 s: IPC_IN_0 : Create Done !!! [HOST] [DSP1 ] 1850.520954 s: ALGORITHM: Create in progress (algId = 0) !!! [HOST] [DSP1 ] 1850.521076 s: ALG_FRAMECOPY: DMA: Allocated CH (TCC) = 0 (0) [HOST] [DSP1 ] 1850.571463 s: ALGORITHM: Create Done (algId = 0) !!! [HOST] [DSP1 ] 1850.571707 s: IPC_OUT_0 : Create in progress !!! [HOST] [DSP1 ] 1850.571829 s: IPC_OUT_0 : Create Done !!! [HOST] [IPU2 ] 1850.572073 s: IPC_IN_0 : Create in progress !!! [HOST] [IPU2 ] 1850.573171 s: IPC_IN_0 : Create Done !!! Please add a while 1 loop and halt and debug further. Regards Chetan.M Hi Chetan.M i am bootint nsf to my virtual machine/virtual-machine:~/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/targetfs$ , not from SD card . also virtual-machine:~/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/targetfs$ is copy in sd card the first time . now i rebuild and copy virtual-machine:~/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/targetfs$ in SD card again! then the print come out! but if i change RTOS alg_plugins rebuild then i have to copy ~/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/targetfs in SD card , It takes too much time , so is there any convenient way ?? BESTWISHES shuai Hi Shuai , Check your env.txt is it pointing to nfs boot , Also the initial logs while booting prints the boot environment please check it . To ensure the binaries are picked form nfs disconnect the Ethernet and try it should not boot. Regards Chetan.M Hi Chetan.M this is my step boot key root then ifconfig eth0 172.17.218.88 netmask 255.255.224.0 mount -t nfs -o nolock,nfsvers=3,vers=3 172.17.218.87:/home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/ti_components/os_tools/linux/targetfs /mnt cd /mnt/opt/vision_sdk/ source ./vision_sdk_load.sh ./sample_app.out ~ if i change A15 code just rebuild and reboot but if i chage C66 code i have to cp dra7-dsp1-fw.xe66 /media/hancan/rootfs/lib/firmware/ BESTWISHES shuai No , Please refer linux user guide for NFS boot Regards Chetan.M