几个很好的nand nor flash的网页
Is an MTD device a block device or a char device?First off,an MTD is a "Memory Technology Device",so it's just "MTD". An "MTD device" is a pleonasm. Unix traditionally only knew block devices and character devices. Character devices were things like keyboards or mice,that you could read current data from,but couldn't be seek-ed and didn't have a size. Block devices had a fixed size and could be seek-ed. They also happened to be organized in blocks of multiple bytes,usually 512. Flash doesn't match the description of either block or character devices. They behave similar to block device,but have differences. For example,block devices don't distinguish between write and erase operations. Therefore,a special device type to match flash characteristics was created: MTD. So MTD is neither a block nor a char device.?There are translations to use them,as if they were. But those translations are nowhere near the original,just like translated Chinese poems.?
Can I mount ext2 over an MTD device?Ext2,ext3,XFS,JFS,FAT and other "conventional" file systems work with block devices. They are designed this way. Flashes are not block devices,they are very different beasts . Please,read?this,and?this?FAQ entries.Please,do not be confused by USB stick,MMC,SD,CompactFlash and other popular removable devices. Although they are also called "flash",they are not MTD devices. They are out of MTD subsystem's scope. Please,read?this?FAQ entry. In order to use one of conventional file systems over an MTD device,you need a software layer which emulates a block device over the MTD device. These layers are often calledFlash Translation Layers?(FTLs). There is an?extremely?simple FTL layer in Linux MTD subsystem -? But in many cases using? Unfortunately it is a rather difficult task to create a good FTL layer and nobody still managed to implement one for Linux. But now when we have UBI (see?here) it is much easier to do it on top of UBI. It makes sense to use? 载自 :http://www.linux-mtd.infradead.org/faq/general.html //=================================================== NAND vs. NORBeside the different silicon cell design,the most important difference between NAND and NOR Flash is the bus interface. NOR Flash is connected to a address / data bus direct like other memory devices as SRAM etc. NAND Flash uses a multiplexed I/O Interface with some additional control pins. NAND flash is a sequential access device appropriate for mass storage applications,while NOR flash is a random access device appropriate for code storage application. NOR Flash can be used for code storage and code execution. Code stored on NAND Flash can't be executed from there. It must be loaded into RAM memory and executed from there.
载自:http://www.linux-mtd.infradead.org/doc/nand.html //====================================================== NOR & NAND
载自: http://blog.chinaunix.net/u2/70445/showart_1674219.html 从linux软件的角度看FLASH:?? ------C runtime(glibc 2.x)------------------------------ ------kernel inte**ce(system call)--------------------- ------Filesystem(ext2,FAT,JFFS/JFFS2)----------------- ------MTD(/dev/fla?,block device)---------------------- ------MTD(/dev/mtd?,char device)----------------------- ------Translation Layer(CFI,FTL,NFTL)----------------- ------NAND,NOR,AND------------------------------------ ------Hardware level,FLASH(raw flash,DOC/DOM/CF)------ 载自:http://hi.baidu.com/hilyjiang/blog/item/804165e73d857b2fb8382067.html FLASH MEMORY wiki 载自:http://en.wikipedia.org/wiki/Flash_memory (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |