bluesnowbird 发表于 2012-5-10 23:10:46

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


这个到底是哪里出错了。。。。??求助啊

bluesnowbird 发表于 2012-5-10 23:11:38

贴出来。。
Start Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00200000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......
Uncompressing Linux............................................................................................................................... done, booting the kernel.
Linux version 2.6.30.4-EmbedSky (root@bogon) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #1 Wed May 9 08:15:12 PDT 2012
CPU: ARM920T revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console enabled
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: 60664KB available (3596K code, 376K data, 120K init, 0K highmem)
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 936 bytes
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 97 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
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
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY)&copy; 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
yaffs May9 2012 08:08:22 Installing.
msgmni has been set to 118
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
GPIO-Control initialized
PWM-Test initialized
adc initialized
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2440-uart.0: tq2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: tq2440_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
dm9000 Ethernet Driver, V1.31
Now use the default MAC address: 10:23:45:67:89:ab
eth0 (dm9000): not using net_device_ops yet
eth0: dm9000e at c4872000,c4876004 IRQ 51 MAC: 10:23:45:67:89:ab (EmbedSky)
SSFDC read-only Flash Translation layer
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 3482 at 0x000003668000
Bad eraseblock 3563 at 0x0000037ac000
SSFDC_RO:can't read CIS/IDI sector
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
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
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
Advanced Linux Sound Architecture Driver Version 1.0.18a.
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2000-08-08 00:00:04 UTC (965692804)
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
s3c2440-sdi s3c2440-sdi: powered down.
VFS: Cannot open root device "mtdblock2" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00         65536 mtdblock0 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c002c700>] (unwind_backtrace+0x0/0xdc) from [<c02b91c0>] (panic+0x40/0x110)
[<c02b91c0>] (panic+0x40/0x110) from [<c0008fcc>] (mount_block_root+0x1d0/0x210)
[<c0008fcc>] (mount_block_root+0x1d0/0x210) from [<c0009264>] (prepare_namespace+0x164/0x1bc)
[<c0009264>] (prepare_namespace+0x164/0x1bc) from [<c0008598>] (kernel_init+0xb4/0xe0)
[<c0008598>] (kernel_init+0xb4/0xe0) from [<c004814c>] (do_exit+0x0/0x578)
[<c004814c>] (do_exit+0x0/0x578) from [<00000001>] (0x1)
*** Warning - bad CRC or NAND, using default environment

bluesnowbird 发表于 2012-5-10 23:13:16

Please append a correct "root=" boot option; here are the available partitions
这句话明白但是在哪儿添加啊? 新手新手啊。。。
哪里的哪个文件?按着这个添加就可以了吗?

~悟`~念~ 发表于 2012-5-10 23:46:03

bluesnowbird 发表于 2012-5-10 23:13 static/image/common/back.gif
Please append a correct "root=" boot option; here are the available partitions
这句话明白但是在哪儿 ...

没看到你分的区,看看是否分区有误,还有支持的配置!

DoReMi 发表于 2012-5-10 23:47:25

你是用nfs 還是flash

你板子的bootargs 有設對嗎?

bluesnowbird 发表于 2012-5-11 06:24:33

TQ2440的板子怎么看分区信息啊?bootargs怎么设置才对啊?这个不知道怎么改在哪儿看啊?以前板子上带的是wince 是学姐烧过的我只用擦出了一遍

bluesnowbird 发表于 2012-5-11 06:28:20

~悟`~念~ 发表于 2012-5-10 23:46 static/image/common/back.gif
没看到你分的区,看看是否分区有误,还有支持的配置!

这个分区信息在哪儿可以看到啊?支持的配置应该怎么设置才正确 ,如果分区有误怎么分区?

bluesnowbird 发表于 2012-5-11 06:31:14

~悟`~念~ 发表于 2012-5-10 23:46 static/image/common/back.gif
没看到你分的区,看看是否分区有误,还有支持的配置!

是这个吗
device nand0 <nandflash0>, # parts = 7
#: name                        size            offset          mask_flags
0: bios                0x00040000      0x00000000      0
1: params            0x00020000      0x00040000      0
2: toc               0x00020000      0x00060000      0
3: eboot               0x00080000      0x00080000      0
4: logo                0x00100000      0x00100000      0
5: kernel            0x00200000      0x00200000      0
6: root                0x03c00000      0x00400000      0

active partition: nand0,0 - (bios) 0x00040000 @ 0x00000000

defaults:
mtdids: nand0=nandflash0
mtdparts: mtdparts=nandflash0:256k@0(bios),128k(params),128k(toc),512k(eboot),1024k(logo),2m(kernel),-(root)

bluesnowbird 发表于 2012-5-11 06:45:00

~悟`~念~ 发表于 2012-5-10 23:46 static/image/common/back.gif
没看到你分的区,看看是否分区有误,还有支持的配置!

