主题 : 编译2.6.18 内核下载后为什么不能启动? 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 172
精华: 1
发帖: 48
金钱: 500 两
威望: 68 点
贡献值: 10 点
综合积分: 116 分
注册时间: 2008-02-27
最后登录: 2017-09-13
楼主  发表于: 2008-03-27 18:23

 编译2.6.18 内核下载后为什么不能启动?

管理提醒: 本帖被 qq2440 执行置顶操作(2009-12-07)
我编译通过后,下载到板子上,但是启动不了,请问是不是SUPPER VIVI
不支持还是编译内核那个配置选项没选上?请qq2440 kasim帮忙看看。。
级别: 侠客
UID: 172
精华: 1
发帖: 48
金钱: 500 两
威望: 68 点
贡献值: 10 点
综合积分: 116 分
注册时间: 2008-02-27
最后登录: 2017-09-13
1楼  发表于: 2008-03-27 21:45
先自己顶一个,希望能能提出点意见
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5407
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11054 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2008-03-28 23:24
put your log here please
"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: 172
精华: 1
发帖: 48
金钱: 500 两
威望: 68 点
贡献值: 10 点
综合积分: 116 分
注册时间: 2008-02-27
最后登录: 2017-09-13
3楼  发表于: 2008-03-31 10:50
启动如下
Enter your selection: b
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
发帖: 5407
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11054 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2008-03-31 15:49
从这个log看,Kernel启动挂在自解压之后。你可以通过'menuconfig' enable下面的debug选项:
(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
"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: 172
精华: 1
发帖: 48
金钱: 500 两
威望: 68 点
贡献值: 10 点
综合积分: 116 分
注册时间: 2008-02-27
最后登录: 2017-09-13
5楼  发表于: 2008-03-31 18:20
按照上面你说的改后
Enter your selection: b
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.

Error: unrecognized/unsupported machine ID (r1 = 0x0000030e).

Available machine support:

ID (hex)        NAME
0000016a        SMDK2440

Please check your kernel config and/or bootloader.
级别: 侠客
UID: 172
精华: 1
发帖: 48
金钱: 500 两
威望: 68 点
贡献值: 10 点
综合积分: 116 分
注册时间: 2008-02-27
最后登录: 2017-09-13
6楼  发表于: 2008-03-31 18:22
我再改了BOOTLAD MACH_TYPE = 362 出现以下错误,请问内核那里没有配置?

Enter your selection: b
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 = 362
NOW, Booting Linux......
Uncompressing Linux.............................................................
......................... done, booting the kernel.
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5407
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11054 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2008-03-31 20:28
想像这位大哥一样因祸得福的话可以看看这个
http://www.hackhero.com/bbs/simple/index.php?t29291.html

这是arm.linux.org.uk上对于这个问题的解决方法
http://lists.arm.linux.org.uk/lurker/message/20020111.100639.9fafb9d1.html
"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: 172
精华: 1
发帖: 48
金钱: 500 两
威望: 68 点
贡献值: 10 点
综合积分: 116 分
注册时间: 2008-02-27
最后登录: 2017-09-13
8楼  发表于: 2008-04-01 20:46
自己查了很久。有个问题就是
Uncompressing Linux.............................................................
......................... done, booting the kernel.

linux version 2.6.13(root@localhost.localdomain) 这句是调用了startup.c 那个函数得出得呢?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5407
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11054 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2008-04-01 21:05
如果你能看到linux version 2.6.13(root@localhost.localdomain) ,这句log是从定义在init/main.c的start_kernel()里的printk(linux_banner)里打印出来的
"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."