当我们要下载yocto工程的时候需要用到repo,可是因为谷歌的关系,往往下载不下来,这时候往往都是网络的原因。
1.解决repo工具下载不下来的问题
git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
然后将git-repo的repo,copy到 ~/bin下面。
chmod a+x ~/bin/repo
2.解决repo init 下载问题
在~目录下,sudo gedit .bashrc 将如下添加到文件最后
export PATH=~/bin:$PATH
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
这样问题即可解决。