免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 12193 | 回复: 12
打印 上一主题 下一主题

Uncompressing Linux..done, booting the kernel后暂停 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-11 17:18 |只看该作者 |倒序浏览
8可用积分
Uncompressing Linux..done, booting the kernel后暂停        


Linux 2.6 Freescale MXC processor


Choose an option from below:

1. Load kernel to RAM and then boot from [0x80008000]
2. Change kernel loading address [0x80008000]
3. Enter command line option for kernel

Please enter selection -> Timeout occured



-->Booting from RAM...

-->Size: 00171078
-->Crc: 0C1ABB98
Copying pages....
-->Calculated CRC: 0C1ABB98

-->Found valid CRC
-->Starting kernel...
Uncompressing Linux.............................................................
....................................... done, booting the kernel.
==========booting the kernel.==========

最后一行是自己加在代码里的。到这就死了,IMX31芯片很热,估计是死循环了。
Nandboot loader默认选1,从0x80008000启动内核.
内核版本2.6.25
启动参数是:console=ttymxc0,115200 noinitrd root=/dev/mtdblock2 rw rootfstype=jffs2 ip=off
查了一下原因:内核配置 启动参数 串口驱动等等。试过后依旧。
大家帮忙啊。

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
2 [报告]
发表于 2009-03-11 17:51 |只看该作者
MACH_TYPE的问题?

论坛徽章:
0
3 [报告]
发表于 2009-03-11 23:35 |只看该作者
boot kernel后能不能添加打印呢?
不行就使用gpio点灯吧,看执行到哪了

论坛徽章:
0
4 [报告]
发表于 2009-03-12 10:57 |只看该作者

回复 #2 T-bagwell 的帖子

mach_type是(mx31ads)447 与nandbootloader 一样

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
5 [报告]
发表于 2009-03-12 11:18 |只看该作者
那能否判断是否进入了start_kernel?

论坛徽章:
0
6 [报告]
发表于 2009-03-12 15:41 |只看该作者

回复 #5 T-bagwell 的帖子

更改console=mxcuart,0x43f90000,115200n8启动参数设置, 使用early console后显示:

Linux 2.6 Freescale MXC processor


Choose an option from below:

1. Load kernel to RAM and then boot from [0x80008000]
2. Change kernel loading address [0x80008000]
3. Enter command line option for kernel

   Please enter selection ->  3

-->New command line option:
console=mxcuart,0x43f90000,115200n8 root=/dev/mtdblock2 rootfstype=jffs2 rw ip=off

Command entered is: console=mxcuart,0x43f90000,115200n8 root=/dev/mtdblock2 rootfstype=jffs2 rw ip=off
console=mxcuart,0x43f90000,115200n8 root=/dev/mtdblock2 rootfstype=jffs2 rw ip=off

Choose an option from below:

1. Load kernel to RAM and then boot from [0x80008000]
2. Change kernel loading address [0x80008000]
3. Enter command line option for kernel

   Please enter selection ->  1

-->Booting from RAM...

-->Size: 0018807C
-->Crc: 0CDD5FF1
Copying pages....
-->Calculated CRC: 0CDD5FF1

-->Found valid CRC
-->Starting kernel...
Uncompressing Linux...........................................................................................................
Linux version 2.6.24-335-g47af517 (root@localhost.localdomain) (gcc version 4.1.1) #1 PREEMPT Thu Mar 12 20:31:27 CST 2009
CPU: ARMv6-compatible processor [4107b364] revision 4 (ARMv6TEJ), cr=00e5387f
Machine: Freescale MX31/MX32 ADS
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIPT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=mxcuart,0x43f90000,115200n8 root=/dev/mtdblock2 rootfstype=jffs2 rw ip=off
Malformed early option 'console'
MXC IRQ initialized
PID hash table entries: 256 (order: 8, 1024 bytes)
WARNING: at arch/arm/plat-mxc/time.c:223 mxc_init_time()
[<c0028db8>] (dump_stack+0x0/0x14) from [<c000ed80>] (mxc_init_time+0x70/0x1b4)
[<c000ed10>] (mxc_init_time+0x0/0x1b4) from [<c000ca88>] (time_init+0x1c/0x24)
[<c000ca6c>] (time_init+0x0/0x24) from [<c0008b04>] (start_kernel+0x180/0x27c)
[<c0008984>] (start_kernel+0x0/0x27c) from [<80008034>] (0x80008034)
r6:c00211e8 r5:c0339610 r4:00e5387d
MXC GPT timer initialized, rate = 16626069
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61528KB available (3016K code, 275K data, 112K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
L2X0 cache controller enabled
CPU is i.MX31 Revision 2.0
Clock input source is 27000000
MXC_Early serial console at MMIO 0x43f90000 (options '115200n8')
console [mxcuart0] enabled
MXC GPIO hardware
MX31ADS EXPIO(CPLD) hardware

=======
死在这了。看起来是一些初始化错误。

[ 本帖最后由 hotjuly 于 2009-3-12 19:32 编辑 ]

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
7 [报告]
发表于 2009-03-12 16:13 |只看该作者
起来了?

论坛徽章:
0
8 [报告]
发表于 2009-03-12 16:24 |只看该作者

回复 #7 T-bagwell 的帖子

死在这了。初始化错误。

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
9 [报告]
发表于 2009-03-12 16:27 |只看该作者
同意楼下的说法

[ 本帖最后由 T-bagwell 于 2009-3-12 22:57 编辑 ]

论坛徽章:
0
10 [报告]
发表于 2009-03-12 22:29 |只看该作者
既然能打印了,就加打印语句调试吧。
在仔细看看初始化的配置
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP