Wait for Known USB Device Appear…
Error: Unknown Command:FB: reboot
2024-03-21 12:58:04,107 INFO Cleaning up.
Traceback (most recent call last):
File “./scripts/librem5-flash-image”, line 538, in
sys.exit(main())
File “./scripts/librem5-flash-image”, line 521, in main
flash_image(uuu_target, args.debug)
File “./scripts/librem5-flash-image”, line 351, in flash_image
subprocess.check_call([‘uuu’, uuu_target])
File “/usr/lib/python3.7/subprocess.py”, line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘uuu’, ‘./tmp_librem5-flash-image_u0hff3br/flash_librem5r4.lst’]’ returned non-zero exit status 255.
pure1@pure-pc:~/librem5-flash-image$
I hope I live long enough to see this to the end
~s
Really? I think I know. The script says
ERROR: Unknown Command:FB: reboot.
To me it means there is a commend to “reboot” and that command is not recognized by the script. So, IMO, the script needs some very serious intervention.
That “loose” cable is not confirmed. It’s only that at times, moving the phone, the screen has blinked off a few times, and froze before. I swapped out to another cable that hasn’t produce the same so far.
The part of of the Post 16 (Step x Step to flashing) that says
and then Step 5 sub part that says:
is where being a octopus would be handy, but it’s the only time the phone was moved and there was no screen blinking, script didn’t stop until the error. Actually, the script continued right after the error with:
2024-03-21 12:508:04,107 INFO Cleaning up…
@irvinewade
Summary:
Had nothing to do with the error. The error is caused by scrip readings command that wasn’t/isn’t there. So, there appears a need to fix that too. This is really over the top of annoying. But I can get 2048 score!
You only need that if you want to have your phone’s data being encrypted.
It’s a personal choice.
Choosing for encryption (=luks) means that you have to enter an aditional code or password when booting the L5.
I do not use it, but some say that it is a security issue.
I have Luks on the phone when I received it and if someone does steal the phone, I hope it breaks their head too. Better than a glitter bomb.
Thanks for confirming where the Luks line goes.I’m going retry again now to flash it. But, it’s a command that fails and haven’t seen anyone look in to it.
To Anyone, QUESTION : What needs doing to fix the flashing script
FB: 0x18d1 0x0d02
Wait for Known USB Device Appear…
Error: Unknown Command:FB: reboot
Traceback (most recent call last):
File “./scripts/librem5-flash-image”, line 538, in
sys.exit(main())
File “./scripts/librem5-flash-image”, line 521, in main
flash_image(uuu_target, args.debug)
File “./scripts/librem5-flash-image”, line 349, in flash_image
subprocess.check_call([‘uuu’, ‘-v’, uuu_target])
File “/usr/lib/python3.7/subprocess.py”, line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘uuu’, ‘-v’, ‘/home/pure1/data/librem-images/flash_librem5r4.lst’]’ returned non-zero exit status 255.
pure1@pure-pc:~/librem5-flash-image$
The version of uuu that you are using (version 1.2.91) is quite old and predates the introduction of the FB: reboot command, hence the Unknown Command error.
Support for the FB: reboot command was added in version 1.4.43, so the minimum version of uuu required is 1.4.43.
From the 1.2.91 uuu version number I would guess that the PureOS version running on the desktop is PureOS 9 (Amber)? As the current version of PureOS is 10 (Byzantium) and should have uuu version 1.4.77 available to it.
To workaround this issue there are a number of options which include:
Perform the flashing procedure from within a live image running on the host machine, a live image which can provide a more recent version (1.4.43+) of uuu
From the host machine, locally compile uuu from up to date source code.
Remove or comment out the FB: reboot command from the file containing the uuu command set. The FB: reboot command in this instance merely reboots the phone after the image has been flashed, by removing or commenting out the FB: reboot command from the cammand set it would simply add one additional step to the flashing routine which is that you would manually power cycle the device after the image has been flashed.
well i am not sure if they have something like ubuntu where you get a GUI app telling you that you can upgrade to a newer version of ubuntu.
if they don’t have something like ubuntu then that would be terrible from a security point of view as purism advertises there devices to all people and many of them would be stuck with a system that is filled with security vulnerabilities.
if you go to Download PureOS you get these instructions telling you how to upgrade from amber to byzantium
Replace "amber" with "byzantium" in /etc/apt/sources.list
1. You should get the following :
deb https://repo.pureos.net/pureos byzantium main
deb https://repo.pureos.net/pureos byzantium-updates main
deb https://repo.pureos.net/pureos byzantium-security main
2. Upgrade the system
sudo apt update
sudo apt upgrade --without-new-pkgs
sudo apt full-upgrade
3. Reboot to the new system
The script is written in Python and I don’t think there is a simple way of getting uuu to tell you its version in a script or perhaps even to find out whether the uuu command exists. This is doubly so because the early versions of the script executed under the assumption that the user would typically not have the uuu command at all and that it had to be built from source (which is the way I did it the first time that I used uuu).
The instructions do nowadays however tell you just to install uuu - so uuu not even existing “can’t” happen.
So in some respects the easiest way is just to let it fail - but, yes, it would be nicer if it made an explicit check for the failure of the uuu command rather than let it generate a traceback.
OK, so @Sharon, please execute the following command on the host computer lsb_release -c
and post the output here.