如果需要改分区,分区完成之后要改内核参数吗?改哪些在哪里改?我想直接烧写光盘里带的U_BOOT
请详细告知万分感谢!:D

bluesnowbird 发表于 2012-5-11 06:47:08

~悟`~念~ 发表于 2012-5-10 23:46 static/image/common/back.gif
没看到你分的区,看看是否分区有误,还有支持的配置!

支持的配置是指哪些相关配置?是.config内容吗

bluesnowbird 发表于 2012-5-11 07:01:32

本帖最后由 bluesnowbird 于 2012-5-11 07:06 编辑

U-boot 中/include/configs/EmbedSky.h一部分信息是这样的饿
#define CONFIG_64MB_Nand                0                //添加了对64MB Nand Flash支持
#define CONFIG_128MB_Nand                0                //添加了对128MB Nand Flash支持,当为1时就是128MB的Nand Flash

/* enable 128MB SDRAM */
#define CONFIG_128MB_SDRAM                0

/* enable SDRAM 133MHz */
#define CONFIG_133MHZ_SDRAM                0

#define CONFIG_JFFS2_CMDLINE                1
#define CONFIG_JFFS2_NAND                1

#define MTDIDS_DEFAULT                        "nand0=nandflash0"

#if(CONFIG_64MB_Nand == 1)
#define MTDPARTS_DEFAULT                "mtdparts=nandflash0:256k@0(bios)," \
                                        "48k(params)," \
                                        "144k(eboot)," \
                                        "1536k(logo)," \
                                        "2m(kernel)," \
                                        "-(root)"

#else
#if( LCD_TFT == VGA1024768 )
#define MTDPARTS_DEFAULT                "mtdparts=nandflash0:256k@0(bios)," \
                                          "128k(params)," \
                                          "128k(toc)," \
                                          "256k(eboot)," \
                                          "1792k(logo)," \
                                          "3m(kernel)," \
                                          "-(root)"
#else
#define MTDPARTS_DEFAULT                "mtdparts=nandflash0:256k@0(bios)," \
                                          "128k(params)," \
                                          "128k(toc)," \
                                          "512k(eboot)," \
                                          "1024k(logo)," \
                                          "3m(kernel)," \
                                          "-(root)"
#endif

#endif

bluesnowbird 发表于 2012-5-11 07:12:41

.config中有这么一个设置
CONFIG_CMDLINE="root=/dev/hda1 ro init=/bin/bash console=ttySAC0"

~悟`~念~ 发表于 2012-5-11 07:59:08

bluesnowbird 发表于 2012-5-11 07:12 static/image/common/back.gif
.config中有这么一个设置
CONFIG_CMDLINE="root=/dev/hda1 ro init=/bin/bash console=ttySAC0"

             如图,我的意思是没有看到你的分区信息,看一下是否是你的分区错误,或者是配置错误,配置除了改内核就是make menuconfig里面的配置!这个需要细心,看你的启动信息,yaffs2文件系统也是没有移植成功,个人分析:因为nand flash分区那里有误,所以导致后面的移植失败!也不知道你做的是那个的移植,也没有说清楚,所以我只能说这些。至于配置的问题,建议看手册,手册上我个人觉得是很详细的,除了那些失效链接下载不了和串行问题,移植不成功就是个人不细心造成的!

~悟`~念~ 发表于 2012-5-11 08:23:09

bluesnowbird 发表于 2012-5-11 06:45 static/image/common/back.gif
如果需要改分区,分区完成之后要改内核参数吗?改哪些在哪里改?我想直接烧写光盘里带的U_BOOT
请详细告 ...

直接烧写光盘里的uboot很简单,用USB一键下载或者用jtag都可以,这个手册的用法里讲的很清楚!

bluesnowbird 发表于 2012-5-11 10:32:11

本帖最后由 bluesnowbird 于 2012-5-11 10:34 编辑

~悟`~念~ 发表于 2012-5-11 08:23 http://bbs.embedsky.net/static/image/common/back.gif
直接烧写光盘里的uboot很简单,用USB一键下载或者用jtag都可以,这个手册的用法里讲的很清楚!

我也试过用光盘里带的uboot直接烧写 并且烧写里面的linux 文件系统
就是按照光盘里说的移植啊可是总也不成功。。。
有时候烧写玩U-boot 或者烧写玩linux 内核或文件系统之后板子总会莫名其妙自己重新启动
或者烧写过程中自己启动。。。   不知道怎么回事
然后就提示bad crc or nandflash具体我也不清楚怎么了
自己编译了u-boot linux内核然后就成了现在这样了
我用的是usb转公口串口的线然后连接一个两头都是母口的串口线在连接上板子
usb下载线下载
在我选择9 格式化 1    ynandflash后有时候也会自动重启,有时是格式化的过程中就重启了。。


页: [1] 2
查看完整版本: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)