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/TMDSIDK574: How to install ssh on Arago with opkg or in another way?

Part Number: TMDSIDK574

Tool/software: Linux

Hi everyone,

I'm working on a project using an evaluation board from TI: TMDSIDK574 / Rev 1.0A.

When I do "uname -a", this is what I get:

root@am57xx-evm:/etc# uname -a
Linux am57xx-evm 4.14.79-gbde58ab01e #1 SMP PREEMPT Thu Dec 20 04:51:24 UTC 2018 armv7l GNU/Linux

My question is how can I install a software like ssh with the command line ?

Since "apt-get" is not present on Arago, I had to use "opkg" but it didn't help that much.

For example, when I type "opkg update", this is what I get:

root@am57xx-evm:/etc# opkg update
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Downloading lcpd.gt.design.ti.com/.../Packages.gz.
wget: bad address 'lcpd.gt.design.ti.com'
Collected errors:
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.
 * opkg_download_backend: Failed to download lcpd.gt.design.ti.com/.../Packages.gz, wget returned 1.

Can anyone tell me how to install ssh on my board or how to install "apt-get" on it please ?

Thanks in advance.

Mervin

  • Hello Mervin,

    Mervin SEBASTIAN said:
    My question is how can I install a software like ssh with the command line ?

    The short answer is you cannot. Please, see this thread for more details.

    Mervin SEBASTIAN said:
    Can anyone tell me how to install ssh on my board or how to install "apt-get" on it please ?

    Please, see this and this thread.

    Best regards,
    Kemal

  • Hi Kemal,

    Thanks for your reply, it helped me !

    One of my goal was to transfer a file from my PC to the board, and I manage to do it thanks to these 2 links about scp and dropbear :

    - http://e2e.ti.com/support/processors/f/791/t/713238

    - https://bluepenguinlist.com/2016/12/05/ssh-tutorial-dropbear-server-openssh-client-setup/

    I read the threads you send me but is there a simpler example to build ?

    I tried to build arago-base-tisdk-image (Source : https://e2e.ti.com/support/processors/f/791/p/646368/2374626#2374626 ) but I didn't know what to do with it after compiling. (And it was very long)

    Can you tell me what to do if I have the .tar file of the software I want to build ?

     

    Thanks in advance.

     

    Mervin


  • Hello Mervin,

    The simplest way is shown in this thread. You need to run MACHINE=am57xx-evm bitbake dropbear command in the final step. Please, also refer to this guide.

    Best regards,
    Kemal

  • Hello Kemal,

    I tried to follow the tutorial with ffmpeg but I ended up having these error messages :

    mervin1@ubuntu:~/NEW/tisdk/build$  MACHINE=am57xx-evm bitbake ffmpeg
    NOTE: Your conf/bblayers.conf has been automatically updated.
    NOTE: Your conf/bblayers.conf has been automatically updated.
    Parsing recipes: 100% |##############################################################################################################################| Time: 0:03:04
    Parsing of 2509 .bb files complete (0 cached, 2509 parsed). 3257 targets, 499 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
      /home/mervin1/NEW/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:01
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: ncurses-native-6.0+20160625-r0 do_fetch: Failed to fetch URL git://anonscm.debian.org/collab-maint/ncurses.git, attempting MIRRORS if available
    WARNING: bzip2-native-1.0.6-r5 do_fetch: Checksum mismatch for local file /home/mervin1/NEW/tisdk/downloads/bzip2-1.0.6.tar.gz
    Cleaning and trying again.
    WARNING: bzip2-native-1.0.6-r5 do_fetch: Renaming /home/mervin1/NEW/tisdk/downloads/bzip2-1.0.6.tar.gz to /home/mervin1/NEW/tisdk/downloads/bzip2-1.0.6.tar.gz_bad-checksum_527819af097ee3014e4d442315b6f283
    WARNING: bzip2-native-1.0.6-r5 do_fetch: Checksum failure encountered with download of www.bzip.org/.../bzip2-1.0.6.tar.gz - will attempt other sources if available
    WARNING: popt-native-1.16-r3 do_fetch: Failed to fetch URL rpm5.org/.../popt-1.16.tar.gz, attempting MIRRORS if available
    WARNING: byacc-native-20160606-r0 do_fetch: Failed to fetch URL invisible-island.net/.../byacc-20160606.tgz, attempting MIRRORS if available
    WARNING: rpm-native-5.4.16-r0 do_fetch: Failed to fetch URL www.rpm5.org/.../rpm-5.4.15-0.20140824.src.rpm;name=srpm;extract=rpm-5.4.15.tar.gz, attempting MIRRORS if available
    WARNING: linux-ti-staging-4.9.41+gitAUTOINC+e3a80a1c5c-r7c.arago5.tisdk9 do_fetch: Failed to fetch URL git://git.ti.com/processor-sdk/processor-sdk-linux.git;protocol=git;branch=processor-sdk-linux-04.01.00, attempting MIRRORS if available
    ERROR: linux-ti-staging-4.9.41+gitAUTOINC+e3a80a1c5c-r7c.arago5.tisdk9 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-eIZf6QW0Ja"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/mervin1/NEW/tisdk/sources/oe-core/scripts:/home/mervin1/NEW/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/arm-linux-gnueabi:/home/mervin1/NEW/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/bin/crossscripts:/home/mervin1/NEW/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/sbin:/home/mervin1/NEW/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin:/home/mervin1/NEW/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/sbin:/home/mervin1/NEW/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/bin:/home/mervin1/NEW/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/mervin1/NEW/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/mervin1/NEW/tisdk/sources/oe-core/scripts:/home/mervin1/NEW/tisdk/sources/meta-browser/scripts:/home/mervin1/NEW/tisdk/sources/bitbake/bin:/home/mervin1/bin:/home/mervin1/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/mervin1"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.ti.com/processor-sdk/processor-sdk-linux.git /home/mervin1/NEW/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git --progress failed with exit code 128, output:
    Cloning into bare repository '/home/mervin1/NEW/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git'...
    fatal: read error: Connection reset by peer

    ERROR: linux-ti-staging-4.9.41+gitAUTOINC+e3a80a1c5c-r7c.arago5.tisdk9 do_fetch: Fetcher failure for URL: 'git://git.ti.com/processor-sdk/processor-sdk-linux.git;protocol=git;branch=processor-sdk-linux-04.01.00'. Unable to fetch URL from any source.
    ERROR: linux-ti-staging-4.9.41+gitAUTOINC+e3a80a1c5c-r7c.arago5.tisdk9 do_fetch: Function failed: base_do_fetch
    ERROR: Logfile of failure stored in: /home/mervin1/NEW/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_fetch.46043
    ERROR: Task (/home/mervin1/NEW/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.9.bb:do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 332 tasks of which 0 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
      /home/mervin1/NEW/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.9.bb:do_fetch
    Summary: There were 9 WARNING messages shown.
    Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

    I also tried to do the general tutorial on TI website 'Building the SDK" with commands like --force -c compile or -c cleanstate but I didn't manage to build the software entirely...

    Can you explain me what am I doing wrong please ?

    Thanks in advance.

    Mervin

  • Hello Mervin,

    The config file you have initialized is not correct, you need to initialize the processor-sdk-05.02.00.10-config.txt for your board with 4.14.79-gbde58ab01e kernel version.

    Best regards,
    Kemal

  • Dear Sir,

    I work with Mervin and after the recompilation we obtain the following warnings:

    "aube@ubuntu:~/tisdk/build$ MACHINE=am57xx-evm bitbake ffmpeg
    NOTE: Your conf/bblayers.conf has been automatically updated.
    NOTE: Your conf/bblayers.conf has been automatically updated.
    WARNING: You have included the meta-virtualization layer, but 'virtualization' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-virtualization README for details on enabling virtualization support.
    Parsing recipes: 100% |#####################################################################################################################################################################| Time: 0:05:06
    Parsing of 3272 .bb files complete (0 cached, 3272 parsed). 4192 targets, 457 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
      /home/aube/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
      /home/aube/tisdk/sources/meta-processor-sdk/recipes-ti/devtools/ti-cgt-arm-native_16.9.2.bbappend
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION           = "1.36.0"
    BUILD_SYS            = "x86_64-linux"
    NATIVELSBSTRING      = "ubuntu-16.04"
    TARGET_SYS           = "arm-linux-gnueabi"
    MACHINE              = "am57xx-evm"
    DISTRO               = "arago"
    DISTRO_VERSION       = "2018.10"
    TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU           = "hard"
    meta-processor-sdk   = "HEAD:378823175fb71bc7073ff4b745d62ee5b37de7bf"
    meta-ros             = "HEAD:e2566402ab108a19634354a934788109422cf409"
    meta-arago-distro    
    meta-arago-extras    = "HEAD:44707eb4de002040aac8444030e0f5feae238e6c"
    meta-browser         = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-qt5             = "HEAD:d8b531530fa42b59aa0a5b123d87a30d749cbcc4"
    meta-virtualization  = "HEAD:b704c689b67639214b9568a3d62e82df27e9434f"
    meta-networking      
    meta-python          
    meta-oe              
    meta-gnome           
    meta-multimedia      
    meta-filesystems     = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
    meta-ti              = "HEAD:e9b069beb92f00e6947cdd0f503747774b189358"
    meta-linaro-toolchain
    meta-optee           = "HEAD:75dfb67bbb14a70cd47afda9726e2e1c76731885"
    meta                 = "HEAD:3638cb32ba9ba32b4d498fc31ab7fdf82f0d2495"

    Initialising tasks: 100% |##################################################################################################################################################################| Time: 0:00:02
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: external-linaro-toolchain-2017.11-r0.arago36 do_package: QA Issue: external-linaro-toolchain: Files/directories were installed but not shipped in any package:
      /lib/libcilkrts.so
      /lib/libcilkrts.so.5
      /lib/libcilkrts.spec
      /lib/libcilkrts.so.5.0.0
    Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
    external-linaro-toolchain: 4 installed and not shipped files. [installed-vs-shipped]
    NOTE: Tasks Summary: Attempted 774 tasks of which 0 didn't need to be rerun and all succeeded.

    Summary: There were 3 WARNING messages shown.
    aube@ubuntu:~/tisdk/build$
    "

    Can you explain us what are we doing wrong please ?
    In the README, there are 2 proposed solutions:
    In the file "configs/processor-sdk/processor-sdk-05.02.00.10-config.txt" add the following instruction "DISTRO_FEATURES_append = " virtualization"" or the other instruction "SKIP_META_VIRT_SANITY_CHECK = 1"  .
    We do not know which solution is the most appropriate? should we add it at the beginning in the middle or at the end of the file?

    Thanks in advance.

    Gérald.

  • Hello Gérald,

    You can ignore these warnings since they are mainly informative. You can read the linked article in this post for more details.

    Best regards,
    Kemal

  • Hi Kemal,

    Thanks for the explanation, I managed to install ffmpeg correctly without error, and get the deploy-ipks directory. 

    I got the following files :

    The ones struck out are the ones that "successfully" installed :


    but others needed different packages :

    Since, the packages required are not on the directory, I tried to install libtheora with bitbake for instance :

    But I got errors... so I don't know if I'm correctly trying to install the .ipk files on my board, or if the .ipk files are corrupted..

    Can you guide with my issue please ?

    Thanks in advance.

    Mervin

  • Hello Mervin,

    Please, download and extract the archive from this post to fix this issue.

    Best regards,
    Kemal

  • Hello Mervin,

    Were you able to resolve this issue?

    Best regards,
    Kemal

  • Hello Kemal,

    I was on vacation during this time, so I did not try much.

    But I did dowload and extract your file : git.ti.com.processor-sdk.processor-sdk-linux.git_and_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.xz.

    And put it in <tisdk>/dowload/git2/ directory. But even after doing the following commands:

    I was not able to install the ipk files with opkg on my board. Having the same issue as above with libtheora...

     

    I probably did not extract the file properly. Inside the git2 directory, we find this:

    And finally, this is what I got from the bitbake step:

    We can see that I got the same ipk files before and after adding the git file in git2:

    Should I put these four files directly in git2?

    Also, does the downloads/git2 directory is created itself or should I continue to create it myself?

    Can you explain me a bit more about this installation process, please?

    Thanks for the support and your answers.

    Mervin

  • Hello Mervin,

    You just need to build the dropbear with your final command not ffmpeg.

    $ MACHINE=am57xx-evm bitbake dropbear

    Best regards,
    Kemal

  • Hi Kemal,

    Thank you for your help. My main goal was to install a ssh server on my board, to transfer files from my computer to it.

    Installing dropbear worked for me, using scp <file> root@ip_address:/path on my computer's terminal.

    After that, I was trying to understand how to install another software (anyone), so it seems that there is only one way.

    The same way that I installed dropbear, right?

    Thanks again.

    Mervin


  • Mervin SEBASTIAN said:
    The same way that I installed dropbear, right?

    Yes.