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

Nexus 5 script completes ok(?), vendor OK but bootloops?

Tags: None
(comma "," separated)
personn
Registered Member
Posts
12
Karma
0
I read through the answered post below, and am experiencing similar outputs showing what appears to be an OK execution minus a minor non fatal mounting error, however did not achieve success and only have TWRP recovery mode working. It seems easy to navigate but I am unable to locate any images to reload from on the device or just don't know where to look, so am still using the guide at https://docs.plasma-mobile.org/Installation.html but with little change in results.

Code: Select all
sudo ./pm-flash
+ CACHEDIR=cache
+ 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
++ awk '-F: ' '{print $2}'
++ head -1
++ fastboot getvar product
+ DEVICE_NAME=hammerhead
+ confirm 'Connected device is hammerhead, is that correct? [y/N]'
+ read -r -p 'Connected device is hammerhead, is that correct? [y/N] ' response
Connected device is hammerhead, is that correct? [y/N] y
+ case $response in
+ true
+ PLATFORM=neon
+ echo 'Continuing ...'
Continuing ...
+ getopts cp: opt
+ '[' -z '' ']'
+ download hammerhead neon
+ '[' 2 -eq 0 ']'
+ mkdir -p cache/
+ pushd cache/
~/pm-flashtool/cache ~/pm-flashtool
+ echo 'Downloading latest rootfs ... '
Downloading latest rootfs ...
+ '[' neon == neon ']'
++ curl https://images.plasma-mobile.org/rootfs_stamp
+ ROOTFS_VERSION=20190208-135835
+ wget -c https://images.plasma-mobile.org/rootfs/pm-rootfs-20190208-135835.tar.gz -P rootfs
--2019-03-29 17:50:21--  https://images.plasma-mobile.org/rootfs/pm-rootfs-20190208-135835.tar.gz
Resolving images.plasma-mobile.org (images.plasma-mobile.org)... 207.154.251.179
Connecting to images.plasma-mobile.org (images.plasma-mobile.org)|207.154.251.179|:443... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

+ ln -sf rootfs/pm-rootfs-20190208-135835.tar.gz pm-rootfs-latest.tar.gz
+ '[' neon == arch ']'
+ '[' neon == edge ']'
+ echo '[done]'
[done]
+ echo 'Downloading the latest boot, recovery, and system images  ... '
Downloading the latest boot, recovery, and system images  ...
++ curl https://images.plasma-mobile.org/halium/hammerhead/halium_stamp
+ HALIUM_VERSION=20181029-111411
+ wget -c https://images.plasma-mobile.org/halium/hammerhead/recovery.img -P hammerhead
--2019-03-29 17:50:23--  https://images.plasma-mobile.org/halium/hammerhead/recovery.img
Resolving images.plasma-mobile.org (images.plasma-mobile.org)... 207.154.251.179
Connecting to images.plasma-mobile.org (images.plasma-mobile.org)|207.154.251.179|:443... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

+ wget -c https://images.plasma-mobile.org/halium/hammerhead/20181029-111411/system.img -P hammerhead/20181029-111411
--2019-03-29 17:50:23--  https://images.plasma-mobile.org/halium/hammerhead/20181029-111411/system.img
Resolving images.plasma-mobile.org (images.plasma-mobile.org)... 207.154.251.179
Connecting to images.plasma-mobile.org (images.plasma-mobile.org)|207.154.251.179|:443... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

+ wget -c https://images.plasma-mobile.org/halium/hammerhead/20181029-111411/boot.img -P hammerhead/20181029-111411
--2019-03-29 17:50:24--  https://images.plasma-mobile.org/halium/hammerhead/20181029-111411/boot.img
Resolving images.plasma-mobile.org (images.plasma-mobile.org)... 207.154.251.179
Connecting to images.plasma-mobile.org (images.plasma-mobile.org)|207.154.251.179|:443... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

