各种被墙的情况下.飞思卡尔-iMx SDK下载与安装
生活随笔
收集整理的這篇文章主要介紹了
各种被墙的情况下.飞思卡尔-iMx SDK下载与安装
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
最近調飛思卡爾iMx6Q的硬件編解碼,需要找sdk參考.故此根據nxp官方手冊,下載與安裝sdk包環境
因為很多關鍵網址被TG檣了.所以花了九牛二虎之力才down下了sdk.
故此筆記如下:
這是飛思卡爾官方的安裝教程.我在其中做出備注.
官方GIT倉庫位置如下:https://github.com/xtianbetz/fsl-community-bsp-platform
跟本文類似的文章:http://blog.csdn.net/wince_lover/article/details/51456745
Freescale's Community Yocto BSP
===============================To get the BSP you need to have `repo` installed and use it as:Install the `repo` utility:
下載repo
$: mkdir ~/bin
$: curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$: chmod a+x ~/bin/repo
注:這一步最大的問題就是google被封了,下載不下來,超時,要別處搞個repo下來.我的方法是
$?git?clone?git://git.omapzoom.org/git-repo.git$?git?clone?git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/??$?cp?git-repo/repo?~/bin/repo
使用repo 抓下來BSP的源碼
Download the BSP source:$: PATH=${PATH}:~/bin
$: mkdir fsl-community-bsp
$: cd fsl-community-bsp
$: repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b dylan
$: repo sync
注:這一步最大的問題是googlesource被墻,提示如下:
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 110] Connection timed out
fatal: cloning the git-repo repository failed, will remove '.repo/repo'?
我的做法是: 使用--repo-url=https://gerrit-google.tuna.tsinghua.edu.cn/git-repo參數代理下載.
$repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master --repo-url=https://gerrit-google.tuna.tsinghua.edu.cn/git-repo
編譯源碼
Once this has complete, you will have all you need. To start a build, do:$: . ./setup-environment build
$: bitbake core-image-minimalYou can use any directory to host your build.The source code will be checked out at fsl-community-bsp/sources.
兩個問題:
1,按照source ./setup-environment build會提示:
ERROR: You must set DISTRO when creating a new build directory.
ERROR: You must set MACHINE when creating a new build directory.
所以實際要使用命令如下:
MACHINE=imx6qsabresd DISTRO=fslc-framebuffer source setup-environment build
2,python3版本問題.因為bitbake需要python3支持,然后ubuntu默認的python使用的是python2.7,python3的版本默認使用python3.2
提示如下:BitBake requires Python 3.4.0 or later as 'python3'
需要安裝python3.4或者更高版本.apt-get install python3.5
ubuntu 默認倉庫是沒有python3.5的,故此使用
$sudo add-apt-repository ppa:fkrull/deadsnakes
$sudo apt-get update
$sudo apt-get install python3.5
安裝之后將/usr/bin/python3 鏈接指向/usr/bin/python3.5
$sudo ln -sb /usr/bin/python3.5 /usr/bin/python3
$ls /usr/bin/python3 -l
lrwxrwxrwx 1 root root 18 ?9月 14 09:53 /usr/bin/python3 -> /usr/bin/python3.5
bitbake使用:
You can now run 'bitbake <target>'
Common targets are:core-image-minimalmeta-toolchainmeta-toolchain-sdkadt-installermeta-ide-support
bitbake提示如下:
Please install the following missing utilities: diffstat,chrpath
解決方法:
sudo apt-get install diffstat
sudo apt-get install chrpath
bitbake提示如下:
Your version of git is older than 1.8.3.1 and has bugs which will break builds. Please install a newer version of git.
吐槽:連庫都嫌我老了,嗚嗚,放開我,我要去狗帶.現在已經有庫開始找曾經的ubuntu12.4的麻煩了
提交包到倉庫--不是大神請跳過. Contributing ------------To contribute to this layer you should the patches for review to the mailing list.Mailing list:https://lists.yoctoproject.org/listinfo/meta-freescaleSource code:https://github.com/Freescale/fsl-community-bsp-platformWhen creating patches, please use something like:git format-patch -s --subject-prefix='fsl-community-bsp-platform][PATCH' originWhen sending patches, please use something like:git send-email --to meta-freescale@yoctoproject.org <generated patch>Using Development and Testing Branches --------------------------------------Replace the 'repo init' command above with one of the following:master: for developers$: repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b mastermaster-next: for intrepid developers and testersPatches are typically merged into master-next and then are merged into master after a testing and comment period. It's possible that master-next has something you want or need. But it's also possible that using master-next will break something that was working before. Use with caution.$: repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master-next
提交包到倉庫--不是大神請跳過. Contributing ------------To contribute to this layer you should the patches for review to the mailing list.Mailing list:https://lists.yoctoproject.org/listinfo/meta-freescaleSource code:https://github.com/Freescale/fsl-community-bsp-platformWhen creating patches, please use something like:git format-patch -s --subject-prefix='fsl-community-bsp-platform][PATCH' originWhen sending patches, please use something like:git send-email --to meta-freescale@yoctoproject.org <generated patch>Using Development and Testing Branches --------------------------------------Replace the 'repo init' command above with one of the following:master: for developers$: repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b mastermaster-next: for intrepid developers and testersPatches are typically merged into master-next and then are merged into master after a testing and comment period. It's possible that master-next has something you want or need. But it's also possible that using master-next will break something that was working before. Use with caution.$: repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master-next
總結
以上是生活随笔為你收集整理的各种被墙的情况下.飞思卡尔-iMx SDK下载与安装的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 阿里短信发送(跟着宝哥学java)
- 下一篇: 【FI模块】外包业务科目配置