diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-18 10:28:37 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-18 10:28:37 -0700 |
commit | 7c98884eda041b676584059ca3a63b11f1bbd505 (patch) | |
tree | f5bb1cbc142d0268596a8766b6a737f98541a466 /host/utils | |
parent | 695dd535d5a7419f467598a90c51c7e0f3d611e5 (diff) | |
download | uhd-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-x | host/utils/usrp2_card_burner.py | 4 |
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, ) |