欢迎扫码关注微信公众号:柒零玖嵌入式,更多嵌入式软硬件相关分享!
tar -jxvf gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux -C /opt
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin"
tar xvf MYS-IMX6UL-uboot.tar.bz2
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- mys_imx6ull_14x14_nand_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
setenv ipaddr 192.168.1.17
setenv ethaddr 00:0c:29:4d:e4:f4
setenv gatewayip 192.168.1.1
setenv netmask 255.255.255.0
setenv serverip 192.168.1.102
saveenv
tar -xvf MYS-IMX6UL-Linux.tar.gz
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- mys_imx6_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage dtbs modules
(4)制作文件系统
setenv bootargs noinitrd root=/dev/nfs nfsroot=192.168.1.102:/work/new_work/rootfs_2440 ip=192.168.1.17:192.168.1.102:192.168.1.1:255.255.255.0::eth0:off init=/linuxrc console=ttymxc0,115200
Set wshShell = CreateObject("WScript.shell")
wshShell.run "mfgtool2.exe -c ""linux"" -l ""NAND Flash"" -s ""board=sabreauto"" -s ""lite=l"" -s ""6uluboot=14x14evk"" -s ""nand=nand"" -s ""6uldtb=14x14-evk"" -s ""nanddtb=gpmi-weim"" -s ""part_uboot=0"" -s ""part_kernel=1"" -s ""part_dtb=2"" -s ""part_rootfs=3"" "
Set wshShell = Nothing
我们看到,这里相当于定义了一些变量。后面会用到这里定义的东西,如
Jumping to OS image.
为界限,可以分为上阶段跟下阶段,上阶段是把“媒介镜像”烧录到 ddr3 3 内存里并运行起来,下阶段是烧录“ file”
>
>
>
>
>
注释下的内容严格规定了 s MFGTools 的烧录过程,分区-->烧写 uboot- --> >烧写 uImage- --> >烧写 dtb- --> >烧写 rootfs。0x000000000000-0x000000500000 : "boot"
0x000000500000-0x000000f00000 : "kernel"
0x000000f00000-0x000001000000 : "dtb"
0x000001000000-0x000010000000 : "rootfs"
//烧写内核
nand erase 0x500000 0xa00000
tftp zImage
nand write 0x80800000 0x500000 $filesize
//烧写设备树
nand erase 0xf00000 0x100000
tftp zImage-imx6ull-14x14-evk-gpmi-weim.dtb
nand write 0x80800000 0xf00000 $filesize