解壓源碼
$ cd ~/imx6ull/source
$ tar -jxvf u-boot-2016.03-svn351-Release.20190128.tar.bz2
$ tar -jxvf linux-4.1.15-20190424.ea5a2b5.tar.bz2
編譯u-boot和u-boot環(huán)境變量腳本
$ cd ~/imx6ull/source/u-boot-2016.03
$ make myimx6ek140p-6y-256m-emmc_defconfig (根據(jù)核心板硬件配置,選擇對應配置)
$ make -j4
$ mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n “myzr bootscripts” -d board/myzr/bootscripts/myimx6a7_l4115_emmc_script.cmd my_environment_emmc.scr
編譯zImage和dtb
$ cd ~/imx6ull/source/linux-4.1.15
$ make myimx6a7_defconfig (根據(jù)核心板A7硬件配置,選擇對應配置)
$ make -j4
$ make myimx6ek140p-6y-256m-emmc.dtb (根據(jù)核心板硬件配置,選擇對應配置)