← Back to team overview

ubuntu-phone team mailing list archive

Ubuntu flashing reports OK but not booting and android restore fails

 

Hi,

Today I've tried to update my Nexus 4 image to a newer touch release (it
was last updated about 3 weeks ago). The update went "fine" but the phone
was not able to reboot to Ubuntu after it is finished.

Since the phone was still able to boot the bootloader, I have tried to
recover the original android to start from scratch again. Unfortunately the
android flash did resulted an error

"writing 'system'...
FAILED (remote: flash write failure)".

I believe I have seen this in some earlier conversation and the instructed
next step was to call LG support :-(.

Now, after the long story, my short question is that:
-Does the phablet-flash can handle the failures correctly?

My thinking is here that probably the phablet-flash also run into the flash
failure but did not reported it... otherwise it would be a pretty BIG
coincidence that when my ubuntu update fails the next time the android
restore also fails with flash write...

Please see all logs that were reported on screen during flash.

With regards,
Visi
>sudo phablet-flash ubuntu-system
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
INFO:phablet-flash:Device detected as mako
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): system-image.ubuntu.com
INFO:phablet-flash:Download directory set to /home/elite/Downloads/phablet-flash/imageupdates
INFO:phablet-flash:Creating /home/elite/Downloads/phablet-flash/imageupdates
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): cdimage.ubuntu.com
INFO:phablet-flash:Downloading http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/20130913/saucy-preinstalled-recovery-armel+mako.img to /home/elite/Downloads/phablet-flash/imageupdates/mako/20130913/saucy-preinstalled-recovery-armel+mako.img
--2013-09-15 14:50:38--  http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/20130913/saucy-preinstalled-recovery-armel+mako.img
Resolving cdimage.ubuntu.com (cdimage.ubuntu.com)... 91.189.92.168, 2001:67c:1360:8c01::21, 2001:67c:1360:8c01::1f, ...
Connecting to cdimage.ubuntu.com (cdimage.ubuntu.com)|91.189.92.168|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8814592 (8.4M) [application/octet-stream]
Saving to: `/home/elite/Downloads/phablet-flash/imageupdates/mako/20130913/saucy-preinstalled-recovery-armel+mako.img'

100%[===============================================================================>] 8,814,592    818K/s   in 10s     

2013-09-15 14:50:49 (831 KB/s) - `/home/elite/Downloads/phablet-flash/imageupdates/mako/20130913/saucy-preinstalled-recovery-armel+mako.img' saved [8814592/8814592]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/ubuntu/ubuntu-20130913.full.tar.xz to /home/elite/Downloads/phablet-flash/imageupdates/daily/ubuntu/ubuntu-20130913.full.tar.xz
--2013-09-15 14:50:49--  https://system-image.ubuntu.com/daily/ubuntu/ubuntu-20130913.full.tar.xz
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 204743332 (195M) [application/x-tar]
Saving to: `/home/elite/Downloads/phablet-flash/imageupdates/daily/ubuntu/ubuntu-20130913.full.tar.xz'

100%[===============================================================================>] 204,743,332  778K/s   in 4m 1s   

2013-09-15 14:54:50 (830 KB/s) - `/home/elite/Downloads/phablet-flash/imageupdates/daily/ubuntu/ubuntu-20130913.full.tar.xz' saved [204743332/204743332]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/mako/mako-20130913.full.tar.xz to /home/elite/Downloads/phablet-flash/imageupdates/daily/mako/mako-20130913.full.tar.xz
--2013-09-15 14:54:51--  https://system-image.ubuntu.com/daily/mako/mako-20130913.full.tar.xz
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37116532 (35M) [application/x-tar]
Saving to: `/home/elite/Downloads/phablet-flash/imageupdates/daily/mako/mako-20130913.full.tar.xz'

100%[===============================================================================>] 37,116,532   902K/s   in 37s     

2013-09-15 14:55:29 (969 KB/s) - `/home/elite/Downloads/phablet-flash/imageupdates/daily/mako/mako-20130913.full.tar.xz' saved [37116532/37116532]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/mako/version-6.tar.xz to /home/elite/Downloads/phablet-flash/imageupdates/daily/mako/version-6.tar.xz
--2013-09-15 14:55:30--  https://system-image.ubuntu.com/daily/mako/version-6.tar.xz
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 288 [application/x-tar]
Saving to: `/home/elite/Downloads/phablet-flash/imageupdates/daily/mako/version-6.tar.xz'

100%[===============================================================================>] 288         --.-K/s   in 0s      

2013-09-15 14:55:30 (8.13 MB/s) - `/home/elite/Downloads/phablet-flash/imageupdates/daily/mako/version-6.tar.xz' saved [288/288]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/gpg/image-master.tar.xz to /tmp/tmphXa_cJ/image-master.tar.xz
--2013-09-15 14:55:30--  https://system-image.ubuntu.com/gpg/image-master.tar.xz
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 884 [application/x-tar]
Saving to: `/tmp/tmphXa_cJ/image-master.tar.xz'

100%[===============================================================================>] 884         --.-K/s   in 0s      

2013-09-15 14:55:36 (20.3 MB/s) - `/tmp/tmphXa_cJ/image-master.tar.xz' saved [884/884]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/gpg/image-signing.tar.xz to /tmp/tmphXa_cJ/image-signing.tar.xz
--2013-09-15 14:55:36--  https://system-image.ubuntu.com/gpg/image-signing.tar.xz
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 904 [application/x-tar]
Saving to: `/tmp/tmphXa_cJ/image-signing.tar.xz'

100%[===============================================================================>] 904         --.-K/s   in 0s      

2013-09-15 14:55:41 (20.6 MB/s) - `/tmp/tmphXa_cJ/image-signing.tar.xz' saved [904/904]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/ubuntu/ubuntu-20130913.full.tar.xz to /home/elite/Downloads/phablet-flash/imageupdates/daily/ubuntu/ubuntu-20130913.full.tar.xz
--2013-09-15 14:55:41--  https://system-image.ubuntu.com/daily/ubuntu/ubuntu-20130913.full.tar.xz.asc
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 490 [text/plain]
Saving to: `/home/elite/Downloads/phablet-flash/imageupdates/daily/ubuntu/ubuntu-20130913.full.tar.xz.asc'

100%[===============================================================================>] 490         --.-K/s   in 0s      

2013-09-15 14:55:41 (13.0 MB/s) - `/home/elite/Downloads/phablet-flash/imageupdates/daily/ubuntu/ubuntu-20130913.full.tar.xz.asc' saved [490/490]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/mako/mako-20130913.full.tar.xz to /home/elite/Downloads/phablet-flash/imageupdates/daily/mako/mako-20130913.full.tar.xz
--2013-09-15 14:55:41--  https://system-image.ubuntu.com/daily/mako/mako-20130913.full.tar.xz.asc
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 490 [text/plain]
Saving to: `/home/elite/Downloads/phablet-flash/imageupdates/daily/mako/mako-20130913.full.tar.xz.asc'

100%[===============================================================================>] 490         --.-K/s   in 0s      

2013-09-15 14:55:42 (12.8 MB/s) - `/home/elite/Downloads/phablet-flash/imageupdates/daily/mako/mako-20130913.full.tar.xz.asc' saved [490/490]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/daily/mako/version-6.tar.xz to /home/elite/Downloads/phablet-flash/imageupdates/daily/mako/version-6.tar.xz
--2013-09-15 14:55:42--  https://system-image.ubuntu.com/daily/mako/version-6.tar.xz.asc
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 490 [text/plain]
Saving to: `/home/elite/Downloads/phablet-flash/imageupdates/daily/mako/version-6.tar.xz.asc'

100%[===============================================================================>] 490         --.-K/s   in 0s      

2013-09-15 14:55:42 (12.9 MB/s) - `/home/elite/Downloads/phablet-flash/imageupdates/daily/mako/version-6.tar.xz.asc' saved [490/490]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/gpg/image-master.tar.xz to /tmp/tmphXa_cJ/image-master.tar.xz
--2013-09-15 14:55:42--  https://system-image.ubuntu.com/gpg/image-master.tar.xz.asc
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 836 [text/plain]
Saving to: `/tmp/tmphXa_cJ/image-master.tar.xz.asc'

100%[===============================================================================>] 836         --.-K/s   in 0s      

2013-09-15 14:55:43 (21.5 MB/s) - `/tmp/tmphXa_cJ/image-master.tar.xz.asc' saved [836/836]

