按照NXP官网获取的文档i.MX_Yocto_Project_User's_Guide.pdf说明,下载imx6相关的linux源代码过程。
遇到如下repo init失败问题.
$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest
-b imx-linux-warrior -m imx-4.19.35-1.1.0.xml
$ repo sync
失败的log:
$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
gpg: keybox '/home/wll/.repoconfig/gnupg/pubring.kbx' created
gpg: /home/wll/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 16530D5E920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported
gpg: Total number processed: 1
gpg: imported: 1
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 101] Network is unreachable
fatal: cloning the git-repo repository failed, will remove '.repo/repo'
解决方法:
在repo init之前,加入一个环境变量:
export REPO_URL='https://mirrors.ustc.edu.cn/aosp/git-repo'