This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Protocol Fault when flashing Plasma Mobile to Nexus 5

Tags: None
(comma "," separated)
ahughes
Registered Member
Posts
3
Karma
0
Hello,

I'm trying to flash Plasma Mobile to my Nexus 5 per the instructions at https://plasma-mobile.org/nexus-5/. However I keep encountering an error when the script tries to push the lxc userspace tools (see output below). I've tried reflashing my phone back to the factory image (tried version 5.0.1 and 6.0.1 so far) which gets me back to a working phone but reattempting the Plasma Mobile flashing instructions results in the same failure.

Does anyone know what might be causing this issue and what I might do to resolve/work around it?

Thanks in advance.

Code: Select all
$ git clone https://github.com/plasma-phone-packaging/pm-flashtool.git
Cloning into 'pm-flashtool'...
remote: Counting objects: 81, done.
remote: Total 81 (delta 0), reused 0 (delta 0), pack-reused 81
Unpacking objects: 100% (81/81), done.
Checking connectivity... done.

$ cd pm-flashtool/

$ ./flash-plasma-phone
+ CACHEDIR=cache
+ getopts :c opt
+ '[' -z '' ']'
+ download
+ mkdir -p cache/
+ pushd cache/
~/Downloads/pm-flashtool/cache ~/Downloads/pm-flashtool
+ rm -f '*'
+ wget -c http://neon.plasma-mobile.org/cm_stamp
--2016-12-29 11:25:30--  http://neon.plasma-mobile.org/cm_stamp
Resolving neon.plasma-mobile.org (neon.plasma-mobile.org)... 138.68.90.21
Connecting to neon.plasma-mobile.org (neon.plasma-mobile.org)|138.68.90.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16
Saving to: ‘cm_stamp’

cm_stamp                                             100%[=====================================================================================================================>]      16  --.-KB/s    in 0s     

2016-12-29 11:25:30 (658 KB/s) - ‘cm_stamp’ saved [16/16]

+ wget -c http://neon.plasma-mobile.org/rootfs_stamp
--2016-12-29 11:25:30--  http://neon.plasma-mobile.org/rootfs_stamp
Resolving neon.plasma-mobile.org (neon.plasma-mobile.org)... 138.68.90.21
Connecting to neon.plasma-mobile.org (neon.plasma-mobile.org)|138.68.90.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16
Saving to: ‘rootfs_stamp’

rootfs_stamp                                         100%[=====================================================================================================================>]      16  --.-KB/s    in 0s     

2016-12-29 11:25:31 (644 KB/s) - ‘rootfs_stamp’ saved [16/16]

++ cat cm_stamp
+ wget -c http://neon.plasma-mobile.org/cm/cm-20160523-131548.zip
--2016-12-29 11:25:31--  http://neon.plasma-mobile.org/cm/cm-20160523-131548.zip
Resolving neon.plasma-mobile.org (neon.plasma-mobile.org)... 138.68.90.21
Connecting to neon.plasma-mobile.org (neon.plasma-mobile.org)|138.68.90.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 67281139 (64M) [application/zip]
Saving to: ‘cm-20160523-131548.zip’

cm-20160523-131548.zip                               100%[=====================================================================================================================>]  64.16M  5.08MB/s    in 15s     

2016-12-29 11:25:46 (4.27 MB/s) - ‘cm-20160523-131548.zip’ saved [67281139/67281139]

++ cat cm_stamp
+ ln -s cm-20160523-131548.zip cm-stripped.zip
+ wget -c http://neon.plasma-mobile.org/twrp-3.0.2-0-hammerhead.img
--2016-12-29 11:25:46--  http://neon.plasma-mobile.org/twrp-3.0.2-0-hammerhead.img
Resolving neon.plasma-mobile.org (neon.plasma-mobile.org)... 138.68.90.21
Connecting to neon.plasma-mobile.org (neon.plasma-mobile.org)|138.68.90.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14872576 (14M)
Saving to: ‘twrp-3.0.2-0-hammerhead.img’

twrp-3.0.2-0-hammerhead.img                          100%[=====================================================================================================================>]  14.18M  5.46MB/s    in 2.6s   

