imx6 yocto工程下载和编译

imx6 yocto工程下载和编译
ubuntu版本:ubuntu-14.04.5-desktop-amd64

一、
1、sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev
2、sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc
3、sudo apt-get install u-boot-tools

二、
1、mkdir ~/bin
2、curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
   或者
   curl http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo> ~/bin/repo
3、chmod a+x ~/bin/repo
   export PATH=~/bin:$PATH
   或者
   sudo mv ~/bin/repo /usr/bin/
   rm -fr ~/bin

三、
1、mkdir fsl-release-bsp
2、cd fsl-release-bsp
3、git config --global user.name "Your Name" 
4、git config --global user.email "Your Email"
5、git config --list
6、repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.52-1.1.0_ga
7、repo sync
注意:如果出错了就重新repo sync,直到成功为止;另外有的时候可能会很长时间不动了,看下载的流量也一直是0,也可以ctrl+C终止,然后重新repo sync

四、
1、cd ~/fsl-release-bsp
2、第一次
   source setup-environment
   DISTRO=fsl-imx-x11 MACHINE=imx6dlsabresd source fsl-setup-release.sh -b imx6dl_x11_minimal_build
   修改imx6dl_x11_minimal_build/conf/local.conf配置文件,BB_NUMBER_THREADS和PARALLEL_MAKE修改为实际虚拟机CPU数量的两倍
   以后
   source setup-environment imx6dl_x11_minimal_build
3、bitbake core-image-minimal
   bitbake meta-toolchain
   bitbake fsl-image-mfgtool-initramfs
   bitbake fsl-image-qt5
   bitbake meta-toolchain-qt5
   注意:如果出现错误,可以ctrl+c终止,然后在重新运行,直到编译成功为止。

bitbake -c compile -f u-boot-imx
bitbake -c deploy -f u-boot-imx

bitbake -c menuconfig -v linux-imx 
bitbake -c compile -f linux-imx
bitbake -c deploy -f linux-imx

bitbake -c menuconfig busybox
bitbake busybox -f -c compile
bitbake core-image-minimal

u-boot源码:~/fsl-release-bsp/imx6dl_build/tmp/work/imx6dlsabresd-poky-linux-gnueabi/u-boot-imx/2015.04-r0/git
kernel源码:~/fsl-release-bsp/imx6dl_build/tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/3.14.52-r0/git
镜像:~/fsl-release-bsp/imx6dl_build/tmp/deploy/images/imx6dlsabresd/

你可能感兴趣的:(Linux)