NAND Flash

Copy the executable file nand_mtd to the board, it can be find in the ”/Examples/mtd”. Executing the following command to nandflash erase, write and read data:

    # ./nand_mtd /dev/mtd7

    MTD Type: 4
    MTD total size: 529006592 bytes
    MTD erase size: 131072 bytes
    MTD write size: 2048 bytes

    erase the last block at 528875520

    erase done!

    writing 16 bytes data to flash...
    0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 
    write done!

    reading data from flash...
    0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 
    read done!