QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: jackzheng2002

ARMLinux-S3C2410-YAFFS 开发档案

[复制链接]
发表于 2006-7-2 21:14:38 | 显示全部楼层

我也要

me too
回复

使用道具 举报

发表于 2006-8-1 10:37:27 | 显示全部楼层
在YAFFS2文件系统下,从NOR FLASH(JFFS2)下CP一个2M的文件到NAND FLASH大约需要多少时间?
回复

使用道具 举报

发表于 2006-8-2 15:54:30 | 显示全部楼层
[quote:7b2fe5bd88="silencexf"]在YAFFS2文件系统下,从NOR FLASH(JFFS2)下CP一个2M的文件到NAND FLASH大约需要多少时间?[/quote]
怎么没人告诉啊?
回复

使用道具 举报

发表于 2006-11-15 16:17:08 | 显示全部楼层
刚开始搞,很多不明白,望各位高手多指教阿
现在手上的s3c2410板子上已经烧好u-boot和系统,系统主文件系统是crams,同时挂接yaffs文件系统到nand flash最后一个分区,但是为什么下载到nand flash最后一个分区上的yaffs镜像识别不出来,希望高手帮忙分析下原因
回复

使用道具 举报

发表于 2007-3-30 11:41:36 | 显示全部楼层

奇怪的问题

我移植的内核为2.3.14,请看下我的提示信息

Copy linux kernel from 0x00030000 to 0x30008000, size = 0x00100000 ... done                                                        
zImage magic = 0x016f2818                                                                                                         
Setup linux parameters at 0x30000100                                                                                               
linux command line is: "noinitrd console=ttySAC0 init=/linuxrc root=/dev/mtdblock/3"                                               
MACH_TYPE = 193                                                                                                                    
NOW, Booting Linux......                                                                                                           
Uncompressing Linux.................................................................... done, booting the kernel.                  
Linux version 2.6.14 (root@jlu3389) (gcc version 3.4.1) #5 Thu Mar 29 15:23:14 CST 2007                                            
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)                                                                                 
Machine: SMDK2410                                                                                                                  
ATAG_INITRD is deprecated; please update your bootloader.                                                                          
Memory policy: ECC disabled, Data cache writeback                                                                                 
CPU S3C2410A (id 0x32410002)                                                                                                      
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz                                                               
S3C2410 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                                                                                                                  
Kernel command line: noinitrd console=ttySAC0 init=/linuxrc root=/dev/mtdblock/3                                                   
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: 62592KB available (1706K code, 378K data, 92K init)                                                                        
Mount-cache hash table entries: 512                                                                                                
CPU: Testing write buffer coherency: ok                                                                                            
softlockup thread 0 started up.                                                                                                   
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 (double precision)                                                                        
devfs: 2004-01-31 Richard Gooch ([email protected])                                                                             
devfs: devfs_debug: 0x0                                                                                                            
devfs: boot_options: 0x1                                                                                                           
yaffs Mar 29 2007 15:17:38 Installing.                                                                                             
Console: switching to colour frame buffer device 80x25                                                                             
fb0: Virtual frame buffer device, using 1024K of video memory                                                                     
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                                                              
S3C24XX NAND Driver, (c) 2004 Simtec Electronics                                                                                   
s3c2410-nand: mapped registers at c4980000                                                                                         
s3c2410-nand: timing: Tacls 10ns, Twrph0 40ns, Twrph1 10ns                                                                        
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-0x00200000 : "loader"                                                                                                   
0x00020000-0x00030000 : "param"                                                                                                   
0x00030000-0x001f0000 : "kernel"                                                                                                   
0x00200000-0x00400000 : "root"                                                                                                     
0x00400000-0x03ef8000 : "user"                                                                                                     
mice: PS/2 mouse device common for all mice                                                                                       
NET: Registered protocol family 2                                                                                                  
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                                                                     
TCP established hash table entries: 4096 (order: 2, 16384 bytes)                                                                  
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)                                                                          
TCP: Hash tables configured (established 4096 bind 4096)                                                                           
TCP reno registered                                                                                                               
TCP bic registered                                                                                                                 
NET: Registered protocol family 1                                                                                                  
Root-NFS: No NFS server available, giving up.                                                                                      
VFS: Unable to mount root fs via NFS, trying floppy.                                                                              
Reading data from NAND FLASH without ECC is not recommended                                                                        
yaffs: dev is 32505859 name is "mtdblock3"                                                                                         
yaffs: Attempting MTD mount on 31.3, "mtdblock3"                                                                                   
**>>yaffs ecc error unfixed on chunk 31:0                                                                                          
**>>yaffs ecc error unfixed on chunk 31:1                                                                                          
**>> yaffs: getBlockInfo block 0 is not valid                                                                                      
**>>Block 0 marked for retirement                                                                                                  
**>>yaffs ecc error unfixed on chunk 107:0                                                                                         
**>>yaffs ecc error unfixed on chunk 107:1                                                                                         
**>>Block 3 marked for retirement                                                                                                  
**>>yaffs ecc error unfixed on chunk 124:0                                                                                         
**>>yaffs ecc error unfixed on chunk 124:1                                                                                         
**>>Block 3 marked for retirement                                                                                                  
**>>yaffs ecc error unfixed on chunk 168:0                                                                                         
**>>yaffs ecc error unfixed on chunk 168:1                                                                                         
**>>Block 5 marked for retirement                                                                                                  
**>>yaffs ecc error unfixed on chunk 378:0                                                                                         
**>>Block 11 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 393:1                                                                                         
**>>Block 12 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 427:1                                                                                         
**>>Block 13 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 450:0                                                                                         
**>>yaffs ecc error unfixed on chunk 450:1                                                                                         
**>>Block 14 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 851:0                                                                                         
**>>yaffs ecc error unfixed on chunk 851:1                                                                                         
**>>Block 26 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 1327:0                                                                                       
**>>yaffs ecc error unfixed on chunk 1327:1                                                                                       
**>>Block 41 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 1344:0                                                                                       
**>>yaffs ecc error unfixed on chunk 1344:1                                                                                       
**>>Block 42 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 1364:0                                                                                       
**>>yaffs ecc error unfixed on chunk 1364:1                                                                                       
**>>Block 42 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 1381:0                                                                                       
**>>yaffs ecc error unfixed on chunk 1381:1                                                                                       
**>>Block 43 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 1445:0                                                                                       
**>>yaffs ecc error unfixed on chunk 1445:1                                                                                       
**>>Block 45 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 1451:0                                                                                       
**>>yaffs ecc error unfixed on chunk 1451:1                                                                                       
**>>Block 45 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 2985:0                                                                                       
**>>yaffs ecc error unfixed on chunk 2985:1                                                                                       
**>>Block 93 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 3429:0                                                                                       
**>>yaffs ecc error unfixed on chunk 3429:1                                                                                       
**>>Block 107 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 3434:0                                                                                       
**>>yaffs ecc error unfixed on chunk 3434:1                                                                                       
**>>Block 107 marked for retirement                                                                                                
**>>yaffs ecc error unfixed on chunk 3439:0                                                                                       
**>>yaffs ecc error unfixed on chunk 3439:1                                                                                       
**>>Block 107 marked for retirement                                                                                                
VFS: Mounted root (yaffs filesystem) readonly.                                                                                    
mount_devfs_fs(): unable to mount devfs, err: -2                                                                                   
Freeing init memory: 92K                                                                                                           
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.  

真不明白错误原因是什么。我已经禁止了ecc了
这之后我又把ecc_soft这个也删除了。
错误反而更多了。
求求大虾们帮我解决这个问题。谢谢了
回复

使用道具 举报

发表于 2007-11-6 14:40:28 | 显示全部楼层
我的文件系统原先是 jffs2的  但板子起来太慢  所以想用yaffs2 的
但发现些上去后  多了一大堆坏块
麻烦也发我一份  谢谢 !~

[email protected]
回复

使用道具 举报

发表于 2007-11-7 13:36:00 | 显示全部楼层

回复 #51 zhongxj_kevin 的帖子

我用了块512MB的Nand Flash,挂载YAFFS2文件系统,扫描时从1-4096全是坏块,
是不是需要擦除?
可好像mkyaffs不能擦除2048字节大小页面的flash吧?
高手,来帮帮忙!
回复

使用道具 举报

发表于 2008-1-9 16:42:55 | 显示全部楼层
我也需要一份,谢谢.
[email protected]
回复

使用道具 举报

发表于 2008-8-27 14:34:06 | 显示全部楼层
CPU:s3c2440

kernel:linux2.6.24

yaffs:最新版本

下载编译进内核,编译成功,下载到flash,系统正常启动,加载Yaffs文件系统,也能成功,但是将文件写到flash上后,再重启后,发现文件的大小变化了,文件或变大或变小,但变化后文件大小都变为512的倍数。

例如:yaffs文件系统加载到/mnt下

一个文件TD.o大小为190396 B写到/mnt下,当时察看属性,大小是190396 B,但重启系统后,再查看其属性,大小变为:190464B。有的文件变大,有的文件变小,不知道是什么原因,请各位大虾指点一下!!!

十分感激!!!!
回复

使用道具 举报

发表于 2008-11-19 11:42:14 | 显示全部楼层

回复 50# jlu3389 的帖子

我的是linux2.6.14.1内核,修改内核支持yaffs2了,但是启动的错误信息跟你的一样。烦恼了很久,现在还没解决。
回复

使用道具 举报

发表于 2013-1-16 17:29:12 | 显示全部楼层
要怎么将yaffs编译进内核啊,到时下载就下载一个文件就行了,不用分别下载内核和文件系统了。有谁有相关资料的吗
回复

使用道具 举报

发表于 2018-1-26 18:31:16 | 显示全部楼层
过来看看
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-26 15:12 , Processed in 0.109468 second(s), 13 queries .

© 2021 Powered by Discuz! X3.5.

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