Commit 0ca8829
authored
read-image: Clearer progress reporting (#23)
* read-image: Clearer progress reporting
Due to periodic reboot to avoid watchdog, `read_flash_data()` only sees
a partial range at a time, it's ignorant of overall progress.
Previously, to the user, progress appeared to loop:
Read 16384 bytes out of 1048576 (1%) from flash
...
Read 1048576 bytes out of 1048576 (100%) from flash
followed by boot, sync, and exactly same progression several times
(unless one looks too closely into FlashRead messages)...
Now percentages are only reported at top level, and lower-level progress
uses addresses, which do advance monotonically:
Sent device reboot message, [190, 0, 0, 1, 241, 79]
Sent message type DeviceCommand [BE, 0, 0, 1, F1, 4F]
=== Preparing to read flash from 0x3C100000 (25%) to 0x3C200000 (50%) ===
Starting loader and checking communications
...
Now doing flash read
Read flash from 0x3C100000 to 0x3C104000
...
Read flash from 0x3C1FC000 to 0x3C200000
* Log reboot message in hex, like other messages1 parent 11c107a commit 0ca8829
File tree
3 files changed
+14
-14
lines changed- bestool/src
- beslink
- cmds
3 files changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 22 | + | |
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
0 commit comments