2016-12-29 11:25:49 (5.46 MB/s) - ‘twrp-3.0.2-0-hammerhead.img’ saved [14872576/14872576]

+ wget -c http://neon.plasma-mobile.org/lxc-android.tar.gz
--2016-12-29 11:25:49--  http://neon.plasma-mobile.org/lxc-android.tar.gz
Resolving neon.plasma-mobile.org (neon.plasma-mobile.org)... 138.68.90.21
Connecting to neon.plasma-mobile.org (neon.plasma-mobile.org)|138.68.90.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 887488 (867K) [application/x-gzip]
Saving to: ‘lxc-android.tar.gz’

lxc-android.tar.gz                                   100%[=====================================================================================================================>] 866.69K   830KB/s    in 1.0s   

2016-12-29 11:25:51 (830 KB/s) - ‘lxc-android.tar.gz’ saved [887488/887488]

++ cat rootfs_stamp
+ wget -c http://neon.plasma-mobile.org/rootfs/plasma-rootfs-20161025-140532.tar.gz
--2016-12-29 11:25:51--  http://neon.plasma-mobile.org/rootfs/plasma-rootfs-20161025-140532.tar.gz
Resolving neon.plasma-mobile.org (neon.plasma-mobile.org)... 138.68.90.21
Connecting to neon.plasma-mobile.org (neon.plasma-mobile.org)|138.68.90.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 470688516 (449M) [application/x-gzip]
Saving to: ‘plasma-rootfs-20161025-140532.tar.gz’

plasma-rootfs-20161025-140532.tar.gz                 100%[=====================================================================================================================>] 448.88M  7.01MB/s    in 51s     

2016-12-29 11:26:42 (8.78 MB/s) - ‘plasma-rootfs-20161025-140532.tar.gz’ saved [470688516/470688516]

++ cat rootfs_stamp
+ ln -s plasma-rootfs-20161025-140532.tar.gz plasma-rootfs.tar.gz
+ wget -c https://raw.githubusercontent.com/plasma-phone-packaging/CM/master/lxc-system-config
--2016-12-29 11:26:42--  https://raw.githubusercontent.com/plasma-phone-packaging/CM/master/lxc-system-config
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.52.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.52.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 456 [text/plain]
Saving to: ‘lxc-system-config’

lxc-system-config                                    100%[=====================================================================================================================>]     456  --.-KB/s    in 0s     

2016-12-29 11:26:43 (5.81 MB/s) - ‘lxc-system-config’ saved [456/456]

+ popd
~/Downloads/pm-flashtool
+ true
+ flash-phone
+ echo 'Waiting for device to be in the fastboot mode'
Waiting for device to be in the fastboot mode
+ fastboot getvar product
product: hammerhead
finished. total time: 0.000s
+ echo 'Flashing recovery'
Flashing recovery
+ fastboot format cache
Creating filesystem with parameters:
    Size: 734003200
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 7472
    Inode size: 256
    Journal blocks: 2800
    Label:
    Blocks: 179200
    Block groups: 6
    Reserved block group size: 47
Created filesystem with 11/44832 inodes and 5813/179200 blocks
target reported max download size of 1073741824 bytes
erasing 'cache'...
OKAY [  0.604s]
sending 'cache' (13348 KB)...
OKAY [  0.670s]
writing 'cache'...
OKAY [  1.089s]
finished. total time: 2.363s
+ fastboot format userdata
Creating filesystem with parameters:
    Size: 29236371456
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8192
    Inode size: 256
    Journal blocks: 32768
    Label:
    Blocks: 7137786
    Block groups: 218
    Reserved block group size: 1024
