Flash of Librem5 after a successful flash

I did a successful flash of PureOS onto a Librem 5. Then realized I entered a password for disk encryption I did not want, so I tried to re flash about 20 minutes later. All the same commands in the same terminal, same cable …all the same. But failure.

[Bulk(R):LIBUSB_ERROR_IO ] FB: flash -raw2sparse all librem5r4.img

Is there a limit to how soon a re-flash can be done?

++++++++++++++++++++++++++++++++++++++++++++++++++++++

2024-11-13 13:34:16 INFO Downloading uboot from https://arm01.puri.sm/job/u-boot_builds/job/uboot_librem5_build/85/artifact/output/uboot-librem5/u-boot-librem5.imx

        Enter the flashing mode by holding volume-up button while turning the phone on.

        If it's not detected, follow these steps:
        - Ensure that the phone is powered off
        - Turn all Hardware-Kill-Switches off
        - Unplug the USB cable if connected
        - Remove battery
        - Hold volume-up button
        - Insert the USB-C cable (red light blinks, no green light)
        - Reinsert the battery (red and green lights constantly on, the script will continue)
        - Release volume-up button

Searching…
uuu (Universal Update Utility) for nxp imx chips – lib1.4.193

Success 0 Failure 1

1:1 3/ 5 [Bulk(R):LIBUSB_ERROR_IO ] FB: flash -raw2sparse all librem5r4.img

2024-11-13 13:34:40 INFO Cleaning up.
Traceback (most recent call last):
File “/home/dick/librem5-flash-image/./scripts/librem5-flash-image”, line 538, in
sys.exit(main())
^^^^^^
File “/home/dick/librem5-flash-image/./scripts/librem5-flash-image”, line 521, in main
flash_image(uuu_target, args.debug)
File “/home/dick/librem5-flash-image/./scripts/librem5-flash-image”, line 351, in flash_image
subprocess.check_call([‘uuu’, uuu_target])
File “/usr/lib/python3.11/subprocess.py”, line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘uuu’, ‘./tmp_librem5-flash-image_tutrwqyp/flash_librem5r4.lst’]’ returned non-zero exit status 2

1 Like

Did you completely redo the process of getting the phone in serial download mode and connecting it to the host computer?

If no … I believe that after a successful flash, the phone is no longer in serial download mode. So to flash again, you need to start again.

For what it’s worth, you shouldn’t need to reflash in order to change the (a) LUKS slot encryption password. However unless you know the incantations I guess reflashing is the safest way.

2 Likes

No there is not.

1 Like

I was successfull in flashing the Librem 5 this morning. The only difference was about a 15 hours wait. Could it be that it did not fully shut down last time?

But now I have a problem with the disk encryption. After booting after flashing it wants an encryption password and I entered (like) Aaaaa1111. A second request for encryption password, and I also enter (like) Aaaaa1111. And then it gives me encryption error; and I cannot go any further. Doesn’t the flashing wipe out the old encryption?

I am going to wait untill tomorrow and try again.

1 Like

Is it after the default encryption password of 123456         ?

2 Likes

Possibly.

Yes.