14 Replies Latest reply on Mar 3, 2017 10:44 PM by adamzxtan

    Problem in flashing Android Things

    mstfldmr

      Hello,

       

      I try flashing AndroidThings image on Edison on Windows 10 laptop. I follow the steps at Intel® Edison | Android Things.

       

      I tried on 2 Windows laptops. Flash fails at 16%. The logs are below.

       

      Can you see what's going wrong?

       

       

      12/16/16 18:04:25.106 INFO : [Port 1/1] New device detected on 1/1 (id=0100000000000001)

      12/16/16 18:04:33.816 INFO : [Port 1/1] Device lost on 1/1

      12/16/16 18:04:42.265 INFO : [Port 1/1] New device detected on 1/1 (id=0100000000000001)

      12/16/16 18:04:44.782 INFO : [Port 1/1] Start flashing the flash configuration with dnx_fw start state for D248357D1714950170C3B11A0BE05B5F

      12/16/16 18:04:44.782 INFO : [Port 1/1] Starting flash ...

      12/16/16 18:04:44.782 INFO : [Port 1/1] Running `Notify Please reset the edison (with reset button)` command

      12/16/16 18:04:44.797 INFO : Displaying notification during 42000 ms

      12/16/16 18:04:44.797 INFO : [Port 1/1] Command `Notify Please reset the edison (with reset button)` succeed

      12/16/16 18:04:44.797 INFO : [Port 1/1] Running `"C:\Program Files (x86)\Intel\Platform Flash Tool Lite\xfstkFlashTool.exe" "-1" "C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\edison_dnx_fwr.bin" "C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\edison_ifwi-dbg-00.bin" "C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\edison_dnx_osr.bin" "C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\u-boot-edison.img" "0x80000007" "none" "none" "0"` command

      12/16/16 18:04:44.838 INFO : [Port 1/1] Disabling xFSTK Misc DnX

      12/16/16 18:04:44.838 INFO : [Port 1/1] Disabling xFSTK wipe out ifwi option

      12/16/16 18:04:44.838 INFO : [Port 1/1] Using xFSTK Solo interface (new API)

      12/16/16 18:04:44.838 INFO : [Port 1/1] xFSTK Soft Fuse not set

      12/16/16 18:04:44.838 INFO : [Port 1/1] XFSTK Downloader API 1.8.1

      12/16/16 18:04:44.838 INFO : [Port 1/1] Copyright (c) 2015 Intel Corporation

      12/16/16 18:04:44.838 INFO : [Port 1/1] fwdnx -- C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\edison_dnx_fwr.bin

      12/16/16 18:04:44.838 INFO : [Port 1/1] fwimage -- C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\edison_ifwi-dbg-00.bin

      12/16/16 18:04:44.838 INFO : [Port 1/1] osdnx -- C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\edison_dnx_osr.bin

      12/16/16 18:04:44.838 INFO : [Port 1/1] osimage -- C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\u-boot-edison.img

      12/16/16 18:04:44.838 INFO : [Port 1/1] gpflags -- 0x80000007

      12/16/16 18:04:44.838 INFO : [Port 1/1] softfuse --

      12/16/16 18:04:44.838 INFO : [Port 1/1] Qt: Untested Windows version 10.0 detected!

      12/16/16 18:04:44.868 INFO : [Port 1/1] XFSTK-STATUS--Detecting Intel Device - Attempt #0

      12/16/16 18:04:46.002 INFO : [Port 1/1] ....XFSTK-LOG--virtual bool MerrifieldDownloader::SetDevice(IGenericDevice*)

      12/16/16 18:04:46.002 INFO : [Port 1/1] Initiating download...

      12/16/16 18:04:46.009 INFO : [Port 1/1] XFSTK-STATUS--FW download is in progress ...

      12/16/16 18:04:46.011 INFO : [Port 1/1] XFSTK-STATUS--FW: Sending DnX DCFI00 ...

      12/16/16 18:04:48.933 INFO : [Port 1/1] XFSTK-STATUS--Error Code: 0 - Success

      12/16/16 18:04:48.934 INFO : [Port 1/1] XFSTK-STATUS--Firmware download completed. Continuing to OS...

      12/16/16 18:04:59.070 INFO : [Port 1/1] XFSTK-STATUS--Reconnecting to device - Attempt #1

      12/16/16 18:05:00.212 INFO : [Port 1/1] XFSTK-STATUS--POS download is in progress ...

      12/16/16 18:05:03.185 INFO : [Port 1/1] XFSTK-STATUS--Error Code: 0 - Success

      12/16/16 18:05:03.186 INFO : [Port 1/1] XFSTK-STATUS--Firmware and OS download completed.

      12/16/16 18:05:03.186 INFO : [Port 1/1] XFSTK: Transfer Completed Successfully.

      12/16/16 18:05:03.186 INFO : [Port 1/1] Success: Download of FW Completed.

      12/16/16 18:05:03.186 INFO : [Port 1/1] xfstkFlashTool exited with success

      12/16/16 18:05:03.187 INFO : [Port 1/1] Command `"C:\Program Files (x86)\Intel\Platform Flash Tool Lite\xfstkFlashTool.exe" "-1" "C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\edison_dnx_fwr.bin" "C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\edison_ifwi-dbg-00.bin" "C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\edison_dnx_osr.bin" "C:\Users\Mustafa\Downloads\androidthings_edison_devpreview_1\u-boot-edison.img" "0x80000007" "none" "none" "0"` succeed

      12/16/16 18:05:03.187 INFO : [Port 1/1] Running `Wait for device with status pos on port 1/1` command

      12/16/16 18:07:03.190 ERROR : [Port 1/1] Command `Wait for device with status pos on port 1/1` failed

      12/16/16 18:07:03.190 ERROR : [Port 1/1] Flash failed (Command type: Device enumeration)

      12/16/16 18:07:04.660 INFO : [Port 1/1] Device lost on 1/1

        • 1. Re: Problem in flashing Android Things
          tyomsky

          Hi! I have the same problem do you have power adapter connected to edison?

          • 2. Re: Problem in flashing Android Things
            tyomsky

            Okay. I just successfully flashed it on Ubuntu 16.04. I think it's not well adapted for Windows.. Here is detailed instruction mainly for Linux https://software.intel.com/sites/default/files/managed/83/77/Android%20Things%20-%20Intel%20Edison%20Kit%20for%20Arduino…

            • 3. Re: Problem in flashing Android Things
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Hi guys,

               

              I would recommend to contact the Android Things forum, since this image was develop by them.

               

              Forum: Google's IoT Developers Community - Community - Google+

               

              mstfldmr I think that maybe your problem is Windows see log information: "12/16/16 18:04:44.838 INFO : [Port 1/1] Qt: Untested Windows version 10.0 detected!"

               

              Also if you encounter any hardware issue, please contact us and we will be happy to help.

               

              Have a nice day!

               

              Best Regards,
              -Jose.

              • 4. Re: Problem in flashing Android Things
                MustafaAldemir

                I could also flash it successfully on Ubuntu 16.04. I used the same image, as I tried on Windows laptops. Thus, I think the problem is not about the image, but with the Windows version of Intel Platform Flash Tool Lite

                • 5. Re: Problem in flashing Android Things
                  Intel Corporation
                  This message was posted on behalf of Intel Corporation

                  Hi MustafaAldemir,

                  I would encourage you to provide this feedback to the Android community, so they can try to fix this issue with Windows.

                  Hope you have a nice day!

                  Best Regards,
                  -Jose.

                  • 6. Re: Problem in flashing Android Things
                    Chrisjenx

                    I get the same problem on OSx 10.11.2:

                     

                     

                    01/07/17 22:30:25.241 INFO : Intel(R) Platform Flash Tool Lite V 5.5.2.0 x64 (build on Tuesday April 26th 2016, 14:52:58 UTC)

                    01/07/17 22:30:25.242 INFO : Using xFSTK Downloader version: 1.8.0

                    01/07/17 22:30:25.259 INFO : Using DFU Downloader version: 0.8.4

                    01/07/17 22:30:25.383 INFO : Using Intel Command Line FlashTool v.2.56 (Download Library v.5.23)

                    01/07/17 22:30:25.403 INFO : Using Android Debug Bridge version 1.0.35

                    Revision f001255927f8-android

                    01/07/17 22:30:25.404 INFO : No external tool registered

                    01/07/17 22:30:25.420 INFO : OS version detected: OS X 10.11.6 (El Capitan) x64

                    01/07/17 22:30:25.423 INFO : SSL supported: Yes

                    01/07/17 22:30:28.462 INFO : Disk space available on /var/folders/7b/7v5fxp1j6rs2939kr3st3frc0000gn/T : 427.89 GB

                    01/07/17 22:30:28.492 INFO : Adb and fastboot binaries OK

                    01/07/17 22:30:28.605 INFO : Platform Flash Tool Lite initialized successfully

                    01/07/17 22:31:40.837 INFO : [Port 2] New device detected on 2 (id=0200000000000000)

                    01/07/17 22:31:49.439 INFO : [Port 2] Device lost on 2

                    01/07/17 22:31:53.740 INFO : [Port 2] New device detected on 2 (id=0200000000000000)

                    01/07/17 22:31:55.909 INFO : [Port 2] Device lost on 2

                    01/07/17 22:35:58.001 INFO : [Port 1] New device detected on 1 (id=0100000000000000)

                    01/07/17 22:36:08.689 INFO : [Port 1] Device lost on 1

                    01/07/17 22:36:10.812 INFO : [Port 1] New device detected on 1 (id=0100000000000000)

                    01/07/17 22:36:15.093 INFO : [Port 1] Device lost on 1

                     

                     

                    Seems the Flash Tool can't maintain a constant connection over USB.

                    • 7. Re: Problem in flashing Android Things
                      Intel Corporation
                      This message was posted on behalf of Intel Corporation

                      Hi Chrisjenx,

                       

                      Thanks for your interest in the Intel Edison Platform.

                       

                      I appreciate that you share your results, I will encourage you to contact the Android Things forum, so they can try to solve this issue. For other users using Linux solved their issue.

                       

                      Forum:  Google's IoT Developers Community - Community - Google+

                       

                      Hope you find this information useful, have a nice day!

                       

                      Best Regards,
                      -Jose.

                      • 8. Re: Problem in flashing Android Things
                        Chrisjenx

                        I managed to get it to Flash, seems like you have have to Press the "Flash" Button first, then plug the device in, seems it's super time sensitive as the device boots up. (It needs to load the bootloader before it finishes its full boot).

                         

                        I'll contact the Android Things team to update their docs, there should be more info on your tooling around this, I'm guessing I won't be the only one to find this.

                        • 9. Re: Problem in flashing Android Things
                          Intel Corporation
                          This message was posted on behalf of Intel Corporation


                          Hi Chrisjenx,

                          Thanks for sharing this information! It will be useful for other users.

                          If you have any more questions regarding the Intel Edison, please don't hesistate to contact us.

                          Have a nice day!

                          Best Regards,
                          -Jose.

                          • 10. Re: Problem in flashing Android Things
                            Pixelgeek

                            We are aware of issues when using the version of Platform Flash Tool 5.5.2.  There is a newer version currently in internal testing here at Intel, and we plan on having it posted publicly on 01.org later on this month. 

                            • 11. Re: Problem in flashing Android Things
                              Pixelgeek

                              The newer version of Platform Flash tool lite has been posted at https://01.org/android-ia/downloads/intel-platform-flash-tool-lite

                              • 12. Re: Problem in flashing Android Things
                                Intel Corporation
                                This message was posted on behalf of Intel Corporation

                                Hi Chris Norman,

                                Thanks for reaching out and sharing this information, it will be very helpful for all the users using the Android Things firmware with the Intel Edison.

                                Have a nice day!

                                Best Regards,
                                -Jose P.

                                • 13. Re: Problem in flashing Android Things
                                  adamzxtan

                                  Hey Chris,

                                   

                                  I've downloaded the newest version of Platform Flash Tool Lite (ver 5.8.3) but still having issue with flashing Android Things onto Intel Edison. I'm doing this on Windows 10. This is the flash log:

                                   

                                  03/03/17 21:30:46.129 INFO : Flash file C:/Users/Adam/Downloads/androidthings_edison_devpreview_2/FlashEdison.json [Non_OS] loaded

                                  03/03/17 21:30:46.130 INFO : Ready to flash!

                                  03/03/17 21:30:52.935 INFO : [Port -1] Starting flash ...

                                  03/03/17 21:30:52.935 INFO : [Port -1] Running `Notify Please reset the edison (with reset button)` command

                                  03/03/17 21:30:52.945 INFO : Displaying notification during 42000 ms

                                  03/03/17 21:30:52.949 INFO : [Port -1] Command `Notify Please reset the edison (with reset button)` succeed

                                  03/03/17 21:30:52.949 INFO : [Port -1] Running `"C:\Program Files (x86)\Intel\Platform Flash Tool Lite\xfstkFlashTool.exe" "-1" "C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\edison_dnx_fwr.bin" "C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\edison_ifwi-dbg-00.bin" "C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\edison_dnx_osr.bin" "C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\u-boot-edison.img" "0x80000007" "none" "none" "0"` command

                                  03/03/17 21:30:53.053 INFO : [Port -1] Disabling xFSTK Misc DnX

                                  03/03/17 21:30:53.053 INFO : [Port -1] Disabling xFSTK wipe out ifwi option

                                  03/03/17 21:30:53.053 INFO : [Port -1] Using xFSTK Solo interface (new API)

                                  03/03/17 21:30:53.053 INFO : [Port -1] xFSTK Soft Fuse not set

                                  03/03/17 21:30:53.053 INFO : [Port -1] XFSTK Downloader API 1.8.1

                                  03/03/17 21:30:53.053 INFO : [Port -1] Copyright (c) 2015 Intel Corporation

                                  03/03/17 21:30:53.053 INFO : [Port -1] fwdnx -- C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\edison_dnx_fwr.bin

                                  03/03/17 21:30:53.053 INFO : [Port -1] fwimage -- C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\edison_ifwi-dbg-00.bin

                                  03/03/17 21:30:53.053 INFO : [Port -1] osdnx -- C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\edison_dnx_osr.bin

                                  03/03/17 21:30:53.053 INFO : [Port -1] osimage -- C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\u-boot-edison.img

                                  03/03/17 21:30:53.053 INFO : [Port -1] gpflags -- 0x80000007

                                  03/03/17 21:30:53.053 INFO : [Port -1] softfuse --

                                  03/03/17 21:30:53.094 INFO : [Port -1] XFSTK-STATUS--Detecting Intel Device - Attempt #0

                                  03/03/17 21:30:54.237 INFO : [Port -1] XFSTK-STATUS--Detecting Intel Device - Attempt #1

                                  03/03/17 21:30:55.378 INFO : [Port -1] XFSTK-STATUS--Detecting Intel Device - Attempt #2

                                  03/03/17 21:30:56.520 INFO : [Port -1] ....XFSTK-LOG--virtual bool MerrifieldDownloader::SetDevice(IGenericDevice*)

                                  03/03/17 21:30:56.520 INFO : [Port -1] Initiating download...

                                  03/03/17 21:30:56.521 INFO : [Port -1] XFSTK-STATUS--FW(Miscdnx) download is in progress ...

                                  03/03/17 21:30:56.522 INFO : [Port -1] XFSTK-STATUS--FW: Sending DnX DCFI00 ...

                                  03/03/17 21:30:58.014 INFO : [Port 1/4] New device detected on 1/4 (id=0103000000000001)

                                  03/03/17 21:30:59.247 INFO : [Port 1/4] XFSTK-STATUS--Error Code: 0 - Success

                                  03/03/17 21:30:59.248 INFO : [Port 1/4] XFSTK-STATUS--Firmware download completed. Continuing to OS...

                                  03/03/17 21:31:09.397 INFO : [Port 1/4] XFSTK-STATUS--Reconnecting to device - Attempt #1

                                  03/03/17 21:31:10.546 INFO : [Port 1/4] XFSTK-STATUS--POS download is in progress ...

                                  03/03/17 21:31:13.506 INFO : [Port 1/4] XFSTK-STATUS--Error Code: 0 - Success

                                  03/03/17 21:31:13.506 INFO : [Port 1/4] XFSTK-STATUS--Firmware and OS download completed.

                                  03/03/17 21:31:13.506 INFO : [Port 1/4] XFSTK: Transfer Completed Successfully.

                                  03/03/17 21:31:13.506 INFO : [Port 1/4] Success: Download of FW Completed.

                                  03/03/17 21:31:13.506 INFO : [Port 1/4] xfstkFlashTool exited with success

                                  03/03/17 21:31:13.507 INFO : [Port 1/4] Command `"C:\Program Files (x86)\Intel\Platform Flash Tool Lite\xfstkFlashTool.exe" "-1" "C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\edison_dnx_fwr.bin" "C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\edison_ifwi-dbg-00.bin" "C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\edison_dnx_osr.bin" "C:\Users\Adam\Downloads\androidthings_edison_devpreview_2\u-boot-edison.img" "0x80000007" "none" "none" "0"` succeed

                                  03/03/17 21:31:13.507 INFO : [Port 1/4] Running `Wait for device with status pos on port 1/4` command

                                  03/03/17 21:33:13.517 ERROR : [Port 1/4] Command `Wait for device with status pos on port 1/4` failed

                                  03/03/17 21:33:13.517 ERROR : [Port 1/4] Flash failed (Command type: Device enumeration)

                                  03/03/17 21:33:14.552 INFO : [Port 1/4] Device lost on 1/4

                                   

                                  It's the same exact issue with Mustafa. I'm guessing the flashing issue hasn't been fixed for Windows 10 on the latest release?

                                  • 14. Re: Problem in flashing Android Things
                                    adamzxtan

                                    I've managed to flash Android Things on Intel Edison on Windows 10, using the latest version Platform Flash Tool Lite (5.8.3v). Apparently you need to install both drivers (Intel Android USB Drivers and Intel Edison Drivers) in the "Prerequisite" section at the download page. This will solve the connection lost issue when the flashing progress reaches 50%.