使用UBOOT启动linux操作系统,几种常用启动方法:
一、内核从tftp网络启动
bootcmd=tftp c2000000 uImage;tftp c4000000 stm32mp157d-atk.dtb;bootm c2000000 - c4000000
二、内核从emmc启动:
setenv bootcmd ‘ext4load mmc 1:2 c2000000 uImage;ext4load mmc 1:2 c4000000 stm32mp157d-atk.dtb;bootm c2000000 - c4000000’
三、文件系统从EMMC启动:
setenv bootargs ‘console=ttySTM0,115200 root=/dev/mmcblk1p3 rootwait rw’
四、文件系统从NFS启动:
setenv bootargs ‘console=ttySTM0,115200 root=/dev/nfs nfsroot=192.168.0.103:/home/hqq/linux/nfs/rootfs,proto=tcp rw ip=192.168.0.104:192.168.0.103:192.168.0.1:255.255.255.0::eth0:off’