INFO:phablet-flash:Downloading https://system-image.ubuntu.com/gpg/image-signing.tar.xz to /tmp/tmphXa_cJ/image-signing.tar.xz
--2013-09-15 14:55:43--  https://system-image.ubuntu.com/gpg/image-signing.tar.xz.asc
Resolving system-image.ubuntu.com (system-image.ubuntu.com)... 91.189.88.35
Connecting to system-image.ubuntu.com (system-image.ubuntu.com)|91.189.88.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 490 [text/plain]
Saving to: `/tmp/tmphXa_cJ/image-signing.tar.xz.asc'

100%[===============================================================================>] 490         --.-K/s   in 0s      

2013-09-15 14:55:43 (12.0 MB/s) - `/tmp/tmphXa_cJ/image-signing.tar.xz.asc' saved [490/490]

INFO:phablet-flash:Restarting device... wait
INFO:phablet-flash:Restarting device... wait complete
INFO:phablet-flash:Clearing /data and /cache
INFO:phablet-flash:Pushing /home/elite/Downloads/phablet-flash/imageupdates/daily/ubuntu/ubuntu-20130913.full.tar.xz to /cache/recovery/
4038 KB/s (204743332 bytes in 49.503s)
INFO:phablet-flash:Pushing /home/elite/Downloads/phablet-flash/imageupdates/daily/ubuntu/ubuntu-20130913.full.tar.xz.asc to /cache/recovery/
11 KB/s (490 bytes in 0.039s)
INFO:phablet-flash:Pushing /home/elite/Downloads/phablet-flash/imageupdates/daily/mako/mako-20130913.full.tar.xz to /cache/recovery/
3779 KB/s (37116532 bytes in 9.590s)
INFO:phablet-flash:Pushing /home/elite/Downloads/phablet-flash/imageupdates/daily/mako/mako-20130913.full.tar.xz.asc to /cache/recovery/
11 KB/s (490 bytes in 0.039s)
INFO:phablet-flash:Pushing /home/elite/Downloads/phablet-flash/imageupdates/daily/mako/version-6.tar.xz to /cache/recovery/
7 KB/s (288 bytes in 0.040s)
INFO:phablet-flash:Pushing /home/elite/Downloads/phablet-flash/imageupdates/daily/mako/version-6.tar.xz.asc to /cache/recovery/
12 KB/s (490 bytes in 0.039s)
INFO:phablet-flash:Pushing /tmp/tmphXa_cJ/image-master.tar.xz to /cache/recovery/
21 KB/s (884 bytes in 0.039s)
INFO:phablet-flash:Pushing /tmp/tmphXa_cJ/image-master.tar.xz.asc to /cache/recovery/
6 KB/s (836 bytes in 0.135s)
INFO:phablet-flash:Pushing /tmp/tmphXa_cJ/image-signing.tar.xz to /cache/recovery/
22 KB/s (904 bytes in 0.039s)
INFO:phablet-flash:Pushing /tmp/tmphXa_cJ/image-signing.tar.xz.asc to /cache/recovery/
12 KB/s (490 bytes in 0.039s)
INFO:phablet-flash:Pushing /tmp/tmp_s5EIx to /cache/recovery/ubuntu_command
8 KB/s (345 bytes in 0.039s)
INFO:phablet-flash:Restarting device... wait
INFO:phablet-flash:Restarting device... wait complete
INFO:phablet-flash:Flashing recovery to /home/elite/Downloads/phablet-flash/imageupdates/mako/20130913/saucy-preinstalled-recovery-armel+mako.img
< waiting for device >
sending 'recovery' (8608 KB)...
OKAY [  0.422s]
writing 'recovery'...
OKAY [  0.501s]
finished. total time: 0.923s
INFO:phablet-flash:Booting /home/elite/Downloads/phablet-flash/imageupdates/mako/20130913/saucy-preinstalled-recovery-armel+mako.img
downloading 'boot.img'...
OKAY [  0.439s]
booting...
OKAY [  0.002s]
finished. total time: 0.442s
INFO:phablet-flash:Once completed the device should reboot into Ubuntu
Removing directory /tmp/tmphXa_cJ

