Driver development for DiskOnChip in Embedded Linux-general Linux technology-Linux programming and kernel information. For details, see the following. 1 Introduction
With the rapid development of the information age combining Computer and Communication technologies and the wide application of the Internet, the integration of 3C (Computer, Communication, and Consumer) has become a trend, the result is to transfer the computer industry center from comp
sysfs interface instead of older IOCTL or/proc/MTD interfaces, when possible.
The/proc/MTD proc file system file provides general MTD information. This is a legacy interface and the sysfs interface provides more information.MTD subsystem supports bare NAND flashes with software and hardware ECC, onenand flashes, CFI (Common flash Interface) nor flashes, and other flash types.
Additionally, MTD supports legacy FTL/nftl "Translation layers", M-systems 'disko
device.
Software Support
When discussing software support, we should distinguish basic read/write/erase operations from high-level software for disk simulation and flash management algorithms, including performance optimization.
Running code on the nor device does not require any software support. When performing the same operation on the NAND device, the driver is usually needed, that is, the memory technology driver (MTD ), the NAND and nor devices require MTD for write and erase operations.
the characteristics of multi-task and multi-process systems, and some have real-time performance. A small embedded Linux system only needs three basic elements: boot program, Linux microkernel, and initialization process. The CPU used to run embedded Linux can be x86, Alpha, iSCSI, MIPS, PPC, etc. The motherboard used with these chips is very small, usually only one PCI Card, and some are even smaller. The memory required for Embedded Linux is not the well-known general memory, such as hard dis
vendors. The driver is also used to simulate diskonchip products and manage nand flash memory, including error correction, Bad Block Processing, and loss balancing.
The main vendors of NAND Flash are Samsung and Toshiba. flash is used in USB flash drives, various memory cards, and MP3 players. due to technological differences, NAND Flash has a larger storage capacity than nor flash, and cheap. However, there are also disadvantages: you cannot directl
not write information to Bad blocks, which means virtual ing must be performed from beginning to end on the NAND device.
Software SupportWhen discussing software support, we should distinguish basic read/write/erase operations from high-level software for disk simulation and flash management algorithms, including performance optimization.Running code on the nor device does not require any software support. When performing the same operation on the NAND device, the driver is usually needed, that
.2, And the objdump command is used.
# Objdump-x/lib/libsocket. so.2 | grep needed
Needed libc. so.2
# Objdump-x/lib/libc. so.2 | grep needed
That is to say, libsocket. so.2 requires libc. so.2, while libc. so.2 does not require any other libraries. If Ping is included in the image, libsocket. so.2 and libc. so.2 must be listed in the file list.
With buildfile, we can use the "mkifs" utility to generate the startup image file. The syntax format is:
# Mkifs [optional parameter] target file of the
software for the nor device, including the trueffs driver of the M-system, this driver is used by Wind River system, Microsoft, QNX software system, Symbian, Intel, and other vendors.
The driver is also used to simulate diskonchip products and manage nand flash memory, including error correction, Bad Block Processing, and loss balancing.
thesis download Flash technology competition reference http://www.91tech.net/Article/SoftHar
For developers who design embedded Linux systems, there is a problem that must be taken into account, that is, the storage space.We know that the memory used in the embedded Linux system is not the well-known large-capacity general memory, such as hard disk, hard disk, zipdisk, CD-Rom, and DVD. It uses Rom, compactflash, the diskonchip of M-systems, memorystick of Sony, and microdrive of IBM are positive and small, which are similar to the BIOS size o
struct related to bad block management in the NAND drive.
3. nand_ids.c
Two global struct types are defined: struct nand_flash_dev nand_flash_ids [] and struct nand_manufacturers nand_manuf_ids []. The former defines some types of NAND chips, and the latter defines the information of several vendors of NAND chips. The three attributes of nand_flash_ids [] are important, namely pagesize, chipsize, and erasesize. The driver is the three attributes used for data size operations such as erasure and
information to a NAND device requires considerable skill, because designers must not write information to Bad blocks, which means virtual ing must be performed from beginning to end on the NAND device. Software support when discussing software support, the basic read/write/erase operations and high-level software for disk simulation and flash management algorithms should be differentiated, including performance optimization. Running code on the nor device does not require any software support.
must be done throughout the NAND device.No software support is required to run code on nor devices, and in the same operation on NAND devices, drivers are often required, i.e. memory technology drivers (MTD), NAND and NOR devicesMTD is required for line write and erase operations.The drive is also used to simulate and manage NAND flash for diskonchip products, including error correction, bad block handling, and loss balancing. The main suppliers of N
, which means that virtual mapping is required throughout the NAND device.Ten, software supportWhen discussing software support, you should distinguish between basic read/write/erase operations and high-level software for disk emulation and flash management algorithms, including performance optimizations. No software support is required to run code on nor devices, and in the same operation on NAND devices, drivers are often required, i.e. memory technology drivers (MTD), and NAND and nor devices
considerable skill, because designers must not write information to Bad blocks, which means virtual ing must be performed from beginning to end on the NAND device.6. Software SupportWhen discussing software support, we should distinguish basic read/write/erase operations from high-level software for disk simulation and flash management algorithms, including performance optimization. Running code on the NOR device does not require any software support. When performing the same operation on the N
driver to continue other operations. Writing information to a NAND device requires considerable skill, because designers must not write information to Bad blocks, which means virtual ing must be performed from beginning to end on the NAND device.
6. Software SupportWhen discussing software support, we should distinguish basic read/write/erase operations from high-level software for disk simulation and flash management algorithms, including performance optimization. Running code on the nor devi
read/write/erase operations from high-level software for disk simulation and flash management algorithms, including performance optimization.
Running code on the nor device does not require any software support. When performing the same operation on the NAND device, the driver is usually needed, that is, the memory technology driver (MTD ), the NAND and nor devices require MTD for write and erase operations.
Fewer MTDS are required to use the nor device. Many vendors provide more advanced softw
requires considerable skill, because designers must not write information to Bad blocks, which means virtual ing must be performed from beginning to end on the NAND device.
Software SupportWhen discussing software support, we should distinguish basic read/write/erase operations from high-level software for disk simulation and flash management algorithms, including performance optimization.Running code on the nor device does not require any software support. When performing the same operation on
requires considerable skill, because designers must not write information to Bad blocks, which means virtual ing must be performed from beginning to end on the NAND device.Software SupportWhen discussing software support, we should distinguish basic read/write/erase operations from high-level software for disk simulation and flash management algorithms, including performance optimization.Running code on the nor device does not require any software support. When performing the same operation on
vendors.The driver is also used to simulate diskonchip products and manage nand flash memory, including error correction, Bad Block Processing, and loss balancing.Do you know the differences between nor boot and NAND boot? Does your CPU platform support NAND boot?If you are sure you know the difference between the two and your CPU supports NAND boot, you need to know:The CPU generally copies the programs (data) in the first or several blocks of the N
Program to lose weight three steps away
For developers who design embedded Linux systems, there is a problem that must be taken into account, and that is the space of the memory.We know that embedded Linux systems use memory not floppy disks, hard disks, Zip disks, CD-ROMs, DVDs, these well-known large-capacity conventional memory, it uses such as ROM, Compactflash,m-systems diskonchip, Sony's MEMORYSTICK,IBM Microdrive and so on are very small, sim
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.