免费注册 查看新帖 |

Chinaunix

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

uboot 内核启动参数问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-11 16:55 |只看该作者 |倒序浏览
今天把文件系统和内核烧进去以后,出现如下信息:
               
               
                U-Boot 1.3.0-rc2 (May 10 2008 - 20:32:44)
DRAM:  64 MB
Flash: 32 MB
Hit any key to stop autoboot:  0
## Booting image at 000c0000 ...
   Image Name:   linux-2.4.18
   Created:      2008-05-10  13:04:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    930880 Bytes = 909.1 kB
   Load Address: a0008000
   Entry Point:  a0008000
   Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux.............................................................Linux version 2.4.18-rmk7-pxa1-xhyper255 (root@bedguy) (gcc version 2.95.3 2001TCPU: Intel XScale-PXA255 revision 6
Machine: HYBUS X-Hyper255
Ignoring unrecognised tag 0x54410008
MCS0 = 0x7ff87ff0
MCS1 = 0x5aa85aa8
MCS2 = 0x24482448
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=jffs2 console=ttyS0,115200
Console: colour dummy device 80x30
Calibrating delay loop... 397.31 BogoMIPS
Memory: 64MB = 64MB total
Memory: 62244KB available (1554K code, 304K data, 368K init)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
PXA USB Controller Core Initialized
get_random_bytes called before random driver initialization
USB Function Ethernet Driver Interface
Starting kswapd
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
Console: switching to colour frame buffer device 80x30
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with no serial options enabled
ttyS00 at 0x0000 (irq = 14) is a PXA UART
ttyS01 at 0x0000 (irq = 13) is a PXA UART
ttyS02 at 0x0000 (irq = 12) is a PXA UART
ads7843 touch screen driver initialized
KEYPAD Version 0.2 initialized.
block: 128 slots per queue, batch=32
Cirrus Logic CS8900A driver for Linux (V0.01)
eth0: incorrect signature 0x000e
ac97_codec: AC97 Audio codec, id: 0x4352:0x5914 (Cirrus Logic CS4297A rev B)
Probing X-Hyper250 Flash at physical address 0x00000000
Using buffer write method
No RedBoot partition table detected in X-Hyper255 Flash
Using static partition definition
Creating 4 MTD partitions on "X-Hyper255 Flash":
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x000c0000 : "Partition Tables"
0x000c0000-0x001c0000 : "Kernel"
0x001c0000-0x02000000 : "Filesystem"
Linux Kernel Card Services 3.1.22
  options:  none
Intel PXA250/210 PCMCIA (CS release 3.1.22)
X-Hyper250 PCMCIA INIT
MMC subsystem, $Revision: 0.3.1.14 $
MMC block device driver, $Revision: 0.3.1.16 $
PXA250 MMC controller driver, $Revision: 0.3.1.12 $
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0527 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x4196 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x2548 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x0e00 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x00a0 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x00a0 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0xe473 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x0205 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x696c idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x2d78 idFurther such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x00021790
You cannot use older JFFS2 filesystems with newer kernels
JFFS2: Erase block at 0x00000000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x6067 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0x8e80 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0x455b idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0x139e idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0x5d27 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0xca07 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0x21cc idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0x0721 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020: 0x8e7e idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0xfc34 idFurther such events for this erase block will not be printed
JFFS2: Erase block at 0x00040000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0xfa26 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080004: 0x3edc idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0xf881 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008000c: 0x02e7 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080010: 0x93e5 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080014: 0x5f4e idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080018: 0x9ffb idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008001c: 0x39b5 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080020: 0x89fa idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080024: 0x569c idFurther such events for this erase block will not be printed
JFFS2: Erase block at 0x00080000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0000: 0xe6ff idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0004: 0x0f46 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0008: 0xaad1 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c000c: 0x73f5 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0010: 0x1ff9 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0014: 0x73d2 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0018: 0xc799 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c001c: 0x92f4 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0020: 0xfcd2 idjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0024: 0xec69 idFurther such events for this erase block will not be printed
JFFS2: Erase block at 0x000c0000 is not formatted. It will be erased
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
Kernel panic: VFS: Unable to mount root fs on 1f:02
    到网络上查了一下,还是内核参数设置不正确,根据上面的启动信息,可知flash分区如下:
Creating 4 MTD partitions on "X-Hyper255 Flash":
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x000c0000 : "Partition Tables"
0x000c0000-0x001c0000 : "Kernel"
0x001c0000-0x02000000 : "Filesystem"
    那么root分区应该位于/dev/mtdblock3,所以将bootargs设置如下
setenv bootargs noinitrd root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttyS0,115200 mem=64M
saveenv
    重新启动后,又出现如下的错误信息
....//前面的与上面相同,这里省略
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01740000: 0x7f3f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01740004: 0x7f3f instead
JFFS2: Erase block at 0x01740000 is not formatted. It will be erased
kernel BUG at slab.c:
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
*pgd = 00000000, *pmd = 00000000
Internal error: Oops: ffffffff
CPU: 0
pc : [c0069570>]    lr : [c00723e8>]    Not tainted
sp : c034fe30  ip : c034fde8  fp : c034fe40
r10: c3fb96cc  r9 : 00000003  r8 : 00000000
r7 : c3fb96cc  r6 : c033f9f0  r5 : 000001f0  r4 : 00000000
r3 : 00000000  r2 : 00000001  r1 : 00000001  r0 : 00000001
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
Control: 397F  Table: A0004000  DAC: 0000001D
Process swapper (pid: 1, stackpage=c034f000)
Stack: (0xc034fe20 to 0xc0350000)
fe20: c00723e8 c0069570 68000013 ffffffff c033f9f0 c034fe68 c034fe44 c0089c40
fe40: c0069538 c033f9f0 000001f0 c3fd0e20 c3fb96cc 00000000 c3fb96cc c034fe80
fe60: c034fe6c c0089f88 c0089bdc c034febc c3fca338 c034fe90 c034fe84 c00e5d34
fe80: c0089e94 c034feb8 c034fe94 c00e6ecc c00e5d24 c3fd1c48 c3fca338 00000000
fea0: c3fb96cc c3fb979c c03d7000 c034fedc c034febc c00eb758 c00e6eb8 00000000
fec0: c3fca338 c3fb96cc 00000000 00000000 c034ff00 c034fee0 c00eb5ec c00eb6d4
fee0: c3fb96cc 00000001 c3fb9600 00008000 c01fa020 c034ff1c c034ff04 c00e7b84
ff00: c00eb59c c3fb9600 c3fb9644 c03d6120 c034ff40 c034ff20 c0098904 c00e7938
ff20: c01fa020 00000000 c03d7000 c03d6120 c01f4a2c c034ffd0 c034ff44 c000ca50
ff40: c009888c 00000000 c01bc50c c03f19c0 00000000 00000088 c034ffd0 c034ff68
ff60: c0010bdc c00b1c2c c0ff0001 c01fead0 c01f5343 00000002 00003116 00000210
ff80: c01d44bc c01fead0 00000001 0001e60c c0124114 00000000 00000001 c034ffc0
ffa0: c034ffac c018e864 00000000 c0234c0c c0204bf8 c0204bec c01f4c40 69052d06
ffc0: a0015a80 c034ffe0 c034ffd4 c006404c c000c818 c034fff4 c034ffe4 c0064064
ffe0: c0064048 00000000 00000000 c034fff8 c0065a9c c006405c 7fffffff efffffff
Backtrace:
Function entered at [c006952c>] from [c0089c40>]
r4 = C033F9F0
Function entered at [c0089bd0>] from [c0089f88>]
Function entered at [c0089e88>] from [c00e5d34>]
r5 = C3FCA338  r4 = C034FEBC
Function entered at [c00e5d18>] from [c00e6ecc>]
Function entered at [c00e6eac>] from [c00eb758>]
Function entered at [c00eb6c8>] from [c00eb5ec>]
r7 = 00000000  r6 = 00000000  r5 = C3FB96CC  r4 = C3FCA338
Function entered at [c00eb590>] from [c00e7b84>]
r8 = C01FA020  r7 = 00008000  r6 = C3FB9600  r5 = 00000001
r4 = C3FB96CC
Function entered at [c00e792c>] from [c0098904>]
r6 = C03D6120  r5 = C3FB9644  r4 = C3FB9600
Function entered at [c0098880>] from [c000ca50>]
r8 = C01F4A2C  r7 = C03D6120  r6 = C03D7000  r5 = 00000000
r4 = C01FA020
Function entered at [c000c80c>] from [c006404c>]
Function entered at [c006403c>] from [c0064064>]
Function entered at [c0064050>] from [c0065a9c>]
r4 = 00000000
Code: eb0022f5 e59f0014 eb0022f3 e3a03000 (e5833000)
Kernel panic: Aiee, killing interrupt
In interrupt handler - not syncing
    不知道哪位高手遇到过同样的问题还请帮忙,先谢谢了


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/50916/showart_684448.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP