- 正常启动参数设置内容与格式
setenv bootdelay 3
setenv boudrate 115200
setenv ethaddr 00:11:22:33:44:55
setenv ipaddr 192.168.1.20
setenv serverip 192.168.1.178
setenv gateway 192.168.1.1
setenv netmask 255.255.255.0
- 设置传递给内核的启动参数,文件系统格式为ubifs,不同文件系统参数不同
setenv bootargs noinitrd console=ttySAC0 ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc video=fb:WX4300F ppp=none
- 从nandflash中启动的命令:
从0x40000地址开始读300000B大小的数据到内存0xc0008000地址,从0xc0008000地址开始启动执行
setenv bootcmd "nand read c0008000 40000 300000;bootm c0008000"
- 从tftp服务器中启动的命令:
setenv bootcmd "tftpboot 0xc0008000 zImage;bootm 0xc0008000"
- 设置开发板的输入输出为串口
setenv stdin serial
setenv stdout serial
setenv stderr serial