We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-10-05 22:58:07 +0300

flash.sh syntax error, keeps running, but zero or slow progress

I'm trying to flash a new Xperia XA2 devices with the latest Sailfish X version. During the flashing process I'm running into this issue:

> bash flash.sh 
Detected Linux
Searching device to flash..
Found 1 devices: CQ3001HC3L 
Fastboot command: fastboot -s CQ3001HC3L  
flash.sh: line 135: ((: FAILED > 50 || FAILED == 50 &&  > 1 : syntax error: operand expected (error token is "> 1 ")

However, the script keeps running despite the syntax error. But when it starts flashing, nothing happens:

> bash flash.sh 
Detected Linux
Searching device to flash..
Found 1 devices: CQ3001HC3L 
Fastboot command: fastboot -s CQ3001HC3L  
flash.sh: line 135: ((: FAILED > 50 || FAILED == 50 &&  > 1 : syntax error: operand expected (error token is "> 1 ")
Flashing boot_a partition..
Sending 'boot_a' (18464 KB)

It has been setting at this stage for 20 minutes.

I turned the device off, booted into Android once, turned it off again, put it back into fastboot mode and tried again with the exact same result.

flash.sh syntax error, keeps running, but zero or slow progress

I'm trying to flash a new Xperia XA2 devices with the latest Sailfish X version. During the flashing process I'm running into this issue:

> bash flash.sh 
Detected Linux
Searching device to flash..
Found 1 devices: CQ3001HC3L 
Fastboot command: fastboot -s CQ3001HC3L  
flash.sh: line 135: ((: FAILED > 50 || FAILED == 50 &&  > 1 : syntax error: operand expected (error token is "> 1 ")

However, the script keeps running despite the syntax error. But when it starts flashing, nothing happens:

> bash flash.sh 
Detected Linux
Searching device to flash..
Found 1 devices: CQ3001HC3L 
Fastboot command: fastboot -s CQ3001HC3L  
flash.sh: line 135: ((: FAILED > 50 || FAILED == 50 &&  > 1 : syntax error: operand expected (error token is "> 1 ")
Flashing boot_a partition..
Sending 'boot_a' (18464 KB)

It has been setting at this stage for 20 minutes.

I turned the device off, booted into Android once, turned it off again, put it back into fastboot mode and tried again with the exact same result.

I've tested several different USB ports and cables on two computers, always getting the same result.

flash.sh syntax error, keeps running, running/hanging, but zero or slow progress

I'm trying to flash a new Xperia XA2 devices with the latest Sailfish X version. During the flashing process I'm running into this issue:

> bash flash.sh 
Detected Linux
Searching device to flash..
Found 1 devices: CQ3001HC3L 
Fastboot command: fastboot -s CQ3001HC3L  
flash.sh: line 135: ((: FAILED > 50 || FAILED == 50 &&  > 1 : syntax error: operand expected (error token is "> 1 ")

However, the script keeps running despite the syntax error. But when it starts flashing, nothing happens:

> bash flash.sh 
Detected Linux
Searching device to flash..
Found 1 devices: CQ3001HC3L 
Fastboot command: fastboot -s CQ3001HC3L  
flash.sh: line 135: ((: FAILED > 50 || FAILED == 50 &&  > 1 : syntax error: operand expected (error token is "> 1 ")
Flashing boot_a partition..
Sending 'boot_a' (18464 KB)

It has been setting at this stage for 20 minutes.

I turned the device off, booted into Android once, turned it off again, put it back into fastboot mode and tried again with the exact same result.

I've tested several different USB ports and cables on two computers, always getting the same result.

flash.sh syntax error, keeps running/hanging, but zero or slow progress

I'm trying to flash a new Xperia XA2 devices with the latest Sailfish X version. During the flashing process I'm running into this issue:

> bash flash.sh 
Detected Linux
Searching device to flash..
Found 1 devices: CQ3001HC3L 
Fastboot command: fastboot -s CQ3001HC3L  
flash.sh: line 135: ((: FAILED > 50 || FAILED == 50 &&  > 1 : syntax error: operand expected (error token is "> 1 ")

However, the script keeps running despite the syntax error. But when it starts flashing, nothing happens:

> bash flash.sh 
Detected Linux
Searching device to flash..
Found 1 devices: CQ3001HC3L 
Fastboot command: fastboot -s CQ3001HC3L  
flash.sh: line 135: ((: FAILED > 50 || FAILED == 50 &&  > 1 : syntax error: operand expected (error token is "> 1 ")
Flashing boot_a partition..
Sending 'boot_a' (18464 KB)

It has been setting at this stage for 20 minutes.

I turned the device off, booted into Android once, turned it off again, put it back into fastboot mode and tried again with the exact same result.

I've tested several different USB ports and cables on two computers, always getting the same result.