From 7c98884eda041b676584059ca3a63b11f1bbd505 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 18 May 2010 10:28:37 -0700 Subject: burn sd card fix, units for seek and skip in blocks not bytes --- host/utils/usrp2_card_burner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host') 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, ) -- cgit v1.2.3