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.

AM5728: Library installation

Part Number: AM5728


Hello,

Actually, i require to install some library with AM5728 SDK. Means that i could not use any linux command here like "sudo apt-get install ...." or any else.

So,how can install any library to AM5728 EVM board?

Thanks and Regards,

Kishan Patel.

  • What library do you want to install? On which SDK?
  • Hello,

    Please follow this guide:
    software-dl.ti.com/.../Overview.html
    chapter "Installing Package".

    Hope this helps.

    BR
    Margarita
  • Hello Biser,

    I want to install "libopencv-dev" library on "ti-processor-sdk-linux-am57xx-evm-04.02.00.09-Linux-x86-Install (1).bin" SDK.

    Regards,
    Kishan Patel.
  • Hello Margarita,

    I think there is no any guidance found related to install external library with SDK.

    Regards,
    Kishan Patel.
  • Hello,

    Here is the link to TI OpenCV and building procedure:
    processors.wiki.ti.com/.../OpenCV
    If you want to build and install other new packages you could try to use the build system, find and add or edit the old recipes to build the new packages and install them to your board. You could search "sources" folder for opencv recipes.
    In additional, regarding apt-get you could check this thread:
    e2e.ti.com/.../674674
    Hope this helps.

    BR
    Margarita
  • Hello Margarita,

             I have followed above thread and tried to build "Cmake", but i got some errors as below:

    ERROR: Task (/home/jenex05/tisdk/sources/oe-core/meta/recipes-devtools/cmake/cmake_3.6.1.bb:do_compile) failed with exit code '1' ERROR: linux-ti-staging-4.9.41+gitAUTOINC+e3a80a1c5c-r7c.arago5.tisdk9 do_create_srcipk: Function failed: do_create_srcipk (log file is located at /home/jenex05/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.9.41+gitAUTOINC+e3a80a1c5c-r7c.arago5.tisdk9/temp/log.do_create_srcipk.23013) ERROR: Logfile of failure stored in: /home/jenex05/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.9.41+gitAUTOINC+e3a80a1c5c-r7c.arago5.tisdk9/temp/log.do_create_srcipk.23013

    What should be issue behind this?.

           I have also tried to build library, but that package not available.

    Regards,
    Kishan Patel.

  • Hello,

    kishan patel14 said:
    ERROR: Logfile of failure stored in: /home/jenex05/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/linux-ti-staging/4.9.41+gitAUTOINC+e3a80a1c5c-r7c.arago5.tisdk9/temp/log.do_create_srcipk.23013

    Please make sure that you have executed this step from the guide:

    sudo dpkg-reconfigure dash
    

    Select "No" when prompted.

    I would recommend you to check the log file, especially for error "cannot allocate memory". This means that your host machine is out of memory and you have to increase the SWAP.

    BR
    Margarita

  • Hello Margarita,

    Yes,i make sure that i have executed this step from the guide:

    sudo dpkg-reconfigure dash
    

    Then Select "No" when prompted.

    I have also attached log file,please check that.

    Regards,

    Kishan Patel.3681.log.do_compile.txt

  • Hello,

    Please execute this command :
    mms@ubuntu:~$ ls -al `which sh`
    The output should be something like:
    lrwxrwxrwx 1 root root 4 Feb 28 10:22 /bin/sh -> bash
    If /bin/sh -> dash execute sudo dpkg-reconfigure dash again. Execute (MACHINE=am57xx-evm bitbake -c clean cmake-native and try again.
    I have build MACHINE=am57xx-evm bitbake cmake-native and I do not see any issue on my side.

    BR
    Margarita

  • Hello Margarita,
    I followed your step and got output as below:

    kishan@kishan-ThinkPad-T430s:~$ ls -al `which sh`
    lrwxrwxrwx 1 root root 4 May 22 11:38 /bin/sh -> bash


    Regards,
    Kishan Patel.
  • Hello Margarita,

    Any idea about what should be issue behind this?

    Regards,

    Kishan Patel.

  • Hello,

    I am sorry for the delay I was OoO. However please try to clean cmake-native and rerun it again.
    MACHINE=am57xx-evm bitbake -c clean cmake-native
    I have executed this command MACHINE=am57xx-evm bitbake cmake-native and I do not see any issue on my side. I tested this with the latest PSDK release and 4.0 also.

    BR
    Margarita
  • Hello Margarita,

    When i execute command "MACHINE=am57xx-evm bitbake -c clean cmake-native", i got output as below:

    kishan@kishan-ThinkPad-T430s:~/tisdk/build$ MACHINE=am57xx-evm bitbake -c clean cmake-native
    Loading cache: 100% |#####################################################################################################################################| Time: 0:00:01
    Loaded 3257 entries from dependency cache.
    WARNING: No recipes available for:
      /home/kishan/tisdk/sources/meta-openamp/recipes-bsp/device-tree/device-tree-generation_%.bbappend
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION        = "1.32.0"
    BUILD_SYS         = "x86_64-linux"
    NATIVELSBSTRING   = "Ubuntu-16.04"
    TARGET_SYS        = "arm-linux-gnueabi"
    MACHINE           = "am57xx-evm"
    DISTRO            = "arago"
    DISTRO_VERSION    = "2017.06"
    TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard"
    TARGET_FPU        = "hard"
    meta-processor-sdk = "HEAD:2b7f7b00654eb3faaea7c66271ebe508b9ffc019"
    meta-arago-distro
    meta-arago-extras = "HEAD:8f49ed67d0627a04ac72fd388fda7756273ba2d7"
    meta-browser      = "HEAD:08576b03af624b65ad949c410d84c11c7d1f2e39"
    meta-openamp      = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"
    meta-qt5          = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
    meta-networking   
    meta-ruby         
    meta-python       
    meta-oe           
    meta-gnome        = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
    meta-ti           = "HEAD:a18d57af8384ced25996739bb66d197c69efb77b"
    meta-linaro-toolchain
    meta-optee        = "HEAD:49b0f32d7e955f250b0022d1b2f403f45a2c2d9c"
    meta              = "HEAD:e3911133ee9aad7cc3ae89faea80a097f6614fab"

    Initialising tasks: 100% |################################################################################################################################| Time: 0:00:00
    NOTE: Executing RunQueue Tasks
    NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.

    Summary: There was 1 WARNING message shown.
    kishan@kishan-ThinkPad-T430s:~/tisdk/build$

    Regards,

    Kishan Patel.

  • Hello,

    Rerun MACHINE=am57xx-evm bitbake cmake-native now.

    BR
    Margarita
  • Hello,

    It make the system hung. I had tried many times,but system has hanging all time.

    Regards,
    Kishan Patel.

  • Hello,

    Have you installed this:
    $ sudo apt-get install git build-essential python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386

    BR
    Margarita
  • Hello,
    I had followed steps as below:

    >sudo apt-get install git build-essential python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386

    >sudo dpkg-reconfigure dash

    >wget releases.linaro.org/.../gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz

    >tar -Jxvf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME

    >git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk

    > cd tisdk

    > ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.02.00.09-config.txt

    > cd build

    > . conf/setenv

    > export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH

    > MACHINE=am57xx-evm bitbake cmake-native


    After get error.....I have executed as below:

    >cd tisdk

    > cd build

    > . conf/setenv

    > export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH

    > MACHINE=am57xx-evm bitbake -c clean cmake-native

    >MACHINE=am57xx-evm bitbake cmake-native
  • Hello,

    I have tried on 4.02 version as yours. I do not see problem with MACHINE=am57xx-evm bitbake cmake-native
    Please try MACHINE=<machine> bitbake <target> -c cleansstate or start from begging.

    BR
    Margarita
  • Hello Margarita,

                      I had tried from beginning, but system has hang when i am trying to clean or build cmake-native.

    Regards,

    Kishan Patel.

  • Hello Kishan Patel,

    I tried on 4.0, 4.02, 4.03 versions all seems fine with cmake-native. I am using Ubuntu 14.04 on my side. Please try to increase your swap file also. You could follow this thread about this:
    e2e.ti.com/.../692469

    BR
    Margarita
  • Hello Margarita,

                   Thanks for Reply. I have seen above link, it shows that there is swap memory require.Right?

    Can you tell me how much will be need to build cmake-native. Please,check the memory details as below:

    kishan@kishan-ThinkPad-T430s:~$ free
                  total        used        free      shared  buff/cache   available
    Mem:        3739656     2632940      136844      507876      969872      336992
    Swap:             0           0           0
    kishan@kishan-ThinkPad-T430s:~$

    Regards,

    Kishan Patel.

  • Hello,

    I have 8G. You could try with 16G.
    Hope this helps.

    BR
    Margarita
  • Hello Margarita,
    So, total memory is also not sufficient. Right?
    So,it it require to add physical memory?.

    Regards,
    Kishan Patel.
  • Hello,

    Since I can not reproduce this on my side I am searching for the differences since we are following the same guide.
    You have not made any changes right?

    BR
    Margarita
  • Hello,
    Yes, right.
    Regards,
    Kishan Patel.
  • Hello Margarita,

                            I dont know but there is some issue to build cmake. So, i have trying an alternative method.

    I had compiled opencv for ARM processor and generate library and include folder.

    Now, when i try to compile application by giving path of genrated library, i got some error.

    So, how can i compile application for AM5728 EVM board?

    Thanks and Regards,

    Kishan Patel.

  • Hello,

    Please refer the below wiki pages:
    processors.wiki.ti.com/.../OpenCV_AM57_Test_Instructions
    processors.wiki.ti.com/.../OpenCV
    In the second guide you could find example how application could be compile on target board.
    By default openCV libs etc are included in PSDK already.
    Hope this helps.

    BR
    Margarita
  • Hello Margarita,
    Actually i have trying to compile application on ubuntu then planned to transfer that executable file to AM5728 EVM board with cross-compiled library.

    So, which one should i prefer?

    I think guide which you has provide me is for compile application on board.

    Regards,
    Kishan Patel.
  • Hello,

    kishan patel14 said:
    I think guide which you has provide me is for compile application on board.

    This is correct.

    kishan patel14 said:
    So, which one should i prefer?

    Up to you. But please if you follow the guide keep in mind that for example "g++ -I/usr/local/include/opencv..." you should remove " local " from the path.

    Hope this helps.

    BR
    Margarita

  • Hello Margarita,

              I had compile opencv for ARM processor then transfer opencv to the board.

    Now, when i try to compile by including path using command line argument, files could not include.

    I am trying to include folder opencv as well as opencv2, files from one folder has been included but from other folder it could not include.

    Please, check the command which i have executed to compile application.

    "g++ OnlineFaceRec.cpp -I/home/root/opencv-2.4.13.6/build_arm/install/include/opencv -I/home/root/opencv-2.4.13.6/build_arm/install/include/opencv2 -L/home/root/opencv-2.4.13.6/build_arm/install/lib -o OnlineFaceRec"

    If i try to include file in a code, its working. But there are too many files which require to include file.

    Regards,

    Kishan Patel.

  • Hello Kishan Patel,

    Please check in the guide how opencv2 are included.

    BR
    Margarita
  • Hello Margarita,
    In guide compile as below:

    " g++ -I/usr/local/include/opencv -I/usr/local/include/opencv2 -L/usr/local/lib/ -g -o canny_ex1 canny_ex1.cpp -lrt -lopencv_core -lopencv_imgproc -lopencv_video -lopencv_features2d -lopencv_imgcodecs"

    whereas i has used as below:

    "g++ OnlineFaceRec.cpp -I/home/root/opencv-2.4.13.6/build_arm/install/include/opencv -I/home/root/opencv-2.4.13.6/build_arm/install/include/opencv2 -L/home/root/opencv-2.4.13.6/build_arm/install/lib -o OnlineFaceRec"

    What is the wrong to include path?

    Regards,
    Kishan Patel.
  • Hello,

    Try to add in the command line something like lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video etc.
    You could check this also:
    answers.opencv.org/.../
    There is an example how you could build it by using command line.

    BR
    Margarita
  • Hello Margarita,
    I have also tried it as below:
    "g++ OnlineFaceRec.cpp -I/home/root/opencv-2.4.13.6/build_arm/install/include/opencv -I/home/root/opencv-2.4.13.6/build_arm/install/include/opencv2 -L/home/root/openCV_Arm/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_legacy -lopencv_objdetect -o OnlineFaceRec"

    But same issue occur.

    Regards,
    Kishan Patel.
  • Hello Kishan Patel,

    Since the question regarding opencv installation is solved please verify this thread.
    Please open a new topic regarding opencv app compilation issue and post the errorthat you are observing etc.

    Best Regards,
    Margarita

  • Hello Margarita,
    Actually, i am trying to compile application on board, because still could not build opencv or cmake on system.
    So, we are trying to compile application on board is the alternate way.

    I dont understand what should be issue to build and compilation process.

    Regards,
    Kishan Patel.
  • Hello,

    I am using Ubuntu 14.04 64bit and as I said I can not reproduce this. You could try to delete tisdk folder and start from the beginning.

    BR
    Margarita
  • Hello Margarita,
    Lets i try again however it will require more bandwidth data.
    Any command you know by which i can remove all thing related to tisdk.

    I will restart the process after completely remove tisdk.

    Regards,
    Kishan Patel.
  • Hello,

    Actually, please try on different host or VM with ubuntu 14.04.
    And please regarding openCV application build issue open a new threat to separate the both issues.
    Thank you!

    BR
    Margarita
  • Hello Margarita,

    I tired with a fresh pc with ubuntu 14.04 64 bit to build the cmake for AM5728.
    Below are the logs:

    jenex05@jenex05:~/tisdk/build$ MACHINE=am57xx-evm bitbake cmake-native
    Loading cache: 100% |######################################################################################################################################| Time: 0:00:01
    Loaded 3797 entries from dependency cache.
    Parsing recipes: 100% |####################################################################################################################################| Time: 0:00:01
    Parsing of 3033 .bb files complete (3030 cached, 3 parsed). 3800 targets, 534 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
    /home/jenex05/tisdk/sources/meta-openamp/recipes-bsp/device-tree/device-tree-generation_%.bbappend
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION = "1.32.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-14.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am57xx-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2017.10"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:eaac60268857bc56bf89625df93935a272b63341"
    meta-ros = "HEAD:e01c6ace0d4f9d700449edad3781e9cd505b5e10"
    meta-arago-distro
    meta-arago-extras = "HEAD:d34c861f846f35d089e1caf224ec43079be7b202"
    meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-openamp = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"
    meta-qt5 = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
    meta-networking
    meta-ruby
    meta-python
    meta-oe
    meta-gnome
    meta-multimedia = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6"
    meta-ti = "HEAD:351ccf1928a18c2b69fd19b09b980c9aa3af2e26"
    meta-linaro-toolchain
    meta-optee = "HEAD:5d2cb685217794293ea2bab18d7e62019c329d06"
    meta = "HEAD:1718f0a6c1de9c23660a9bebfd4420e3c4ed37e6"

    Initialising tasks: 100% |#################################################################################################################################| Time: 0:00:00
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    NOTE: Tasks Summary: Attempted 170 tasks of which 170 didn't need to be rerun and all succeeded.

    Summary: There was 1 WARNING message shown.
    jenex05@jenex05:~/tisdk/build$

    There are two message in the above logs which are making a bit confusion for us:

    1) NOTE: Tasks Summary: Attempted 170 tasks of which 170 didn't need to be rerun and all succeeded.
    2) Summary: There was 1 WARNING message shown.

    is something went wrong? if yes, then how to over come it.

    If everything is perfect then what are the next steps?

    Thanks in advance.

    Regards,
    Omkareshwar Tripathi
  • Hello,

    All seems fine.
    Now you could verify this thread, since cmake-native build issue is solved.

    BR
    Margarita
  • Hello Margarita,

    Thanks for your early reply.

    Can you please guide me how to develop it on the EVM board??

    Regards,
    Omkareshwar Tripathi
  • Hello,

    MACHINE=am57xx-evm bitbake opencv
    You could check this guide for more information regarding openCV in PSDK.
    software-dl.ti.com/.../Foundational_Components.html
    I would recommend you to take a look into this also:
    processors.wiki.ti.com/.../Sitara_Linux_Training:_Getting_Started_with_Openembedded

    BR
    Margarita
  • Hello Margarita,

                Thanks for the documents.

    I read that documents. But i think it is a process to use opencv on board.

    We have building cmake-native for AM5728. Now it has done as we check the log.

    But now how can we use that cmake-native with board means which file we have to move from system to the processor-board?

    Regards,

    Kishan Patel.

  • Hello Kishan,

    In the rootfs by default you have cmake under /usr/bin folder. And as I said in the one of my previous posts by default you have opencv libs in the rootfs.
    However check this /build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/cmake-native/3.6.1-r0/build

    BR
    Margarita

  • Hello Margarita,

    There are many files and folders in "~/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/cmake-native/3.6.1-r0/build".
    Do we have copy the all files and folder on board or some specific files only ??

    We are totally unknown about procedure.

    Regards,
    Omkareshwar Tripathi
  • Hello,

    Sorry, build/bin folder.

    BR
    Margarita
  • Hello Margarita,
    Again thanks for valuable reply.
    We can find "cmake, cpack, and ctest" in that folder.
    So, we have to copy bin folder or only cmake to the board?.

    Please, guide us step by step . So,we can easily use cmake on the board.

    Regards,
    Kishan Patel.
  • Hello,

    Here is description of ctest,cpack:
    cmake.org/.../cpack.1.html
    cmake.org/.../ctest.1.html
    In the default rootfs both are present.

    BR
    Margarita
  • Hello Margarita,

               I think we are going on different track.

               Let me clarify our requirements and what we have done.

    Actually, we were trying to install some library on board which is needed for face recognition process.

    But opencv is already installed on AM5728 evm board and its version is 3.1.

    So, we are trying to build cmake on system for AM5728 EVM board and planned to install library or require extra packages.

    We have build cmake on system. Now, what should be next steps to install library on board and capable for face-recognition on board?

    Regards,

    Kishan Patel.