leifenger 发表于 2014-12-17 13:12
楼主,你在uboot下下载的uImage与initramfs.cpio.gz.uboot是不完整的内核与文件系统,
只能起来简易的系统 ...
嗯,就像你说的,我现在就是在启动这个简易系统的时候出错了。我是手动操作的下边这几步,并没有用mfgtoosl:
<CMD state="BootStrap" type="boot" body="BootStrap" file ="u-boot.bin" >Loading U-boot</CMD>
<CMD state="BootStrap" type="load" file="uImage" address="0x10800000" loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Kernel.</CMD>
<CMD state="BootStrap" type="load" file="initramfs.cpio.gz.uboot" address="0x10C00000" loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Initramfs.</CMD>
<CMD state="BootStrap" type="jump" > Jumping to OS image. </CMD>
我是分别把uImage和initramfs.cpio.gz.uboot放到0x10800000和10c00000 RAM处。
然后bootm 0x10800000
报错:
snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC (0)
VFS: Cannot open root device "(null)" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
根据log显示好像是需要root=参数设置。但是initramfs启动是不需要root=参数设置的。我也曾经设置过类似root=dev/ram,ram0,ram1之类都不可以
还有如果我执行
bootm 1080000 10c00000程序就会卡在
mmcblk0: mmc0:0001 SEM08G 7.39 GiB
mmcblk0boot0: mmc0:0001 SEM08G partition 1 1.00 MiB
Freeing init memory: 192K
mmcblk0: p1 p2 p3 < p5 p6 p7 p8 > p4
mmcblk0: p4 size 13336576 extends beyond EOD, truncated
Starting UTP
ln: /etc/mtab: File exists
disable turn off display
mmcblk0boot1: unknown partition table
mmcblk0boot0: unknown partition table
Starting the hotplug events dispatcher udevd
Synthesizing initial hotplug evenudevd (1976): /proc/1976/oom_adj is deprecated, please use /proc/1976/oom_score_adj instead.
ts
uuc 0.4 [built Aug 16 2013 01:24:08]
UTP: Waiting for device to appear
UTP: file/device node /dev/utp already exists
cpu_id is 0
到这里,虽然终端可以输入,但是什么反应都没有
明明跟mfg执行的流程一样,但为什么我的始终没有启动。一直在initramfs.cpio.gz.uboot出问题 |