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

Nexus 5 Boot loop mid ./pm-flash install script

Tags: None
(comma "," separated)
personn
Registered Member
Posts
12
Karma
0
First completed install (Google bootloop)
Code: Select all
~/pm-flashtool$ ./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
< waiting for device >
product: hammerhead
finished. total time: 0.014s
++ 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-27 04:39:04--  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-27 04:39:05--  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-27 04:39:06--  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-27 04:39:07--  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.792s]
booting...
OKAY [  0.117s]
finished. total time: 0.909s
+ 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 $'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-27 04:43:10--  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  11.5MB/s    in 1.9s   

2019-03-27 04:43:15 (11.5 MB/s) - ‘OUTPUT/Documents/Pepper___Carrot___Vol__1.cbz’ saved [22831062]

--2019-03-27 04:43:15--  https://www.gnu.org/licenses/quick-guide-gplv3.pdf
Resolving www.gnu.org (www.gnu.org)... 209.51.188.148, 2001:470:142:3::a
Connecting to www.gnu.org (www.gnu.org)|209.51.188.148|: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  --.-KB/s    in 0.09s   

2019-03-27 04:43:15 (1.06 MB/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), 373814/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.045s)
[done]
rebooting into bootloader mode and flashing boot.img ... [done]



This produced a bootloop.
I attempted the vendor command outlined in the guide https://docs.plasma-mobile.org/Installation.html
Which gave me a good run from the looks of it, but did not fix the problem and still had bootloop.
Code: Select all
/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
++ 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
+ getopts c opt
+ '[' hammerhead == bullhead ']'


So to try and fix it I started over, tried flashing userdata and cache again, ran the script again, and it looped during the process forcing me to break the script eventually because the phone was bootlooping.
Code: Select all
$ ./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
++ 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
+ 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-27 04:51:58--  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... 200 OK
Length: 560234962 (534M) [application/x-gzip]
Saving to: ‘rootfs/pm-rootfs-20190208-135835.tar.gz’

pm-rootfs-20190208- 100%[===================>] 534.28M  24.3MB/s    in 33s     

2019-03-27 04:52:31 (16.4 MB/s) - ‘rootfs/pm-rootfs-20190208-135835.tar.gz’ saved [560234962/560234962]

+ 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-27 04:52:32--  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... 200 OK
Length: 14872576 (14M)
Saving to: ‘hammerhead/recovery.img’

recovery.img        100%[===================>]  14.18M  4.30MB/s    in 3.3s   

2019-03-27 04:52:36 (4.30 MB/s) - ‘hammerhead/recovery.img’ saved [14872576/14872576]

+ wget -c https://images.plasma-mobile.org/halium/hammerhead/20181029-111411/system.img -P hammerhead/20181029-111411
--2019-03-27 04:52:36--  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... 200 OK
Length: 116252672 (111M)
Saving to: ‘hammerhead/20181029-111411/system.img’

system.img          100%[===================>] 110.87M  20.0MB/s    in 9.8s   

2019-03-27 04:52:46 (11.3 MB/s) - ‘hammerhead/20181029-111411/system.img’ saved [116252672/116252672]

+ wget -c https://images.plasma-mobile.org/halium/hammerhead/20181029-111411/boot.img -P hammerhead/20181029-111411
--2019-03-27 04:52:46--  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... 200 OK
Length: 8200192 (7.8M)
Saving to: ‘hammerhead/20181029-111411/boot.img’

boot.img            100%[===================>]   7.82M  2.94MB/s    in 2.7s   

2019-03-27 04:52:49 (2.94 MB/s) - ‘hammerhead/20181029-111411/boot.img’ saved [8200192/8200192]

+ 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.765s]
booting...
OKAY [  0.117s]
finished. total time: 0.882s
+ 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 ''
+ 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 ''
+ 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 ''
+ 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 ''
+ 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 ''
+ echo -n .
.+ sleep 3
^C


Frustrated and calling it a night, but appreciate any input from some more experienced users.


Bookmarks



Who is online

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