Lines Matching +full:speed +full:- +full:bin

1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0
19 speed=$3
44 if [[ -z "$port" || -z "$file" ]]
46 echo -e "\nMarvell recovery image downloader for Armada SoC family."
47 echo -e "Command syntax:"
48 echo -e "\t$(basename $0) <port> <file> [2|4|8]"
49 echo -e "\tport - serial port the target board is connected to"
50 echo -e "\tfile - recovery boot image for target download"
51 echo -e "\t2|4|8 - times to increase the default serial port speed by"
52 echo -e "For example - load the image over ttyUSB0 @ 460800 baud:"
53 echo -e "$(basename $0) /dev/ttyUSB0 /tmp/flash-image.bin 4\n"
54 echo -e "=====WARNING====="
55 echo -e "- The speed-up option is not available in SoC families prior to A8K+"
56 echo -e "- This utility is not compatible with Armada 37xx SoC family\n"
60 if [ -c "$port" ]
62 echo -e "Using device connected on serial port \"$port\""
68 if [ -f "$file" ]
70 echo -e "Loading flash image file \"$file\""
80 if [ -z "$toolname" ]
82 echo -e "Missing installation of \"$tool\" --> Exiting"
88 echo -e "Recovery will run at $fast_baudrate baud"
89 echo -e "========================================"
91 if [ -f "$tmpfile" ]
93 rm -f $tmpfile
96 # Send the escape sequence to target board using default debug port speed
97 stty -F $port raw ignbrk time 5 $default_baudrate
99 while [ $counter -lt $pattern_repeat ]; do
100 echo -n -e "$prefix\x11\x22\x33\x44\x55\x66\x77" >> $tmpfile
104 echo -en "Press the \"Reset\" button on the target board and "
105 echo -en "the \"Enter\" key on the host keyboard simultaneously"
109 # Speed up the binary image transfer
110 stty -F $port raw ignbrk time 5 $fast_baudrate
111 sx -vv $file > $port < $port
112 #sx-at91 $port $file
114 # Return the port to the default speed
115 stty -F $port raw ignbrk time 5 $default_baudrate
117 # Optional - fire up Minicom
118 minicom -D $port -b $default_baudrate