Skip to contentSkip to conversation

Fix flash --flash-image option

PATCH In review Martin Michlmayr 2 participants 2 messages Jun 17, 2016 1 message not in the archive Tegra architecture support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix flash --flash-image option

Pass correct variable to avoid the following error:

File "./tegra-uboot-flasher", line 139, in func_flash
flash_img = args.flash_img
AttributeError: 'Namespace' object has no attribute 'flash_img'

---
 tegra-uboot-flasher | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tegra-uboot-flasher +1 -1
index 153db0d..ddce70d 100755
@@ -136,7 +136,7 @@ def func_flash():
         print 'u_boot_dtb_size %d 0x%x' % (u_boot_dtb_size, u_boot_dtb_size)
 
     if args.flash_image:
-        flash_img = args.flash_img
+        flash_img = args.flash_image
     else:
         flash_img = os.path.join(out_board_dir, config['flash-image'])
     flash_img_size = os.path.getsize(flash_img)
Signature · 5 lines
2.1.4

-- 
Martin Michlmayr
http://www.cyrius.com/
#2 lore raw
In reply to a message not in the archive
Quoted 5 lines · Martin Michlmayr

Pass correct variable to avoid the following error:

File "./tegra-uboot-flasher", line 139, in func_flash
flash_img = args.flash_img
AttributeError: 'Namespace' object has no attribute 'flash_img'

Hmm. Guess I never tested that:-) Applied, thanks.