+ rm -f hammerhead/latest
+ ln -sf 20181029-111411 hammerhead/latest
+ echo '[done]'
[done]
+ popd
~/pm-flashtool
+ flash-phone hammerhead
+ '[' 1 -eq 0 ']'
+ echo -n 'Flashing recovery image ... '
Flashing recovery image ... + fastboot flash recovery cache/hammerhead/recovery.img
+ echo -n '[done]'
[done]+ fastboot boot cache/hammerhead/recovery.img
downloading 'boot.img'...
OKAY [  0.795s]
booting...
OKAY [  0.117s]
finished. total time: 0.912s
+ wait_for_device
++ adb shell echo 1
+ test -z ''
+ echo -n .
.+ sleep 3
++ adb shell echo 1
+ test -z ''
+ echo -n .
.+ sleep 3
++ adb shell echo 1
+ test -z ''
+ echo -n .
.+ sleep 3
++ adb shell echo 1
+ test -z $'1\r'
+ echo

++ readlink -f cache/pm-rootfs-latest.tar.gz
+ ./rootstock-touch-install /home/anffdraco/pm-flashtool/cache/rootfs/pm-rootfs-20190208-135835.tar.gz cache/hammerhead/latest/system.img cache/hammerhead/latest/boot.img
mount: mounting /dev/block/mmcblk0p27 on /cache failed: Device or resource busy
mount: mounting /dev/block/mmcblk0p28 on /data failed: Device or resource busy
transfering rootfs tarball ... [done]
preparing system-image on device ... [done]
unpacking rootfs tarball to system-image ... [done]
adding android system image to installation ... [done]
Setting up default password for phablet user to 1234 ... [done]
Cloning into 'fetch-demo-data'...
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 12 (delta 0), reused 3 (delta 0)
Unpacking objects: 100% (12/12), done.
Checking connectivity... done.
--2019-03-29 17:54:14--  http://acbf.info/download?id=0016
Resolving acbf.info (acbf.info)... 5.10.124.141
Connecting to acbf.info (acbf.info)|5.10.124.141|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘OUTPUT/Documents/Pepper___Carrot___Vol__1.cbz’

OUTPUT/Documents/Pe     [          <=>       ]  21.77M  10.9MB/s    in 2.0s   

2019-03-29 17:54:19 (10.9 MB/s) - ‘OUTPUT/Documents/Pepper___Carrot___Vol__1.cbz’ saved [22831062]

--2019-03-29 17:54:19--  https://www.gnu.org/licenses/quick-guide-gplv3.pdf
Resolving www.gnu.org (www.gnu.org)... 2001:470:142:3::a, 209.51.188.148
Connecting to www.gnu.org (www.gnu.org)|2001:470:142:3::a|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104908 (102K) [application/pdf]
Saving to: ‘OUTPUT/Documents/quick-guide-gplv3.pdf’

quick-guide-gplv3.p 100%[===================>] 102.45K   681KB/s    in 0.2s   

2019-03-29 17:54:19 (681 KB/s) - ‘OUTPUT/Documents/quick-guide-gplv3.pdf’ saved [104908/104908]

~/pm-flashtool/OUTPUT ~/pm-flashtool
./
./Documents/
./Documents/quick-guide-gplv3.pdf
./Documents/Pepper___Carrot___Vol__1.cbz
~/pm-flashtool
./
./Documents/
./Documents/quick-guide-gplv3.pdf
./Documents/Pepper___Carrot___Vol__1.cbz
cleaning up on device ... [done]
Increasing the rootfs size to 4G ... e2fsck 1.42.9 (28-Dec-2013)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/data/rootfs.img: ***** FILE SYSTEM WAS MODIFIED *****
/data/rootfs.img: 78738/128000 files (3.4% non-contiguous), 373802/512000 blocks
resize2fs 1.42.9 (28-Dec-2013)
Resizing the filesystem on /data/rootfs.img to 1024000 (4k) blocks.
The filesystem on /data/rootfs.img is now 1024000 blocks long.

[done]
Adding timekeep timestamp ... 0 KB/s (11 bytes in 0.051s)
[done]
rebooting into bootloader mode and flashing boot.img ... [done]


After which, I am in bootloop.
If I force a fresh fastboot an execute the vendor script I get this:
Code: Select all
sudo ./flash-vendor
+ CACHEDIR=cache
+ 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
++ fastboot getvar product
++ awk '-F: ' '{print $2}'
++ head -1
+ DEVICE_NAME=hammerhead
+ confirm 'Connected device is hammerhead, is that correct? [y/N]'
+ read -r -p 'Connected device is hammerhead, is that correct? [y/N] ' response
Connected device is hammerhead, is that correct? [y/N] y
+ case $response in
+ true
+ getopts c opt
+ '[' hammerhead == bullhead ']'

