Open hmlendea opened 3 years ago
Full error log:
+ 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: bullhead
Finished. Total time: 0.010s
++ fastboot getvar product
++ head -1
++ awk '-F: ' '{print $2}'
+ DEVICE_NAME=bullhead
+ confirm 'Connected device is bullhead, is that correct? [y/N]'
+ read -r -p 'Connected device is bullhead, is that correct? [y/N] ' response
Connected device is bullhead, is that correct? [y/N] y
+ case $response in
+ true
+ PLATFORM=neon
+ echo 'Continuing ...'
Continuing ...
+ getopts cp: opt
+ '[' -z '' ']'
+ download bullhead neon
+ '[' 2 -eq 0 ']'
+ mkdir -p cache/
+ pushd cache/
/home/horatiu/plasma-mobile/pm-flashtool/cache /home/horatiu/plasma-mobile/pm-flashtool
+ echo 'Downloading latest rootfs ... '
Downloading latest rootfs ...
+ '[' neon == neon ']'
++ curl https://images.plasma-mobile.org/rootfs_stamp
+ ROOTFS_VERSION='<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache Server at images.plasma-mobile.org Port 443</address>
</body></html>'
+ wget -c 'https://images.plasma-mobile.org/rootfs/pm-rootfs-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache Server at images.plasma-mobile.org Port 443</address>
</body></html>.tar.gz' -P rootfs
--2021-01-01 20:16:14-- https://images.plasma-mobile.org/rootfs/pm-rootfs-%3C!DOCTYPE%20HTML%20PUBLIC%20%22-//IETF//DTD%20HTML%202.0//EN%22%3E%0A%3Chtml%3E%3Chead%3E%0A%3Ctitle%3E404%20Not%20Found%3C/title%3E%0A%3C/head%3E%3Cbody%3E%0A%3Ch1%3ENot%20Found%3C/h1%3E%0A%3Cp%3EThe%20requested%20URL%20was%20not%20found%20on%20this%20server.%3C/p%3E%0A%3Chr%3E%0A%3Caddress%3EApache%20Server%20at%20images.plasma-mobile.org%20Port%20443%3C/address%3E%0A%3C/body%3E%3C/html%3E.tar.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
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... 404 Not Found
2021-01-01 20:16:14 ERROR 404: Not Found.
However, I do later get another 404 for http://acbf.info/download?id=0016 It can be fixed by following this suggestion: https://github.com/plasma-phone-packaging/pm-flashtool/issues/47#issuecomment-688195383
After all is done you will have to reboot into fastboot mode and run sudo ./flash-vendor
on your PC
this is a Duplicate of #44 Merge Request #51
The following URL from the script is broken: https://images.plasma-mobile.org/rootfs_stamp
This results in the version number (timestamp) not being retrieved and being unable to later download the image.
Workaround until it's fixed: Edit the
pm-flash
file and replace line 50 withROOTFS_VERSION="20200212-130311"
I've got that version number from the name of the lastest file from https://images.plasma-mobile.org/rootfs/ so you might want to check there to see if any new version has come out since I wrote this comment