主题 : 收藏 uboot引导内核错误——booting the kernel 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 74119
精华: 0
发帖: 13
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2012-07-19
最后登录: 2017-09-13
楼主  发表于: 2012-12-20 16:48

 收藏 uboot引导内核错误——booting the kernel

U-Boot 1.1.6 (Dec 20 2012 - 13:58:04)
DRAM:  64 MB
Flash:  2 MB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x60000, size 0x500000
5242880 bytes read: OK
## Booting image at 30008000 ...
   Image Name:   Linux kernel Image by embedclub
   Created:      2012-05-08   8:32:07 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2288308 Bytes =  2.2 MB
   Load Address: 30008000
   Entry Point:  30008040
   Verifying Checksum ... OK
   XIP Kernel Image ... OK

Starting kernel ...

Uncompressing Linux.................................................................................................................................................... done, booting the kernel.

uboot引导内核到这就死掉了,不知道什么原因 ,机器码正确,内核也用2010.03的uboot测试过,可以引导启动,郁闷中、、难道不同版本的uboot的内核还要重新编译,不要了吧!!谁给点信息啊
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-12-20 17:22
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
贡献值: 3 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
2楼  发表于: 2012-12-20 19:42
楼上帖子不错,标记一下
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 新手上路
UID: 74119
精华: 0
发帖: 13
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2012-07-19
最后登录: 2017-09-13
3楼  发表于: 2012-12-20 22:30
谢谢斑竹,老帖是好贴子
里面的“想像这位大哥一样因祸得福的话可以看看这个
http://www.hackhero.com/bbs/simple/index.php?t29291.html
这个页面已经没有了~~~好像看啊,
就加了一个
(1)  Kernel hacking --->
[*] Kernel debugging
[*] Kernel low-level debugging functions
[*]  Kernel low-level debugging messages via S3C2410 UART
(0) S3C2410 UART to use for low-level debug

(2) System Type  --->
(0) S3C2410 UART to use for low-level messages

然手编译后下载,直接到Starting kernel ...就死了,没有什么信息的说,内核的debug调试方法不太会啊,明天再细看看~
级别: 新手上路
UID: 74119
精华: 0
发帖: 13
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2012-07-19
最后登录: 2017-09-13
4楼  发表于: 2012-12-20 22:34

 回 1楼(kasim) 的帖子

参考http://blog.163.com/cailing_07@126/blog/static/339150872012041041383/
在include/configs/mini2440.h 中添加了#define CONFIG_CMDLINE_TAG这个宏就行了,内核可以正确引导了,具体原因还不太清楚
版主能给点意见么?如果内核没有读到uboot的参数,不是会使用配置参数吗,为什么不能呢?明天在看看吧!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2012-12-21 10:19

 回 4楼(racwin) 的帖子

正常情况下,如果没有u-boot传递的参数,内核会使内建的命令行(在内核配置里通过CONFIG_CMDLINE指定)。关于内核启动时的调试,我在http://www.aiothome.net/read.php?tid=207&page=2#360发过一个可以让串口在内核串口驱动初始化之前输出调试信息的补丁,你可以试一下。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."