-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: With this change we are making use of the strong (SHA256) BIOS checksum calculation introduced in BIC fw 31.04: blocks won't be flashed if the checksum matches. Upwards of 50% of blocks remain the same between BIOS version, so this speeds up flashing quite a bit. We also use larger USB blocks (also introduced in 31.04). Graceful fallback to non-deduping is provided so this still works with older BIC version: if strong checksums are available, then it will perform deduplication by default (can still turn off with DEDUP=0 env variable). if strong checksums are not available, it will fall back to weak and turn off dedup (can force it with DEDUP=2 if you want to take the risk). Also provided is ability to turn off verification (with VERIFY=0) - will save a few seconds of flashing, can be useful to speed up dev cycle. Test Plan: Baseline: 12m17.122s (P151555168) With dedup: 3m 38.52s (P151558354) Without dedup (fallback for older BIC versions): 11m 55.38s (P151557710) Reviewed By: benwei13 fbshipit-source-id: e68605a95e
- Loading branch information
1 parent
a078a2e
commit 08732aa
Showing
6 changed files
with
259 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.