Skip to content

Fixing nexus 5x rootfs download issue - #51

Open
DeWarner wants to merge 5 commits into
plasma-phone-packaging:masterfrom
DeWarner:master
Open

Fixing nexus 5x rootfs download issue#51
DeWarner wants to merge 5 commits into
plasma-phone-packaging:masterfrom
DeWarner:master

Conversation

@DeWarner

@DeWarner DeWarner commented Feb 3, 2021

Copy link
Copy Markdown

issues cropped up when the rootfs_stamp was removed from the server.

this is a quick and dirty fix to poll the available options and take the latest version.

BE WARNED: while i have fixed the specific issues i have not got a device to test on with me, so I dont know what happens next. Dont get angry with me if you break your phone.

side issues:
curl is an implicit dependency and not always installled on host, log helpful message and exit if its not available
if the connection to host server is broken it now shows helpful message

Declan Warner added 4 commits February 3, 2021 21:50
@DeWarner DeWarner changed the title Fixing nexus 5x rootfs download Fixing nexus 5x rootfs download ISSUE#44 Feb 3, 2021
@DeWarner DeWarner changed the title Fixing nexus 5x rootfs download ISSUE#44 Fixing nexus 5x rootfs download issue Feb 3, 2021
@DeWarner

DeWarner commented Feb 3, 2021

Copy link
Copy Markdown
Author

Fix #44
Fix #49

@Sunbloke

Copy link
Copy Markdown

Hello,

I am trying to install Plasma to a Nexus 5x, and running into this problem.
I see there is a fix? How do I apply this fix?
Is there a replacement for the pm-flash file with the changes?

I would really appreciate the help!

@DeWarner

Copy link
Copy Markdown
Author

you can clone my fork or edit the script locally to match the changes i made

@DeWarner

Copy link
Copy Markdown
Author

but in case you arent aware the 5x isnt officially supported anymore so you are probably going to run into more issues in a later step

@DeWarner

Copy link
Copy Markdown
Author

please let me know what happens if you do try it!

@Sunbloke

Copy link
Copy Markdown

thanks for the quick answer!
Too bad, I did not realise support had finished...

I tried to alter the file, but I can´t save any changes. It is a read-only file.

Sorry, I´m a noob...

@DeWarner

Copy link
Copy Markdown
Author

ah, it sounds like the file is owned by root, did you 'git clone' as root? what commands did you run?

Before you continue please be aware that I dont know what will happen, you may brick your device or at the very least expect to lose any data stored on the device.

As a regular user, open up a new terminal and run
git clone https://github.com/DeWarner/pm-flashtool bullhead-pm-flashtool
cd bullhead-pm-flashtool
chmod +x pm-flash
./pm-flash

@Sunbloke

Copy link
Copy Markdown

Thank you so much!
The phone is an old phone from my work. I don´t believe in throwing good devices away, so this is a good experiment for me

Something happened to my phone though! It finally started downloading and installing.

@Sunbloke

Copy link
Copy Markdown

The phone is in a loop...
Failed to mount ´data´ (invalid argument)

@DeWarner

Copy link
Copy Markdown
Author

if you can get into bootloader you could try again, but do a factory reset when you get into twrp, and unmount partitions before heading to the next step, see if that works? I fear plasma mobile for the nexus 5x might be a lost cause, but you might have better luck with postmarketos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants