赞
踩
最近调飞思卡尔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-minimal You 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-minimal meta-toolchain meta-toolchain-sdk adt-installer meta-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-freescale Source code: https://github.com/Freescale/fsl-community-bsp-platform When creating patches, please use something like: git format-patch -s --subject-prefix='fsl-community-bsp-platform][PATCH' origin When 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 master master-next: for intrepid developers and testers Patches 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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。