Configure yocto source for i.MX8QM platform

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configure yocto source for i.MX8QM platform

4,315 Views
chaithanya_padm
Contributor II

Hi All,

I am trying to build yocto for i.MX8 platform. I am facing an error when i give DISTRO command to configure the yocto source.

Command given :   

$ DISTRO=fsl-imx-xwayland MACHINE=imx8qm_iwg27m source fsl-setup-release.sh -b build_imx8qm

Error found:

Build directory is  build_imx8qm
OpenEmbedded requires 'python' to be python v2 (>= 2.7.3), not python v3.
Please set up python v2 as your default 'python' interpreter.

 ERROR - No build directory is set yet. Run the 'setup-environment' script before running this script to create  .

I tried to set python2 as default. But I failed in doing that.

So, Can I expect few solutions to fix this bug?

Thanks in advance

Regards,

Chaithanya

4 Replies

4,202 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Chaithanya,

From what I see you are porting your own custom board to the Linux BSP Release, although you do not specify which BSP release you are using. I’m guessing you are using a 4.x due to the naming of the setup release script.

It appears that the default python installed on your host is Python 3. I would recommend using an Ubuntu 16.04 or Ubuntu 18.04 host and installing the required packages listed on the i.MX Yocto Porting Guide. The default Python version for these Ubuntu versions is Python 2.7.17 so you should be able to revert to it if you have installed Python 3.

I hope this information helps!

Regards,

4,202 Views
chaithanya_padm
Contributor II

Hi Gusarambula,

 

Thank you for the reply, You guessed it right, linux version used is 4.14.98. But I am using ubuntu 16.04 itself, still python3 is the default one. How to make it work?

 

Regards,

Chaithanya

0 Kudos
Reply

4,202 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Chaithanya,

It's odd that you have Python 3.0, as I think 2.7.x is the default version for Ubuntu 16.04. You may try the following command just to check:

$ sudo apt-get install python-minimal

If this does not help, you may install it manually from Python's website:

https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz 

I hope this helps,

Regards,

4,202 Views
chaithanya_padm
Contributor II

Hi gusarambula,

Thanks for the reply. That issue got fixed after making python2 as default.

Regards,

Chaithanya