DAF.txt

(2 KB) Pobierz
Description of flash.cfg format for DAF
=======================================


1. each line define one partition
2. maximum number of partitions is 16
3. order of partitions is same like order of 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. 5% added for RW partitions.
    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.     
        "yboot"  - this partition contains zImage and initrd.gz for kernel boot in YAFFS2 format
		"yrecov" - this partition contains zImage and initrd.gz for recovery boot in YAFFS2 format		
        "rboot"  - this partition contains zImage and initrd.gz for kernel boot in RAW (like in native Android devices) format
		"rrecov" - this partition contains zImage and initrd.gz for recovery boot in RAW (like in native Android devices) format						

    flags:
        "ro"    - disable add extra 5% to partition size and count bad blocks into size
        "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",
	if more than one flag specified, value of last flag used. \
	example:  "yboot|rboot", it will be same like "rboot"

Examaple Of file:

boot yboot|ro filesize+2M boot.img
recovery rrecov|ro|nospr  filesize recovery-raw.img
system ya filesize system.img
cache ya 40M
userdata ya|asize|hr allsize  

this means that nand have 5 partitions (count of lines), 
last partition use all available space (allsize),
"AD Hardreset" erase last partition,
regular kernel boot done from YAFFS2 partition,
recovery boot done from RAW partition

-Cotulla
Zgłoś jeśli naruszono regulamin