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.

Linux: Getting continuously messages on the console while building the VSDK for "AVB Capture, Decode and Display UCs".

Tool/software: Linux

VHi There,

I have installed Vision SDK_03_01_00_00 using  "PROCESSOR_SDK_VISION_03_01_00_00_setuplinux.bin" installer on the Ubuntu 14.04 (64 bit) machine successfully and followed all the steps which are mentioned in the "VisionSDK_Linux_UserGuide.pdf" PDF, Which is present under the docs/Linux directory.

2. I have followed all the instructions which are mentioned in section no. "2.2.1" , "2.2.3" , "2.4.1" , "2.4.2.1.1 to 2.4.2.1.4" , "2.4.2.2.2" ,  "2.4.2.2.4" from the "VisionSDK_Linux_UserGuide.pdf" PDF and follow the section no. "3.2" for building the "Linux Vision SDK for AVB Capture, Decode and Display UCs"

3. I did some changes in the cfg.mk file which is present under the $INSTALL_DIR/vision_sdk/apps/configs/tda2xx_evm_linux_all directory and configure some parameters as follow.

PROC_IPU1_0_INCLUDE=yes
PROC_IPU2_INCLUDE=yes
PROC_A15_INCLUDE=yes

NDK_PROC_TO_USE=ipu2
A15_TARGET_OS=Linux


Note:- I have used MAKECONFIG=tda2xx_evm_linux_all and MAKEAPPNAME?=apps in the Rules.make file which is present under the $INSTALL_DIR/vision_sdk/build directory.

2. After the successfully build, I have used section no. "4.2" of "VisionSDK_Linux_UserGuide.pdf" PDF for making the SD card Bootable.

After that I have followed the below steps for execution of  use cases.

a. login as a root user.
b. cd /opt/vision_sdk.
c source ./vision_sdk_load.sh
d. ./apps.out /*After executing this line I got below messages continuously on the console*/

root@dra7xx-evm:/opt/vision_sdk# ./apps.out
 [HOST]  OSA: MEM: 0: Mapped 0xa0100000 to 0xb69bc000 of size 0x00100000  
 [HOST]  OSA: MEM: 1: Mapped 0x84203000 to 0xa6fbc000 of size 0x0fa00000  
 [HOST]  OSA: MEM: 2: Mapped 0xa0200000 to 0xa6efc000 of size 0x00040000  
 [HOST]  OSA: MEM: 3: Mapped 0xa02c0000 to 0xa6f3c000 of size 0x00080000  
 [HOST]  OSA: MEM: 4: Mapped 0xa0440000 to 0xa6cfc000 of size 0x00200000  
 [HOST]  OSA: IPU1-0 Remote Log Shared Memory @ 0xa0200000
 [HOST]  OSA: IPU2 Remote Log Shared Memory @ 0xa0363da0
 [HOST] [IPU2  ]     14.557616 s:  ***** IPU2 Firmware build time 14:49:42 Dec  8 2017  
 [HOST] [IPU2  ]     14.557799 s:  *** SYSTEM: CPU Frequency <ORG = 212800000 Hz>, <NEW = 212800000 Hz>  
 [HOST] [IPU2  ]     14.567254 s:  SYSTEM: System Common Init in progress !!!  
 [HOST] [IPU2  ]     14.578265 s:  UTILS: CIO: Init Done !!!  
 [HOST] [IPU2  ]     14.578356 s:  SYSTEM: IPC init in progress !!!  
 [HOST] [IPU2  ]     14.578417 s:  SYSTEM: Attaching to [IPU1-0] ...   
 [HOST] [IPU2  ]     14.861343 s:  NSP GMAC: PHY 2 Found on MAC Port 0  
 [HOST] [IPU2  ]     14.861892 s:  NSP GMAC: PHY 3 Found on MAC Port 1  
 [HOST] [IPU2  ]     15.586073 s:  SYSTEM: Attaching to [IPU1-0] ...

@Note:- 1. Please confirm all the steps which are followed by me is correct or not and which one document I should refer for "AVB" related use cases?.


