问题还没有解决,记录一下吧。
一网友发来邮件求助,说是移植的u-boot启动不了内核,是2013.7版本的,移植到s5pv210上的。我之前移植的2013.1版本的没有问题的。
一开始觉得不是什么事,从以下几个方面查了:
a.传参数 机器码
b.内存初始化
c.检查拷贝到内存中的kernel是否完整
但是发现问题不是那么回事,上边的都排查过也没有找到问题所在,这个看来不是老生常谈的问题了。值得记录一下。
再深入的查找原因:
1.发现用bootm启动uImage能到这一步:
[Ver130807-TINY210v3]# fatload mmc 1 20000000 uImage reading uImage 4816856 bytes read in 259 ms (17.7 MiB/s) [Ver130807-TINY210v3]# bootm 20000000 ## Booting kernel from Legacy Image at 20000000 … Image Name: Linux-3.0.8-FriendlyARM Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4816792 Bytes = 4.6 MiB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum … OK Loading Kernel Image … OK Starting kernel …
2.用go直接把zImage当成裸机程序来启动也启动不了
[Ver130807-TINY210v3]# fatload mmc 1 20000000 zImage reading zImage 4816792 bytes read in 250 ms (18.4 MiB/s) [Ver130807-TINY210v3]# go 20000000 ## Starting application at 0x20000000 …
内核是一句都没有打印出来,一般情