导航: 老古网老古论坛XMOS公共讨论区XMOS开源项目区单片机程序设计嵌入式系统广告区域
→请帮看看2.6.12.1内核加载yaffs文件系统出现的问题[zhaoxuhua_1]

 *第43177篇: 请帮看看2.6.12.1内核加载yaffs文件系统出现的问题?

  
楼 主:zhaoxuhua_1 2006年9月10日11:53
 请帮看看2.6.12.1内核加载yaffs文件系统出现的问题?
我现在正在做把linux 2.6.12.1内核移植到基于s3c2410x处理器的ARM板上。
我在板子上已经烧录了bootloader(vivi,可烧录kernel,yaffs根文件系统),
内核2.6.12.1(用arm-linux-gcc 3.4.1编译,并且已经支持yaffs文件系统),以及yaffs映像文件。
我在vivi中用part命令在nand flash上分了四个区,分别是vivi区,param区,kernel区和root区。
这四个分区是和内核的devs.c文件的分区信息一一对应。

现在在加载yaffs根文件系统时总是失败
  提示如下: 
    vivi>   boot          
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x001c000                                                                
zImage magic = 0x016f2818                         
Setup linux parameters at 0x30000100                                    
linux command line is: "noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttyS                                                                                
AC0"    
MACH_TYPE = 193               
NOW, Booting Linux......                        
Uncompressing Linux.............................................................                                                                                
............. done, booting the kernel.                                       
Linux version 2.6.12.1 (root@localhost.localdomain) (gcc version 3.4.1) #1 Sun S                                                                                
ep 10 10:17:47 CST 2006                       
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)                                                 
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                                                                   
Machine: SMDK2410                 
ATAG_INITRD is deprecated; please update your bootloader.                                                         
Memory policy: ECC disabled, Data cache writeback                                                 
CPU S3C2410 (id 0x32410000)                           
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz                                                                    
S3C2410 Clocks, (c) 2004 Simtec Electronics                                           
Built 1 zonelists                 
Kernel command line: noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttySAC0                                                                                

irq: clearing subpending status 00000007                                        
irq: clearing subpending status 00000002                                        
PID hash table entries: 512 (order: 9, 8192 bytes)                                                  
timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8                                                                     
Console: colour dummy device 80x30                                  
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)                                                              
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)                                                            
Memory: 64MB = 64MB total                         
Memory: 62464KB available (1863K code, 399K data, 92K init)                                                           
Mount-cache hash table entries: 512                                   
CPU: Testing write buffer coheren                                
NET: Registered protocol family 16                                  
S3C2410: Initialising architecture                                  
S3C2410 DMA Driver, (c) 2003-2004 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                                 
NetWinder Floating Point Emulator V0.97 (extended precision)                                                            
audit: initializing netlink socket (disabled)                                             
audit(0.170:0): initialized                           
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)                                                      
devfs: devfs_debug: 0x0                       
devfs: boot_options: 0x1                        
Initializing Cryptographic API
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
DLCI driver v0.35, 4 Jan 1997, mike.mclagan@linux.org.
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mtdblock/3" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


  为什么会出现这种情况?我在vivi下输入的启动参数如下:
  param set linux_cmd_line "noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttySAC0"
  好象是输入的启动参数不对,但不知应该怎么改?
    另外,提示有这样一条信息:IP-Config: Device `eth0' not found.
  说明网卡驱动不正常,板子的网卡驱动芯片是cs8900a。不知哪位高人有这方面的经验,可以指点小弟一二。


>>>>>>对该主题发表你的看法

本主题贴数1,分页: [第1页]


[上一篇主题]:mp5晶振

[下一篇主题]:[求助]怎样使得串口保持常高或者常低?