Please do needful as soon as possible and also find the attached log file for the same.

https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/Linux_5F00_Network.log.tar.7z

Regards,

Anshul Jain.

  • Hi Anshul,

    I see "insmod: ERROR: could not load module ./bin/cmemk.ko: No such file or directory" error in your log.
    Can you try to copy the cmemk.ko from /opt/vision_sdk to /opt/vision_sdk/bin and see if you still see the error (you may need to reboot the board)?

    Regards,
    Yordan
  • Hi Yordan,

    As you suggested, I have copied the cmemk.ko into the /opt/vision_sdk/bin directory and could load cmemk.ko successfully, but still facing the same issue.

    Regards,

    Anshul Jain.

  • Hi Anshul,

    I have pinged the VisionSDK experts for further help.

    Regards,
    Yordan
  • Hi There,

    Any update on this.

    Regards,
    Anshul Jain.
  • Hi There,

    Can anybody tell me how can I resolve this problem?.

    Regards,

    Anshul Jain.

  • Anshual

    Please do not enable PROC_IPU1_0_INCLUDE=yes with Linux build, only one IPU subsystem is support in VSDK linux build

    keep only
    PROC_IPU1_0_INCLUDE=no
    PROC_IPU2_INCLUDE=yes
    PROC_A15_INCLUDE=yes

    Did you modify the kernel to disbale networking from A15 Linux, as discribed in
    3.2 Build Linux Vision SDK for AVB Capture, Decode and Display UCs (VisionSDK_Linux_UserGuide.pdf)?

    regards, Shiju
  • Hi Shiju,

    Thank you for your inputs.

    Yes, I have modified "dra7-evm.dts" file to disable networking from A15. Changes as follows.

    &mac {
    status = "okay";

    @Note:- I have used status = "disabled"

    I will try to build "Vision SDK for AVB Capture, Decode and Display UCs" with the above configuration which you have suggested.

    Regards,

    Anshul Jain.

     

     

  • Hi Shiju,

    As per your suggest configuration, I am able to build the "VSDK for "AVB Capture, Decode and Display UCs" without any error, But while running the binary(apps.out ) on the console, I got the following errors.

     [HOST] [IPU2  ]     14.874489 s:  ### XDC ASSERT - ERROR CALLBACK START ###   
     [HOST] [IPU2  ]     14.874580 s:   
     [HOST] [IPU2  ]     14.874794 s: assertion failure: A_invalidMultiProcId: Invalid MultiProc id  
     [HOST] [IPU2  ]     14.874855 s:   
     [HOST] [IPU2  ]     14.874916 s:  ### XDC ASSERT - ERROR CALLBACK END ###

    Please find the attached log for the same.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/Linux_5F00_Network_5F00_test.log.tar.7z

    Regards,

    Anshul Jain.

  • Anshual
    I could see a IPU crash from your logs. Did you make any modification to VSDK?
    If you have a CCS/J-tag set-up plase connect to IPU2 and try to debug this crash

    regards, Shiju
  • Hi Shiju,

    I did not make any modification to VSDK. But I did some changes in "cfg.mk" file as follows.

    PROC_IPU1_0_INCLUDE=no
    PROC_IPU2_INCLUDE=yes
    PROC_A15_INCLUDE=yes   //  Here what should be use PROC_A15_INCLUDE=yes or PROC_A15_0_INCLUDE=yes

    NDK_PROC_TO_USE=ipu2

    A15_TARGET_OS=Linux

    Please confirm the above configuration is correct or not because we don't have CCS/J-tag for debugging the code.

    Regards,

    Anshul Jain.

  • Anshual
    you should use PROC_A15_INCLUDE=yes
    All your chnages are correct.

    Are you running the AVB UC with AVB cameras or AVB talker?


    regards, Shiju
  • Hi Shiju,

    Actually I want to run AVB UC using AVB talker script.
    So for this after the booting I follows below steps.

    cd /opt/vision_sdk
    source ./vision_sdk_load.sh
    ./apps.out /*After executing this line I got XDC Start/Stop assertion.

    Note:- I guess before executing the apps.out, I need to setup a static IP of the EVM board and my host machine too after that I have to run the AVB talker script from the host machine.

    Please correct me if my understanding is wrong.


    Regards,
    Anshul Jain.
  • Hi Shiju,

    Any inputs on this?.

    Regards,

    Anshul Jain.

  • Hi Shiju,

    Any inputs/update on this?.

    Regards,

    Anshul Jain.

  • Hi Anshul,

    the VisionSDK team is currently busy with the incoming release of VisionSDK 3.2 and some delays in responses might be expected.
    Hopefully next week they will be able to spent more time on E2E support.

    Regards,
    Yordan
  • Hi Yordan,

    Thank you for the update.

    Regards,

    Anshul Jain.

  • Hi Yordan,

    Any update or suggestion. So that I can go ahead.

    Regards,

    Anshul Jain.

  • Anshul Jain.
    Your configuration is correct.
    I would like to check this locally from the 3.1 version, and will update you in a couple of days


    Regards, Shiju
  • Hi Anshul ,

    After you made the changes to please run make -s showconfig and share the result .

    Please note that ipu 1_0 & ipu 1_1 should be disabled for VSDK Linux.

    do a clean of linux and vision sdk . Then rebuild both linux and vision sdk .
    Prepare a SD card again and try .

    Please ensure ethernet is disabled from Linux kernel
    verify in device tree after you boot the card ethernet should not be present or should be disabled .

    cat /proc/device-tree/ocp/ethernet\@48484000/

    If enabled then you either the changes are not done in correct file or build is not proper ,

    Regards
    Chetan.M
  • Hi Chetan,

    Please find the attached configuration log which is generated using "make -s showconfig" command.

    Note:- 1. After booting I don't see any entry for "ethernet" using cat /proc/device-tree/ocp/ethernet\@48484000/

    2. I could build VSDK on Linux platform for AVB Capture, Decode and Display UCs using VSDK_3.2 version.

    3. But could not  set static IP on EVM board for further communication.

    configure.txt.zip

    Regards,

    Anshul Jain.

  • Please correct me if i am wrong,

    You have migrated to latest version 3.2 and you are able to build and try the usecase .?

    3. But could not set static IP on EVM board for further communication.
    what is that you are trying here . ?

    Did avb usecase run without assert in 3.2 ?

    Regards
    Chetan.M
  • Hi Chetan,

    3. But could not set static IP on EVM board for further communication.
    what is that you are trying here . ?

    Answer:-1  For perform the communication between EVM board and host machine , they should be in a same network. And they should be able to ping to each other this is my understanding here. Please correct me if my understanding is not correct.

    Note:- But in my case they are not able to ping to each other.

    2. Did avb usecase run without assert in 3.2 ?

    Answer:- Yes, on the EVM side it does not throw assert, but when I  tried to run avbtp_talker.sh script after running the usecase on the EVM side for sending the  input file from the PC side , it is showing an error message on the console  as follows.

    "avbtp_talker.sh:  <mjpeg input_file.avi>"  // May be the problem with the input file.

    3. I ran the "CH AVB Capture + Decode + SGX MOSAIC + DISPLAY" use case.

    Please find the attached log for the same.

    cutecom_avb.log.zip

    Regards,

    Anshul Jain.

  • Hi Anshul Jain,

    Current avb talker does a broadcast of video data so for avb usecase you may not worry about the ip .
    In case you need to set static ip for your requirement you can do the following

    By default IP address is set to DHCP mode
    o This can be changed to static IP by editing below file vision_sdk\links_fw\src\rtos\bios_app_common\<soc>\cfg\NDK_config.cfg
    o Change at lines var enableStaticIP = 1;
    if (enableStaticIP)
    {
    /* Settings for static IP configuration */
    Ip.address = "192.168.1.200";
    Ip.mask = "255.255.255.0";
    Ip.gatewayIpAddr = "192.168.1.1";
    Ip.ifIdx = 1;
    }

    Please run with correct input files .


    Regards
    Chetan.M