Re: [PATCH v3 09/10] scripts: add nmon-loader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 18 Dec 2018 10:19:42 +0300
Antony Pavlov <antonynpavlov@xxxxxxxxx> wrote:

Hi Sascha!

It looks like this patch is missed in the master branch.
Please apply the patch!


> Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx>
> ---
>  scripts/nmon-loader | 31 +++++++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
> 
> diff --git a/scripts/nmon-loader b/scripts/nmon-loader
> new file mode 100755
> index 0000000000..d80a53097a
> --- /dev/null
> +++ b/scripts/nmon-loader
> @@ -0,0 +1,31 @@
> +#!/usr/bin/expect -f
> +
> +# device
> +set image [lindex $argv 0];
> +set modem [lindex $argv 1];
> +set speed [lindex $argv 2];
> +
> +if {$argc != 3} {
> +    puts "Usage:"
> +    puts "    nmon-loader.expect <file> <device> <speed>"
> +    exit 2
> +}
> +
> +# keep it open
> +exec sh -c "sleep 3 < $modem" &
> +
> +# serial port parameters
> +exec stty -F $modem $speed raw -clocal -echo -istrip -hup
> +
> +# connect
> +send_user "connecting to $modem, exit with ~.\n"
> +spawn -open [open $modem w+]
> +send_user "connected\n"
> +send "\r"
> +
> +source $image
> +
> +interact {
> +    ~- exit
> +    ~~ {send "\034"}
> +}
> -- 
> 2.20.0
> 


-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux