View Single Post
Posts: 101 | Thanked: 381 times | Joined on Aug 2010
#259
Originally Posted by levone1 View Post
Check device manager - what device pops uo when you connect with fastboot?
I tried two different drivers (on two different computers, i.e. on each computer I tried both drivers):

Sony sa0119adb.inf

and

Sony sa0114adb.inf

Fastboot is working in general. Therefore the first part of the batch commands are fine.

It is stuck somewhere here:

echo "Searching device to flash.."
IFS=$'\n'
FASTBOOTCMD_NO_DEVICE="${FASTBOOT_BIN_PATH}${FASTB OOT_BIN_NAME}"

FASTBOOT_DEVICES=$($FASTBOOTCMD_NO_DEVICE devices |cut -d$'\t' -f1)

if [ -z "$FASTBOOT_DEVICES" ]; then
echo "No device that can be flashed found. Please connect your device in fastboot mode before running this script."
exit 1
fi

SERIALNUMBERS=
count=0
for SERIALNO in $FASTBOOT_DEVICES; do
PRODUCT=$($FASTBOOTCMD_NO_DEVICE -s $SERIALNO getvar product 2>&1 | head -n1 | cut -d ' ' -f2)
BASEBAND=$($FASTBOOTCMD_NO_DEVICE -s $SERIALNO getvar version-baseband 2>&1 | head -n1 | cut -d ' ' -f2)
BOOTLOADER=$($FASTBOOTCMD_NO_DEVICE -s $SERIALNO getvar version-bootloader 2>&1 | head -n1 | cut -d ' ' -f2)

echo "Found $PRODUCT, baseband:$BASEBAND, bootloader:$BOOTLOADER"

if [ ! -z "$(echo $PRODUCT | grep -e "H9436" -e "H9436")" ]; then
SERIALNUMBERS="$SERIALNO $SERIALNUMBERS"
((++count))
fi
done
IFS=" "

echo "Found $count devices: $SERIALNUMBERS"