How-to reset the Librem 5:
How-to reset the Librem 5:
thank you for posting !
by creating a boot-able usb-thumb-drive from one of the images here > https://downloads.pureos.net/amber/phone/gnome/librem5/ we should be able to re-flash the L5 to a newer PureOS release when the situation calls for it. is that correct ?
will this command work from a CLI in Linux ?
sudo dd bs=4M if=/path/to/dir/bootable-os.iso of=/dev/sd(insert-your-drive-letter-here) status=progress oflag=sync
I too am wondering if just a strait dd can flash the L5. As I’d like to just take an image of EXACTLY what the phone came with. Thus when I break it I can put it back to a known working state. I’ve occasionally had issues with trying the a newer install disk that doesn’t work on my system for whatever reason, so I like having a “known working” copy around just in case.
Also Fedora doesn’t have uuu, but everything has dd, so I was hoping that might work
I’ve made a quick’n’dirty port of Jumpdrive some time ago: https://source.puri.sm/sebastian.krzyszkowiak/jumpdrive
When you boot Jumpdrive on your phone it will expose eMMC and SD card over USB as mass storage devices, which allows you to dd them from host computer. FWIW this in mentioned as an alternative flashing method on the Mobian wiki: https://wiki.mobian-project.org/doku.php?id=librem5#using-jumpdrive
I remember seeing this in the Librem 5 Community Wiki: https://source.puri.sm/Librem5/community-wiki/-/wikis/Operating-Systems/Install-PureOS
Don’t think its been updated for Evergreen yet.
Is it planned that images with luks encrypted partitions are ready when byzantium will be released?
Then we could get both with a single flash.
Yes, that’s the plan. We decided not to try retrofitting encryption into amber-phone because a switch to byzantium is imminent anyway.
And to add to this, it’s one of the reasons we wanted to do a video documenting the flashing process now, because we assume many customers who have their phone will want to reflash when Byzantium is released, both to get encryption, as well as because it’s probably the easiest and cleanest way to upgrade from amber.
Just for anyone who doesn’t know what Byzanium is, it’s the next release of PureOS (PureOS 10).
(I had to look it up)
I am following the instructions on the video to reflash the Librem 5 Evergreen using the Live-CD with PureOS Amber. Everything worked fine till the command “sudo ./scripts/librem5-flash-image”
The following error message occurred:
pureos@pureos:~/librem5-devkit-tools$ sudo ./scripts/librem5-flash-image
Traceback (most recent call last):
File “./scripts/librem5-flash-image”, line 18, in
ModuleNotFoundError: No module named ‘yaml’
After that a reflashing is not possible. Any ideas? Where is my mistake?
You downloaded the flashing scripts separately but you didn’t install all the dependencies that it needs to run. You can do it this way:
sudo apt-get install librem5-host
Then it will run. In addition, you will get another copy of the flashing script.
thanks for your prompt answer. Unfortunately now I get this error message:
pureos@pureos:~/librem5-devkit-tools$ sudo apt-get install librem5-host
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package librem5-host
I use the amber live-cd and the instructions from the video, normally it should work…
Perhaps I has to use a recently created amber live-cd instead of using “sudo apt-get update && sudo apt-get upgrade” before reflashing?
Sorry, that was a guess-advice. Here’s a solid one: go through the guide, starting here: https://developer.puri.sm/Librem5/Development_Environment/Phone/Troubleshooting/Reflashing_the_Phone.html#install-uuu
Looks like you are missing the yaml python package (I bet also the Jenkins package):
sudo apt install python3-yaml python3-jenkins
sudo ./scripts/librem5-flash-image should work.
that is the solution! Reflashing without errors, thank you!
Oopsy, I didn’t expect that. I suppose I better start organizing …
Do you know where “contacts” data are stored? It’s one of the things I can’t manually restore.