<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi David,</p>
    <div class="moz-cite-prefix">On 2020-11-15 3:06 p.m., David Philipe
      Gil via Librem-5-dev wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:f7996fc5-db8c-2b90-83d3-a25d060dc357@protonmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>I am trying to flash my Librem5 Dev Kit using the following
        instructions:</p>
      <p><a class="moz-txt-link-freetext"
href="https://developer.puri.sm/Librem5/Development_Environment/Boards/HowTo/Flashing_eMMC.html#imx8-devkit-flashing-emmc"
          moz-do-not-send="true">https://developer.puri.sm/Librem5/Development_Environment/Boards/HowTo/Flashing_eMMC.html#imx8-devkit-flashing-emmc</a><br>
      </p>
      <p><br>
      </p>
      <p>But my flash fails with the following error:</p>
      <p>```<br>
      </p>
      <p>MyUser@MyPC:~/Repositories/librem5-devkit-tools$ sudo
        ./scripts/librem5-flash-image --board devkit<br>
      </p>
      <span class="mx_MTextBody mx_EventTile_content"><span
          class="mx_EventTile_body" dir="auto">2020-11-15 18:00:35,607
          INFO Looking for devkit plain amber-phone image<br>
          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<br>
          2020-11-15 18:00:40,882 INFO Found uboot Build 35 from Sun Sep
          20 22:18:07 2020<br>
          2020-11-15 18:00:40,883 INFO Downloading to
          ./devkit_image_p7xiqrh9<br>
          2020-11-15 18:00:41,220 INFO Downloading image from
          <a class="moz-txt-link-freetext"
href="https://arm01.puri.sm/job/Images/job/Image%20Build/5890/artifact/devkit.img.xz"
            moz-do-not-send="true">https://arm01.puri.sm/job/Images/job/Image%20Build/5890/artifact/devkit.img.xz</a><br>
          2020-11-15 18:01:59,407 INFO Calculating sha256sum of
          ./devkit_image_p7xiqrh9/devkit.img         <br>
          2020-11-15 18:02:21,787 INFO Downloading uboot from
          <a class="moz-txt-link-freetext"
href="https://arm01.puri.sm/job/u-boot_builds/job/uboot_devkit_build/35/artifact/output/uboot-devkit/u-boot-devkit.imx"
            moz-do-not-send="true">https://arm01.puri.sm/job/u-boot_builds/job/uboot_devkit_build/35/artifact/output/uboot-devkit/u-boot-devkit.imx</a><br>
          uuu (Universal Update Utility) for nxp imx chips --
          lib1.2.91                                    <br>
          <br>
          Success 0    Failure
1                                                                        
           <br>
                                                                                               
           <br>
          3:9133 1/ 1   [Failure claim interface               ] SDP:
          boot -f u-boot-devkit.imx            <br>
        </span></span></blockquote>
    <p>This sounds like either a permission issue or that another
      program is using the port.<br>
    </p>
    <p>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.</p>
    <p>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.</p>
    <p>Angus<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
      cite="mid:f7996fc5-db8c-2b90-83d3-a25d060dc357@protonmail.com"><span
        class="mx_MTextBody mx_EventTile_content"><span
          class="mx_EventTile_body" dir="auto"> 2020-11-15 18:02:29,739
          INFO Cleaning up.<br>
          Traceback (most recent call last):<br>
            File "./scripts/librem5-flash-image", line 356, in
          <module><br>
              sys.exit(main())<br>
            File "./scripts/librem5-flash-image", line 340, in main<br>
              flash_image(uuu_target, args.debug)<br>
            File "./scripts/librem5-flash-image", line 256, in
          flash_image<br>
              subprocess.check_call(['uuu', uuu_target])<br>
            File "/usr/lib/python3.6/subprocess.py", line 311, in
          check_call<br>
              raise CalledProcessError(retcode, cmd)<br>
        </span></span>
      <p><span class="mx_MTextBody mx_EventTile_content"><span
            class="mx_EventTile_body" dir="auto">subprocess.CalledProcessError:
            Command '['uuu',
            './devkit_image_p7xiqrh9/flash_devkit.lst']' returned
            non-zero exit status 255.</span></span></p>
      <p><span class="mx_MTextBody mx_EventTile_content"><span
            class="mx_EventTile_body" dir="auto">```<br>
          </span></span></p>
      <p><span class="mx_MTextBody mx_EventTile_content"><span
            class="mx_EventTile_body" dir="auto">Any idea why this may
            be happening?<br>
          </span></span></p>
      <p><span class="mx_MTextBody mx_EventTile_content"><span
            class="mx_EventTile_body" dir="auto"></span></span></p>
      <span class="mx_MTextBody mx_EventTile_content"><span
          class="mx_EventTile_body" dir="auto"><br>
        </span></span>
      <pre class="moz-signature" cols="72">-- 
==============================================

Sent from Protonmail -- <a class="moz-txt-link-freetext" href="https://protonmail.com" moz-do-not-send="true">https://protonmail.com</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Librem-5-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Librem-5-dev@lists.community.puri.sm">Librem-5-dev@lists.community.puri.sm</a>
<a class="moz-txt-link-freetext" href="https://lists.community.puri.sm/listinfo/librem-5-dev">https://lists.community.puri.sm/listinfo/librem-5-dev</a>
</pre>
    </blockquote>
  </body>
</html>