Flashing to Byzantium

I want my librem5 flash with byzantium. How can I do it? Thanx.

Maybe: PureOS byzantium on the phone?

You’ve first backed up any important data and settings?

There are no important data and settings on my librem5.

Instructions can be found here: https://developer.puri.sm/Librem5/Development_Environment/Phone/Troubleshooting/Reflashing_the_Phone.html

Last time I think the doc wasn’t pointing to the changed repo but it all looks up to date now :smiley:


I was thinking about flashing byzantium, but the uuu package is not found by apt. Can anyone advise? I’m on Linux Mint 20.2

1 Like

Try this: https://source.puri.sm/Librem5/librem5-devkit-tools/-/blob/pureos/byzantium/scripts/build_uuu.sh

1 Like

I’m not quite sure how to use that… Do I just copy the whole thing to a file and save as build_uuu.sh?
Or, I guess, use the download button and save to … where?

The build uuu script is still in the original repo: https://source.puri.sm/Librem5/librem5-devkit-tools
The script basically just builds from source a purism hosted copy of https://github.com/NXPmicro/mfgtools. Probably better to do the script from purism incase they have some patches in there. That being said I think I just used mfgtools when installing and I didn’t brick anything.

1 Like

Save it anywhere and run it, it should compile uuu for you.

1 Like

How to fix this…anyone?

:~/librem5-flash-image$ sudo apt build-dep .
Note, using directory ‘.’ to get the build dependencies
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
builddeps:. : Depends: debhelper-compat (= 13)
E: Unable to correct problems, you have held broken packages.

I don’t think you can fix this without changing your OS. Have you tried build_uuu.sh?

Yes. That went fine.

Does this mean Librem 5 owners that don’t use a certain OS can never upgrade their phones?

It’s possible on other distros you just have to get the dependencies on your own. I managed to do it in Arch. You might progress with apt install debhelper and trying again.

No, I’m flashing fine on Fedora, it just requires an extra step. Once you have uuu built, what are you doing next? Are you following the guide? https://developer.puri.sm/Librem5/Development_Environment/Phone/Troubleshooting/Reflashing_the_Phone.html#flash-the-image

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?


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: