QTechOS/tools/uboot_upload

8 lines
208 B
Bash
Executable file

#!/bin/bash
stty -F /dev/ttyUSB0 115200 -echo -icrnl
echo "loadx" > /dev/ttyUSB0
sx -vv -X -k $1 < /dev/ttyUSB0 > /dev/ttyUSB0
echo "bdinfo" > /dev/ttyUSB0
echo "bootelf" > /dev/ttyUSB0
cat - < /dev/ttyUSB0