Announcement

Collapse
No announcement yet.

Yocto Course

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • robertferanec
    replied
    rutrilla fantastic! Please keep me posted.
    Clement please let me know if it helped to you too. Thank you.

    Leave a comment:


  • rutrilla
    commented on 's reply
    Hi Robert,

    The first part doesn't work for me. I get the same error. However, with the second workaround it seems that I have already been able to execute the "repo init" and "repo sync" commands.

    Unfortunately, today I can no longer continue with the course. I will keep you informed of my progress in the coming days.

    Thanks for your help!

  • robertferanec
    replied
    After you have python working, try to re-run all these, that is what I did and it worked:

    Disable certificates
    export GIT_SSL_NO_VERIFY=1

    If you keep having problems with certificates:
    sudo dpkg-reconfigure ca-certificates
    sudo update-ca-certificates

    Update curl
    sudo nano /etc/apt/sources.list

    Into sources.list insert
    deb http://security.ubuntu.com/ubuntu xenial-security main
    deb http://cz.archive.ubuntu.com/ubuntu xenial main universe

    and then run
    sudo apt-get update
    sudo apt-get install curl

    PS: Here is a different way to go around the python problem (I have not tested it yet, but this should also work):
    export GIT_SSL_NO_VERIFY=1
    cd ~
    mkdir ~/bin
    git clone https://gerrit.googlesource.com/git-repo
    cd git-repo
    git checkout 27da4ddeb9159573e0207f71e4d9b3ae286b5275
    cp repo ../bin
    chmod a+x ~/bin/repo
    PATH=${PATH}:~/bin

    Leave a comment:


  • rutrilla
    replied
    Well, I reinstalled Ubuntu and follow all the instructions step-by-step.

    I got the following problem with "$ wget http://www.openssl.org/source/openssl-1.0.2e.tar.gz", but I downloaded the file from Firefox as a workaround.

    Click image for larger version

Name:	error_wget_openssl.png
Views:	34
Size:	61.7 KB
ID:	18971

    Then, I was able to properly install openssl and python3.6, but I still have problems with the repo init command.

    Click image for larger version

Name:	error_repo_init_certificate_verify_failed.png
Views:	45
Size:	50.1 KB
ID:	18970

    I've tried the rest of your instructions and some others I've found googling the error (export PYTHONHTTPSVERIFY=0 and others), but no lucky...

    Leave a comment:


  • robertferanec
    replied
    So, the problem with the python installation above is, that there is no openssl. I had to do this:

    Install openssl:

    $ wget http://www.openssl.org/source/openssl-1.0.2e.tar.gz
    $ tar -xvzf openssl-1.0.2e.tar.gz
    $ cd openssl-1.0.2e.tar.gz
    $ sudo ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl
    $ sudo make
    $ sudo make install

    Then install the python:
    $ wget https://www.python.org/ftp/python/3....thon-3.6.3.tgz
    $ tar -xvf Python-3.6.3.tgz
    $ cd Python-3.6.3

    Edit config, open
    $nano Modules/Setup.dist

    Search for "ssl" and uncomment and update:

    _socket socketmodule.c

    # Socket module helper for SSL support; you must comment out the other
    # socket line above, and possibly edit the SSL variable:

    SSL=/usr/local/openssl
    _ssl _ssl.c \
    -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
    -L$(SSL)/lib -lssl -lcrypto

    Then, save the file and run:

    $ sudo ./configure
    $ sudo make
    $ sudo make install

    To test python and ssl run python3 and write there import ssl, it should look like this:
    [email protected]:~/fsl-community-bsp/Python-3.6.3$ python3
    Python 3.6.3 (default, Jan 20 2022, 23:45:09)
    [GCC 4.8.4] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import ssl
    >>>
    [email protected]:~/fsl-community-bsp/Python-3.6.3$

    Then go back to to fsl-community-bsp directory and try again:
    repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b jethro

    I hope this helps. Midnight, time to go to bed ....

    Click image for larger version

Name:	sync done.png
Views:	73
Size:	262.6 KB
ID:	18966

    Leave a comment:


  • rutrilla
    commented on 's reply
    Yes, I did everything with that image, the ubuntu-14.04.4-desktop-amd64.iso.

    However, I have noticed that after running the "sudo apt-get upgrade" command indicated in "How to prepare a Host machine for YOCTO", the version is upgraded to 14.04.6 (according to the command: "lsb_release -d").

    Thanks in advance for your help!

  • robertferanec
    replied
    I am testing it again. What Ubuntu did you download? This one? http://old-releases.ubuntu.com/relea...ktop-amd64.iso

    Leave a comment:


  • rutrilla
    replied
    Hi all!

    I've followed without problem all the instructions in the video of Lesson 1 up to minute 43:25. At which point I get the same error robertferanec previously reported: "repo: error: Python 2 is no longer supported; Please upgrade to Python 3.5+."

    However, I'm not able to install python3.6 following the above instructions (#29). Specifically, I run the first two commands with no problem. After that, the /etc/apt/sources.list.d/deadsnakes-ppa-trusty.list file is created with the following lines:

    deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu trusty main
    # deb-src http://ppa.launchpad.net/deadsnakes/ppa/ubuntu trusty main


    But when I run the last command (sudo apt install python3.6) I get:

    E: Unable to locate package python3.6
    E: Couldn't find any package by regex 'python3.6'


    I've also tried the instructions of "Disable certificates" and "Update curl", but got the same results.

    I finally managed to install python3.6 by downloading and installing it manually, as explained in Method 2 on this website: http://devopspy.com/python/install-p...-6-ubuntu-lts/

    After this, "repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b jethro" failed with error:

    Downloading Repo source from https://gerrit.googlesource.com/git-repo
    fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
    fatal: error unknown url type: https
    fatal: cloning the git-repo repository failed, will remove '.repo/repo'


    My repo version (repo --version) outputs:

    <repo not installed>
    repo launcher version 2.17
    (from /home/rutrilla/bin/repo)
    git 1.9.1
    Python 3.6.3 (default, Jan 20 2022, 19:01:11)
    [GCC 4.8.4]
    OS Linux 4.2.0-42-generic (#49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016)
    CPU x86_64 (x86_64)
    Bug reports: https://bugs.chromium.org/p/gerrit/i...epo+tool+issue


    I've searched for this error (https://groups.google.com/g/android-...aPe4vP_8?pli=1) and I'm afraid the problem must come from python being built without the necessary features.

    Does anyone have any idea how to unlock this situation?

    Thanks in advance!

    Leave a comment:


  • Clement
    commented on 's reply
    I try to install the python 3.63 and then try the commands from https://www.imx6rex.com/open-rex/sof...ine-for-yocto/ in my 16.04 ubuntu. it works for me. The above command has been tried in my VM ubuntu 14.04, still not work. but now i am able to continue with my 16.04 ubuntu.

  • robertferanec
    replied
    Clement I updated the Lesson 1 description, this should help:

    Install the new version of Python
    $sudo add-apt-repository ppa:deadsnakes/ppa
    $ sudo apt update
    $ sudo apt install python3.6

    Disable certificates
    export GIT_SSL_NO_VERIFY=1

    If you keep having problems with certificates:
    sudo dpkg-reconfigure ca-certificates
    sudo update-ca-certificates

    Update curl
    sudo nano /etc/apt/sources.list

    Into sources.list insert
    deb http://security.ubuntu.com/ubuntu xenial-security main
    deb http://cz.archive.ubuntu.com/ubuntu xenial main universe

    and then run
    sudo apt-get update
    sudo apt-get install curl

    Let me know.

    Leave a comment:


  • robertferanec
    replied
    Clement I am still working on the certificate issue. I contacted Lubomir, he is an expert for YOCTO and he may be even doing another YOCTO course. He may be able to help with this. I will let you know when I have some updates.

    Is there anything new on your side? Have you been able to move ahead?

    Leave a comment:


  • robertferanec
    replied
    However, it looks like they have changed something again. When I run repo sync, I am getting errors like:
    "fatal: unable to access 'https://git.yoctoproject.org/git/poky/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none"

    I will check how to fix this problem. If you can't find the solution, please send me an email and I will return your payment.

    Leave a comment:


  • robertferanec
    replied
    Clement I repeated all the steps from the course and now I passed the point where your installation failed, it is working oki in my virtual machine. I am not really sure why you are having the problems. Maybe try again ... everything I had to do extra was running the commands as @M. Navar described: $sudo add-apt-repository ppa:deadsnakes/ppa
    $ sudo apt update
    $ sudo apt install python3.6

    I had to run them because "repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b jethro" failed with error:
    "repo: error: Python 2 is no longer supported; Please upgrade to Python 3.5+."

    Leave a comment:


  • Clement
    commented on 's reply
    yes. I don't know whether I am using a proxy.

  • robertferanec
    replied
    Clement please just confirm, you are behind a proxy, right?

    Leave a comment:

Working...
X