QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2974|回复: 2

求助:内核启动时不能加载文件系统

[复制链接]
发表于 2009-1-22 00:15:12 | 显示全部楼层 |阅读模式
环境:centos5.2   skyeye-1.2.6_rc1
++++++++++++++++++
skyeye.conf 内容如下
++++++++++++++++++
# skyeye config file for S3C2410X
cpu: arm920t
mach: s3c2410x

# physical memory
mem_bank: map=M, type=RW, addr=0x30000000, size=0x02000000
mem_bank: map=M, type=RW, addr=0x33f00000, size=0x01000000, file=u-boot, boot=yes
mem_bank: map=M, type=RW, addr=0xC0000000, size=0x00800000, file=./zImage.img
mem_bank: map=M, type=RW, addr=0xC0800000, size=0x00800000, file=./initrd.img
mem_bank: map=M, type=RW, addr=0xc1000000, size=0x03000000
#mem_bank: map=M, type=RW, addr=0x30000000, size=0x03F80000

# all peripherals I/O mapping area
mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000
mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020

net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=08:00:3E:26:0A:5B, ethmod=tuntap, hostip=10.0.0.1
nandflash: type=s3c2410x,name=K9F1208U0B,dump=./nand.dump
lcd: type=s3c2410x, mod=gtk

#dbct: state=on
+++++++++++++++++++++++++++
执行 skyeye 命令,如下
+++++++++++++++++++++++++++
# skyeye

**************************** WARNING **********************************
If you want to run ELF image, you should use -e option to indicate
your elf-format image filename. Or you only want to run binary image,
you need to set the filename of the image and its entry in skyeye.conf.
***********************************************************************

