天嵌 ARM开发社区

 找回密码
 注册
查看: 4966|回复: 32

文件系统挂载问题。

[复制链接]
vip2009 发表于 2011-2-14 20:40:10 | 显示全部楼层 |阅读模式
## Booting image at 30008000 ...                                                
   Image Name:   linux-2.6.30                                                   
   Created:      2011-02-14  12:28:39 UTC                                       
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    1388728 Bytes =  1.3 MB                                       
   Load Address: 30008000                                                      
   Entry Point:  30008040                                                      
   Verifying Checksum ... OK                                                   
   XIP Kernel Image ... OK                                                      
                                                                                
Starting kernel ...                                                            
                                                                                
Uncompressing Linux.............................................................
Linux version 2.6.30 (root@ubuntu) (gcc version 4.3.3 (Sourcery G++ Lite 2009q11
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177                        
CPU: VIVT data cache, VIVT instruction cache                                    
Machine: SMDK2440                                                               
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 00000200                                       
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 [ttySAC0] 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: 62028KB available (2416K code, 255K data, 92K init, 0K highmem)         
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)                          
Mount-cache hash table entries: 512                                             
CPU: Testing write buffer coherency: ok                                         
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                                                   
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                                 
NetWinder Floating Point Emulator V0.97 (extended precision)                    
NTFS driver 2.1.29 [Flags: R/W DEBUG].                                          
JFFS2 version 2.2. (NAND) (SUMMARY)  
 楼主| vip2009 发表于 2011-2-14 20:41:43 | 显示全部楼层
NetWinder Floating Point Emulator V0.97 (extended precision)                    
NTFS driver 2.1.29 [Flags: R/W DEBUG].                                          
JFFS2 version 2.2. (NAND) (SUMMARY)  
 楼主| vip2009 发表于 2011-2-14 20:43:22 | 显示全部楼层
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":                          
0x000000000000-0x000000040000 : "uboot"                                         
0x000000200000-0x000000400000 : "kernel"                                       
0x000000400000-0x000010200000 : "yaffs2"                                       
mtd: partition "yaffs2" extends beyond the end of device "NAND 256MiB 3,3V 8-bi0
mice: PS/2 mouse device common for all mice                                    
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics                             
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled         
end_request: I/O error, dev mtdblock2, sector 2                                 
EXT4-fs: unable to read superblock                                             
end_request: I/O error, dev mtdblock2, sector 0                                 
Buffer I/O error on device mtdblock2, logical block 0                           
end_request: I/O error, dev mtdblock2, sector 0                                 
Buffer I/O error on device mtdblock2, logical block 0                           
end_request: I/O error, dev mtdblock2, sector 8                                 
Buffer I/O error on device mtdblock2, logical block 1                           
end_request: I/O error, dev mtdblock2, sector 8                                 
Buffer I/O error on device mtdblock2, logical block 1                           
end_request: I/O error, dev mtdblock2, sector 16                                
Buffer I/O error on device mtdblock2, logical block 2                           
end_request: I/O error, dev mtdblock2, sector 16                                
Buffer I/O error on device mtdblock2, logical block 2                           
end_request: I/O error, dev mtdblock2, sector 24                                
Buffer I/O error on device mtdblock2, logical block 3                           
end_request: I/O error, dev mtdblock2, sector 24                                
Buffer I/O error on device mtdblock2, logical block 3                           
end_request: I/O error, dev mtdblock2, sector 0                                 
FAT: unable to read boot sector                                                
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          258048 mtdblock2 (driver?)                                       
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
[<c0025700>] (unwind_backtrace+0x0/0xdc) from [<c01cd8f0>] (panic+0x40/0x110)   
[<c01cd8f0>] (panic+0x40/0x110) from [<c0008fa8>] (mount_block_root+0x25c/0x2ac)
[<c0008fa8>] (mount_block_root+0x25c/0x2ac) from [<c00091c0>] (prepare_namespac)
[<c00091c0>] (prepare_namespace+0x164/0x1bc) from [<c0008598>] (kernel_init+0xb)
[<c0008598>] (kernel_init+0xb4/0xe0) from [<c00410f8>] (do_exit+0x0/0x578)      
[<c00410f8>] (do_exit+0x0/0x578) from [<00000001>] (0x1)
shufexiu 发表于 2011-2-15 09:57:40 | 显示全部楼层
你格式化再试一试
 楼主| vip2009 发表于 2011-2-15 12:37:54 | 显示全部楼层
4# shufexiu

我又试了一次,把环境变量bootargs后面加了一个 rootfstype=yaffs2第一个错误就没有了,但第二个错误还存在。
天嵌_support1 发表于 2011-2-15 13:12:12 | 显示全部楼层
加一下QQ,我看看吧 1685882109
 楼主| vip2009 发表于 2011-2-15 22:55:56 | 显示全部楼层
现在的错误是这样的:
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: 0xda (Samsung NAND 256MiB 3,3V 8-bit)                                                
Scanning device for bad blocks                                                                                                     
Bad eraseblock 704 at 0x000005800000                                                                                               
Bad eraseblock 705 at 0x000005820000                                                                                               
Bad eraseblock 1200 at 0x000009600000                                                                                             
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":                                                                             
0x000000000000-0x000000040000 : "uboot"                                                                                            
0x000000200000-0x000000400000 : "kernel"                                                                                          
0x000000400000-0x000010200000 : "yaffs2"                                                                                          
mtd: partition "yaffs2" extends beyond the end of device "NAND 256MiB 3,3V 8-bit" -- size truncated to 0xfc00000                  
mice: PS/2 mouse device common for all mice                                                                                       
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics                                                                                
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled                                                            
yaffs: dev is 32505858 name is "mtdblock2"                                                                                         
yaffs: passed flags ""                                                                                                            
yaffs: Attempting MTD mount on 31.2, "mtdblock2"                                                                                   
yaffs: auto selecting yaffs2                                                                                                      
block 673 is bad                                                                                                                  
block 674 is bad                                                                                                                  
block 1169 is bad                                                                                                                  
yaffs_read_super: isCheckpointed 0                                                                                                
VFS: Mounted root (yaffs filesystem) on device 31:2.                                                                              
Freeing init memory: 88K                                                                                                           
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.                                                   
[<c0024700>] (unwind_backtrace+0x0/0xdc) from [<c01787f0>] (panic+0x40/0x110)                                                      
[<c01787f0>] (panic+0x40/0x110) from [<c001e4c0>] (init_post+0xcc/0xf4)                                                            
[<c001e4c0>] (init_post+0xcc/0xf4) from [<c000859c>] (kernel_init+0xb8/0xe0)                                                      
[<c000859c>] (kernel_init+0xb8/0xe0) from [<c0040118>] (do_exit+0x0/0x578)                                                         
[<c0040118>] (do_exit+0x0/0x578) from [<00000001>] (0x1)
 楼主| vip2009 发表于 2011-2-15 23:03:41 | 显示全部楼层
我用的双系统。QQ不能远程。。
shufexiu 发表于 2011-2-16 12:15:49 | 显示全部楼层
在我看来你的分区信息不对了。你最后那个yaffs分区结束点为 10200000
已经查出了范围,你将其设置为500000
而不知道你的uboot写的设置不知道是不是也这样
 楼主| vip2009 发表于 2011-2-16 20:38:30 | 显示全部楼层
9# shufexiu


非常感谢你的回答;但是改过来之后烧进nand 还是不对;
我的nand是256M 的  。mtd分区还是按256M 来分的;
我的uboot是在nor flash 中,通过run bootcmd引导nand中的内核;
启动信息如下:
loop: module loaded                                                                                                   
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: 0xda (Samsung NAND 256MiB 3,3V 8-bit)                                    
Scanning device for bad blocks                                                                                         
Bad eraseblock 704 at 0x000005800000                                                                                   
Bad eraseblock 705 at 0x000005820000                                                                                   
Bad eraseblock 1200 at 0x000009600000                                                                                 
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":                                                                 
0x000000000000-0x000000040000 : "uboot"                                                                                
0x000000200000-0x000000400000 : "kernel"                                                                              
0x000000400000-0x000010000000 : "yaffs2"                                                                              
mice: PS/2 mouse device common for all mice                                                                           
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics                                                                    
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled                                                
yaffs: dev is 32505858 name is "mtdblock2"                                                                             
yaffs: passed flags ""                                                                                                
yaffs: Attempting MTD mount on 31.2, "mtdblock2"                                                                       
yaffs: auto selecting yaffs2                                                                                          
block 673 is bad                                                                                                      
block 674 is bad                                                                                                      
block 1169 is bad                                                                                                      
yaffs_read_super: isCheckpointed 0                                                                                    
VFS: Mounted root (yaffs filesystem) on device 31:2.                                                                  
Freeing init memory: 88K                                                                                               
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.                                       
[<c0024700>] (unwind_backtrace+0x0/0xdc) from [<c01787f0>] (panic+0x40/0x110)                                          
[<c01787f0>] (panic+0x40/0x110) from [<c001e4c0>] (init_post+0xcc/0xf4)                                                
[<c001e4c0>] (init_post+0xcc/0xf4) from [<c000859c>] (kernel_init+0xb8/0xe0)                                          
[<c000859c>] (kernel_init+0xb8/0xe0) from [<c0040118>] (do_exit+0x0/0x578)                                             
[<c0040118>] (do_exit+0x0/0x578) from [<00000001>] (0x1)


这个是uboot中的环境变量:
baudrate=115200                                                                                                        
ethaddr=0a:1b:2c:3d:4e:5f                                                                                             
ipaddr=192.168.1.230                                                                                                   
serverip=192.168.1.100                                                                                                
netmask=255.255.255.0                                                                                                  
mtdids=nand0=nandflash0                                                                                                
mtdparts=mtdparts=nandflash0:512k@0(bios),128k(params),128k(toc),512k(eboot),1024k(logo),2m(kernel),-(root)            
bootargs=noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0 rootfstype=yaffs                                   
bootcmd=nand read 30008000 200000 200000;bootm 30008000                                                               
stdin=serial                                                                                                           
stdout=serial                                                                                                         
stderr=serial                                                                                                         
partition=nand0,0                                                                                                      
mtddevnum=0                                                                                                            
mtddevname=bios                                                                                                        
bootdelay=3
天嵌_support1 发表于 2011-2-17 10:56:25 | 显示全部楼层
你是自己制作文件系统而已还是 内核也自己移植。
如果是请注意一下
General setup--->
Choose SLAB allocator (SLUB (Unqueued Allocator))
shufexiu 发表于 2011-2-17 10:59:58 | 显示全部楼层
:)
 楼主| vip2009 发表于 2011-2-17 15:02:59 | 显示全部楼层
11# embedsky_lxt


文件系统和内核都是自己做的。弄了近一个星期了,还是挂不起文件系统。
晚上回家试一下!:)
 楼主| vip2009 发表于 2011-2-17 15:04:35 | 显示全部楼层
11# embedsky_lxt


对了,下面这个选项是要选中还是不选中呢?
General setup--->
Choose SLAB allocator (SLUB (Unqueued Allocator))
天嵌_support1 发表于 2011-2-17 15:13:25 | 显示全部楼层
选中了的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-7-16 03:08 , Processed in 1.046875 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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