summaryrefslogtreecommitdiffstats
path: root/rules/mtd-utils.in
blob: ad9c0d916e7c278dd0188703a0117681acf57b0e (plain)
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
## SECTION=shell_and_console

menuconfig MTD_UTILS
	tristate
	prompt "mtd-utils                     "
	select LIBC_M if MTD_UTILS_MKFS_UBIFS
	select ZLIB
	select LIBUUID if MTD_UTILS_MKFS_UBIFS
	select ATTR if MTD_UTILS_MKFS_UBIFS
	select LIBLZO if MTD_UTILS_USE_LIBLZO
	help
	  Memory Technology Device Utilities

	  mtdutils is a set of utilities for doing low-level
	  operations on flash devices.

if MTD_UTILS

config MTD_UTILS_USE_LIBLZO
	bool
	prompt "liblzo support"
	help
	  Enable LZO support

config MTD_UTILS_DOC_LOADBIOS
	bool
	prompt "doc_loadbios"
	help
	  Tool for DoC

config MTD_UTILS_DOCFDISK
	bool
	prompt "docfdisk"
	help
	  Modify INFTL partition tables

config MTD_UTILS_FLASH_ERASE
	bool
	prompt "flash_erase"
	help
	  Erase parts of a MTD device

config MTD_UTILS_FLASH_ERASEALL
	bool
	prompt "flash_eraseall (deprecated)"
	select MTD_UTILS_FLASH_ERASE
	help
	  Deprecated ... use flash_erase instead

config MTD_UTILS_FLASH_LOCK
	bool
	prompt "flash_lock"
	depends on !BUSYBOX_FLASH_LOCK || ALLYES
	help
	  This utility locks one or more sectors of a flash device.

comment "busybox' flash_lock is selected!"
	depends on BUSYBOX_FLASH_LOCK

config MTD_UTILS_FLASH_OTP_DUMP
	bool
	prompt "flash_otp_dump"
	help
	  Display one-time programmable data.

config MTD_UTILS_FLASH_OTP_INFO
	bool
	prompt "flash_otp_info"
	help
	  Print info about one-time programmable data.

config MTD_UTILS_FLASH_OTP_LOCK
	bool
	prompt "flash_otp_lock"
	help
	  Lock one-time programmable data.

config MTD_UTILS_FLASH_OTP_WRITE
	bool
	prompt "flash_otp_write"
	help
	  Write one-time programmable data.

config MTD_UTILS_FLASH_UNLOCK
	bool
	prompt "flash_unlock"
	depends on !BUSYBOX_FLASH_UNLOCK || ALLYES
	help
	  This utility unlocks all sectors of a flash device.

comment "busybox' flash_unlock is selected!"
	depends on BUSYBOX_FLASH_UNLOCK

config MTD_UTILS_FLASHCP
	bool
	prompt "flashcp"
	depends on !BUSYBOX_FLASHCP || ALLYES
	help
	  Flash Copy - Written by Abraham van der Merwe

comment "busybox' flashcp is selected!"
	depends on BUSYBOX_FLASHCP

config MTD_UTILS_FTL_CHECK
	bool
	prompt "ftl_check"
	help
	  Utility to check an FTL (Flash Translation Layer) partition

config MTD_UTILS_FTL_FORMAT
	bool
	prompt "ftl_format"
	help
	  Utility to create an FTL (Flash Translation Layer) partition
	  in a memory region

config MTD_UTILS_JFFS2_DUMP
	bool
	prompt "jffs2_dump"
	help
	  This utility dumps the contents of a binary JFFS2 image.

#config MTD_UTILS_JFFS2READER
#	bool
#	prompt "jffs2reader"
#	help
#	  A jffs2 image reader

config MTD_UTILS_JITTERTEST
	bool
	prompt "jittertest"
	help
	  This program is used to measure what the jitter of a
	  real time task would be under "standard" Linux.

	  More particularly, what is the effect of running
	  a real time task under Linux with background
	  JFFS file system activity.

config MTD_UTILS_MTDDEBUG
	bool
	prompt "mtd_debug"
	help
	  Does info, read, write and erase on mtd devices

config MTD_UTILS_NANDDUMP
	bool
	prompt "nanddump"
	depends on !BUSYBOX_NANDDUMP || ALLYES
	help
	  This utility dumps the contents of raw NAND chips or NAND
	  chips contained in DoC devices.

comment "busybox' nanddump is selected!"
	depends on BUSYBOX_NANDDUMP

config MTD_UTILS_NANDTEST
	bool
	prompt "nandtest"
	help
	  NAND flash test program.

config MTD_UTILS_NANDWRITE
	bool
	prompt "nandwrite"
	depends on !BUSYBOX_NANDWRITE || ALLYES
	help
	  This utility writes a binary image directly to NAND flash
	  chips or NAND chips contained in DoC devices. This is the
	  "inverse operation" of nanddump.

comment "busybox' nandwrite is selected!"
	depends on BUSYBOX_NANDWRITE

config MTD_UTILS_NFTL_FORMAT
	bool
	prompt "nftl_format"
	help
	  Creating an NFTL/INFTL partition on an MTD device

config MTD_UTILS_NFTLDUMP
	bool
	prompt "nftldump"
	help
	  Dumping the contents of NFTL partitions on a "Physical Disk"

config MTD_UTILS_MKJFFS2
	bool
	prompt "mkfs.jffs2"
	help
	  Build a JFFS2 image in a file, from a given directory tree.

config MTD_UTILS_RECV_IMAGE
	bool
	prompt "recv_image"
	help
	  Receive an image via multicast

config MTD_UTILS_RFDDUMP
	bool
	prompt "rfddump"
	help
	  Dumps the contents of a resident flash disk.

config MTD_UTILS_RFDFORMAT
	bool
	prompt "rfdformat"
	help
	  Formats NOR flash for resident flash disk.

config MTD_UTILS_SERVE_IMAGE
	bool
	prompt "serve_image"
	help
	  Distribute flash image to network

config MTD_UTILS_SUMTOOL
	bool
	prompt "sumtool"
	help
	  Sumtool can be used to generate EBS(Erase Block Summary)
	  information for a jffs2 image. This way we can do faster
	  filesystem mount. To use this the JFFS2_SUMMARY option must
	  be enabled in kernel.

menuconfig MTD_UTILS_UBI_UTILS
	bool
	prompt "ubi utils"
	help
	  Build UBI Utils

if MTD_UTILS_UBI_UTILS

config MTD_UTILS_UBIATTACH
	bool
	prompt "ubiattach"
	depends on !BUSYBOX_UBIATTACH || ALLYES
	help
	  Attach a UBI device to an MTD device

comment "busybox' ubiattach is selected!"
	depends on BUSYBOX_UBIATTACH

config MTD_UTILS_UBIBLOCK
	bool
	prompt "ubiblock"
	help
	  Manage block interfaces for UBI volumes

config MTD_UTILS_UBICRC32
	bool
	prompt "ubicrc32"
	help
	  UBI CRC32 file checksum

config MTD_UTILS_UBIDETACH
	bool
	prompt "ubidetach"
	depends on !BUSYBOX_UBIDETACH || ALLYES
	help
	  Detach a UBI device from an MTD device

comment "busybox' ubidetach is selected!"
	depends on BUSYBOX_UBIDETACH

config MTD_UTILS_UBIFORMAT
	bool
	select GCCLIBS_GCC_S
	prompt "ubiformat"
	help
	  Format an MTD device

config MTD_UTILS_UBIMKVOL
	bool
	prompt "ubimkvol"
	depends on !BUSYBOX_UBIMKVOL || ALLYES
	help
	  Creates a volume on a UBI device.

comment "busybox' ubimkvol is selected!"
	depends on BUSYBOX_UBIMKVOL

config MTD_UTILS_UBIRENAME
	bool
	prompt "ubirename"
	help
	  Rename a volume on a UBI device

config MTD_UTILS_UBIRSVOL
	bool
	prompt "ubirsvol"
	depends on !BUSYBOX_UBIRSVOL || ALLYES
	help
	  Resize UBI volumes

comment "busybox' ubirsvol is selected!"
	depends on BUSYBOX_UBIRSVOL

config MTD_UTILS_UBINFO
	bool
	prompt "ubinfo"
	help
	  Provides infos on UBI volumes and devices.

config MTD_UTILS_UBINIZE
	bool
	prompt "ubinize"
	help
	  Creates UBI images. Probably more useful on host than on target.

config MTD_UTILS_UBIRMVOL
	bool
	prompt "ubirmvol"
	depends on !BUSYBOX_UBIRMVOL || ALLYES
	help
	  Deletes a volume on a UBI device

comment "busybox' ubirmvol is selected!"
	depends on BUSYBOX_UBIRMVOL

config MTD_UTILS_UBIUPDATEVOL
	bool
	prompt "ubiupdatevol"
	depends on !BUSYBOX_UBIUPDATEVOL || ALLYES
	help
	  Updates a volume with data from file

comment "busybox' ubiupdatevol is selected!"
	depends on BUSYBOX_UBIUPDATEVOL

config MTD_UTILS_MKFS_UBIFS
	bool
	prompt "mkfs.ubifs"
	help
	  Create ubifs filesystems

config MTD_UTILS_MTDINFO
	bool
	prompt "mtdinfo"
	help
	  Print UBI specific information about MTD devices

endif

endif