1*901d0ea1SMasahiro Yamada#!/usr/bin/kermit + 2*901d0ea1SMasahiro Yamada# usage: send_image FILE_NAME OFFSET 3*901d0ea1SMasahiro Yamada# e.g. send_image output.bin 1F00000 4*901d0ea1SMasahiro Yamadaset line /dev/ttyS0 5*901d0ea1SMasahiro Yamadaset speed 115200 6*901d0ea1SMasahiro Yamadaset serial 8N1 7*901d0ea1SMasahiro Yamadaset carrier-watch off 8*901d0ea1SMasahiro Yamadaset handshake none 9*901d0ea1SMasahiro Yamadaset flow-control none 10*901d0ea1SMasahiro Yamadarobust 11*901d0ea1SMasahiro Yamadaset file type bin 12*901d0ea1SMasahiro Yamadaset file name lit 13*901d0ea1SMasahiro Yamadaset rec pack 1000 14*901d0ea1SMasahiro Yamadaset send pack 1000 15*901d0ea1SMasahiro Yamadaset window 5 16*901d0ea1SMasahiro Yamadaset prompt Kermit> 17*901d0ea1SMasahiro Yamada 18*901d0ea1SMasahiro Yamadaout \13 19*901d0ea1SMasahiro Yamadain 10 => 20*901d0ea1SMasahiro Yamadaout loadb \%2 \13 21*901d0ea1SMasahiro Yamadain 10 download ... 22*901d0ea1SMasahiro Yamadasend \%1 23*901d0ea1SMasahiro Yamadaout \13 24*901d0ea1SMasahiro Yamadain 10 ## Start Addr 25*901d0ea1SMasahiro Yamadaquit 26*901d0ea1SMasahiro Yamadaexit 0 27