mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add a renode mode for reading in a renode.bin
This commit is contained in:
parent
a0dca39fa3
commit
c74ceacfef
1 changed files with 5 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ def main():
|
|||
parser.add_argument(
|
||||
"--dump", required=False, help="Only dump the image, skip the automated CI checks", action="store_true"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--renode", required=False, help="Override flex-size settings and read a Renode bin file", action="store_true"
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.name == None:
|
||||
|
|
@ -64,6 +67,8 @@ def main():
|
|||
|
||||
with open(imagefile, 'rb') as img_f:
|
||||
raw_img = img_f.read()
|
||||
if args.renode:
|
||||
raw_img = raw_img[0x01D80000:0x07F80000]
|
||||
pddb_len = len(raw_img)
|
||||
pddb_size_pages = pddb_len // PAGE_SIZE
|
||||
logging.info("Disk size: 0x{:x}".format(pddb_len))
|
||||
|
|
|
|||
Loading…
Reference in a new issue