/usr/local/bin/ioflashstoragetool

From The iPhone Wiki
Revision as of 16:57, 23 March 2015 by Rzhikharevich (talk | contribs) (Typo fix.)
Jump to: navigation, search

This tool seems be present in restore ramdisks for formatting NAND flash.

Usage

ioflashstoragetool: Low-level NAND flash utility

Options:                                                                      
  --verbose           Be talkative about what the tool is doing.              
  --noisy             Be extremely noisy while doing things.                  
  --quiet             Don't show progress output.                             
                                                                              
Multi-bank addressing:                                                        
  p<page>             Addresses all banks, starting at bank 0, page <page>.   
  b<block>            Addresses all banks, starting at bank 0, block <block>. 
    In these modes, page/block counts are per-bank and all operations start   
    at bank zero.  <page>/<block> may be decimal or hex preceeded by 0x.      
                                                                              
Single-bank addressing:                                                       
  <bank>p<page>       Addresses bank <bank>, starting at page <page>.         
  <bank>b<block>      Addresses bank <bank>, starting at block <block>.       
    In these modes, page/block counts are for the selected bank only.         
    <bank> is decimal, <page>/<block> may be decimal or hex preceeded by 0x.  
                                                                              
Commands:                                                                     
  format <partition table type>                                                        
    Writes partition table to pages 0 and 1 of block 0 of all devices.        
    The <partition table type> may be one of: s5l8720x s5l8920x               
      --force               Performs format even if an AND signature is       
                            detected. 

NAND info example output

NAND Configuration
Vendor:           	Hynix
Lithography:      	26nm
Capacity:         	64GB
Firmware Version: 	020076P.........  (30 32 30 30 37 36 50 00 00 00 00 00 00 00 00 00)
ManufacturerID:   	0x4201220182ad
Num of CEs:       	4
PPN Device:       	Yes
PPN Version:      	1.0.6
PPN Toggle:       	No
4 CEs of 4 CAUs of 2048 blocks of 256 pages of 8192 bytes data, 32 bytes spare
2040 superblocks
4096 pages/superblock -> 8192 vbas/superblock