U-Boot 引导加载器的使用指南
1. 使用 U-Boot 的环境变量
U-Boot 启动并运行后,可通过设置适当的环境变量来对其进行配置。U-Boot 环境变量的使用与 Unix 外壳(如 bash)中的环境变量使用非常相似。要查看目标设备上环境变量的当前值,可使用printenv命令。以下是在 OpenMoko GTA01 开发硬件上找到的部分环境变量:
GTA01Bv4 # printenv bootargs= bootdelay=3 baudrate=115200 usbtty=cdc_acm bootargs_base=rootfstype=jffs2 root=/dev/mtdblock4 console=ttySAC0,115200 console=tty0 loglevel=8 stdin=serial stdout=serial stderr=serial dontask=y bootcmd=setenv bootargs ${bootargs_base} ${mtdparts}; bootm 0x30100000 menu_1=Set console to USB: setenv stdin usbtty; setenv stdout usbtty; se menu_2=Set console to serial: setenv stdin serial; setenv stdout serial; setenv stderr serial menu_3=Power off: neo1973 power-off splashimage=nand read.e 0x3600000