Hello support team,
i have followed the instruction given in the i.MX Yocto Project User's Guide, Rev. L4.9.11_1.0.0-ga+mx8-alpha, 09/2017
ubuntu 16.04
Packages
1.sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat libsdl1.2-dev
mkdir ~/bin (this step may not be needed if the bin folder already exists)
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
2. Add the following line to the .bashrc file to ensure that the ~/bin folder is in your PATH variable.
export PATH=~/bin:$PATH
$ git config --global user.name "Your Name"
$ git config --global user.email "Your Email"
$ git config --list
mkdir fsl-release-bsp
$ cd fsl-release-bsp
$ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-morty -m
imx-4.9.11-1.0.0_ga.xml
Below is the message got while downloading the source
- snippet -
repo init -u https://source.codeaurora.org/external/imx/fsl-arm-yocto-bsp -b imx-morty -m imx-4.9.11-1.0.0_ga.xml
Traceback (most recent call last):
File "/home/shan/yocto/fsl-release-bsp/.repo/repo/main.py", line 42, in <module>
from git_config import RepoConfig
File "/home/shan/yocto/fsl-release-bsp/.repo/repo/git_config.py", line 774
self._Set(f'superproject.{key}', value)
^
SyntaxError: invalid syntax
- snippet end
after installing repo and given sudo below error message
sudo repo init -u https://source.codeaurora.org/external/imx/fsl-arm-yocto-bsp -b imx-morty
File "/home/hope/shankar/yocto/fsl-release-bsp/.repo/repo/main.py", line 79
file=sys.stderr)
^
SyntaxError: invalid syntax
i have tried below link also not working
http://git.freescale.com/git/cgit.cgi/imx/fsl-arm-yocto-bsp.git/tree/README?h=imx-morty
can you please provide your instruction to solve this issue
Thanks
Hi @shankovai
The error caused by using wrong version of python. You need to change proper python for the current repo and Linux Distro.
You can check the current version of your Host Distro for the python. which should be python3 for repo to work correctly.
Best regards
Harvey