Reflashing the Librem 5, Up-to-Date Tutorial

I followed the instructions, even though I knew I had already installed everything previously:

xxx@xxx:~$ sudo apt install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.34.1-1ubuntu1.11).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

xxx@xxx:~$ git clone https://source.puri.sm/Librem5/librem5-flash-image.git
fatal: destination path 'librem5-flash-image' already exists and is not an empty directory.

xxx@xxx:~$ cd librem5-flash-image

xxx@xxx:~/librem5-flash-image$ sudo add-apt-repository universe

xxx@xxx:~/librem5-flash-image$ sudo apt install uuu
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
uuu is already the newest version (1.4.193-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

xxx@xxx:~/librem5-flash-image$ sudo apt build-dep .
Note, using directory '.' to get the build dependencies
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

xxx@xxx:~/librem5-flash-image$ sudo ./scripts/librem5-flash-image --udev
2024-09-30 08:04:14 INFO Udev rules '/etc/udev/rules.d/70-librem5-flash-image.rules' already present
1 Like

I believe I simply extracted this link Index of /librem5/images/byzantium/2024.04/librem5r4/luks/artifact/ and placed the compressed image into the “librem5-flash-image” folder. I just copied and pasted it. I then ran the script:

./scripts/librem5-flash-image --variant plain --stable

I can DM you my the folder and image I used, if you like.

EDIT: I just remembered I installed the non-LUKS variant. You probably don’t want mine.

1 Like

I’m just baffled as to why the script doesn’t find what it’s supposed to find.

1 Like

Fair enough. I agree with you.

1 Like

Unless… maybe https://source.puri.sm/Librem5/librem5-flash-image.git has changed since I last used it, and now doesn’t match?

EDIT: OK, I think that was the problem. I deleted the existing librem5-flash-image folder, and re-got the git. Now it’s downloading.

So I guess it had changed since the last time I used it.

4 Likes

Glad I could help!

2 Likes
git fetch
git status

would tell you whether the repostitory had changed. If so

git pull

would update.

3 Likes

Unfortunately, the reflash isn’t working for me anyway, due to this.

After downloading the image and (supposedly) connecting the phone in flash mode, it doesn’t find the phone. Guess my L5 really is fried. Time for an RMA.

3 Likes

Please report back. I have had some troubles with my USB-C hardware at the bottom of the phone so I would like to know if the hardware can be replaced.

2 Likes

Your version of the script still defaulted to downloading the plain variant and did not have the --stable argument code implemented. It was updated to downloading the LUKS variant around June 2023 after I emailed Purism about it.

But I just reflashed luks in August with the “old” version.

1 Like

Another reason is that there are no Byzantium images for Evergreen to download on Jenkins because the build process is broken again:

Image Build [Image Builds] [Jenkins]

@dos

2 Likes

Poor @dos… We keep calling on him for help.

:wink:

3 Likes

It can be! I got mine replaced a couple of months ago

3 Likes

If you do not mind: What did you have to do? What did it cost?

2 Likes

This is what they cost in May of 2024

USB board: 49.00 USD
Display: 150 USD
PCB board: 300 USD

4 Likes

Can you replace the USB and PC board on your own?

2 Likes

I don’t know, sorry :man_shrugging:

3 Likes

Yes (1:57):

2 Likes

We’re aware there are still no Jenkins builds of Byzantium, but the stable build (with --stable) is available. We’re fixing build infrastructure issues as part of the work to release Crimson.

4 Likes