$ ./flash-all.sh 
sending 'bootloader' (2201 KB)...
OKAY [  0.127s]
writing 'bootloader'...
OKAY [  0.312s]
finished. total time: 0.439s
rebooting into bootloader...
OKAY [  0.001s]
finished. total time: 0.001s
sending 'radio' (54321 KB)...
OKAY [  3.160s]
writing 'radio'...
OKAY [  3.283s]
finished. total time: 6.443s
rebooting into bootloader...
OKAY [  0.001s]
finished. total time: 0.001s
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
--------------------------------------------
Bootloader Version...: MAKOZ20i
Baseband Version.....: M9615A-CEFWMAZM-2.0.1700.84
Serial Number........: 0046b58885525523
--------------------------------------------
checking product...
OKAY [  0.002s]
checking version-bootloader...
OKAY [  0.002s]
checking version-baseband...
OKAY [  0.002s]
sending 'boot' (6194 KB)...
OKAY [  0.300s]
writing 'boot'...
OKAY [  0.349s]
sending 'recovery' (6738 KB)...
OKAY [  0.393s]
writing 'recovery'...
OKAY [  0.405s]
erasing 'system'...
OKAY [  0.054s]
sending 'system' (570670 KB)...
OKAY [ 29.319s]
writing 'system'...
FAILED (remote: flash write failure)
finished. total time: 152.595s

Follow ups