拿走不谢!
ls mmc 1:1
setenv bootargs ‘console=ttymxc0,115200 root=/dev/mmcblk1p2 rootwait rw’
setenv bootcmd ‘mmc dev 1; fatload mmc 1:1 80800000 zImage; fatload mmc 1:1 83000000 imx6ull-14x14-emmc-4.3-800x480-c.dtb; bootz 80800000 - 83000000;’
saveenv
setenv bootargs ‘console=ttymxc0,115200 root=/dev/mmcblk1p2 rootwait rw’
setenv bootcmd ‘tftp 80800000 zImage; tftp 83000000 box/imx6ull-14x14-emmc-4.3-800x480-c.dtb; bootz 80800000 - 83000000’
setenv bootcmd ‘tftp 80800000 zImage; tftp 83000000 imx6ull-alientek-emmc.dtb; bootz 80800000 - 83000000’
saveenv
uboot的目的就是启动linux内核,所以不要管那么多的外设,只需要解决:
串口、NAND(EMMC、SD卡)、网络、LCD驱动
在线nfs挂载根文件系统
setenv bootcmd ‘mmc dev 1; fatload mmc 1:1 80800000 zImage; fatload mmc 1:1 83000000 imx6ull-14x14-emmc-4.3-800x480-c.dtb; bootz 80800000 - 83000000;’
setenv bootargs ‘console=ttymxc0,115200 root=/dev/nfs rw nfsroot=192.168.136.128:/home/rgd/linux/nfs/rootfs/yocto+QT库_CC ip=192.168.136.126:192.168.136.128:192.168.136.1:255.255.255.0::eth0:off’ =====卡在start kernel log
设置lcd作为控制台
setenv bootargs ‘console=tty1,115200 root=/dev/nfs rw nfsroot=192.168.136.128:/home/rgd/linux/nfs/rootfs/JC ip=192.168.136.126:192.168.136.128:192.168.136.1:255.255.255.0::eth0:off’
设置串口tty1作为控制台
setenv bootargs ‘console=ttymxc0,115200 root=/dev/nfs rw nfsroot=192.168.136.128:/home/rgd/linux/nfs/rootfs/JC ip=192.168.136.126:192.168.136.128:192.168.136.1:255.255.255.0::eth0:off’
将lcd显示屏tty1、串口ttymxc0作为终端显示:
setenv bootargs ‘console=tty1 console=ttymxc0,115200 root=/dev/nfs rw nfsroot=192.168.136.128:/home/rgd/linux/nfs/rootfs/JC ip=192.168.136.126:192.168.136.128:192.168.136.1:255.255.255.0::eth0:off’
setenv bootargs ‘console=ttymxc0,115200 root=/dev/nfs rw nfsroot=192.168.136.128:/home/rgd/linux/nfs/rootfs/ubuntu16.04_JC ip=192.168.136.126:192.168.136.128:192.168.136.1:255.255.255.0::eth0:off’ ====为什么失败