[HD Mini Android Development] munjeni:
Usage: nanddump [OPTIONS] MTD-device
Dumps the contents of a nand mtd partition.

--help Display this help and exit
--version Output version information and exit
--bb=METHOD Choose bad block handling method (see belo
-a --forcebinary Force printing of binary data to tty
-c --canonicalprint Print canonical Hex+ASCII dump
-f file --file=file Dump to file
-l length --length=length Length
-n --noecc Read without error correction
--omitoob Omit OOB data (default)
-o --oob Dump OOB data
-p --prettyprint Print nice (hexdump)
-q --quiet Don't display progress and status messages
-s addr --startaddress=addr Start address

--bb=METHOD, where METHOD can be `padbad', `dumpbad', or `skipbad':
padbad: dump flash data, substituting 0xFF for any bad blocks
dumpbad: dump flash data, including any bad blocks
skipbad: dump good data, completely skipping any bad blocks (default)

example - dumping splash1 screen:

nanddump --bb=padbad -s 0x02540000 -l 0x9 -f /mnt/sdcard/SPLASH1.nb /dev/mtd/mtd0

example - dump whole photon nand:

nanddump --bb=dumpbad -s 0 -l 4096 -f /mnt/sdcard/full.nb /dev/mtd/mtd0

Usage: flash_erase [options] MTD_DEVICE <start offset> <block count>
Erase blocks of the specified MTD device.
Specify a count of 0 to erase to end of device.

-j, --jffs2 format the device for jffs2
-N, --noskipbad don't skip bad blocks
-u, --unlock unlock sectors before erasing
-q, --quiet do not display progress messages
--silent same as --quiet
--help display this help and exit
--version output version information and exit

hex edit SPLASH1.nb (change new) and save, than use flash erase:

flash_erase /dev/mtd/mtd0 0x02540000 0x9

Usage: nandwrite [OPTION] MTD_DEVICE [INPUTFILE|-]
Writes to the specified MTD device.

-m, --markbad Mark blocks bad if write fails
-n, --noecc Write without ecc
-N, --noskipbad Write without bad block skipping
-o, --oob Image contains oob data
-O, --onlyoob Image contains oob data and only write the oob part
-r, --raw Image contains the raw oob data dumped by nanddump
-s addr, --start=addr Set start address (default is 0)
-p, --pad Pad to page size
-b, --blockalign=1|2|4 Set multiple of eraseblocks to align to
-q, --quiet Don't display progress messages
--help Display this help and exit
--version Output version information and exit
#

place splash1.nb to sdcard and write it to nand:

nandwrite -s 0x02540000 /dev/mtd/mtd0 /mnt/sdcard/SPLASH.nb

use this for photon nand offsets/lenghts -> http://xdaforums.com/showpost.php?p=18572195&postcount=94

all before 0x02540000 offset is protected so if you no want to brick your device do not try to disable nand protection and write to offsets before 0x02540000 :) but if want to disable nand protection use this info for haret command line:

<init addr="DISABLE_NAND_MPU" MODE="4" VAL="A0B00000">0</init>:D

If you want to try please give me dump data for 0:htc partition I want to try something for photon becouse I back photon to friend aggain and could not have mini for try (I allready s-off and super cid my htc hd2 trough jtag/hex editor so maybe I will give you info how to do it for photon):

0:HTC
---------------------------------------------------------
Page:	0x1A
Size:	0x10
Address:	0x00340000 - 0x00540000
Block:	0x00000680 - 0x00000A80
Flash:	0x00000000