Extract the usb parameters of blhost.

This commit is contained in:
László Monda
2017-04-25 18:15:46 +02:00
parent b1c2a82c35
commit f263f0a9f9
+5 -5
View File
@@ -4,7 +4,7 @@ set -e # fail the script if a command fails
firmware_image=`pwd`/$1 firmware_image=`pwd`/$1
usb_dir=../../../lib/agent/usb usb_dir=../../../lib/agent/usb
usb_binding=$usb_dir/node_modules/usb/build/Release/usb_bindings.node usb_binding=$usb_dir/node_modules/usb/build/Release/usb_bindings.node
blhost=../../../lib/bootloader/bin/Tools/blhost/linux/amd64/blhost blhost="../../../lib/bootloader/bin/Tools/blhost/linux/amd64/blhost --usb 0x15a2,0x0073"
set -x # echo on set -x # echo on
@@ -14,7 +14,7 @@ if [ ! -f $usb_binding ]; then
fi fi
$usb_dir/jump-to-bootloader.js $usb_dir/jump-to-bootloader.js
$blhost --usb 0x15a2,0x0073 flash-security-disable 0403020108070605 $blhost flash-security-disable 0403020108070605
$blhost --usb 0x15a2,0x0073 flash-erase-all 0 $blhost flash-erase-all 0
$blhost --usb 0x15a2,0x0073 flash-image $firmware_image $blhost flash-image $firmware_image
$blhost --usb 0x15a2,0x0073 reset $blhost reset