Created filesystem with 11/1785856 inodes and 156120/7137786 blocks
target reported max download size of 1073741824 bytes
erasing 'userdata'...
OKAY [ 16.928s]
sending 'userdata' (139109 KB)...
OKAY [  4.951s]
writing 'userdata'...
OKAY [  9.381s]
finished. total time: 31.260s
+ fastboot flash recovery cache/twrp-3.0.2-0-hammerhead.img
target reported max download size of 1073741824 bytes
sending 'recovery' (14524 KB)...
OKAY [  0.659s]
writing 'recovery'...
OKAY [  1.125s]
finished. total time: 1.784s
+ fastboot boot cache/twrp-3.0.2-0-hammerhead.img
downloading 'boot.img'...
OKAY [  0.720s]
booting...
OKAY [  0.117s]
finished. total time: 0.837s
+ wait-for-device
+ adb shell true
+ sleep 1
+ adb shell true
+ sleep 1
+ adb shell true
+ sleep 1
+ adb shell true
+ sleep 1
+ adb shell true
+ sleep 1
+ adb shell true
+ sleep 1
+ adb shell true
+ sleep 1
+ adb shell true
+ sleep 1
+ adb shell true
+ echo 'Performing complete wipe first'
Performing complete wipe first
+ echo --update_package=/cache/cm.zip
+ adb push cache/command /cache/recovery/command
[100%] /cache/recovery/command
++ readlink -f cache/cm-stripped.zip
+ adb push /home/ashughes/Downloads/pm-flashtool/cache/cm-20160523-131548.zip /cache/cm.zip
[100%] /cache/cm.zip
+ adb reboot recovery
+ sleep 2
+ adb wait-for-device
+ echo 'Done flashing cyanogenmod, now flashing rootfs and lxc'
Done flashing cyanogenmod, now flashing rootfs and lxc
+ plasmafy
+ adb root
restarting adbd as root
+ sleep 5
+ adb wait-for-device
+ echo 'Installing lxc userspace tools'
Installing lxc userspace tools
+ adb push cache/lxc-android.tar.gz /data/
adb: error: connect failed: protocol fault (couldn't read status): Success
bshah
Registered Member
Posts
77
Karma
0
OS
Once flashtool fails, can you adb shell into device? If not can you find the version of adb on your system?
laberga
Registered Member
Posts
4
Karma
0
Hi Mates !
Same issue :-(
Host : Ubuntu 16.04x64-4.4.0.57 / adb version 1.0.32

I don't know if "adb shell" works because I found this post after flashing back to android... :'(

See You :)
laberga
Registered Member
Posts
4
Karma
0
bshah
Registered Member
Posts
77
Karma
0
OS
laberga
Registered Member
Posts
4
Karma
0
Thanks you bshah for answering :)
I've mounted a fresh/clean (no mod) install of Ubuntu 16.04 on purpose to avoid issues...
In the link you mentioned, they talk about re-install the SDK Platform-tools.
Do I need it ? It was not precised in tutorial to install it before.
And what about my adb version ? Good one ?
laberga
Registered Member
Posts
4
Karma
0
Okay les gars,
Je ne vais même pas prendre la peine de vous écrire en anglais pour vous dire ce que je pense de vous et de votre projet de m****.
De m**** ?! Vous êtes choqués ? Vous ne comprenez pas pourquoi une telle agression verbale ? VRAIMENT ????
Regardez attentivement votre site, vos explications, vos directives afin d'installer votre soi-disant super Plasma-Mobile et......le résultat final !!!
Alors OUI, j'ai le droit de ruer dans les brancards quand on se permet se faire croire sur internet que votre truc est viable et fonctionnel alors que l'installation ne fonctionne même pas...MDR !
On ne vous a rien promis me direz-vous ?! Sauf que, d'une part, SI, vous dîtes que cela fonctionne alors que l'installation en elle même n'aboutit pas.
Et Alors ne direz vous encore ? Aucune promesse de notre part ! Certes...(sic)
Là ou je ne suis pas d'accord, mais pas d'accord du tout, c'est quand vous ne prenez même pas la temps de nous répondre pour nous informer, nous réconforter afin de garder espoir !!!
Du coups, face à votre désinvolture, votre manque de savoir-vivre, d'information et de politesse, je fais fi de la mienne et je vous dis :
ALLEZ VOUS FAIRE FOUTRE !!!
ahughes
Registered Member
Posts
3
Karma
0
I got it working. I had to run flash-plasma-phone with sudo.
rajpratik71
Registered Member
Posts
1
Karma
0
Some off topic , can anyone share the working download link of stripped down version of cm flash file or if anyone have the file please upload it some where and share the download link of it


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]