Electronic Components Datasheet Search
  English  ▼

X  

UM0851 Datasheet(PDF) 133 Page - STMicroelectronics

Part # UM0851
Description  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 Datasheet(HTML) 133 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 129Page - STMicroelectronics UM0851 Datasheet HTML 130Page - STMicroelectronics UM0851 Datasheet HTML 131Page - STMicroelectronics UM0851 Datasheet HTML 132Page - STMicroelectronics UM0851 Datasheet HTML 133Page - STMicroelectronics UM0851 Datasheet HTML 134Page - STMicroelectronics UM0851 Datasheet HTML 135Page - STMicroelectronics UM0851 Datasheet HTML 136Page - STMicroelectronics UM0851 Datasheet HTML 137Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 133 / 245 page
background image
UM0851
Non-volatile memory device drivers
Doc ID 16604 Rev 2
133/245
MTD device nodes
MTD is neither a block nor a char device. There are translations (Flash translation layers or
FTLs) to use them, as if they were.
Instead, the MTD device:
●
Consists of eraseblocks
●
Maintains 3 main operations: read from eraseblock, write to eraseblock, and erase
eraseblock
●
Bad eraseblocks are not hidden and should be dealt with in software
Two popular user modules that enable access to Flash are character device nodes and
block device nodes. Character device nodes provide raw character access to the Flash,
while block device nodes project the Flash as a normal block device, on which a file system
can be created. The devices associated with character device nodes are /dev/mtd0, mtd1,
mtd2 (etc.), while the devices associated with block device nodes are /dev/mtdblock0,
mtdblock1 (etc). Since block device nodes provide block-device-like emulation, it is often
preferable to use file systems like YAFFS/JFFS2 over this emulation.
You can find the list of MTD device nodes below:
# cat /proc/mtd
dev:
size
erasesize
name
mtd0: 00010000 00010000 "XLoader"
mtd1: 00040000 00010000 "UBoot"
mtd2: 002c0000 00010000 "Kernel"
mtd3: 004f0000 00010000 "Root File system"
mtd4: 00010000 00004000 "XLoader"
mtd5: 00050000 00004000 "Uboot"
mtd6: 00400000 00004000 "Kernel"
mtd7: 03ba0000 00004000 "Root File system"
# ls /dev/mtd* -l
crw-rw----
1 0
0
90,
0 Jan
1 00:00 /dev/mtd0
crw-rw----
1 0
0
90,
2 Jan
1 00:00 /dev/mtd1
crw-rw----
1 0
0
90,
4 Jan
1 00:00 /dev/mtd2
crw-rw----
1 0
0
90,
6 Jan
1 00:00 /dev/mtd3
crw-rw----
1 0
0
90,
8 Jan
1 00:00 /dev/mtd4
crw-rw----
1 0
0
90,
10 Jan
1 00:00 /dev/mtd5
crw-rw----
1 0
0
90,
12 Jan
1 00:00 /dev/mtd6
crw-rw----
1 0
0
90,
14 Jan
1 00:00 /dev/mtd7
brw-rw----
1 0
0
31,
0 Jan
1 00:00 /dev/mtdblock0
brw-rw----
1 0
0
31,
1 Jan
1 00:00 /dev/mtdblock1
brw-rw----
1 0
0
31,
2 Jan
1 00:00 /dev/mtdblock2
brw-rw----
1 0
0
31,
3 Jan
1 00:00 /dev/mtdblock3
brw-rw----
1 0
0
31,
4 Jan
1 00:00 /dev/mtdblock4
brw-rw----
1 0
0
31,
5 Jan
1 00:00 /dev/mtdblock5
brw-rw----
1 0
0
31,
6 Jan
1 00:00 /dev/mtdblock6
brw-rw----
1 0
0
31,
7 Jan
1 00:00 /dev/mtdblock7
#
Raw mode usage from user space
Raw mode means accessing NAND via MTD layer without using file systems. MTD utils can
be used to access NAND Flash directly without file system. MTD utils uses nodes such as
/dev/mtdX or /dev/mtdblockX and operates using IOCTL calls.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com