#适用于 Ubuntu 14.04 x64
imx6qdl-cubox-i.dtsi
#更新系统
sudo apt-get update
sudo apt-get upgrade
#安装基本包
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib
build-essential chrpath socat
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib
build-essential chrpath socat
#安装附加包
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
docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils
libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc
#安装U-boot工具
sudo apt-get install u-boot-tools
#设置 repo 环境
mkdir ~/bin
echo 'PATH=~/bin:$PATH' >>~/.bashrc
source ~/.bashrc
#下载
# 使用代理的方式如下
# curl -x http://192.168.1.10:7070 -L https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
#设置 GIT 用户信息
git config --global user.name "Null"
git config --global user.email "hetaoos@gmail.com"
git config --list
git config --global user.name "Null"
git config --global user.email "hetaoos@gmail.com"
git config --list
mkdir fsl-release-bsp
cd fsl-release-bsp
cd fsl-release-bsp
# 可能需要分别设置代理
# export HTTP_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
# export HTTPS_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
# export HTTP_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
# export HTTPS_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
#初始化版本库
repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga
repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga
#同步版本库
repo sync
repo sync
#设置编译环境
MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11
#构建编译环境,包括下载源码,编译镜像等
MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11
#构建编译环境,包括下载源码,编译镜像等
bitbake fsl-image-qt5
--------------------
U-Boot 编译
echo 'PATH=~/fsl-release-bsp/build-x11/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:$PATH' >>~/.bashrc
source ~/.bashrc
cd ~/fsl-release-bsp/build-x11/tmp/work/imx6qsabresd-poky-linux-gnueabi/u-boot-imx/2014.04-r0/git
//指定交叉编译对象
export ARCH=arm
export CROSS_COMPILE=arm-poky-linux-gnueabi-
make mx6qsabresd_config
make
sudo dd if=u-boot.imx of=/dev/sdb bs=1k seek=1
sync
//dd把一个文件的一部分拷成另一个文件、if和of参数表示输入文件和输出文件、bs拷贝多少字节、seek拷贝的次数
#启动时设置 u-boot 等待时间
setenv bootdelay 0
saveenv
--------------------
内核位置
~/fsl-release-bsp/build-x11/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git
export ARCH=arm
export CROSS_COMPILE=arm-poky-linux-gnueabi-
将上面两句话加入到 .bashrc控制台
# gedit ~/.bashrc之后执行
source ~/.bashrc //修改~/.bashrc
#make menuconfig 支持
sudo apt-get install ncurses-dev
#make gconfig 支持
sudo apt-get install libgtk2.0-dev libglib2.0-dev libglade2-dev
#i.MX6Q 配置文件位置
cd ~/fsl-release-bsp/build-x11/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/arch/arm/configs/imx_v7_defconfig
#清理
ls
#初始化
//指定目标配置文件
make imx_v7_defconfig
#编译
make
#修改
make gconfig
#生成的镜像位置
git/arch/arm/boot
----------------------
在终端中启动具有图形界面的应用程序
export DISPLAY=:0
firefox