ubuntu 18.04 i.mx6版本编译环境搭建:
export https_proxy=http://proxynj.zte.com.cn:80
export http_proxy=http://proxynj.zte.com.cn:80
export no_proxy=*.zte.com.cn,10.0.0.0/8,127.0.0.1
python /home/huqiqiao/login.py
rm -rf ~/bin
mkdir ~/bin
git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
cp git-repo/repo repo
chmod +x repo
chmod a+x ~/bin/repo
export PATH=~/bin:$PATH
git config --global user.name "Your Name"
git config --global user.email "Your Email"
git config --list
cd /home/huqiqiao/
mkdir imx-yocto-bsp
mkdir .repo
cp -rf ~/bin/git-repo .repo/repo
cd imx-yocto-bsp
root@bsp7-EC600G3:/home/huqiqiao/imx-yocto-bsp# 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
Get https://source.codeaurora.org/external/imx/imx-manifest
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 145 100 145 0 0 77 0 0:00:01 0:00:01 --:--:-- 77
100 166k 100 166k 0 0 8307 0 0:00:20 0:00:20 --:--:-- 9006
接收对象中: 100% (630/630), 166.17 KiB | 18.46 MiB/s, 完成.
处理 delta 中: 100% (365/365), 完成.
来自 /home/huqiqiao/imx-yocto-bsp/.repo/manifests.git/clone.bundle
- [新分支] master -> origin/master
- [新分支] imx-linux-thud -> origin/imx-linux-thud
- [新分支] imx-linux-sumo -> origin/imx-linux-sumo
- [新分支] imx-linux-rocko -> origin/imx-linux-rocko
- [新分支] imx-linux-morty -> origin/imx-linux-morty
- [新分支] imx-android-pie -> origin/imx-android-pie
- [新分支] imx-android-oreo -> origin/imx-android-oreo
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 1 (delta 0)
来自 https://source.codeaurora.org/external/imx/imx-manifest - [新标签] rel_imx_4.9.51_8qm_beta1 -> rel_imx_4.9.51_8qm_beta1
Your identity is: imhqq hu.qiqiao@zte.com.cn
If you want to change this, please re-run 'repo init' with --config-name
repo has been initialized in /home/huqiqiao/imx-yocto-bsp
-------------以上已实践-------------
-------------以下待执行-------------
repo sync -f -j8
1、vi ~/bin/repo
修改REPO_URL = https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
2、
git://git.yoctoproject.org 改为 https://git.yoctoproject.org/cgit/cgit.cgi
或者
git config --global url."git://git.yoctoproject.org".insteadOf https://git.yoctoproject.org/cgit/cgit.cgi
编译错误处理:
root@bsp7-EC600G3:/home/huqiqiao/imx-yocto-bsp# grep "git.yoctoproject.org" ./ -Hnr
./sources/base/README:32: GIT: git://git.yoctoproject.org/poky
./.repo/manifests/imx-4.14.98-2.0.0_ga.xml:6: <remote fetch="git://git.yoctoproject.org" name="yocto"/>
./.repo/manifests/imx-4.14.98-2.2.0.xml:6: <remote fetch="git://git.yoctoproject.org" name="yocto"/>
./.repo/manifests/imx-4.14.98-2.0.1_patch.xml:6: <remote fetch="git://git.yoctoproject.org" name="yocto"/>
./.repo/manifests/imx-virt-4.14.78-4.11-0.9.1_beta.xml:6: <remote fetch="git://git.yoctoproject.org" name="yocto"/>
./.repo/manifests/imx-4.14.78-1.0.0_ga.xml:6: <remote fetch="git://git.yoctoproject.org" name="yocto"/>
./.repo/manifests/imx-4.14.78-1.1.0.xml:6: <remote fetch="git://git.yoctoproject.org" name="yocto"/>
./.repo/manifests/imx-4.14.98-2.1.0.xml:6: <remote fetch="git://git.yoctoproject.org" name="yocto"/>
./.repo/manifests/imx-virt-4.14.98-4.11-0.10_ga.xml:6: <remote fetch="git://git.yoctoproject.org" name="yocto"/>
./.repo/manifests/imx-4.14.78-1.0.4_patch.xml:6: <remote fetch="git://git.yoctoproject.org" name="yocto"/>
./.repo/manifests/imx-4.14.62-1.0.0_beta.xml:6: <remote fetch="git://git.yoctoproject.org" name="yocto"/>
./.repo/projects/sources/poky.git/.repo_config.json:6: "git://git.yoctoproject.org/poky"
./.repo/projects/sources/poky.git/config:8: #url = git://git.yoctoproject.org/poky
./.repo/projects/sources/poky.git/config:9: url = git://git.yoctoproject.org/poky
./.repo/projects/sources/meta-freescale.git/.repo_config.json:6: "http://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale"
./.repo/projects/sources/meta-freescale.git/config:8: #url = git://git.yoctoproject.org/meta-freescale
./.repo/projects/sources/meta-freescale.git/config:9: url = git://git.yoctoproject.org/meta-freescale
===============================================================================================================
解决方法:上面文件中,
git://git.yoctoproject.org 改为 https://git.yoctoproject.org/cgit/cgit.cgi
或者
git config --global url."git://git.yoctoproject.org".insteadOf https://git.yoctoproject.org/cgit/cgit.cgi
===============================================================================================================
网友评论