[Librem-5-dev] Cannot Flash My Librem5 Dev Kit - Failure claim interface

Guido Günther agx at sigxcpu.org
Tue Nov 17 06:08:34 PST 2020


Hi,
On Sun, Nov 15, 2020 at 11:06:56PM +0000, David Philipe Gil via Librem-5-dev wrote:
> I am trying to flash my Librem5 Dev Kit using the following instructions:
> 
> https://developer.puri.sm/Librem5/Development_Environment/Boards/HowTo/Flashing_eMMC.html#imx8-devkit-flashing-emmc
> 
> 
> But my flash fails with the following error:
> 
> ```
> 
> MyUser at MyPC:~/Repositories/librem5-devkit-tools$ sudo
> ./scripts/librem5-flash-image --board devkit
> 
> 2020-11-15 18:00:35,607 INFO Looking for devkit plain amber-phone image
> 2020-11-15 18:00:39,733 INFO Found disk image Build 5890 'plain devkit
> amber-phone image' from Sat Nov 14 18:06:30 2020
> 2020-11-15 18:00:40,882 INFO Found uboot Build 35 from Sun Sep 20
> 22:18:07 2020
> 2020-11-15 18:00:40,883 INFO Downloading to ./devkit_image_p7xiqrh9
> 2020-11-15 18:00:41,220 INFO Downloading image from
> https://arm01.puri.sm/job/Images/job/Image%20Build/5890/artifact/devkit.img.xz
> 2020-11-15 18:01:59,407 INFO Calculating sha256sum of
> ./devkit_image_p7xiqrh9/devkit.img         
> 2020-11-15 18:02:21,787 INFO Downloading uboot from
> https://arm01.puri.sm/job/u-boot_builds/job/uboot_devkit_build/35/artifact/output/uboot-devkit/u-boot-devkit.imx
> uuu (Universal Update Utility) for nxp imx chips --
> lib1.2.91                                    
> 
> Success 0    Failure
> 1                                                                          
>                                                                                                
>  
> 3:9133 1/ 1   [Failure claim interface               ] SDP: boot -f
> u-boot-devkit.imx            
> 2020-11-15 18:02:29,739 INFO Cleaning up.
> Traceback (most recent call last):
>   File "./scripts/librem5-flash-image", line 356, in <module>
>     sys.exit(main())
>   File "./scripts/librem5-flash-image", line 340, in main
>     flash_image(uuu_target, args.debug)
>   File "./scripts/librem5-flash-image", line 256, in flash_image
>     subprocess.check_call(['uuu', uuu_target])
>   File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
>     raise CalledProcessError(retcode, cmd)
> 
> subprocess.CalledProcessError: Command '['uuu',
> './devkit_image_p7xiqrh9/flash_devkit.lst']' returned non-zero exit
> status 255.
> 
> ```
> 
> Any idea why this may be happening?

Try with --no-cleanup`. This will give you a temporary folder with a
`flash_devkit.lst` (or similar) file. Then do `uuu flash_devkit.lst`
which should give you a better error message. It's usually either
permissions  (see the librem5-devkit-host package with udev rules
to fix that up if you want to run as regular user) or too old uuu
versions (the ones in Debian bullseye and PureOS Byzantium are known
to be recent enough).
Cheers,
  -- Guido

> 
> 
> -- 
> ==============================================
> 
> Sent from Protonmail -- https://protonmail.com
> 



> _______________________________________________
> Librem-5-dev mailing list
> Librem-5-dev at lists.community.puri.sm
> https://lists.community.puri.sm/listinfo/librem-5-dev



More information about the Librem-5-dev mailing list