mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
clarify user prompt
This commit is contained in:
parent
2b4e47384e
commit
f5c687a524
1 changed files with 4 additions and 4 deletions
|
|
@ -653,7 +653,7 @@ def main():
|
||||||
"--dump-file", required=False, help="Name out output file for dump. Required if --dump is specified.", type=str,
|
"--dump-file", required=False, help="Name out output file for dump. Required if --dump is specified.", type=str,
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--key", help="Backup key in hex or BIP-39 format. Used to factory-reset efused devices", type=str
|
"--key", help="Backup key in hex or BIP-39 format. Used to factory-reset efused devices. Specify BIP-39 phrase within double-quotes.", type=str
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|
@ -781,7 +781,7 @@ def main():
|
||||||
if args.soc == None:
|
if args.soc == None:
|
||||||
print("Must provide both a soc and loader image")
|
print("Must provide both a soc and loader image")
|
||||||
print("Enabling boot with {} and {}".format(args.loader, args.soc))
|
print("Enabling boot with {} and {}".format(args.loader, args.soc))
|
||||||
print("WARNING: if you have burned a backup key into your device,\nyou MUST specify the key with `--key`, or else your device will be bricked.")
|
print("WARNING: if a backup key is set, the correct key MUST be specified with `--key`, or else the device will be bricked.")
|
||||||
print("Continue? (y/n)")
|
print("Continue? (y/n)")
|
||||||
confirm = input()
|
confirm = input()
|
||||||
if len(confirm) > 0 and confirm.lower()[:1] == 'y':
|
if len(confirm) > 0 and confirm.lower()[:1] == 'y':
|
||||||
|
|
@ -891,7 +891,7 @@ def main():
|
||||||
pc_usb.erase_region(locs['LOC_PDDB'][0], 1024 * 1024)
|
pc_usb.erase_region(locs['LOC_PDDB'][0], 1024 * 1024)
|
||||||
else:
|
else:
|
||||||
print("This will overwrite any secret keys in your device and erase PDDB keys.")
|
print("This will overwrite any secret keys in your device and erase PDDB keys.")
|
||||||
print("WARNING: if you have burned a backup key into your device,\nyou MUST specify the key with `--key`, or else your device will be bricked.")
|
print("WARNING: if a backup key is set, the correct key MUST be specified with `--key`, or else the device will be bricked.")
|
||||||
print("Continue? (y/n)")
|
print("Continue? (y/n)")
|
||||||
confirm = input()
|
confirm = input()
|
||||||
if len(confirm) > 0 and confirm.lower()[:1] == 'y':
|
if len(confirm) > 0 and confirm.lower()[:1] == 'y':
|
||||||
|
|
@ -917,7 +917,7 @@ def main():
|
||||||
pc_usb.flash_program(locs['LOC_AUDIO'][0], image, verify=verify)
|
pc_usb.flash_program(locs['LOC_AUDIO'][0], image, verify=verify)
|
||||||
|
|
||||||
if args.factory_new:
|
if args.factory_new:
|
||||||
print("WARNING: if you have burned a backup key into your device,\nyou MUST specify the key with `--key`, or else your device will be bricked.")
|
print("WARNING: if a backup key is set, the correct key MUST be specified with `--key`, or else the device will be bricked.")
|
||||||
print("Continue? (y/n)")
|
print("Continue? (y/n)")
|
||||||
confirm = input()
|
confirm = input()
|
||||||
if len(confirm) > 0 and confirm.lower()[:1] == 'y':
|
if len(confirm) > 0 and confirm.lower()[:1] == 'y':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue