百问网Linux技术区Linux系统开发 Kernel panic - not syncing: VFS: Unable to mount root fs on

1  /  1  页   1 跳转 查看:1951

Kernel panic - not syncing: VFS: Unable to mount root fs on

Kernel panic - not syncing: VFS: Unable to mount root fs on

各位好,我是立宇泰2410的开发板,移植了2.6.22.6的linux内核,并将nand flash分为3个区,分别为kernel(2M),jffs2(8M),yaffs(剩余空间)。
今天按照版主的书构造了一个根文件系统,将其制作为yaffs映象文件,通过tftp下载然后烧写至nand flash的第三分区,但是始终出现kernel panic错误,和我没有移植根文件系统时的错误信息一样。
下面是我的操作,希望大家能给点提示,可能是什么问题?我看论坛里也有一些人遇到这个问题。
网上说:
1.nand flash 分区不对      (但是我看我的内核启动信息里三个分区好像都识别出来了,见绿色字体)
2.文件系统映象制作有问题
3.nand flash的第三分区有坏块
不知道怎么去看,我个人觉得是启动信息里: VFS: Cannot open root device "hda1" or unknown-block(2,0)这一原因~~


U-Boot 1.1.6 (Jan 30 2010 - 20:46:35)

DRAM:  64 MB
Flash:  1 MB
NAND:  64 MiB
In:    serial
Out:  serial
Err:  serial
SMDK2410 # printenv
bootdelay=3
baudrate=115200
netmask=255.255.255.0
ipaddr=10.13.11.84
ethaddr=08:00:3e:26:0a:5b
serverip=10.13.11.79
bootargs=noinitrd console=ttySAC0 root=/dev/mtdblock2 rootfstype=yaffs
stdin=serial
stdout=serial
stderr=serial

Environment size: 228/65532 bytes
SMDK2410 # tftp 0x30000000 fs_mini.yaffs
TFTP from server 10.13.11.79; our IP address is 10.13.11.84
Filename 'fs_mini.yaffs'.
Load address: 0x30000000
Loading: #################################################################
        #################################################################
        #################################################################
        ###########
done
Bytes transferred = 1051776 (100c80 hex)
SMDK2410 # nand erase 0xA00000 0x3600000                            //擦写nand flash的第三个分区

NAND erase: device 0 offset 0xa00000, size 0x3600000
Erasing at 0x3ffc000 -- 100% complete.
OK
SMDK2410 # nand write.yaffs 0x30000000 0xA00000 0x100E00                  //将文件系统映象烧写至nand flash

NAND write: device 0 offset 0xa00000, size 0x100e00
1052160 bytes written: OK
SMDK2410 # nand read.jffs2 0x32000000 0 0x180000              //将内核加载至内存

NAND read: device 0 offset 0x0, size 0x180000

Bad block at 0x24000 in erase block from 0x24000 will be skipped
Reading data from 0x183e00 -- 100% complete.
1572864 bytes read: OK
SMDK2410 # bootm 0x32000000                //启动内核
## Booting image at 32000000 ...
  Image Name:  Linux-2.6.22.6
  Created:      2010-02-06  13:05:23 UTC
  Image Type:  ARM Linux Kernel Image (uncompressed)
  Data Size:    1549224 Bytes =  1.5 MB
  Load Address: 30008000
  Entry Point:  30008000
  Verifying Checksum ... OK
OK

Starting kernel ...

UncompressingLinux.....................................................................................................done, booting the kernel.
Linux version 2.6.22.6 (root@mac-desktop) (gcc version 3.4.5) #2 Sat Feb 6 21:05:12 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2410
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 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: 4064
Kernel command line: root=/dev/hda1 ro init=/bin/bash console=ttySAC0
irq: clearing subpending status 00000002
PID hash table entries: 64 (order: 6, 256 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 12888KB available (2864K code, 314K 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 c1800000, irq 33
DMA channel 1 at c1800040, irq 34
DMA channel 2 at c1800080, irq 35
DMA channel 3 at c18000c0, 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: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) B) 2001-2006 Red Hat, Inc.
yaffs Feb  6 2010 21:03:27 Installing.
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 4096K 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, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 9 at 0x00024000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00200000 : "kernel v2.6.22.6"
0x00200000-0x00a00000 : "jffs2 file system"
0x00a00000-0x04000000 : "yaffs file system"
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
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 390 KHz
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)
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "hda1" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00      2048 mtdblock0 (driver?)
1f01      8192 mtdblock1 (driver?)
1f02      55296 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


另:我的光盘里怎么没有yaffs_util_mkyaffsimage.patch这个补丁,论坛哪里可以下到吗?谢谢
 

回复:Kernel panic - not syncing: VFS: Unable to mount r...

你的问题非常明显,看你的启动信息中:
Built 1 zonelists.  Total pages: 4064
Kernel command line: root=/dev/hda1 ro init=/bin/bash console=ttySAC0
irq: clearing subpending status 00000002

很明显,u-boot里面的bootargs没有传递到内核
 

回复:Kernel panic - not syncing: VFS: Unable to mount r...

Re:henry.li
你好,谢谢你的提示
我刚看了一下我的内核配置:
Boot options-->root=/dev/hda1 ro init=/bin/bash console=ttySAC0,和启动信息里的一样

但是我在u-boot界面里已经设置了:
set bootargs noinitrd console=ttySAC0 root=/dev/mtdblock2 rootfstype=yaffs
并保存了,为什么启动信息里没变过来了??
这样的话岂不是只能重新配置、编译内核了?
 

回复:Kernel panic - not syncing: VFS: Unable to mount r...

不用配内核,我想问题应该出在u-boot, 你查一下u-boot的代码,bootargs参数设置到那个地址了,应该设置在0x30000000 + 0x100
 

回复:Kernel panic - not syncing: VFS: Unable to mount r...

你好,henry.li
u-boot我暂时还没管它
我今天把内核启动参数配置为:
      noinitrd console=ttySAC0 root=/dev/mtdblock2 rootfstype=yaffs
重新编译,烧写内核
再烧写根文件系统
启动内核后,发现:
## Booting image at 32000000 ...
  Image Name:  Linux-2.6.22.6
  Created:      2010-03-02  8:22:41 UTC
  Image Type:  ARM Linux Kernel Image (uncompressed)
  Data Size:    1549220 Bytes =  1.5 MB
  Load Address: 30008000
  Entry Point:  30008000
  Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................................... done, booting the kernel.
Linux version 2.6.22.6 (root@mac-desktop) (gcc version 3.4.5) #3 Tue Mar 2 16:21:56 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2410
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 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: 4064
Kernel command line: noinitrd console=ttySAC0 root=/dev/mtdblock2 rootfstype=yaffs
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000002
PID hash table entries: 64 (order: 6, 256 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 12888KB available (2864K code, 314K 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 c1800000, irq 33
DMA channel 1 at c1800040, irq 34
DMA channel 2 at c1800080, irq 35
DMA channel 3 at c18000c0, 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: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) B) 2001-2006 Red Hat, Inc.
yaffs Mar  2 2010 16:20:06 Installing.
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 4096K 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, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 9 at 0x00024000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00200000 : "kernel v2.6.22.6"
0x00200000-0x00a00000 : "jffs2 file system"
0x00a00000-0x04000000 : "yaffs file system"
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
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 390 KHz
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)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
VFS: Mounted root (yaffs filesystem) readonly.
Freeing init memory: 132K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

看书上P343页说,要么是没有/dev/console这个文件,要么没有对应的设备
可是我都有啊,请教应该怎么查原因!非常感谢~~

另:我找到光盘里制作mkyaffsimage工具的补丁了(晕!),文件系统重新做过!
 

回复:Kernel panic - not syncing: VFS: Unable to mount r...

henry.li:
      我今天看了一下,的确我的U-boot不能将启动参数正确传递给内核,虽然u-boot配置界面中改过来了
u-boot代码中:
board/liyutai24x0/liyutai24x0.c中,启动参数存放的位置如下:
gd->bd->bi_boot_params = 0x30000100;
配置文件/include/configs/liyutai24x0.h中也增加了如下两个配置项:
#define CONFIG_SETUP_MEMORY_TAGS  1
#define CONFIG_CMDLINE_TAG  1
可能是什么问题呢?

