[14] | 1 | == How to use FlashWriteNAND.bin ARM program on OMAP ? == |
---|
| 2 | |
---|
| 3 | FWN is expected to be loaded in RAM at 0x10000000 address. You can use tt-loader |
---|
| 4 | from a linux host to load it at that address. |
---|
| 5 | |
---|
| 6 | You need to specify some parameters directly from address 0x1000ffec to |
---|
| 7 | 0x1000ffff depending of what you need to do. |
---|
| 8 | |
---|
| 9 | === Read the NAND === |
---|
| 10 | |
---|
| 11 | 1. 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 | |
---|
| 15 | 2. 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 | |
---|
| 19 | 3. Set 0x1000fff4 to the NAND offset where you want to read the NAND |
---|
| 20 | |
---|
| 21 | 4. Set 0x1000fff8 to the NAND size you want to read |
---|
| 22 | |
---|
| 23 | Be carreful, offset and size must match NAND block boundaries. |
---|
| 24 | |
---|
| 25 | 5. 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 | |
---|
| 31 | You can just erase the NAND by blocks. This will reset any byte to 0xFF in NAND. |
---|
| 32 | |
---|
| 33 | 1. Set 0x1000ffec to 0x00000002 |
---|
| 34 | |
---|
| 35 | 2. Set 0x1000fff4 to the NAND offset where you want to erase the NAND |
---|
| 36 | |
---|
| 37 | 3. Set 0x1000fff8 to the NAND size you want to erase |
---|
| 38 | |
---|
| 39 | 4. 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 | |
---|
| 45 | To write the NAND, you first need to load in RAM a file content to an address |
---|
| 46 | greater or equal to 0x10001000. |
---|
| 47 | |
---|
| 48 | 1. 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 | |
---|
| 52 | 2. 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 | |
---|
| 56 | 3. Set 0x1000fff4 to the NAND offset where you want to write the NAND |
---|
| 57 | |
---|
| 58 | 4. Set 0x1000fff8 to the NAND size you want to write |
---|
| 59 | |
---|
| 60 | Be carreful, offset and size must match NAND block boundaries. |
---|
| 61 | |
---|
| 62 | 5. Set 0x1000fffc to the NAND total size. For example, 0x04000000 if the NAND is |
---|
| 63 | 64 Mbytes large. |
---|
| 64 | |
---|
| 65 | 6. Call FWN program by just branch to 0x10000000 address. You will obtain some |
---|
| 66 | verbose information onto USB port. |
---|
| 67 | |
---|
| 68 | |
---|