plasma-phone-packaging / pm-flashtool

Tool for Flashing PM as LXC Container on top of CM
44 stars 27 forks source link

[Bug] Script not working on Nexus 5x #44

Closed alexpattyn closed 3 years ago

alexpattyn commented 4 years ago

I am trying to install plasma mobile on a 5x and it seems that the script isn't running correctly. Using the latest master as of 2019-12-27.

It asked me if my device was bullhead, which it is, then I goes to download the rootfs but just exits. I can see the device on 'fastboot devices' but not 'adb device' since I am in fastboot mode. Then I already have TWRP install (manually).

Output:

$ ./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: bullhead
finished. total time: 0.020s
++ 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/
~/Git/pm-flashtool/cache ~/Git/pm-flashtool
+ echo 'Downloading latest rootfs ... '
Downloading latest rootfs ... 
+ '[' neon == neon ']'
++ curl https://images.plasma-mobile.org/rootfs_stamp
+ ROOTFS_VERSION=
DeWarner commented 4 years ago

this seems to be the result of a failed curl, I reproduced this by disconnecting from the internet. verify that you are connected to the internet and try running just this command and share the output: curl https://images.plasma-mobile.org/rootfs_stamp

cydnax commented 4 years ago

@alexpattyn did you manage to get this working. I have a device and really want to install this but am also having issues getting it to work.

alexpattyn commented 3 years ago

@cydnax I never tried again :disappointed:. My Nexus 5X died a bit ago, so I can no longer try it out. However, feel free to add to this issue if you have problems of your own. Otherwise this issue can be closed for now.

PPFrepo commented 3 years ago

I had the same issue and it turned out that curl was not installed.

KenVanHoeylandt commented 3 years ago

I can confirm that it's actually broken and not a curl problem. Just open https://images.plasma-mobile.org/rootfs_stamp in a web browser and you'll get a 404. I have curl installed on my machine:

master ~/Downloads/pm-flashtool> curl --version
curl 7.64.1 (x86_64-apple-darwin19.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.39.2
Release-Date: 2019-03-27
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets

When I run the flashing tool, it fails due to the server responding with a 404:

master ~/Downloads/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
product: bullhead
Finished. Total time: 0.008s
++ 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/
~/Downloads/pm-flashtool/cache ~/Downloads/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
--2020-10-02 18:43:03--  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
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
2020-10-02 18:43:03 ERROR 404: Not Found.

Furthermore:

master ~/Downloads/pm-flashtool> curl https://images.plasma-mobile.org/rootfs_stamp
<!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>
QuadraticKid commented 3 years ago

Bump, this needs to get fixed as soon as possible.

SomethingGeneric commented 3 years ago

That's not the only issue I'm having with this on a 5x, either

poetaster commented 3 years ago

Same issue for me: 404 curl https://images.plasma-mobile.org/rootfs_stamp and

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

alexpattyn commented 3 years ago

Not sure if this issue should stay open due to: https://www.plasma-mobile.org/2020/12/14/plasma-mobile-technical-debt.html

After careful consideration, we have decided to drop support for Halium devices in Plasma Mobile.

poetaster commented 3 years ago

Ah, figures. Just bought one BECAUSE there was support (new!). Ah, well. Back google land it is. Or lineage (shudder).

SomethingGeneric commented 3 years ago

The script needs a few bits reworked I think. I’d be happy to help if someone knows new urls

On Tue, Dec 15, 2020 at 11:19 AM Mark Washeim notifications@github.com wrote:

Ah, figures. Just bought one BECAUSE there was support (new!). Ah, well. Back google land it is. Or lineage (shudder).

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/plasma-phone-packaging/pm-flashtool/issues/44#issuecomment-745398958, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5M2ASIDAYUV2YIYINI2ALSU6EABANCNFSM4KABTF2Q .

--

  • Matt C +1 (301) 974 5990
DeWarner commented 3 years ago

I have created a workaround for this in #51 Instead of relying on the stamp file i am just searching for the latest version available. Its a bit cludgey.

As mentioned in MR i have not tested this yet in the whole script. but i have checked the parts i have added separately.

issue #49 is the same issue. But as mentioned there, this is not the end of the issues for nexus 5x and will fail at a later step.

alexpattyn commented 3 years ago

Closing as per my comment on Dec 15, 2020. If something changed on the project front since then feel free to reopen.

Russanandres commented 2 years ago

Thanks, I won't be shy. I can not open the site with the download and the rootfs is not downloaded. How do I understand support is finally over? I have a Nexus 5 in my hands.