1, 编译环境按照E9手册操作,直到找到,输入gcc -v
2, 输入./arm-none-linux-gnueabi-gcc -v
3, 环境做好后,再安装apt-get install lib32z1这个文件
4, 后面通过chgrp -R root /opt把此文件夹内所有文件组改为root, 通过chown -R root /opt把此文件夹内所有文件用户改为root,用同样的方法修改要编译的uboot,内核文件夹组为root,用户为root
5, 此时进入到/uboot_E9_1.3.4_for_Ubuntu目录下,输入make clean先清理一下文件,再输入make mx6q_sabresd_android_config进行配置,最后输入make或make -j6进行编译 ,其中-j6表示6个核,-j4表示4核,表明用几个核进行编译,多核编译速度会快一些
6, 编译内核时,找不到Unable to find the ncurses libraries,需要安装apt-getinstall ncurses-dev此文件,然后再按正常流程编译内核
uboot编译:
tar xvfjuboot_E9_1.3.4_for_Ubuntu.tar.bz2 -C /
make mx6q_sabresd_android_config
make
ubuntu编译:
tar xvfjlinux_E9_3.0.35_for_Ubuntu.tar.bz2 -C /
cp imx6_config .config
make menuconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage