mtd/patches Configure.help,1.29,1.30

Marius Groeger mag at infradead.org
Tue Apr 23 09:52:18 EDT 2002


Update of /home/cvs/mtd/patches
In directory phoenix.infradead.org:/tmp/cvs-serv20394/patches

Modified Files:
	Configure.help 
Log Message:
Add support for generic kernel command line partition table
configuration. Replaces drivers/mtd/bootldr.c.

Replace drivers/mtd/bootldr.c by drivers/mtd/cmdline.c
Replace CONFIG_MTD_BOOTLDR_PARTS by CONFIG_MTD_CMDLINE_PARTS
Add Configure.help entry.
Remove extra tab in drivers/mtd/Makefile


Index: Configure.help
===================================================================
RCS file: /home/cvs/mtd/patches/Configure.help,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- Configure.help	8 Mar 2002 16:34:36 -0000	1.29
+++ Configure.help	23 Apr 2002 13:52:15 -0000	1.30
@@ -62,21 +62,40 @@
   SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for 
   example.
 
-Compaq bootldr partition table parsing
-CONFIG_MTD_BOOTLDR_PARTS
-  The Compaq bootldr deals with multiple 'images' in flash devices
-  by putting a table in one of the first erase blocks of the device,
-  similar to a partition table, which gives the offsets, lengths and
-  names of all the images stored in the flash. 
-
-  If you need code which can detect and parse this table, and register
-  MTD 'partitions' corresponding to each image in the table, enable
-  this option. 
-
+Command line partition table parsing
+CONFIG_MTD_CMDLINE_PARTS
+  Allow generic configuration of the MTD paritition tables via the kernel
+  command line. Multiple flash resources are supported for hardware where
+  different kinds of flash memory are available. 
+  
   You will still need the parsing functions to be called by the driver
   for your particular device. It won't happen automatically. The 
   SA1100 map driver (CONFIG_MTD_SA1100) has an option for this, for 
   example.
+
+  The format for the command line is as follows:
+
+  mtdparts=<mtddef>[;<mtddef]
+  <mtddef>  := <mtd-id>:<partdef>[,<partdef>]
+  <partdef> := <size>[@offset][<name>][ro]
+  <mtd-id>  := unique id used in mapping driver/device
+  <size>    := standard linux memsize OR "-" to denote all 
+               remaining space
+  <name>    := (NAME)
+
+  Due to the way Linux handles the command line, no spaces are 
+  allowed in the partition definition, including mtd id's and partition 
+  names.
+
+  Examples:
+
+  1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
+  mtdparts=sa1100:-
+
+  Same flash, but 2 named partitions, the first one being read-only:
+  mtdparts=sa1100:256k(ARMboot)ro,-(root)
+
+  If unsure, say 'N'.
 
 ARM Firmware Suite flash layout / partition parsing
 CONFIG_MTD_AFS_PARTS





More information about the linux-mtd-cvs mailing list