Skip to content

Commit f738781

Browse files
committed
make the default pin 'a', as it is on Renode
1 parent 4e2d799 commit f738781

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/pddbdbg.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def main():
2222
parser.add_argument(
2323
"--basis", type=str, help="Extra Bases to unlock, as `name:pass`. Each additional basis requires another --basis separator. Note that : is not legal to use in a Basis name.", action="append", nargs="+"
2424
)
25+
parser.add_argument(
26+
"-p", "--pin", help="Unlock PIN", type=str, default='a'
27+
)
2528
args = parser.parse_args()
2629

2730
numeric_level = getattr(logging, args.loglevel.upper(), None)
@@ -47,7 +50,7 @@ def main():
4750
with open(imagefile, 'rb') as img_f:
4851
raw_img = img_f.read()
4952
raw_img = raw_img[0x01D80000:0x07F80000]
50-
keys = extract_keys(keyrom, raw_img, 'a', basis_credentials)
53+
keys = extract_keys(keyrom, raw_img, args.pin, basis_credentials)
5154
else:
5255
if args.name == None:
5356
keyfile = './tools/pddb-images/pddb.key'

0 commit comments

Comments
 (0)