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
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
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!
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?
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:
I hope this helps,