Your elf file is little endian.
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name s3c2410x, mach_init addr 0x806bae0
ethmod num=1, mac addr=8:0:3e:26:a:5b, hostip=10.0.0.1
nandflash: dump ./nand.dump
file size:69206016
lcd_mod:1
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm920t mmu ops
Loaded RAM   u-boot
Loaded RAM   ./zImage.img
Loaded RAM   ./initrd.img
start addr is set to 0x33f00000 by exec file.
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8231, mem_read_word addr = dd74 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8235, mem_read_word addr = dd78 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8239, mem_read_word addr = dd7c no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8243, mem_read_word addr = dd80 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8247, mem_read_word addr = dd84 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8251, mem_read_word addr = dd88 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8255, mem_read_word addr = dd8c no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8259, mem_read_word addr = dd90 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8263, mem_read_word addr = dd94 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8267, mem_read_word addr = dd98 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8271, mem_read_word addr = dd9c no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8275, mem_read_word addr = dda0 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8279, mem_read_word addr = dda4 no bank
ERROR: s3c2410x_io_write_word(0x4c000000) = 0x00ffffff
ERROR: s3c2410x_io_write_word(0x4c00000 = 0x00048032
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 433702, mem_read_word addr = 70000 no bank


U-Boot 1.3.4 (Jan 20 2009 - 14:34:50)

DRAM:  64 MB
Flash: 512 kB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
SMDK2410 # setenv bootargs mem=32M console=ttySAC0 root=/dev/mtdblock3 initrd=0xc0800000,0x00800000 ramdisk_size=2048 rw
SMDK2410 # bootm c0000000
## Booting kernel from Legacy Image at c0000000 ...
   Image Name:   linux-2.6.14
   Created:      2009-01-19  10:50:08 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1507904 Bytes =  1.4 MB
   Load Address: c0008000
   Entry Point:  c0008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux................................................................................................... done, booting the kernel.
Linux version 2.6.22 ([email protected]) (gcc version 3.4.4) #2 Mon Jan 19 18:46:16 CST 2009
CPU: ARM920T [41009200] revision 0 (ARMvundefined/unknown), cr=00003177
Machine: SMDK2410
Memory policy: ECC disabled, Data cache writeback
initrd (0xc0800000 - 0xc1000000) extends beyond physical memory - disabling initrd
CPU S3C2410 (id 0x32410000)
S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists.  Total pages: 8128
Kernel command line: mem=32M console=ttySAC0 root=/dev/mtdblock3 initrd=0xc0800000,0x00800000 ramdisk_size=2048 rw
irq: clearing pending status 00004000
irq: clearing pending status 00008000
irq: clearing pending status 00800000
irq: clearing pending status 10000000
irq: clearing subpending status 00000093
PID hash table entries: 128 (order: 7, 512 bytes)
timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 29212KB available (2784K code, 313K data, 132K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c2800000, irq 33
DMA channel 1 at c2800040, irq 34
DMA channel 2 at c2800080, irq 35
DMA channel 3 at c28000c0, irq 36
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
RAMDISK driver initialized: 16 RAM disks of 2048K size 1024 blocksize
loop: module loaded
dm9000 Ethernet Driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
BAST NOR-Flash Driver, (c) 2004 Simtec Electronics
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "Boot"
0x00020000-0x00100000 : "param"
0x00100000-0x00400000 : "kernel"
0x00400000-0x01800000 : "root"

usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
ERROR: s3c2410x_io_write_word(0x49000010) = 0x40000000
ERROR: s3c2410x_io_write_word(0x4900000 = 0x00000008
s3c2410-ohci s3c2410-ohci: USB HC takeover failed!  (BIOS/SMM bug)
s3c2410-ohci s3c2410-ohci: startup error -16
s3c2410-ohci s3c2410-ohci: USB bus 1 deregistered
s3c2410-ohci: probe of s3c2410-ohci failed with error -16
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
ERROR: s3c2410x_io_write_word(0x5400000 = 0x00000010
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 99 KHz
ERROR: s3c2410x_io_write_word(0x54000000) = 0x000000e0
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
TCP cubic registered
NET: Registered protocol family 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
List of all partitions:
1f00        128 mtdblock0 (driver?)
1f01        896 mtdblock1 (driver?)
1f02       3072 mtdblock2 (driver?)
1f03      20480 mtdblock3 (driver?)
No filesystem could mount root, tried:  ext3 ext2 cramfs msdos vfat romfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
 楼主| 发表于 2009-1-22 17:58:24 | 显示全部楼层

求助:内核启动时不能加载文件系统 (新)

环境:centos5.2   skyeye-1.2.6_rc1
++++++++++++++++++
skyeye.conf 内容如下
++++++++++++++++++
# skyeye config file for S3C2410X
cpu: arm920t
mach: s3c2410x

# physical memory
mem_bank: map=M, type=RW, addr=0x33f00000, size=0x01000000, file=u-boot, boot=yes
mem_bank: map=M, type=RW, addr=0x30000000, size=0x00800000, file=./zImage.img
mem_bank: map=M, type=RW, addr=0x30800000, size=0x00800000, file=./initrd.img
mem_bank: map=M, type=RW, addr=0x31000000, size=0x03000000
#mem_bank: map=M, type=RW, addr=0x30000000, size=0x03F80000

# all peripherals I/O mapping area
mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000
mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020

net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=08:00:3E:26:0A:5B, ethmod=tuntap, hostip=10.0.0.1
nandflash: type=s3c2410x,name=K9F1208U0B,dump=./nand.dump
lcd: type=s3c2410x, mod=gtk

#dbct: state=on
+++++++++++++++++++++++++++
执行 skyeye 命令,如下
+++++++++++++++++++++++++++
# skyeye

**************************** WARNING **********************************
If you want to run ELF image, you should use -e option to indicate
your elf-format image filename. Or you only want to run binary image,
you need to set the filename of the image and its entry in skyeye.conf.
***********************************************************************

Your elf file is little endian.
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name s3c2410x, mach_init addr 0x806bae0
ethmod num=1, mac addr=8:0:3e:26:a:5b, hostip=10.0.0.1
nandflash: dump ./nand.dump
file size:69206016
lcd_mod:1
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm920t mmu ops
Loaded RAM   u-boot
Loaded RAM   ./zImage.img
Loaded RAM   ./initrd.img
start addr is set to 0x33f00000 by exec file.
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8231, mem_read_word addr = dd74 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8235, mem_read_word addr = dd78 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8239, mem_read_word addr = dd7c no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8243, mem_read_word addr = dd80 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8247, mem_read_word addr = dd84 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8251, mem_read_word addr = dd88 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8255, mem_read_word addr = dd8c no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8259, mem_read_word addr = dd90 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8263, mem_read_word addr = dd94 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8267, mem_read_word addr = dd98 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8271, mem_read_word addr = dd9c no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8275, mem_read_word addr = dda0 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 8279, mem_read_word addr = dda4 no bank
ERROR: s3c2410x_io_write_word(0x4c000000) = 0x00ffffff
ERROR: s3c2410x_io_write_word(0x4c00000 = 0x00048032
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 433702, mem_read_word addr = 70000 no bank


U-Boot 1.3.4 (Jan 20 2009 - 14:34:50)

DRAM:  64 MB
Flash: 512 kB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
SMDK2410 # bootm 30000000
## Booting kernel from Legacy Image at 30000000 ...
   Image Name:   linux-2.6.22
   Created:      2009-01-22   8:31:41 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1507884 Bytes =  1.4 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux................................................................................................... done, booting the kernel.
Linux version 2.6.22 ([email protected]) (gcc version 3.4.4) #4 Thu Jan 22 16:30:50 CST 2009
CPU: ARM920T [41009200] revision 0 (ARMvundefined/unknown), cr=00003177
Machine: SMDK2410
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410 (id 0x32410000)
S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists.  Total pages: 8128
Kernel command line: mem=32M console=ttySAC0 root=/dev/mtdblock3 initrd=0x30800000,0x00800000 ramdisk_size=2048 rw
irq: clearing pending status 00004000
irq: clearing pending status 00008000
irq: clearing pending status 00800000
irq: clearing pending status 10000000
irq: clearing subpending status 00000093
PID hash table entries: 128 (order: 7, 512 bytes)
timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 21020KB available (2784K code, 313K data, 132K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c2800000, irq 33
DMA channel 1 at c2800040, irq 34
DMA channel 2 at c2800080, irq 35
DMA channel 3 at c28000c0, irq 36
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 8192K
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
RAMDISK driver initialized: 16 RAM disks of 2048K size 1024 blocksize
loop: module loaded
dm9000 Ethernet Driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
BAST NOR-Flash Driver, (c) 2004 Simtec Electronics
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "Boot"
0x00020000-0x00100000 : "param"
0x00100000-0x00400000 : "kernel"
0x00400000-0x02c00000 : "root"
0x02c00000-0x04000000 : "user"
usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
ERROR: s3c2410x_io_write_word(0x49000010) = 0x40000000
ERROR: s3c2410x_io_write_word(0x4900000 = 0x00000008
s3c2410-ohci s3c2410-ohci: USB HC takeover failed!  (BIOS/SMM bug)
s3c2410-ohci s3c2410-ohci: startup error -16
s3c2410-ohci s3c2410-ohci: USB bus 1 deregistered
s3c2410-ohci: probe of s3c2410-ohci failed with error -16
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
ERROR: s3c2410x_io_write_word(0x5400000 = 0x00000010
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 99 KHz
ERROR: s3c2410x_io_write_word(0x54000000) = 0x000000e0
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
TCP cubic registered
NET: Registered protocol family 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 2048KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem).
List of all partitions:
1f00        128 mtdblock0 (driver?)
1f01        896 mtdblock1 (driver?)
1f02       3072 mtdblock2 (driver?)
1f03      40960 mtdblock3 (driver?)
1f04      20480 mtdblock4 (driver?)
No filesystem could mount root, tried:  ext3 ext2 cramfs msdos vfat romfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
回复

使用道具 举报

发表于 2009-2-1 21:50:20 | 显示全部楼层
两个解决办法:
1 把root=/dev/mtdblock3 改为 root=/dev/ram0
2. 或者把initrd的镜像文件导入mtdblock3
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-22 15:04 , Processed in 0.080062 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表