今天把内核的启动参数设为:
noinitrd    init=/linuxrc    console=ttySAC0 root=/dev/mtdblock2 rootfstype=yaffs
结果打印出来最后部分是:
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
VFS: Mounted root (yaffs filesystem) readonly.
Freeing init memory: 132K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

现在不知道怎么办好
 

回复:Kernel panic - not syncing: VFS: Unable to mount r...

终于搞定了!
问题的原因是u-boot,一是henry.li指出的u-boot不能正确向内核传递参数,不过内核中可以设定启动参数,所以这个问题的存在对于移植根文件系统有无影响还不清楚。但是这让我对我的u-boot的功能产生怀疑,所以进而发现了第二个问题
问题二是nand write.yaffs这个命令是对的吗?因为烧写根文件系统映象是要用到这一命令(见书中P360)
之前比如我的最小yaffs文件系统映象大小是 0x100c80字节时,若写为:
SMDK2410 # nand write.yaffs 0x30000000 0xA00000 0x100E00
则会报错,说不是一页大小的倍数
则必须写为:
SMDK2410 # nand write.yaffs 0x30000000 0xA00000 0x100E00
因为0x100E00是512的倍数,而我的u-BOOT好像认为一页的大小是512字节
而前面书上说一页的大小是512+16 字节,想想不对
于是重新烧写了U-Boot,首先测试了一下看能否正确传递启动参数,发现可以,不经窃喜
再烧写文件系统映象,发现若最小yaffs文件系统映象大小是 0x100c80字节时,则写为:
SMDK2410 # nand write.yaffs 0x30000000 0xA00000 0x100E00
就是对的。
OK,启动内核:
## Booting image at 32000000 ...
  Image Name:  Linux-2.6.22.6
  Created:      2010-03-03  2:04:34 UTC
  Image Type:  ARM Linux Kernel Image (uncompressed)
  Data Size:    1549240 Bytes =  1.5 MB
  Load Address: 30008000
  Entry Point:  30008000
  Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................................... done, booting the kernel.
Linux version 2.6.22.6 (root@mac-desktop) (gcc version 3.4.5) #4 Wed Mar 3 10:04:21 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2410
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 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: 16256
Kernel command line: noinitrd init=/linuxrc console=ttySAC0 root=/dev/mtdblock2 rootfstype=yaffs
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
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: 61568KB available (2864K code, 314K 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 c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, 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: 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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) B) 2001-2006 Red Hat, Inc.
yaffs Mar  3 2010 10:01:40 Installing.
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 4096K 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, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 9 at 0x00024000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00200000 : "kernel v2.6.22.6"
0x00200000-0x00a00000 : "jffs2 file system"
0x00a00000-0x04000000 : "yaffs file system"
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
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 390 KHz
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)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 132K
init started: BusyBox v1.7.0 (2008-01-22 10:04:09 EST)
starting pid 734, tty '': '/etc/init.d/rcS'
ifconfig: SIOCSIFADDR: No such device
mount: mounting tmpfs on /tmp failed: Invalid argument

Please press Enter to activate this console.
starting pid 739, tty '/dev/ttySAC0': '/bin/sh'
# ls
bin        lib        mnt        sbin        usr
dev        linuxrc    proc        sys
etc        lost+found  root        tmp
#

呵呵,折腾好几天了,发现问题其实都在提示信息里,只是自己不太去追究
谢谢henry.li的指导
 

回复:Kernel panic - not syncing: VFS: Unable to mount r...

不好意思,7楼的那个地方写错了,应该是:
再烧写文件系统映象,发现若最小yaffs文件系统映象大小是 0x100c80字节时,则写为:
SMDK2410 # nand write.yaffs 0x30000000 0xA00000 0x100c80
就是对的。
 
1  /  1  页   1 跳转

地址:广东省深圳市南山区南山大道3003号久商大厦C-1406;邮编:518052;电话:0755-86200561

粤ICP备09041549号, 版权所有 百问网   Sitemap

Powered by Discuz!NT 2.0.1214    Copyright © 2001-2010 Comsenz Inc.
Processed in 0.078125 second(s) , 3 queries.
返顶部