| FORUM

FEDEVEL
Platform forum

USE DISCOUNT CODE
EXPERT30
TO SAVE $30 USD

Yocto Course

M. Namvar , 05-29-2021, 01:59 AM
hi
what is the problem?
( ubuntu 14.04)
robertferanec , 05-29-2021, 03:17 AM
Please, what is the version of your Ubuntu? Did you use the same version as I did? I see you are saying 14.04 - but the picture looks different from what I used.
Comments:
M. Namvar, 05-29-2021, 11:10 AM
hi Robertubuntu 14.04.6 LTS
M. Namvar , 05-29-2021, 09:24 PM
fedevel@fedevel-VirtualBox:~/bin$ cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.6 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.6 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
fedevel@fedevel-VirtualBox:~/bin$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.6 LTS
Release: 14.04
Codename: trusty
fedevel@fedevel-VirtualBox:~/bin$ uname -r
4.4.0-148-generic
fedevel@fedevel-VirtualBox:~/bin$
M. Namvar , 05-31-2021, 02:57 AM
I got tired.
I have neck pain!
but I never give up.
M. Namvar , 06-02-2021, 10:32 PM
I Fixed that.
1-Upgrade to ubuntu 14.04.7

then use this :
$sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt update
$ sudo apt install python3.6



In this article, we will explain how to install the latest Python 3.11 version on all Ubuntu releases via the apt package manager using deadsnakes PPA.




robertferanec , 06-05-2021, 02:44 AM
@M. Namvar does it work now? I could try it, but I tried it couple of months ago and it was working. Maybe something has changed - if you can't figure out what the problem is, I will try to install it on my computer.
M. Namvar , 06-05-2021, 04:15 AM
@robertferanec Hi
I can not run Repo init because of the Python version and HTTPS SSL error.
I tried and tried to install the SSL package. no luck!
then I upgraded ubuntu to 14.04.7.
SSL problem solved but installing Python became my new problem.
after all the above methods worked.

M. Namvar , 06-06-2021, 06:16 AM
if you are behind a proxy server, like me, the repo sync may fail. So use these commands to solve it.

