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.

[TDA4M] PSDKRA - 2D graphics construction and visualization

Hello,

We have a PC application written using C, C++, and OpenCV, that constructs a 2-D visual representation of an occupancy grid map.

We need to port this to the J7 platform.

What libraries/toolkits can we use on the J7 platform to do this?

Thank you.

  • The C/C++ code should compile just fine for Linux on A72 in TDA4x.

    Most OpenCV function should also compile, however GUI libraries of OpenCV for window and display may not work as is.

    Other than this everything else should compile without changes.

    regards
    Kedar

  • Hello Kedar,

    The GUI is our main concern.

    It is created using OpenCV and we need to replicate it on A72/Linux.

    Please advise further.

    Thank you.

  • For this one needs to enable display on Linux side.

    Do below,

    In the SD card in "bootfs" partition you will see a file "uEnv.txt", if you are running with PSDKRA, it should have below contents.

    dorprocboot=1
    uenvcmd=run start_rprocs_mmc
    overlay_files=k3-j721e-auto-common.dtbo k3-j721e-vision-apps.dtbo

    Modify this file as below (note the lines and string that are removed),

    dorprocboot=0
    overlay_files=k3-j721e-auto-common.dtbo

    NOTE: this file is copied when you do "make Linux_fs_install_sd" from the folder "vision_apps/apps/basic_demos/app_linux_fs_files" so either modify this file here and run "make Linux_fs_install_sd" or modify in the SD card itself and don't run this make command.

    This will do below,

    1. Not load any R5F, C6x, C7x binary on remote cores

    2. Keep display enabled on A72.

    With this change can you first confirm basic OpenCV with GUI works ?

    Note, here you cannot run PSDKRA demos of deep learning etc but this is fine for this test. We first want to test if above is sufficient to enable OpenCV GUI on Display.

    We will do the later steps (mentioned below) once you confirm OpenCV GUI works with doing the uEnv.txt changes.

    To see if display on A72 works, you should actually see the Linux command prompt on the display.

    Once this works,

    -  we need to change R5F binary is vision_apps to disable DSS on R5F
       See vision_apps/docs/user_guide/BUILD_INSTRUCTIONS.html#MAKEFILE_OPTIONS
       Basically #undef ENABLE_DSS in app_cfg_mcu2_1.h

    - Then we need some modifications in k3-j721e-vision-apps.dtbo. The change is small here but you need to have a build environment for this via Yocto.

    - Then we revert the changes in uEnv.txt and run again

    regards
    Kedar

     

  • Hello Kedar,

    Due to some other priorities, I did not have time to pursue this.

    Please allow me a couple of days to get back to you.

    Thank you.

  • I will marked this thread as closed. Once you are able to try and need help you can reopen it.

    regards
    Kedar

  • Hello Kedar,

    Please go ahead and close this thread.

    We will open another one later to follow-up.

    Thank you.