刚刚将debian lucid-no-graphical 完全在blaze上跑起来,记录下过程:
1. FAT boot分区MLO + u-boot.bin + uImage;
2. Ext3 root分区:rootstock制作的no-graphical minimal fs;
3. 流程:
bootloader -> load kernel to ram -> kernel uncompressed & boot -> init -> /etc/init/rc-sysinit.conf -> /etc/init.d/rcS -> DEFAULT_RUNLEVEL=2 -> telinit "${DEFAULT_RUNLEVEL}"
4. bootargs:
setenv bootargs console=ttyO2,115200n8 noinitrd mem=xxxM root=/dev/mmcblkxxx rootdelay=1 ip=dpcp mmcinit 0;
fatload mmc 0 0x80500000 uImage; bootm 80500000
=> /etc/init/rc-sysinit.conf 中的 “for ARG in $(cat /proc/cmdline)” 会检测到0, 然后会改变DEFAULT_RUNLEVEL至0,导致开机一开进去就进入了runlevel 0模式(system halt)
setenv bootargs console=ttyO2,115200n8 noinitrd mem=xxxM root=/dev/mmcblkxxx rootdelay=1 ip=dhcp;
setenv bootcmd 'mmcinit 0; fatload mmc 0 0x80500000 uImage; bootm 80500000'
boot
=> 正确的开机参数设置