and remain in fastboot mode, able to reboot.... but only into a bootloop or TWRP recovery.
Can't find the solution in any of the threads, and searching has produced some progress but not past the point I'm at now. Desperate for a hand, if anyone can be so kind to offer it so this Nexus 5 dosen't become a 50 dollar brick on me.

Cheers folks. Thanks in advance (:
User avatar
skerwin
Registered Member
Posts
8
Karma
0
OS
@personn I'm pleasantly surprised with your post, a port X5

Well, I bought yesterday a Nexus X5 35GB. (Marktplaats, a nice price to, 85 bucks (in Euro :-) With the intention to port Plasma on the X5.

If you like working together?... In this project, you're welcome. Maybe we can complement each other.

But first tings first, install an SSD drive in a Mac Mini mid 2010.
Then build on Darwin-shell KDE Neon.

Those are the things for this coming time.

I'm not authorized to fill in a signature, Moderator?

What's the difference,

Cheers, Erwin


What's the difference

Kind greetings from The Netherlands
personn
Registered Member
Posts
12
Karma
0
I've reloaded back to android 6 and started over from scratch, but only get the same result.
Why does no one have the answer? This is such a common problem it seems and the vendor script doesn't fix it.
User avatar
skerwin
Registered Member
Posts
8
Karma
0
OS
I think it went wrong in the beginning, have a look here https://docs.plasma-mobile.org/Installa ... ght=vendor and sneak around on the xda forum


What's the difference

Kind greetings from The Netherlands
personn
Registered Member
Posts
12
Karma
0
skerwin wrote:I think it went wrong in the beginning,

I think you're right. I followed an outdated guide the first time and it instructed me to unlock the bootloader which did get completed, but I think maybe the TWRP provided root (according to the XDA guide link) is not compatible / responsible for my issue.

I don't know if I can revert, but I'll try the XDA method for unlocking now that I'm back on android 6. I'm not using a 5X just a 5, but I don't think that matters.
Only problem is the option the XDA guide says to look for isn't there:

https://forum.xda-developers.com/nexus- ... s-t3206930
1. How To Unlock Your Bootloader

Go into Settings/About Phone, scroll down and click on ?build number? continuously until you see a toast notification telling you that you've enabled Developer Options. Go back to your Settings menu and enter Developer Options, scroll down and click on the ?Enable OEM Unlock? checkbox, also make sure you enable USB Debugging while you're in the Developer Options menu.

USB Debug was there, OEM unlock wasn't. I'm using Android 6.0.1

The tools all seem to complete, and while in the bootloader the messages show 'secure boot enabled' but 'OEM Unlocked'
The only info I got on secure boot was that it didn't matter overall.

So I'm thinking the problem is rooting, which from what I can tell never gets done in the installation guide and / or in step 1 of the XDA guide. The XDA guide gives instructions which go above and beyond unlocking and are for loading other softwares not just Plasma mobile, so am I better off trying to install the software using this other guide, or can I stop after step 1 - Unlocking the bootloader? (this will not offer root however)
I think I have to go step 1 - 6, but I am not sure if the android recovery files are still on the phone. After flashing back to android with TWRP, I can no longer enter recovery mode without doing another flash.

If rooting is necessary part of the process, I think the reason many users hit the bootloop is like me, they just didn't know they had to root; it wasn't in the primary instructions.
personn
Registered Member
Posts
12
Karma
0
skerwin wrote:If you like working together?... In this project, you're welcome. Maybe we can complement each other.

Cheers, Erwin

Did you root your device before starting your install? That seems to be where I went wrong. Will post more updates as I advance the hopefully final, attempt.
personn
Registered Member
Posts
12
Karma
0
Well apparently the Super SU project fell apart in 2016 or something because drama.... so now there is no way to root?
I suppose plasma mobile will also soon too be abandoned as a result of this.
personn
Registered Member
Posts
12
Karma
0
.

Last edited by personn on Mon Apr 15, 2019 5:23 am, edited 1 time in total.
User avatar
skerwin
Registered Member
Posts
8
Karma
0
OS
Image

Have a look to this friendly community, several channels include Plasma Connect https://telegram.me/username Telegram (kde connect devel)

And https://phabricator.kde.org/project/profile/159/

But I will recommend you find out more in the XDA dev’s

Success 📲
personn
Registered Member
Posts
12
Karma
0
I'm sorry, I'm an asshat when I get frustrated; not an **** in general. But I could be wrong.

Well I DID root the device this time, verified within android and the super su app - - prompted for access etc... but was never asked to enter the root password during the neon install as the guide suggested I would be. The script completed and everything else, vendor good, same result: google bootlooping.

Here is my output this time, I didn't see any changes
Code: Select all
fastboot devices
0b7feb9a02e4bfb5   fastboot
root@media:~/pm-flashtool# 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.619s]
sending 'cache' (13348 KB)...
OKAY [  0.740s]
writing 'cache'...
OKAY [  1.075s]
finished. total time: 2.435s
root@media:~/pm-flashtool# fastboot format userdata
Creating filesystem with parameters:
    Size: 13725835264
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8144
    Inode size: 256
    Journal blocks: 32768
    Label:
    Blocks: 3351034
    Block groups: 103
    Reserved block group size: 823
Created filesystem with 11/838832 inodes and 93654/3351034 blocks
target reported max download size of 1073741824 bytes
erasing 'userdata'...
OKAY [ 12.067s]
sending 'userdata' (137318 KB)...
OKAY [  5.640s]
writing 'userdata'...
OKAY [  9.154s]
finished. total time: 26.861s
./pm-flash -p edge -c
+ CACHEDIR=cache
+ echo 'Waiting for device to be in the fastboot mode'
Waiting for device to be in the fastboot mode
+ fastboot getvar product
< waiting for device >
product: hammerhead
finished. total time: 0.042s
++ fastboot getvar product
++ head -1
++ awk '-F: ' '{print $2}'
+ DEVICE_NAME=hammerhead
+ confirm 'Connected device is hammerhead, is that correct? [y/N]'
+ read -r -p 'Connected device is hammerhead, is that correct? [y/N] ' response
Connected device is hammerhead, is that correct? [y/N] y
+ case $response in
+ true
+ PLATFORM=neon
+ echo 'Continuing ...'
Continuing ...
+ getopts cp: opt
+ case $opt in
+ PLATFORM=edge
+ getopts cp: opt
+ case $opt in
+ echo 'Option provided to use cache, not downloading files again'
Option provided to use cache, not downloading files again
+ NOCACHE=1
+ getopts cp: opt
+ '[' -z 1 ']'
+ flash-phone hammerhead
+ '[' 1 -eq 0 ']'
+ echo -n 'Flashing recovery image ... '
Flashing recovery image ... + fastboot flash recovery cache/hammerhead/recovery.img
+ echo -n '[done]'
[done]+ fastboot boot cache/hammerhead/recovery.img
downloading 'boot.img'...
OKAY [  0.806s]
booting...
OKAY [  0.117s]
finished. total time: 0.923s
+ wait_for_device
++ adb shell echo 1
+ test -z ''
+ echo -n .
.+ sleep 3
++ adb shell echo 1
+ test -z ''
+ echo -n .
.+ sleep 3
++ adb shell echo 1
+ test -z ''
+ echo -n .
.+ sleep 3
++ adb shell echo 1
+ test -z $'1\r'
+ echo

++ readlink -f cache/pm-rootfs-latest.tar.gz
+ ./rootstock-touch-install /home/anffdraco/pm-flashtool/cache/rootfs/pm-rootfs-20190306-144714.tar.gz cache/hammerhead/latest/system.img cache/hammerhead/latest/boot.img
mount: mounting /dev/block/mmcblk0p27 on /cache failed: Device or resource busy
mount: mounting /dev/block/mmcblk0p28 on /data failed: Device or resource busy
transfering rootfs tarball ... [done]
preparing system-image on device ... [done]
unpacking rootfs tarball to system-image ... [done]
adding android system image to installation ... [done]
Setting up default password for phablet user to 1234 ... [done]
Cloning into 'fetch-demo-data'...
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 12 (delta 0), reused 3 (delta 0)
Unpacking objects: 100% (12/12), done.
Checking connectivity... done.
--2019-04-15 00:16:59--  http://acbf.info/download?id=0016
Resolving acbf.info (acbf.info)... 5.10.124.141
Connecting to acbf.info (acbf.info)|5.10.124.141|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘OUTPUT/Documents/Pepper___Carrot___Vol__1.cbz’

OUTPUT/Documents/Pe     [              <=>   ]  21.77M  6.48MB/s    in 4.0s   

2019-04-15 00:17:05 (5.50 MB/s) - ‘OUTPUT/Documents/Pepper___Carrot___Vol__1.cbz’ saved [22831062]

--2019-04-15 00:17:06--  https://www.gnu.org/licenses/quick-guide-gplv3.pdf
Resolving www.gnu.org (www.gnu.org)... 2001:470:142:3::a, 209.51.188.148
Connecting to www.gnu.org (www.gnu.org)|2001:470:142:3::a|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104908 (102K) [application/pdf]
Saving to: ‘OUTPUT/Documents/quick-guide-gplv3.pdf’

quick-guide-gplv3.p 100%[===================>] 102.45K   308KB/s    in 0.3s   

2019-04-15 00:17:06 (308 KB/s) - ‘OUTPUT/Documents/quick-guide-gplv3.pdf’ saved [104908/104908]

~/pm-flashtool/OUTPUT ~/pm-flashtool
./
./Documents/
./Documents/quick-guide-gplv3.pdf
./Documents/Pepper___Carrot___Vol__1.cbz
~/pm-flashtool
./
./Documents/
./Documents/quick-guide-gplv3.pdf
./Documents/Pepper___Carrot___Vol__1.cbz
cleaning up on device ... [done]
Increasing the rootfs size to 4G ... e2fsck 1.42.9 (28-Dec-2013)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/data/rootfs.img: ***** FILE SYSTEM WAS MODIFIED *****
/data/rootfs.img: 78878/128000 files (3.4% non-contiguous), 372863/512000 blocks
resize2fs 1.42.9 (28-Dec-2013)
Resizing the filesystem on /data/rootfs.img to 1024000 (4k) blocks.
The filesystem on /data/rootfs.img is now 1024000 blocks long.

[done]
Adding timekeep timestamp ... 0 KB/s (11 bytes in 0.046s)
[done]
rebooting into bootloader mode and flashing boot.img ... [done]

root@media:~/pm-flashtool# ./flash-vendor
+ CACHEDIR=cache
+ 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
++ fastboot getvar product
++ awk '-F: ' '{print $2}'
++ head -1
+ DEVICE_NAME=hammerhead
+ confirm 'Connected device is hammerhead, is that correct? [y/N]'
+ read -r -p 'Connected device is hammerhead, is that correct? [y/N] ' response
Connected device is hammerhead, is that correct? [y/N] y
+ case $response in
+ true
+ getopts c opt
+ '[' hammerhead == bullhead ']'


Presently sitting with TWRP 3.2.3-0, SuperSU v2.62-3-20151211162651 on Android 6.0.1; Super SU updated to 2.82 from google play after rooting in recovery mode with 2.62 (opted out of the supersu offered from twrp)
User avatar
skerwin
Registered Member
Posts
8
Karma
0
OS
Sorry, I can read... Your X5 is not rooted, its stil Hammerhead woh play the drums. :'(

"Google is your best friend"

Because your data tels me you X5 is running on Hammerhead, your phone thinks.... Root me 4 the first time.

Well, Google is your friend, when I ask Google: "How to root a Nexus X5" is read on de first row!

Root Your Nexus 5—An Easy Guide for First-Timers

Here your link, read carefully and succes:

https://nexus5.gadgethacks.com/how-to/root-your-nexus-5-an-easy-guide-for-first-timers-0150493/


What's the difference

Kind greetings from The Netherlands
personn
Registered Member
Posts
12
Karma
0
I don't use windows so this is not a helpful reply, but I appreciate your answer.

If google was my friend, I wouldn't need to switch from android to linux on my phone :)

I followed the XDA guide and from what you are telling me the rooting isn't going right even though the apps are reporting the root is complete and like I said, the SuperSU project was abandoned or bought out by anti-open source establishment programmers who only remove the software now.

Starting to think again, this is a hopeless venture for anyone who is not a developer but understands a terminal window.


Bookmarks



Who is online

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