30 lines
1.5 KiB
Plaintext
30 lines
1.5 KiB
Plaintext
|
Description of flash.cfg format
|
||
|
===============================
|
||
|
|
||
|
|
||
|
1. each line define one partition
|
||
|
2. maximum number of partitions is 16
|
||
|
3. order of partitions are same like lines in the file
|
||
|
4. line format: <partition name> <flags/type> <size> <data filename>
|
||
|
partition name - up to 15 chars, shown in MTD later
|
||
|
size - can be related to filesize: "filesize", "filesize+10M", "filesize+10b",
|
||
|
or have fixed size: "10M", "100b"
|
||
|
[M - means Megabytes, b - menas blocks (each NAND block is 128kbytes)]
|
||
|
can be "allsize" for auto size partition.
|
||
|
flags/type - can be different values:
|
||
|
|
||
|
types:
|
||
|
"ya" - YAFFS2 partition. MAGLDR can show root directory context or read kernel/initrd from it
|
||
|
"raw" - RAW data.
|
||
|
|
||
|
flags:
|
||
|
"ro" - disable add extra 5% to partition size and count bad blocks into size
|
||
|
"boot" - this partition contains zImage and initrd.gz for NAND boot (it must have YAFFS2 type)
|
||
|
"asize" - auto size. this partition will use all available space after other partitions. only one partition can have this type.
|
||
|
"nospr" - binary data have not spare data. (2048+0 format), otherwise 2048+64 format used.
|
||
|
"nors" - use exactly specified size for partition. no resize is done.
|
||
|
"hr" - this partition must be erased if user select "AD HardReset" in MAGLDR menu.
|
||
|
|
||
|
different flags and types separated via "|" symbol, like "boot|ya|ro"
|
||
|
|