From 3ea5d775acdbd62e1194c002c72b83b26052e1a3 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 18 Feb 2018 14:45:22 +0100 Subject: Added control requests to support autoupgrade. --- hidflash.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hidflash.py') diff --git a/hidflash.py b/hidflash.py index a9df48c..a5b4197 100755 --- a/hidflash.py +++ b/hidflash.py @@ -13,6 +13,9 @@ for segment in sorted(e.iter_segments(), key = lambda x: x.header.p_paddr): if segment.header.p_type != 'PT_LOAD': continue + if segment.header.p_paddr >= 0x20000000: + continue + data = segment.data() lma = segment.header.p_paddr -- cgit v1.2.3