按照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'

本文详细记录了在使用NXP i.MX Yocto Project搭建Linux开发环境过程中,遇到的repoinit命令失败问题及其解决方案。通过设置正确的REPO_URL环境变量,成功解决了因网络问题导致的git-repo克隆失败。

被折叠的 条评论
为什么被折叠?



