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

Angus Ainslie angus.ainslie at puri.sm
Tue Nov 17 05:58:48 PST 2020


Hi David,

On 2020-11-15 3:06 p.m., 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           

This sounds like either a permission issue or that another program is
using the port.

If it's a permissions issue running the command with sudo should get it
to work. Then you would just need to fix the udev rules.

If you have modemmanager or usbmodeswitch installed that could be
conflicting with uuu. try uninstalling or disabling those 2 and any
other that might do an automatic scan of the USB bus devices.

Angus


> 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?
>
>
> -- 
> ==============================================
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.community.puri.sm/pipermail/librem-5-dev/attachments/20201117/db296e6e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.community.puri.sm/pipermail/librem-5-dev/attachments/20201117/db296e6e/attachment-0001.sig>


More information about the Librem-5-dev mailing list