Commit 658e05e
committed
ptool: Dynamically erase MBR sector according to sector size
Erase MBR sector dynamically based on actual sector size.
Use 0.5KB for 512-byte sectors and 4KB for 4096-byte sectors.
Improve compatibility across devices with varying sector sizes.
Signed-off-by: Xiaoming Zhao <[email protected]>1 parent bcc2087 commit 658e05e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
0 commit comments