From d244eba5830d8cf7af75a7e483c447602a503ba3 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 7 Jul 2015 14:58:49 +0200 Subject: [PATCH] tools/flterm.py: fix kernel-adr support --- tools/flterm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.30.2