summaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
Diffstat (limited to 'host/utils')
-rwxr-xr-xhost/utils/usrp2_card_burner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/utils/usrp2_card_burner.py b/host/utils/usrp2_card_burner.py
index a1d4c5ed1..dfdc663bc 100755
--- a/host/utils/usrp2_card_burner.py
+++ b/host/utils/usrp2_card_burner.py
@@ -118,7 +118,7 @@ def verify_image(image_file, device_file, offset):
get_dd_path(),
"of=%s"%tmp_file,
"if=%s"%device_file,
- "skip=%d"%offset,
+ "skip=%d"%(offset/SECTOR_SIZE),
"bs=%d"%SECTOR_SIZE,
"count=%d"%(MAX_FILE_SIZE/SECTOR_SIZE),
)
@@ -136,7 +136,7 @@ def write_image(image_file, device_file, offset):
get_dd_path(),
"if=%s"%image_file,
"of=%s"%device_file,
- "seek=%d"%offset,
+ "seek=%d"%(offset/SECTOR_SIZE),
"bs=%d"%SECTOR_SIZE,
)