mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
qca: Modify pack.py script
Add print statements to display the failure reason for flashing. Change-Id: Ib355271bdef307f6a981b32738a1a4195dc979ec Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
This commit is contained in:
parent
1fbb054c7e
commit
77ed38c1cd
1 changed files with 12 additions and 0 deletions
|
|
@ -328,9 +328,21 @@ class FlashScript(object):
|
|||
"""
|
||||
|
||||
if fatal:
|
||||
"""Check cmd strings to display reason for failure."""
|
||||
|
||||
if "imxtract" in cmd:
|
||||
self.script.append("failreason='error: failed on image extraction'\n")
|
||||
elif "erase" in cmd:
|
||||
self.script.append("failreason='error: failed on partition erase'\n")
|
||||
elif "write" in cmd:
|
||||
self.script.append("failreason='error: failed on partition write'\n")
|
||||
else:
|
||||
pass
|
||||
|
||||
self.script.append(cmd
|
||||
+ ' || setenv stdout serial'
|
||||
+ ' && echo "$failedmsg"'
|
||||
+ ' && echo "$failreason"'
|
||||
+ ' && exit 1\n')
|
||||
else:
|
||||
self.script.append(cmd + "\n")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue