source: tt-loader/FlashWriteNAND.txt @ 16

Revision 14, 2.4 KB checked in by guillaume, 9 years ago (diff)

Added how to use FlashWriteNAND.bin
Added example to flash a new splashscreen on a TwinTact

Line 
1== How to use FlashWriteNAND.bin ARM program on OMAP ? ==
2
3FWN is expected to be loaded in RAM at 0x10000000 address. You can use tt-loader
4from a linux host to load it at that address.
5
6You need to specify some parameters directly from address 0x1000ffec to
70x1000ffff depending of what you need to do.
8
9=== Read the NAND ===
10
111. Set 0x1000ffec to 0 or 3 depending on the mode used to write the NAND. So try
12   0x00000000 and then try 0x00000003 if you got an error. For example, x-load
13   at the very beginning is expected to be read with 0x00000003 command.
14
152. Set 0x1000fff0 to the RAM address where you want to dump the NAND content.
16   You can just use 0x10001000, but not lower address. If your system RAM size
17   is 64 Mbytes, your RAM is available from 0x10000000 to 0x14000000.
18
193. Set 0x1000fff4 to the NAND offset where you want to read the NAND
20
214. Set 0x1000fff8 to the NAND size you want to read
22
23Be carreful, offset and size must match NAND block boundaries.
24
255. Call FWN program by just branch to 0x10000000 address. You will obtain some
26   verbose information onto USB port.
27
28
29=== Erase the NAND ===
30
31You can just erase the NAND by blocks. This will reset any byte to 0xFF in NAND.
32
331. Set 0x1000ffec to 0x00000002
34
352. Set 0x1000fff4 to the NAND offset where you want to erase the NAND
36
373. Set 0x1000fff8 to the NAND size you want to erase
38
394. Call FWN program by just branch to 0x10000000 address. You will obtain some
40   verbose information onto USB port.
41
42
43=== Write the NAND ===
44
45To write the NAND, you first need to load in RAM a file content to an address
46greater or equal to 0x10001000.
47
481. Set 0x1000ffec to 0x00000001 or 0x00000004. You should only use 0x00000000 as
49   0x00000004 may only be used to write x-load and you should not need to write
50   it (or you really know you have to do so...)
51
522. Set 0x1000fff0 to the RAM address where you have uploaded the file content.
53   You can just use 0x10001000, but not lower address. If your system RAM size
54   is 64 Mbytes, your RAM is available from 0x10000000 to 0x14000000.
55
563. Set 0x1000fff4 to the NAND offset where you want to write the NAND
57
584. Set 0x1000fff8 to the NAND size you want to write
59
60Be carreful, offset and size must match NAND block boundaries.
61
625. Set 0x1000fffc to the NAND total size. For example, 0x04000000 if the NAND is
63   64 Mbytes large.
64
656. Call FWN program by just branch to 0x10000000 address. You will obtain some
66   verbose information onto USB port.
67
68
Note: See TracBrowser for help on using the repository browser.