tools/flterm.py: fix kernel-adr support
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 7 Jul 2015 12:58:49 +0000 (14:58 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 7 Jul 2015 12:58:49 +0000 (14:58 +0200)
tools/flterm.py

index 912509af8e6953d1c3381c0f01da3de8a7e2366f..c340fce3b0d4e10797b2882d56082e681e6d70b6 100644 (file)
@@ -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: