I am testing it again. What Ubuntu did you download? This one? http://old-releases.ubuntu.com/relea...ktop-amd64.iso
Announcement
Collapse
No announcement yet.
Yocto Course
Collapse
X
-
-
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!
-
-
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:
fedevel@fedevel-VirtualBox:~/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
>>>
fedevel@fedevel-VirtualBox:~/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 ....
Comment
-
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.
Then, I was able to properly install openssl and python3.6, but I still have problems with the repo init command.
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...Comment
-
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}:~/binComment
-
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!
-
Comment