Linux内核启动过程
作者:互联网
U-boot设置从网络启动(从服务器端,调试)
- 上电,启动uboot,计时n秒;
- n秒后,自动运行boot命令,boot读取环境变量bootcmd;
//网络挂载根文件系统
setenv bootargs 'console=ttymxc0,115200 root=/dev/nfs nfsroot=192.168.1.250:/home/liyou/linux/nfs/rootfs,proto=tcp rw ip=192.168.1.251:192.168.1.250:192.168.1.1:255.255.255.0::eth0:off'
saveenv
//从网络启动设置环境变量bootcmd
setenv bootcmd 'tftp 80800000 zImage; tftp 83000000 imx6ull-alientek-emmc.dtb; bootz 80800000 - 83000000'
saveenv
//从本地存储启动设置环境变量bootcmd
setenv bootcmd 'fatload mmc 1:1 80800000 zImage; fatload mmc 1:1 83000000 imx6ull-alientek_emmc.dtb; bootz 80800000 - 83000000'
savenev
标签:83000000,启动,80800000,Linux,boot,192.168,setenv,内核,bootcmd 来源: https://blog.csdn.net/aiyueyueaoe/article/details/120123564