README.sha1 (b8685affe614ccf5f4ec66252b30e2e524d18948) README.sha1 (6d0f6bcf337c5261c08fabe12982178c2c489d76)
1SHA1 usage:
2-----------
3
4In the U-Boot Image for the pcs440ep board is a SHA1 checksum integrated.
5This SHA1 sum is used, to check, if the U-Boot Image in Flash is not
6corrupted.
7
8The following command is available:

--- 20 unchanged lines hidden (view full) ---

29a) cp the new Image on a position in RAM (here 0x300000)
30 (for this example we use the Image from Flash, stored at 0xfffa0000 and
31 0x60000 Bytes long)
32
33"cp.b fffa0000 300000 60000"
34
35b) Initialize the SHA1 sum in the Image with 0x00
36 The SHA1 sum is stored in Flash at:
1SHA1 usage:
2-----------
3
4In the U-Boot Image for the pcs440ep board is a SHA1 checksum integrated.
5This SHA1 sum is used, to check, if the U-Boot Image in Flash is not
6corrupted.
7
8The following command is available:

--- 20 unchanged lines hidden (view full) ---

29a) cp the new Image on a position in RAM (here 0x300000)
30 (for this example we use the Image from Flash, stored at 0xfffa0000 and
31 0x60000 Bytes long)
32
33"cp.b fffa0000 300000 60000"
34
35b) Initialize the SHA1 sum in the Image with 0x00
36 The SHA1 sum is stored in Flash at:
37 CFG_MONITOR_BASE + CFG_MONITOR_LEN + SHA1_SUM_POS
37 CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN + SHA1_SUM_POS
38 for the pcs440ep Flash: 0xfffa0000 + 0x60000 + -0x20
39 = 0xffffffe0
40 for the example in RAM: 0x300000 + 0x60000 + -0x20
41 = 0x35ffe0
42
43 note: a SHA1 checksum is 20 bytes long.
44
45"mw.b 35ffe0 0 14"

--- 12 unchanged lines hidden ---
38 for the pcs440ep Flash: 0xfffa0000 + 0x60000 + -0x20
39 = 0xffffffe0
40 for the example in RAM: 0x300000 + 0x60000 + -0x20
41 = 0x35ffe0
42
43 note: a SHA1 checksum is 20 bytes long.
44
45"mw.b 35ffe0 0 14"

--- 12 unchanged lines hidden ---