From: Florent Kermarrec Date: Tue, 7 Jul 2015 12:58:49 +0000 (+0200) Subject: tools/flterm.py: fix kernel-adr support X-Git-Tag: 24jan2021_ls180~2210 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d244eba5830d8cf7af75a7e483c447602a503ba3;p=litex.git tools/flterm.py: fix kernel-adr support --- diff --git a/tools/flterm.py b/tools/flterm.py index 912509af..c340fce3 100644 --- a/tools/flterm.py +++ b/tools/flterm.py @@ -290,12 +290,12 @@ def _get_args(): parser.add_argument("--port", default="2", help="serial port") parser.add_argument("--speed", default=115200, help="serial baudrate") parser.add_argument("--kernel", default=None, help="kernel image") - parser.add_argument("--kernel_adr", default=0x40000000, help="kernel address") + parser.add_argument("--kernel-adr", default=0x40000000, help="kernel address") return parser.parse_args() if __name__ == "__main__": args = _get_args() - flterm = Flterm(args.kernel, args.kernel_adr) + flterm = Flterm(args.kernel, int(args.kernel_adr, 16)) flterm.open(args.port, args.speed) flterm.start() try: