Flashing to Byzantium

You may want to try installing the debhelper-compact version 13 package

I only got as far as step 2, as follows, and didn’t want to go further, given the dependencies error.

First, check that everything is ready:

  • Check that the librem5-flash-image directory is the current directory.

  • Make sure you have installed all python dependencies sudo apt build-dep . .

  • Install the udev rules sudo ./scripts/librem5-flash-image --udev

I had installed debhelper-compat, but it indicates version 12.10 is the latest version.

Maybe this?

https://pkgs.org/download/debhelper-compat

Interesting. Debian stable version is 13.3.4 (https://packages.debian.org/source/stable/debhelper).
You may want to try with the debian package.

Ah, I see. That’s confusing. You need to install the following:

 python3-coloredlogs,
 python3-jenkins,
 python3-requests,
 python3-tqdm,
 python3-yaml,

I had the same problem on Ubuntu - and hence wrote: https://source.puri.sm/Librem5/community-wiki/-/wikis/Building-uuu-and-Jumpdrive

It worked for me and, given the similarity with Mint, maybe will work for you.

1 Like

considering that uuu https://tracker.debian.org/pkg/mfgtools is in debian testing I find it strange that it is not in ubuntu and derivatives.

Seems that the package exists in ubuntu since Ubuntu 21.04:

https://packages.ubuntu.com/impish/uuu

https://packages.ubuntu.com/source/impish/mfgtools

EDIT: latest Linux Mint seems to be based on Ubuntu 20.04 so that is why it does not show in the repos.

2 Likes

Yes, exactly. You will note in my build instructions that it says for “Ubuntu 20.04” (focal). Ubuntu then went and wasted my time because as of 21.04 (hirsute) the package uuu is there. https://packages.ubuntu.com/search?keywords=uuu However I would have needed to build Jumpdrive anyway.

1 Like

you might get away with rebuilding the deb package from source on 20.04 and some minor tweaks in the control file, like lowering the debhelper version.

But the operative term here is: might

Still waiting for Byzantium to be officially released for L5 by purism. Will this ever happen? Some people have written that this is around the corner, but it seems that this corner is a long turn…

2 Likes

Byzantium is kind of on two tracks: laptops and phones. It might not offocially be released in general, but it’s the recommended OS for the phones now.

OK, but I haven’t seen an easy way to switch. If it is the recommended shouldn’t exist a trivial way to upgrade? All I read is several scripts and flashing and honestly I am confused. Has Purism setup a webpage saying “this is recommended and this is how you do it”?

I read for example the link https://developer.puri.sm/Librem5/Development_Environment/Phone/Troubleshooting/Reflashing_the_Phone.html
Look the section for flashing. It is so difficult and mainly uncertain. Where is the choice of Byzantium on this page? Maybe I do not have the correct link though.

I was expecting a news article from Purism saying “do that”. I either missed it or never existed.

5 Likes

There is no choice on that page, the flashing defaults to Byzantium. I think that’s kind of became official when we switched the flashing scripts to stop using Amber unless requested.

I’m not sure why we haven’t made this official though, but I will raise the topic internally.

2 Likes

Oh well. We can skip this step an install the python dependencies we need on our own. @dcz listed them above. (or in https://source.puri.sm/Librem5/librem5-flash-image/-/blob/main/requirements.txt)

I’m unsure if those packages are available independently in linux mint repos. I think you could install sudo apt install python3-pip then do something like pip3 install -r requirements.txt. If that works or you manually install the deps then you can continue on with the instructions.

1 Like

Thanks. I’m a little scared to try this now; I don’t want to break my L5. :laughing:

With that post topic title, I can’t get this out of my head… thanks, middle school English Lit! :roll_eyes:

I absolutely know that feeling. I’ve flashed it twice now and I feel it each time. For what it’s worth I think you’ll be fine. The python script basically downloads/verifies the image your need, uboot, and sets up a uuu script, and waits for you to plug in. The very last thing it does is call uuu with the script. uuu is the actual thing writing to your device. If you are missing any of the python deps it will error out and tell you something like import x failed. Figure out what you are missing, install it. This can be repeated basically forever. If you make it to it telling you to plug in I’m pretty sure you’re golden.

1 Like

I took me a heart and flashed my librem5 using

https://developer.puri.sm/Librem5/Development_Environment/Phone/Troubleshooting/Reflashing_the_Phone.html#download-the-flashing-scripts

and it worked!

The only shortcoming until now is, that the camera is not working.

1 Like