文件系统挂载错误请教

suyangwei 南京浪潮智能科技有限公司 开发总监  2010-12-16 03:25:44
文件系统挂载错误,函数调用:do_mount-> do_new_mount->sys_mount-> do_mount返回错误码 -19。


IMX EVM # boot
Loading from NAND 128MiB 1,8V 8-bit, offset 0x220000
Image Name: Linux-2.6.36
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1438792 Bytes = 1.4 MB
Load Address: a0008000
Entry Point: a0008000
Automatic boot of image at addr 0xa0200000 ...
## Booting kernel from Legacy Image at a0200000 ...
Image Name: Linux-2.6.36
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1438792 Bytes = 1.4 MB
Load Address: a0008000
Entry Point: a0008000
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
start kernel,debug OK!!!start_kernel() ,righ here
Linux version 2.6.36 (root@localhost.localdomain) (gcc version 3.4.1) #257 PREEM
PT Thu Dec 16 15:13:12 EST 2010
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale i.MX27ADS
Memory policy: ECC disabled, Data cache writeback
BUG: mapping for 0xa0000000 at 0xc0000000
BUG: mapping for 0xa3fff000 at 0xffff0000
BUG: mapping for 0x10000000 at 0xf4000000
BUG: mapping for 0x80000000 at 0xf4100000
BUG: mapping for 0xd8000000 at 0xf4200000
BUG: mapping for 0xd4000000 at 0xf4300000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttymxc0,115200n8 root=/dev/mtdblock2 rootfstype=jff
s2 noinitrd
PID hash table entries: 256 (order: -2, 1024 bytes)
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: 62060k/62060k available, 3476k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc4800000 - 0xf4000000 ( 760 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0020000 ( 96 kB)
.text : 0xc0020000 - 0xc02ab000 (2604 kB)
.data : 0xc02ac000 - 0xc02c7160 ( 109 kB)
Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:272
MXC IRQ initialized
MXC GPIO hardware
Console: colour dummy device 80x30
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
msgmni has been set to 121
io scheduler noop registered (default)
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
console [ttymxc0] enabled
imx-uart.1: ttymxc1 at MMIO 0x1000b000 (irq = 19) is a IMX
imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is a IMX
imx-uart.3: ttymxc3 at MMIO 0x1000d000 (irq = 17) is a IMX
imx-uart.4: ttymxc4 at MMIO 0x1001b000 (irq = 49) is a IMX
imx-uart.5: ttymxc5 at MMIO 0x1001c000 (irq = 48) is a IMX
NAND device: Manufacturer ID: 0xec, Chip ID: 0xa1 (Samsung NAND 128MiB 1,8V 8-bi
t)
Scanning device for bad blocks
Creating 5 MTD partitions on "mxc_nand":
0x000000000000-0x000000040000 : "BOOT"
0x000000220000-0x000000420000 : "IOS"
0x000000420000-0x000000e20000 : "JFFS2"
0x000000e20000-0x000002220000 : "APP"
0x000002220000-0x000002c20000 : "USER"
Driver for 1-wire Dallas network protocol.
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol bug: before sys_access.
debug: after sys_access.
debug: begin prepare_namespace.
debug: before mount_root.
debug: mount_root before mount_block_root.
debug sys_mount: copy_mount_options 0
debug sys_mount: PTR_ERR -1014181888
debug sys_mount: copy_mount_options 0
debug sys_mount: copy_mount_options 0
debug do_mount: kern_path 0
debug do_mount: security_sb_mount 0
debug do_kern_mount: ENODEV
debug do_mount: do_new_mount -19
debug sys_mount: do_mount -19
VFS: Cannot open root device "mtdblock2" or unknown-block(31,2)
Please append a correct "root=" boot option; here are the available partitions:
1f00 256 mtdblock0 (driver?)
1f01 2048 mtdblock1 (driver?)
1f02 10240 mtdblock2 (driver?)
1f03 20480 mtdblock3 (driver?)
1f04 10240 mtdblock4 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
Backtrace:
[<c0024038>] (dump_backtrace+0x0/0x12c) from [<c002417c>] (dump_stack+0x18/0x1c)

r7:00000000 r6:00000000 r5:c3846000 r4:01f00002
[<c0024164>] (dump_stack+0x0/0x1c) from [<c003fecc>] (panic+0x64/0x198)
[<c003fe68>] (panic+0x0/0x198) from [<c0009018>] (mount_block_root+0x110/0x2e8)
r3:00000000 r2:00000000 r1:c3819f58 r0:c027a468
[<c0008f08>] (mount_block_root+0x0/0x2e8) from [<c000924c>] (mount_root+0x5c/0x7
8)
[<c00091f0>] (mount_root+0x0/0x78) from [<c0009378>] (prepare_namespace+0x110/0x
1b4)
r5:c001db58 r4:c001db5c
[<c0009268>] (prepare_namespace+0x0/0x1b4) from [<c0008d4c>] (kernel_init+0x130/
0x190)
r6:c001d0b4 r5:c001d33c r4:c02c71fc
[<c0008c1c>] (kernel_init+0x0/0x190) from [<c0042dec>] (do_exit+0x0/0x6ac)
r6:c0042dec r5:c0008c1c r4:00000000
...全文
146 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
suyangwei 2010-12-16
[Quote=引用 3 楼 wzzww 的回复:]
确定你的内核编译了jffs2的模块了吗?要编译到内核中,不是编译成模块
[/Quote]
我有个rootfs.jffs2,是这个板子内核升级前使用的。
通过uboot把rootfs.jffs2烧进去的。
回复
无知者无谓 2010-12-16
确定你的内核编译了jffs2的模块了吗?要编译到内核中,不是编译成模块
回复
手机写程序 2010-12-16
Kernel command line: console=ttymxc0,115200n8 root=/dev/mtdblock2 rootfstype=jff
s2 noinitrd

Creating 5 MTD partitions on "mxc_nand":
0x000000000000-0x000000040000 : "BOOT"
0x000000220000-0x000000420000 : "IOS"
0x000000420000-0x000000e20000 : "JFFS2"
0x000000e20000-0x000002220000 : "APP"
0x000002220000-0x000002c20000 : "USER"

VFS: Cannot open root device "mtdblock2" or unknown-block(31,2)
Please append a correct "root=" boot option; here are the available partitions:

JFFS2有问题?

回复
ma100 2010-12-16
lease append a correct "root=" boot option;

你的启动参数怎么写的呢
回复
相关推荐
发帖
Linux_Kernel
创建于2007-08-27

4151

社区成员

Linux/Unix社区 内核源代码研究区
申请成为版主
帖子事件
创建了帖子
2010-12-16 03:25
社区公告
暂无公告