Skip to content

Commit c74ceac

Browse files
committed
add a renode mode for reading in a renode.bin
1 parent a0dca39 commit c74ceac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/pddbdbg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def main():
1616
parser.add_argument(
1717
"--dump", required=False, help="Only dump the image, skip the automated CI checks", action="store_true"
1818
)
19+
parser.add_argument(
20+
"--renode", required=False, help="Override flex-size settings and read a Renode bin file", action="store_true"
21+
)
1922
args = parser.parse_args()
2023

2124
if args.name == None:
@@ -64,6 +67,8 @@ def main():
6467

6568
with open(imagefile, 'rb') as img_f:
6669
raw_img = img_f.read()
70+
if args.renode:
71+
raw_img = raw_img[0x01D80000:0x07F80000]
6772
pddb_len = len(raw_img)
6873
pddb_size_pages = pddb_len // PAGE_SIZE
6974
logging.info("Disk size: 0x{:x}".format(pddb_len))

0 commit comments

Comments
 (0)