bios/flash: minor cleanup on serialboot flashing, add flash address support
This commit is contained in:
parent
2d6100bdbe
commit
a17e307acf
|
@ -201,11 +201,8 @@ class LiteXTerm:
|
||||||
f.seek(0, 2)
|
f.seek(0, 2)
|
||||||
length = f.tell()
|
length = f.tell()
|
||||||
f.seek(0, 0)
|
f.seek(0, 0)
|
||||||
if self.flash:
|
print("[LXTERM] {} {} to 0x{:08x} ({} bytes)...".format(
|
||||||
print("[LXTERM] Flashing {} ({} bytes)...".format(filename, length))
|
"Flashing" if self.flash else "Uploading", filename, address, length))
|
||||||
current_address = 0
|
|
||||||
else:
|
|
||||||
print("[LXTERM] Uploading {} to 0x{:08x} ({} bytes)...".format(filename, address, length))
|
|
||||||
current_address = address
|
current_address = address
|
||||||
position = 0
|
position = 0
|
||||||
start = time.time()
|
start = time.time()
|
||||||
|
@ -368,7 +365,6 @@ def main():
|
||||||
term = LiteXTerm(args.serial_boot, args.kernel, args.kernel_adr, args.images, args.no_crc, args.flash)
|
term = LiteXTerm(args.serial_boot, args.kernel, args.kernel_adr, args.images, args.no_crc, args.flash)
|
||||||
term.open(args.port, int(float(args.speed)))
|
term.open(args.port, int(float(args.speed)))
|
||||||
term.console.configure()
|
term.console.configure()
|
||||||
|
|
||||||
term.start()
|
term.start()
|
||||||
term.join(True)
|
term.join(True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue