主题 : 为什么我移植的内核, 到启动内核就停了? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
楼主  发表于: 2008-02-01 09:58

 为什么我移植的内核, 到启动内核就停了?

Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySA
C0"
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux.............................................................
......... done, booting the kernel.
然后就没动静了?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-02-01 10:12
引用楼主xydjh于2008-02-01 09:58发表的 为什么我移植的内核, 到启动内核就停了? :
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySA
C0"
.......

这可能有多种原因,最可能的一种是Machine ID不匹配。 SuperViVi会传递machine ID=782, 如果想要kernel启动,必须确保你config的Machine ID与之匹配。检查一下 kernel 的arch/arm/tools/mach-types,看一下你配置的machine ID是多少。
关于如何启动ARM Linux Kernel, 我推荐你看一下这个网站的资料:
http://www.arm.linux.org.uk/developer/booting.php
[ 此贴被kasim在2008-02-01 10:19重新编辑 ]
"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: 44
精华: 0
发帖: 39
金钱: 390 两
威望: 48 点
综合积分: 78 分
注册时间: 2008-01-28
最后登录: 2009-04-30
2楼  发表于: 2008-02-01 16:51
Machine ID是匹配的啊
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2008-02-01 17:23
引用第2楼xydjh于2008-02-01 16:51发表的  :
Machine ID是匹配的啊


menu config, 选中kernel hacking下面的:
[*] Kernel low-level debugging functions
[*]  Kernel low-level debugging messages via S3C UART
  (0) S3C UART to use for low-level debug 

根据你开发板用的调试串口选择'S3C UART to use for low-level debug', 我用的是UART0
"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."