Setting the proxy for Git
  1. Open a command prompt
  2. Run the following commands replacing USERNAME, PASSWORD, PROXY_ADDRESS, and PROXY_PORT with your network's information:
    1. git config --global --add http.proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT
    2. git config --global --add https.proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT
  3. Run the following commands to prevent SSH problems:
    1. git config --global url."https://".insteadOf git://
    2. git config --global url."https://github.com/".insteadOf git@github.com: (don't remove the final colon)
  4. If your computer is within a corporate network that uses personal network drives, ensure identical copies of your .gitconfig file exist on both the network drive and your local drive's user profile (e.g. F:\ and C:\Users\USERNAME).

Source : https://wet-boew.github.io/v4.0-ci/docs/proxy-en.html

Comments:
M. Namvar, 01-13-2022, 01:49 AM
HelloNo . I mean the username and password of the proxy server, which is usually given to you by the network administrator.Or if you set it up yourself, specify it in the proxy server software.Also port and IP address.
robertferanec , 06-07-2021, 05:35 AM
Thank you so much @M. Namvar
M. Namvar , 06-09-2021, 12:57 AM
meta-fsl-arm-extraerror: Cannot fetch poky from https://git.yoctoproject.org/git/poky


robertferanec , 06-14-2021, 07:24 AM
Comments:
M. Namvar, 06-15-2021, 10:08 PM
I face this problem when executing the repo sync command.Do you mean to install poky manually?
robertferanec , 06-16-2021, 12:16 AM
I will try to build it when I am at home.

PS: Maybe have a look into the manifest file and update link to poky?
robertferanec , 06-16-2021, 10:01 AM
I just tested it. Only what I had to do was update to python 3.6 ( exactly as you described in https://designhelp.fedevel.com/forum...7762#post17762 except pint 1) and then it just worked:



I have not seen any problems with HTTPS and anything else what you were describing in the other posts. After I installed python 3.6, it just worked.

Maybe it is something with your Ubuntu installation? Did you try to download the Ubuntu which I created? The link is under the lesson video in Links & Download TAB.
Comments:
M. Namvar, 06-16-2021, 11:30 PM
hi, I checked. my default python version is 2.7. I will try to change it to 3.6
qdrives , 06-18-2021, 01:11 PM
Do not ask me about Yocto, but python 2.x and 3.x are not compatible to each other!
M. Namvar , 07-01-2021, 12:26 AM
root@server:~/fsl-community-bsp/build# bitbake core-image-minimal
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:

Do not use Bitbake as root.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.



"Do not use Bitbake as root.", any ideas?
robertferanec , 07-01-2021, 01:05 AM
Please, where in the course you are? Which lesson and what minute?
Comments:
M. Namvar, 07-03-2021, 02:00 AM
lesson twoit solved by this command "touch conf/sanity.conf"thank you robert
M. Namvar , 08-01-2021, 11:14 PM
Hi Robert
Can you help me?
Yocto lesson 3
robertferanec , 08-02-2021, 02:34 AM
Please double check the changes you made ... maybe an error in the conf file? See the messages at the top of the screen.
Comments:
M. Namvar, 08-04-2021, 11:43 PM
it solved. I reviewed all the steps and fixed the problemMy problem was that I also ran the red cross part. The idea was that this part could be run after installationThankful
M. Namvar , 08-04-2021, 11:44 PM
Related to the above explanation
M. Namvar , 08-07-2021, 01:45 AM
Hi again
there is no u-boot.imx in the git directory.
Where did I go wrong؟
robertferanec , 08-09-2021, 03:16 AM
Maybe try to have a look into u-boot-fslc directory ... maybe the uboot you are building has a different commit number?
M. Namvar , 08-09-2021, 08:42 PM
it is empty
M. Namvar , 08-09-2021, 08:49 PM
Ah, Solved!
Clement , 01-13-2022, 07:21 AM
Originally posted by M. Namvar
if you are behind a proxy server, like me, the repo sync may fail. So use these commands to solve it.

Setting the proxy for Git
  1. Open a command prompt
  2. Run the following commands replacing USERNAME, PASSWORD, PROXY_ADDRESS, and PROXY_PORT with your network's information:
    1. git config --global --add http.proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT
    2. git config --global --add https.proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT
  3. Run the following commands to prevent SSH problems:
    1. git config --global url."https://".insteadOf git://
    2. git config --global url."https://github.com/".insteadOf git@github.com: (don't remove the final colon)
  4. If your computer is within a corporate network that uses personal network drives, ensure identical copies of your .gitconfig file exist on both the network drive and your local drive's user profile (e.g. F:\ and C:\Users\USERNAME).

Source : https://wet-boew.github.io/v4.0-ci/docs/proxy-en.html
I checked my network setting, it seems I didn't setup any proxy server. Is that mean i need to setup the proxy server before I can run the command,
"repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b jethro"?
robertferanec , 01-14-2022, 08:08 AM
@Clement please just confirm, you are behind a proxy, right?
Comments:
Clement, 01-15-2022, 12:00 AM
yes. I don't know whether I am using a proxy.
robertferanec , 01-15-2022, 01:15 PM
@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+."
robertferanec , 01-15-2022, 02:09 PM
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.
robertferanec , 01-17-2022, 05:00 AM
@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?
robertferanec , 01-18-2022, 04:32 AM
@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.
Comments:
Clement, 01-19-2022, 10:23 PM
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.
rutrilla , 01-20-2022, 12:03 PM
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!
robertferanec , 01-20-2022, 12:18 PM
I am testing it again. What Ubuntu did you download? This one? http://old-releases.ubuntu.com/relea...ktop-amd64.iso
Comments:
rutrilla, 01-20-2022, 12:31 PM
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 , 01-20-2022, 03:59 PM
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 ....

rutrilla , 01-21-2022, 07:11 AM
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...
robertferanec , 01-21-2022, 08:50 AM
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
Comments:
rutrilla, 01-21-2022, 10:27 AM
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 , 01-21-2022, 10:32 AM
@rutrilla fantastic! Please keep me posted.
@Clement please let me know if it helped to you too. Thank you.
Use our interactive Discord forum to reply or ask new questions.
Discord invite
Discord forum link (after invitation)

Didn't find what you were looking for?