summaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-18 10:28:37 -0700
committerJosh Blum <josh@joshknows.com>2010-05-18 10:28:37 -0700
commit7c98884eda041b676584059ca3a63b11f1bbd505 (patch)
treef5bb1cbc142d0268596a8766b6a737f98541a466 /host/utils
parent695dd535d5a7419f467598a90c51c7e0f3d611e5 (diff)
downloaduhd-7c98884eda041b676584059ca3a63b11f1bbd505.tar.gz
uhd-7c98884eda041b676584059ca3a63b11f1bbd505.tar.bz2
uhd-7c98884eda041b676584059ca3a63b11f1bbd505.zip
burn sd card fix, units for seek and skip in blocks not bytes
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,
)