Commit 5074d45
sleep briefly while flashing
Summary:
Go idle periodically when flashing the image, to allow other work
on the system to happen, for example SPI I/O. For a 32MB flash
image, this would result in an extra 8s of idle time during wipe plus
8s during flashing. For S434121.
Test Plan:
```
0 ~/local/openbmc/tools/flashy $ ./build.sh && ./build_dev.sh && go test ./...
? github.com/facebook/openbmc/tools/flashy/flash_procedure [no test files]
? github.com/facebook/openbmc/tools/flashy/lib/logger [no test files]
? github.com/facebook/openbmc/tools/flashy/tests [no test files]
? github.com/facebook/openbmc/tools/flashy/utilities [no test files]
ok github.com/facebook/openbmc/tools/flashy 2.024s
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/bletchley (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/common (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/galaxy100 (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/grandteton (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/wedge100 (cached)
ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/yamp (cached)
ok github.com/facebook/openbmc/tools/flashy/install 0.007s
ok github.com/facebook/openbmc/tools/flashy/lib/fileutils (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/flash 0.007s
ok github.com/facebook/openbmc/tools/flashy/lib/flash/flashcp 0.508s
ok github.com/facebook/openbmc/tools/flashy/lib/flash/flashutils (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/flash/flashutils/devices (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/step (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/utils (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/validate (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/validate/image (cached)
ok github.com/facebook/openbmc/tools/flashy/lib/validate/partition (cached)
0 ~/local/openbmc/tools/flashy $
```
Build ephemeral fbpkg and flash a wedge100 using it:
```
Host Workflow ID Progress Status Result
---------------------------------- ------------------------------------ ---------- ----------------------- ----------------------
fboss8382003-oob.snc1.facebook.com b4600065-e674-4696-9378-5c313ae45819 finished WorkflowStatus.FINISHED FinishStatus.SUCCEEDED
```
-> https://fburl.com/scuba/openbmc_upgrades/yksvon8b
Reviewed By: kawmarco
Differential Revision: D59927810
fbshipit-source-id: 7db5bb534575d360816a2ec27bea361936fe16dd1 parent 1486cae commit 5074d45
2 files changed
+39
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| 259 | + | |
| 260 | + | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
| |||
293 | 297 | | |
294 | 298 | | |
295 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
296 | 312 | | |
297 | 313 | | |
298 | 314 | | |
| |||
306 | 322 | | |
307 | 323 | | |
308 | 324 | | |
309 | | - | |
310 | 325 | | |
311 | 326 | | |
312 | 327 | | |
| |||
336 | 351 | | |
337 | 352 | | |
338 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
339 | 359 | | |
340 | 360 | | |
341 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| |||
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
| |||
227 | 231 | | |
228 | 232 | | |
229 | 233 | | |
| 234 | + | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| |||
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
| 243 | + | |
238 | 244 | | |
239 | 245 | | |
240 | 246 | | |
| |||
298 | 304 | | |
299 | 305 | | |
300 | 306 | | |
| 307 | + | |
301 | 308 | | |
302 | 309 | | |
303 | 310 | | |
| |||
441 | 448 | | |
442 | 449 | | |
443 | 450 | | |
| 451 | + | |
444 | 452 | | |
445 | 453 | | |
| 454 | + | |
446 | 455 | | |
447 | 456 | | |
448 | 457 | | |
| |||
529 | 538 | | |
530 | 539 | | |
531 | 540 | | |
| 541 | + | |
532 | 542 | | |
533 | 543 | | |
534 | 544 | | |
| |||
566 | 576 | | |
567 | 577 | | |
568 | 578 | | |
| 579 | + | |
569 | 580 | | |
570 | 581 | | |
| 582 | + | |
571 | 583 | | |
572 | 584 | | |
573 | 585 | | |
| |||
610 | 622 | | |
611 | 623 | | |
612 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
613 | 628 | | |
614 | 629 | | |
615 | 630 | | |
| |||
642 | 657 | | |
643 | 658 | | |
644 | 659 | | |
| 660 | + | |
645 | 661 | | |
646 | 662 | | |
647 | 663 | | |
| 664 | + | |
648 | 665 | | |
649 | 666 | | |
650 | 667 | | |
651 | 668 | | |
| 669 | + | |
652 | 670 | | |
653 | 671 | | |
654 | 672 | | |
| |||
0 commit comments