Error while trying to reflash librem5

Hi I am trying to reflash librem5 (Dogwood) with PureOS using instructions on https://developer.puri.sm/Librem5/Development_Environment/Phone/Troubleshooting/Reflashing_the_Phone.html but when running ./scripts/flash-image --board librem5r3 --dir files but I get error “Failure open usb device,Try sudo uuu”

Output:

    2021-01-12 17:09:57,009 INFO loading from files
uuu (Universal Update Utility) for nxp imx chips -- libpureos/1.2.91+0git6b465-0pureos+librem5.2-1-g5e5fee8

Success 0    Failure 1                                                                                                                                                                       
                                                                                                                                                                                              
1:1    1/ 0   [Failure open usb device,Try sudo uuu  ]                                                                                                                                        
2021-01-12 17:09:58,516 INFO Cleaning up.
Traceback (most recent call last):
  File "./scripts/flash-image", line 123, in <module>
    sys.exit(main())
  File "./scripts/flash-image", line 110, in main
    flash_image(uuu_target, args.debug)
  File "./scripts/flash-image", line 55, in flash_image
    subprocess.check_call(['uuu', uuu_target])
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['uuu', './flash_imp2f9pc/flash_librem5r3.lst']' returned non-zero exit status 255.

I think you need to add “sudo” before that command, like this:

sudo ./scripts/flash-image --board librem5r3 --dir files

At least that has worked for me (on Birch, so librem5r2 in my case).

2 Likes

Thanks, now it works :smiley:

1 Like