edison-fw / meta-intel-edison

Here is the meta-intel-edison that builds, tries to stay up to date. Master is based on Yocto Poky Gatesgarth LTS 5.10.yy vanilla kernels. It builds a 32bit kernel (Gatesgarth branch 64bit) with ACPI enabled and corresponding rootfs. Telegram group: https://t.me/IntelEdison Web-site:
https://edison-fw.github.io/meta-intel-edison/
MIT License
60 stars 37 forks source link

Error during flashing Edison Image Warrior64 on Windows 10 #117

Closed Quarer closed 3 years ago

Quarer commented 3 years ago

I'm getting troubles with OS installation on Intel Edison Breakout board. Using Windows 10 x64, Intel Platform Flash Tool Lite 5.8.9.0. Successfully installed older Sumo32 Image. How I flash Image:

  1. Launch Platform Flashing Tool,
  2. Extracting downloaded image from archive
  3. Browsing to select FlashEdison.json file.
  4. Usually start flashing, and connecting Edison.

With newest image Warrior64, Intel's flasher shows error:

10/06/20 11:43:35.638  INFO   : Platform Flash Tool Lite initialized successfully
10/06/20 11:50:41.354  ERROR  : D:\X\edison-debian-decb4c8\toFlash\edison_ifwi-dbg-00.bin not found
10/06/20 11:50:41.360  ERROR  : Failed to load D:\X\edison-debian-decb4c8\toFlash\FlashEdison.json

So I have moved all the files from directory GNUSparseFile.0 and leave them into main directory, so far without errors

10/06/20 11:58:04.569  DEBUG  : Json Flash file parsed (D:/X/edison-debian-decb4c8/toFlash)
10/06/20 11:58:04.570  INFO   : Ready to flash!
10/06/20 11:58:04.817  DEBUG  : FlashConfiguration:
name=Windows
startState=dnx_fw
brief=RNDIS USB driver (for Windows)
description=U-Boot RNDIS environment
documentation=
warning=
hiddenToEndUser=no
id=rndis_env
cmd[0, m=yes, t=no, s=no] Notify ${helperFile}
cmd[1, m=yes, t=42000, s=no] Wait for device with status dnx_fw
cmd[2, m=yes, t=no, s=no] Notify Edison board plugged
cmd[3, m=yes, t=180000, s=no] xFSTK Downloader:
        IFWI: D:\X\edison-debian-decb4c8\toFlash\edison_ifwi-dbg-00.bin
        IFWI DnX: D:\X\edison-debian-decb4c8\toFlash\edison_dnx_fwr.bin
        OS: D:\X\edison-debian-decb4c8\toFlash\u-boot-edison.img
        OS DnX: D:\X\edison-debian-decb4c8\toFlash\edison_dnx_osr.bin
        GP Flag: 0x80000007
cmd[4, m=yes, t=5000, s=no] Sleeping for 5 seconds
cmd[5, m=yes, t=120000, s=no] Wait for device with status pos
cmd[6, m=yes, t=60000, s=no] dfuDownloader "--verbose" "--alt" "u-boot0" "-D" "D:\X\edison-debian-decb4c8\toFlash\u-boot-edison.bin" "-t" "4096"
cmd[7, m=yes, t=60000, s=no] dfuDownloader "--verbose" "--alt" "u-boot-env0" "-D" "D:\X\edison-debian-decb4c8\toFlash\u-boot-envs\edison-blankrndis.bin" "-t" "4096"
cmd[8, m=yes, t=60000, s=no] dfuDownloader "--verbose" "--alt" "u-boot-env1" "-D" "D:\X\edison-debian-decb4c8\toFlash\u-boot-envs\edison-blankrndis.bin" "-t" "4096" "-R"
cmd[9, m=yes, t=5000, s=no] Sleeping for 5 seconds
cmd[10, m=yes, t=100000, s=no] Wait for device with status pos
cmd[11, m=yes, t=60000, s=no] dfuDownloader "--verbose" "--alt" "boot" "-D" "D:\X\edison-debian-decb4c8\toFlash\edison-image-edison.hddimg" "-t" "4096"
cmd[12, m=yes, t=1200000, s=no] dfuDownloader "--verbose" "--alt" "rootfs" "-D" "D:\X\edison-debian-decb4c8\toFlash\edison-image-edison.ext4" "-t" "4096" "-R"
cmd[13, m=yes, t=no, s=no] Notify Edison board needs to reboot<br />
                Please do not unplug it for 2 minutes<br /><br />
                On Arduino board, led will stop blinking at boot completed<br /><br />
                <img src='images/Edison-arduino-blink-led.png' width='390' />
10/06/20 11:58:04.818  DEBUG  : Monitoring D:\X\edison-debian-decb4c8\toFlash\FlashEdison.json
10/06/20 11:58:04.818  INFO   : Flash file D:\X\edison-debian-decb4c8\toFlash\FlashEdison.json [Windows] loaded

There is the detailed log:

10/06/20 11:58:04.818  DEBUG  : Monitoring D:\X\edison-debian-decb4c8\toFlash\FlashEdison.json
10/06/20 11:58:04.818  INFO   : Flash file D:\X\edison-debian-decb4c8\toFlash\FlashEdison.json [Windows] loaded
10/06/20 11:59:24.751  INFO   : [Port 1/1/3] New device detected on 1/1/3 (id=0100020000000002)
10/06/20 11:59:33.798  INFO   : [Port 1/1/3] Device lost on 1/1/3
10/06/20 11:59:58.389  INFO   : [Port 1/1/3] New device detected on 1/1/3 (id=0100020000000002)
10/06/20 11:59:59.084  INFO   : [Port 1/1/3] Start flashing the flash configuration with dnx_fw start state for B282A67AE3557604F2C232FF97E34BCC
10/06/20 11:59:59.877  DEBUG  : Device is already in the required state, no need to reboot it
10/06/20 11:59:59.878  INFO   : [Port 1/1/3] Starting flash ...
10/06/20 11:59:59.878  INFO   : [Port 1/1/3] Running `Notify ${helperFile}` command
10/06/20 11:59:59.965  INFO   : Displaying notification during 42000 ms
10/06/20 11:59:59.970  INFO   : [Port 1/1/3] Command `Notify ${helperFile}` succeed
10/06/20 12:00:00.020  INFO   : [Port 1/1/3] Running `Wait for device with status dnx_fw on port 1/1/3` command
10/06/20 12:00:00.020  INFO   : [Port 1/1/3] Command `Wait for device with status dnx_fw on port 1/1/3` succeed
10/06/20 12:00:00.020  INFO   : [Port 1/1/3] Running `Notify Edison board plugged` command
10/06/20 12:00:00.044  INFO   : Displaying notification during 5000 ms
10/06/20 12:00:00.048  INFO   : [Port 1/1/3] Command `Notify Edison board plugged` succeed
10/06/20 12:00:00.049  INFO   : [Port 1/1/3] Running `"C:\Program Files (x86)\Intel\Platform Flash Tool Lite\xfstkFlashTool.exe" "-1" "D:\X\edison-debian-decb4c8\toFlash\edison_dnx_fwr.bin" "D:\X\edison-debian-decb4c8\toFlash\edison_ifwi-dbg-00.bin" "D:\X\edison-debian-decb4c8\toFlash\edison_dnx_osr.bin" "D:\X\edison-debian-decb4c8\toFlash\u-boot-edison.img" "0x80000007" "none" "none" "0"` command
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] Disabling xFSTK Misc DnX
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] Disabling xFSTK wipe out ifwi option
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] Using xFSTK Solo interface (new API)
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] xFSTK Soft Fuse not set
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] XFSTK Downloader API 1.8.1
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] Copyright (c) 2015 Intel Corporation
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] fwdnx -- D:\X\edison-debian-decb4c8\toFlash\edison_dnx_fwr.bin
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] fwimage -- D:\X\edison-debian-decb4c8\toFlash\edison_ifwi-dbg-00.bin
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] osdnx -- D:\X\edison-debian-decb4c8\toFlash\edison_dnx_osr.bin
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] osimage -- D:\X\edison-debian-decb4c8\toFlash\u-boot-edison.img
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] gpflags -- 0x80000007
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] softfuse --
10/06/20 12:00:00.741  DEBUG  : [Port 1/1/3] XFSTK-PROGRESS--0
10/06/20 12:00:00.741  INFO   : [Port 1/1/3] XFSTK-STATUS--Detecting Intel Device - Attempt #0
10/06/20 12:00:00.741  DEBUG  : [Port 1/1/3] XFSTK-PROGRESS--5
10/06/20 12:00:01.887  INFO   : [Port 1/1/3] ....XFSTK-LOG--virtual bool MerrifieldDownloader::SetDevice(IGenericDevice*)
10/06/20 12:00:01.887  INFO   : [Port 1/1/3] Initiating download...
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--virtual bool MerrifieldDownloader::UpdateTarget()
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--FWDnxPath -- D:\X\edison-debian-decb4c8\toFlash\edison_dnx_fwr.bin
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--FWImagePath -- D:\X\edison-debian-decb4c8\toFlash\edison_ifwi-dbg-00.bin
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--OSDnxPath -- D:\X\edison-debian-decb4c8\toFlash\edison_dnx_osr.bin
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--OSImagePath -- D:\X\edison-debian-decb4c8\toFlash\u-boot-edison.img
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--MiscDnxPath -- D:\X\edison-debian-decb4c8\toFlash\edison_dnx_fwr.bin
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--MiscBinPath -- BLANK.bin
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--Gpflags -- 80000007
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--DebugLevel -- ffffffff
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--UsbDelay ms -- 0
10/06/20 12:00:01.887  DEBUG  : [Port 1/1/3] XFSTK-LOG--TransferType -- USB
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--WipeIFWI -- False
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--Idrq -- False
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--Verbose -- True
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--void MerrifieldDownloader::Init()
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--Open
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--USB Device found - USBSN: B282A67AE3557604F2C232FF97E34BCC Address:3
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--void MerrifieldDownloader::do_update(MerrifieldOptions*)
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--Start
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--Sending DnER...
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe DnER
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe 0
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--Write --->DnER
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetOpCode
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--ReadInAck
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck - DxxM(0x4)
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--Visit
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--FW: Handle None virgin part DnX ...
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--LogProgress
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-PROGRESS--1
10/06/20 12:00:01.888  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetOpCode
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--Changing to DLDR_STATE_FW_MISC ...
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--InitNoSize
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--CheckFile
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--CheckFile
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--D:\X\edison-debian-decb4c8\toFlash\edison_dnx_fwr.bin size:98196 bytes
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--D:\X\edison-debian-decb4c8\toFlash\edison_dnx_fwr.bin size:98196 bytes
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--InitFwImage
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--allocating buffers for FW images...
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--D:\X\edison-debian-decb4c8\toFlash\edison_ifwi-dbg-00.bin size:1032868 bytes
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--D:\X\edison-debian-decb4c8\toFlash\edison_ifwi-dbg-00.bin size:1032868 bytes
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--allocating buffers for primary/secondary security FW images...
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--loading buffers for FW images...
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--InitFwImage Exception raised: ErrorCode 6
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--LogError
10/06/20 12:00:01.889  INFO   : [Port 1/1/3] XFSTK-STATUS--FW(Miscdnx) download is in progress ...
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--StartFw
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--sending 6 DWORDS of DnxFW size and checksum...
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe �
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe 0
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--Write --->�
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--LogProgress
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-PROGRESS--2
10/06/20 12:00:01.889  DEBUG  : [Port 1/1/3] XFSTK-LOG--End of MrfdStHandleFwMisc
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--LogProgress
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-PROGRESS--4
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetOpCode
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--ReadInAck
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck - DCFI00(0x6)
10/06/20 12:00:01.890  INFO   : [Port 1/1/3] XFSTK-STATUS--FW: Sending DnX DCFI00 ...
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe __BINARY__
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe 0
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--Write --->__BINARY__
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--LogProgress
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-PROGRESS--5
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetOpCode
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--ReadInAck
10/06/20 12:00:01.890  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck
10/06/20 12:00:01.963  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck - DXBL(0x4)
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--FW: Sending DnX ...
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--FwDXBL
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--LogProgress
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-PROGRESS--6
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--Sending FW Dnx data...29dba48
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe __BINARY__
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe 0
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--Write --->__BINARY__
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--LogProgress
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-PROGRESS--8
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetOpCode
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--ReadInAck
10/06/20 12:00:01.974  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck - RUPHS(0x8)
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--FW: Sending FW Update Profile Hdr Size...
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe �
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe 0
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--Write --->�
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--LogProgress
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-PROGRESS--9
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetOpCode
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--ReadInAck
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck - RUPH(0x4)
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--FW: Sending FW Update Profile Hdr...
10/06/20 12:00:02.017  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe __BINARY__
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-LOG--WriteOutPipe 0
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-LOG--Write --->__BINARY__
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-LOG--LogProgress
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-PROGRESS--11
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetOpCode
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-LOG--ReadInAck
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-LOG--GetAck - ER20(0x4)
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-LOG--LogError
10/06/20 12:00:02.018  WARNING: [Port 1/1/3] XFSTK-STATUS--Error Code: 26 - ER20 - Signature Error
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-LOG--void MerrifieldDownloader::do_abort()
10/06/20 12:00:02.018  DEBUG  : [Port 1/1/3] XFSTK-LOG--Abort
10/06/20 12:00:02.018  INFO   : [Port 1/1/3] XFSTK-STATUS--FAIL
10/06/20 12:00:02.018  INFO   : [Port 1/1/3] XFSTK-STATUS--Errors encounter during FW download. Aborting ...
10/06/20 12:00:02.018  INFO   : [Port 1/1/3] XFSTK: Download operation encountered errors.
10/06/20 12:00:02.018  INFO   : [Port 1/1/3] XFSTK: Please verify fw/os image integrity and reprovision target.
10/06/20 12:00:02.018  INFO   : [Port 1/1/3] xfstkFlashTool exited with error code 26 ER20 - Signature Error
10/06/20 12:00:02.124  ERROR  : [Port 1/1/3] Command `"C:\Program Files (x86)\Intel\Platform Flash Tool Lite\xfstkFlashTool.exe" "-1" "D:\X\edison-debian-decb4c8\toFlash\edison_dnx_fwr.bin" "D:\X\edison-debian-decb4c8\toFlash\edison_ifwi-dbg-00.bin" "D:\X\edison-debian-decb4c8\toFlash\edison_dnx_osr.bin" "D:\X\edison-debian-decb4c8\toFlash\u-boot-edison.img" "0x80000007" "none" "none" "0"` failed
10/06/20 12:00:02.124  ERROR  : [Port 1/1/3] Flash failed (Command type: Ifwi)
10/06/20 12:00:03.009  INFO   : [Port 1/1/3] Device lost on 1/1/3
10/06/20 12:00:03.887  TRACE  : Sending system tray notification: "Flash failed"

Also tried to flash using bat script flashall.bat included in package, but still error during flash. Without moving files, direct flashing after unpack:

D:\X\edison-debian-decb4c8\toFlash>flashall.bat
Using U-boot target: edison-blankrndis
Now waiting for dfu device 8087:0a99
Please plug and reboot the board
Dfu device found
Flashing IFWI
Download        [=========================] 100%      4194304 bytes
Download done.
Download        [=========================] 100%      4194304 bytes
Download done.
Flashing U-Boot
Flash failed on --alt u-boot0 -D "D:\X\edison-debian-decb4c8\toFlash\u-boot-edison.bin"

Flashing after moving out files from GNUSparseFile.0 dir.-

D:\X\edison-debian-decb4c8\toFlash>flashall.bat
Using U-boot target: edison-blankrndis
Now waiting for dfu device 8087:0a99
Please plug and reboot the board
Dfu device found
Flashing IFWI
Download        [=========================] 100%      4194304 bytes
Download done.
Download        [=========================] 100%      4194304 bytes
Download done.
Flashing U-Boot
Download        [=========================] 100%       475648 bytes
Download done.
Flashing U-Boot Environment
Download        [=========================] 100%        65536 bytes
Download done.
Flashing U-Boot Environment Backup
Download        [=========================] 100%        65536 bytes
Download done.
Rebooting to apply partiton changes
Dfu device not found Timeout
Did you plug and reboot your board?
If yes, please try a recovery by calling this script with the --recovery option

Thanks for any help. Greetings, Tom

htot commented 3 years ago

I'm not sure where GNUSparseFile.0 dir.- comes from. The directory structure I see is: afbeelding

Quarer commented 3 years ago

So WinRar and 7-zip under Windows OS "sees" one more directory GNUSparseFile.0 screen_winrar screen_7zip

I downloaded file with OS one more time on linux, and you are right. There is no folder like GNUSparseFile.0 under linux.

Log from linux:

root@u0 _delete_me_ :( # tar -xf edison-image-4b7e1298.tar.gz
root@u0 _delete_me_ # tree
.
├── edison-image-4b7e1298.tar.gz
└── toFlash
    ├── edison_dnx_fwr.bin
    ├── edison_dnx_osr.bin
    ├── edison_ifwi-dbg-00.bin
    ├── edison_ifwi-dbg-00-dfu.bin
    ├── edison_ifwi-dbg-01.bin
    ├── edison_ifwi-dbg-01-dfu.bin
    ├── edison_ifwi-dbg-02.bin
    ├── edison_ifwi-dbg-02-dfu.bin
    ├── edison_ifwi-dbg-03.bin
    ├── edison_ifwi-dbg-03-dfu.bin
    ├── edison_ifwi-dbg-04.bin
    ├── edison_ifwi-dbg-04-dfu.bin
    ├── edison_ifwi-dbg-05.bin
    ├── edison_ifwi-dbg-05-dfu.bin
    ├── edison_ifwi-dbg-06.bin
    ├── edison_ifwi-dbg-06-dfu.bin
    ├── edison-image-edison.ext4
    ├── edison-image-edison.hddimg
    ├── filter-dfu-out.js
    ├── flashall.bat
    ├── flashall.sh
    ├── FlashEdison.json
    ├── helper
    │   ├── helper.html
    │   └── images
    │       ├── Edison-arduino-blink-led.png
    │       ├── Edison-arduino.png
    │       └── Edison-breakout-board.png
    ├── ota_update.scr
    ├── package-list.txt
    ├── u-boot-edison.bin
    ├── u-boot-edison.img
    └── u-boot-envs
        ├── edison-blankcdc.bin
        ├── edison-blankrndis.bin
        ├── edison-ifwi.bin
        └── edison-prod.bin

4 directories, 35 files

But I still dont know how to flash it correctly 😢. After flashing IFWI and U-Boot device stuck, not showing anymore. I suppose it stuck in bootloop.

htot commented 3 years ago

You lost me. Your first log shows:

cmd[12, m=yes, t=1200000, s=no] dfuDownloader "--verbose" "--alt" "rootfs" "-D" "D:\X\edison-debian-decb4c8\toFlash\edison-image-edison.ext4" "-t" "4096" "-R"
cmd[13, m=yes, t=no, s=no] Notify Edison board needs to reboot<br />
                Please do not unplug it for 2 minutes<br /><br />

So it looks like everything flashed. How are you trying to contact Edison?

Quarer commented 3 years ago

You lost me. Your first log shows:

cmd[12, m=yes, t=1200000, s=no] dfuDownloader "--verbose" "--alt" "rootfs" "-D" "D:\X\edison-debian-decb4c8\toFlash\edison-image-edison.ext4" "-t" "4096" "-R"
cmd[13, m=yes, t=no, s=no] Notify Edison board needs to reboot<br />
                Please do not unplug it for 2 minutes<br /><br />

Ahh, my bad, this part shouldn't be there... Its because i merged both folders (moved, replaced files from old edison-image-4b7e1298 to edison-image-decb4c8. My bad, sorry for that.

Here is the log from now, flashing (OS edison-image-decb4c8) on Windows 10 x64, using Intel Platform Flash Tool Lite:

10/06/20 21:05:04.389  DEBUG  : Json Flash file parsed (D:/X/edison-image-decb4c8/toFlash)
10/06/20 21:05:04.390  INFO   : Ready to flash!
10/06/20 21:05:04.662  DEBUG  : FlashConfiguration:
name=Windows
startState=dnx_fw
brief=RNDIS USB driver (for Windows)
description=U-Boot RNDIS environment
documentation=
warning=
hiddenToEndUser=no
id=rndis_env
cmd[0, m=yes, t=no, s=no] Notify ${helperFile}
cmd[1, m=yes, t=42000, s=no] Wait for device with status dnx_fw
cmd[2, m=yes, t=no, s=no] Notify Edison board plugged
cmd[3, m=yes, t=180000, s=no] xFSTK Downloader:
        IFWI: D:\X\edison-image-decb4c8\toFlash\edison_ifwi-dbg-00.bin
        IFWI DnX: D:\X\edison-image-decb4c8\toFlash\edison_dnx_fwr.bin
        OS: D:\X\edison-image-decb4c8\toFlash\u-boot-edison.img
        OS DnX: D:\X\edison-image-decb4c8\toFlash\edison_dnx_osr.bin
        GP Flag: 0x80000007
cmd[4, m=yes, t=5000, s=no] Sleeping for 5 seconds
cmd[5, m=yes, t=120000, s=no] Wait for device with status pos
cmd[6, m=yes, t=60000, s=no] dfuDownloader "--verbose" "--alt" "u-boot0" "-D" "D:\X\edison-image-decb4c8\toFlash\u-boot-edison.bin" "-t" "4096"
cmd[7, m=yes, t=60000, s=no] dfuDownloader "--verbose" "--alt" "u-boot-env0" "-D" "D:\X\edison-image-decb4c8\toFlash\u-boot-envs\edison-blankrndis.bin" "-t" "4096"
cmd[8, m=yes, t=60000, s=no] dfuDownloader "--verbose" "--alt" "u-boot-env1" "-D" "D:\X\edison-image-decb4c8\toFlash\u-boot-envs\edison-blankrndis.bin" "-t" "4096" "-R"
cmd[9, m=yes, t=5000, s=no] Sleeping for 5 seconds
cmd[10, m=yes, t=100000, s=no] Wait for device with status pos
cmd[11, m=yes, t=60000, s=no] dfuDownloader "--verbose" "--alt" "boot" "-D" "D:\X\edison-image-decb4c8\toFlash\edison-image-edison.hddimg" "-t" "4096"
cmd[12, m=yes, t=1200000, s=no] dfuDownloader "--verbose" "--alt" "rootfs" "-D" "D:\X\edison-image-decb4c8\toFlash\edison-image-edison.ext4" "-t" "4096" "-R"
cmd[13, m=yes, t=no, s=no] Notify Edison board needs to reboot<br />
                Please do not unplug it for 2 minutes<br /><br />
                On Arduino board, led will stop blinking at boot completed<br /><br />
                <img src='images/Edison-arduino-blink-led.png' width='390' />
10/06/20 21:05:04.662  DEBUG  : Monitoring D:\X\edison-image-decb4c8\toFlash\FlashEdison.json
10/06/20 21:05:04.662  INFO   : Flash file D:\X\edison-image-decb4c8\toFlash\FlashEdison.json [Windows] loaded
10/06/20 21:05:23.235  INFO   : [Port 1/1/2] New device detected on 1/1/2 (id=0100010000000002)
10/06/20 21:05:25.248  INFO   : [Port 1/1/2] Start flashing the flash configuration with dnx_fw start state for B282A67AE3557604F2C232FF97E34BCC
10/06/20 21:05:25.250  DEBUG  : Device is already in the required state, no need to reboot it
10/06/20 21:05:25.250  INFO   : [Port 1/1/2] Starting flash ...
10/06/20 21:05:25.250  INFO   : [Port 1/1/2] Running `Notify ${helperFile}` command
10/06/20 21:05:25.353  INFO   : Displaying notification during 42000 ms
10/06/20 21:05:25.366  INFO   : [Port 1/1/2] Command `Notify ${helperFile}` succeed
10/06/20 21:05:25.366  INFO   : [Port 1/1/2] Running `Wait for device with status dnx_fw on port 1/1/2` command
10/06/20 21:05:25.366  INFO   : [Port 1/1/2] Command `Wait for device with status dnx_fw on port 1/1/2` succeed
10/06/20 21:05:25.366  INFO   : [Port 1/1/2] Running `Notify Edison board plugged` command
10/06/20 21:05:25.403  INFO   : Displaying notification during 5000 ms
10/06/20 21:05:25.406  INFO   : [Port 1/1/2] Command `Notify Edison board plugged` succeed
10/06/20 21:05:25.406  INFO   : [Port 1/1/2] Running `"C:\Program Files (x86)\Intel\Platform Flash Tool Lite\xfstkFlashTool.exe" "-1" "D:\X\edison-image-decb4c8\toFlash\edison_dnx_fwr.bin" "D:\X\edison-image-decb4c8\toFlash\edison_ifwi-dbg-00.bin" "D:\X\edison-image-decb4c8\toFlash\edison_dnx_osr.bin" "D:\X\edison-image-decb4c8\toFlash\u-boot-edison.img" "0x80000007" "none" "none" "0"` command
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] Disabling xFSTK Misc DnX
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] Disabling xFSTK wipe out ifwi option
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] Using xFSTK Solo interface (new API)
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] xFSTK Soft Fuse not set
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] XFSTK Downloader API 1.8.1
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] Copyright (c) 2015 Intel Corporation
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] fwdnx -- D:\X\edison-image-decb4c8\toFlash\edison_dnx_fwr.bin
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] fwimage -- D:\X\edison-image-decb4c8\toFlash\edison_ifwi-dbg-00.bin
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] osdnx -- D:\X\edison-image-decb4c8\toFlash\edison_dnx_osr.bin
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] osimage -- D:\X\edison-image-decb4c8\toFlash\u-boot-edison.img
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] gpflags -- 0x80000007
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] softfuse --
10/06/20 21:05:25.748  DEBUG  : [Port 1/1/2] XFSTK-PROGRESS--0
10/06/20 21:05:25.748  INFO   : [Port 1/1/2] XFSTK-STATUS--Detecting Intel Device - Attempt #0
10/06/20 21:05:25.748  DEBUG  : [Port 1/1/2] XFSTK-PROGRESS--5
10/06/20 21:05:26.893  INFO   : [Port 1/1/2] ....XFSTK-LOG--virtual bool MerrifieldDownloader::SetDevice(IGenericDevice*)
10/06/20 21:05:26.893  INFO   : [Port 1/1/2] Initiating download...
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--virtual bool MerrifieldDownloader::UpdateTarget()
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--FWDnxPath -- D:\X\edison-image-decb4c8\toFlash\edison_dnx_fwr.bin
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--FWImagePath -- D:\X\edison-image-decb4c8\toFlash\edison_ifwi-dbg-00.bin
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--OSDnxPath -- D:\X\edison-image-decb4c8\toFlash\edison_dnx_osr.bin
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--OSImagePath -- D:\X\edison-image-decb4c8\toFlash\u-boot-edison.img
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--MiscDnxPath -- D:\X\edison-image-decb4c8\toFlash\edison_dnx_fwr.bin
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--MiscBinPath -- BLANK.bin
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--Gpflags -- 80000007
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--DebugLevel -- ffffffff
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--UsbDelay ms -- 0
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--TransferType -- USB
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--WipeIFWI -- False
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--Idrq -- False
10/06/20 21:05:26.893  DEBUG  : [Port 1/1/2] XFSTK-LOG--Verbose -- True
10/06/20 21:05:26.894  DEBUG  : [Port 1/1/2] XFSTK-LOG--void MerrifieldDownloader::Init()
10/06/20 21:05:26.894  DEBUG  : [Port 1/1/2] XFSTK-LOG--Open
10/06/20 21:05:26.894  DEBUG  : [Port 1/1/2] XFSTK-LOG--USB Device found - USBSN: B282A67AE3557604F2C232FF97E34BCC Address:2
10/06/20 21:05:26.894  DEBUG  : [Port 1/1/2] XFSTK-LOG--void MerrifieldDownloader::do_update(MerrifieldOptions*)
10/06/20 21:05:26.894  DEBUG  : [Port 1/1/2] XFSTK-LOG--Start
10/06/20 21:05:26.894  DEBUG  : [Port 1/1/2] XFSTK-LOG--Sending DnER...
10/06/20 21:05:26.894  DEBUG  : [Port 1/1/2] XFSTK-LOG--WriteOutPipe DnER
10/06/20 21:05:26.894  DEBUG  : [Port 1/1/2] XFSTK-LOG--WriteOutPipe 0
10/06/20 21:05:26.894  DEBUG  : [Port 1/1/2] XFSTK-LOG--Write --->DnER
10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--Windriver Error: 0xC0000011, HC status: The host controller has set the Transaction Error (XactErr) bit in the transfer descriptor's status field
10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--Windriver Error: 0xC0007000, USBD: Device gone
10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--Windriver Error: 0xC0007000, USBD: Device gone
10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--Windriver Error: 0xC0007000, USBD: Device gone
10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--Windriver Error: 0x2000000F, Device not found
10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--Windriver Error: 0x2000000F, Device not found
10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--USB I/O ERROR RETRYING R/W
10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--LogError
10/06/20 21:05:31.541  WARNING: [Port 1/1/2] XFSTK-STATUS--Error Code: 1 - Connection error
10/06/20 21:05:31.541  INFO   : [Port 1/1/2] XFSTK-STATUS--Failed to start Dldr state machine, aborting ...
10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--void MerrifieldDownloader::do_abort()
10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--Abort
10/06/20 21:05:31.541  INFO   : [Port 1/1/2] XFSTK-STATUS--FAIL
10/06/20 21:05:31.541  INFO   : [Port 1/1/2] XFSTK-STATUS--Errors encounter during download. Aborting...
10/06/20 21:05:32.336  DEBUG  : [Port 1/1/2] Device disconnected on 1/1/2
10/06/20 21:05:36.839  DEBUG  : [Port 1/1/2] Device reconnected on 1/1/2
10/06/20 21:05:39.059  DEBUG  : [Port 1/1/2] Device disconnected on 1/1/2
10/06/20 21:05:41.695  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #1
10/06/20 21:05:42.337  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #2
10/06/20 21:05:43.481  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #3
10/06/20 21:05:44.626  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #4
10/06/20 21:05:45.270  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #5
10/06/20 21:05:46.414  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #6
10/06/20 21:05:47.557  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #7
10/06/20 21:05:48.699  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #8
10/06/20 21:05:49.343  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #9
10/06/20 21:05:50.487  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #10
10/06/20 21:05:51.632  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #11
10/06/20 21:05:52.276  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #12
10/06/20 21:05:53.423  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #13
10/06/20 21:05:54.569  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #14
10/06/20 21:05:55.713  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #15
10/06/20 21:05:56.357  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #16
10/06/20 21:05:57.501  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #17
10/06/20 21:05:58.645  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #18
10/06/20 21:05:59.290  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #19
10/06/20 21:06:00.433  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #20
10/06/20 21:06:01.577  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #21
10/06/20 21:06:02.720  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #22
10/06/20 21:06:03.364  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #23
10/06/20 21:06:04.509  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #24
10/06/20 21:06:05.654  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #25
10/06/20 21:06:06.299  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #26
10/06/20 21:06:07.441  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #27
10/06/20 21:06:08.584  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #28
10/06/20 21:06:09.729  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #29
10/06/20 21:06:10.374  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #30
10/06/20 21:06:11.517  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #31
10/06/20 21:06:12.662  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #32
10/06/20 21:06:13.307  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #33
10/06/20 21:06:14.452  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #34
10/06/20 21:06:15.599  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #35
10/06/20 21:06:16.743  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #36
10/06/20 21:06:17.389  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #37
10/06/20 21:06:18.535  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #38
10/06/20 21:06:19.680  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #39
10/06/20 21:06:20.324  INFO   : [Port 1/1/2] XFSTK-STATUS--Reconnecting to device - Attempt #40
10/06/20 21:06:20.324  INFO   : [Port 1/1/2] XFSTK-STATUS--Detecting Intel Device - Timeout
10/06/20 21:06:21.282  INFO   : [Port 1/1/2] XFSTK-STATUS--Timeout to detect the device, make sure to charge up your phone before flashing
10/06/20 21:06:21.282  INFO   : [Port 1/1/2] XFSTK: Download operation encountered errors.
10/06/20 21:06:21.282  INFO   : [Port 1/1/2] XFSTK: Please verify fw/os image integrity and reprovision target.
10/06/20 21:06:21.282  INFO   : [Port 1/1/2] xfstkFlashTool exited with error code 1 Connection error
10/06/20 21:06:21.283  ERROR  : [Port 1/1/2] Command `"C:\Program Files (x86)\Intel\Platform Flash Tool Lite\xfstkFlashTool.exe" "-1" "D:\X\edison-image-decb4c8\toFlash\edison_dnx_fwr.bin" "D:\X\edison-image-decb4c8\toFlash\edison_ifwi-dbg-00.bin" "D:\X\edison-image-decb4c8\toFlash\edison_dnx_osr.bin" "D:\X\edison-image-decb4c8\toFlash\u-boot-edison.img" "0x80000007" "none" "none" "0"` failed
10/06/20 21:06:21.283  ERROR  : [Port 1/1/2] Flash failed (Command type: Ifwi)
10/06/20 21:06:21.288  TRACE  : Sending system tray notification: "Flash failed"
10/06/20 21:06:21.398  INFO   : [Port 1/1/2] Device lost on 1/1/2

Flasher

How are you trying to contact Edison?

With older verison of your software (edison-image-4b7e1298 flashing correctly) I'm connecting second USB cable, windows detect new device as COM port. To comunication using Putty with COM[number] and speed 115200.

htot commented 3 years ago

Hmm. As you can see the part that is failing is xfstk. Flashtool Lite flashes in 2 stages, xfstk then dfu. That would be the same as with the flashall script doing flashall --recovery (uses xfstk) and then flashall (uses dfu).

Now the funny thing is: xfstk communicates with the built-in bootloader, this can not be destroyed. It downloads all kind of binary stuff (ifwi) and then installs a partition table, a partition with u-boot and the environment variables u-boot needs. Normally xfstk is not needed, only if you manually break the environment variables so dfu can't work anymore.

So only flashall would normally be needed.

You are seeing:

10/06/20 21:05:31.541  DEBUG  : [Port 1/1/2] XFSTK-LOG--Windriver Error: 0xC0000011, HC status: The host controller has set the Transaction Error (XactErr) bit in the transfer descriptor's status field

Which means there was a communication error between xfstk tool and edison.

This could mean (and I hate it when people do this to me), your usb cable might be bad (I had this too). Or there may be a problem with windows 10 and the driver (I heard people complaining). So you might want to try:

I see you also flashed with flashall.bat with more success:

Flashing U-Boot Environment Backup
Download        [=========================] 100%        65536 bytes
Download done.
Rebooting to apply partiton changes
Dfu device not found Timeout

This means u-boot environment was flashed, Edison wants to reboot, maybe repartition then continue to flash boot partition then rootfs partition. This problem I also had due to same faulty usb cable, host pc failed to detect usb unplug/plug.

echo Flashing rootfs, ^(it can take up to 5 minutes... Please be patient^) call:flash-command --alt rootfs -D "%BASE_DIR%edison-image-edison.ext4" -R

with call:flash-command is `dfu-util -d 8087:0a99`. If the cable is really bad, you will have a large chance that flashing the rootfs will still fail in the middle. Otherwise it should be able to boot now. BTW -R will cause edison to reboot. If you omit that:
#  
DFU complete CRC32: 0xf340088e  
DOWNLOAD ... OK  
Ctrl+C to exit ...  
boot > reset  
resetting ...  
Quarer commented 3 years ago

At start I have to say, that I replaced low-quality cables. Flashed older firmwares without problems, but...

I have no idea, why device wont boot to U-Boot (after flashing newest os).

Console output on flashing older OS - edison-image-4b7e1298:

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2018.09 (Jan 19 2019 - 14:58:11 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Saving Environment to MMC... Writing to redundant MMC(0)... OK
Saving Environment to MMC... Writing to MMC(0)... OK
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Target:ifwi
Partitioning using GPT
Writing GPT: success!
Saving Environment to MMC... Writing to redundant MMC(0)... OK
Partitioning already done...
Saving Environment to MMC... Writing to MMC(0)... OK
#DOWNLOAD ... OK
Ctrl+C to exit ...
#DOWNLOAD ... OK
Ctrl+C to exit ...
#DOWNLOAD ... OK
Ctrl+C to exit ...
resetting ...

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2018.09 (Jan 19 2019 - 14:58:11 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Saving Environment to MMC... Writing to redundant MMC(0)... OK
Saving Environment to MMC... Writing to MMC(0)... OK
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Target:blank
Partitioning using GPT
Writing GPT: success!
Saving Environment to MMC... Writing to redundant MMC(0)... OK
Flashing already done...
##DOWNLOAD ... OK
Ctrl+C to exit ...
################################################################################################################################DOWNLOAD ... OK
Ctrl+C to exit ...
resetting ...

When flashing is done, system boots-up and its ready to use.

Tried to do same thing with newest OS - edison-image-decb4c8 (on Windows 10), but it wont boot to U-Boot. flshing_newest_os_windows

Log from console COM-port:

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2018.09 (Jan 19 2019 - 14:58:11 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Target:blank
Partitioning already done...
Flashing already done...
#DOWNLOAD ... OK
Ctrl+C to exit ...
#DOWNLOAD ... OK
Ctrl+C to exit ...
#DOWNLOAD ... OK
Ctrl+C to exit ...
#DOWNLOAD ... OK
Ctrl+C to exit ...
#DOWNLOAD ... OK
Ctrl+C to exit ...
resetting ...

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

booting a ubuntu live usb, agt-get install dfu-util then try ./flashall.sh (or dual boot into Ubuntu if you can). I don't have much faith in running Ubuntu in a Virtualbox for this.

I used VmWare to run Ubuntu-18.04.5-desktop-amd64, downloaded dfu-util from: https://ubuntu.pkgs.org/18.04/ubuntu-universe-amd64/dfu-util_0.9-1_amd64.deb.html (apt-getdidn't find that package, even after update od package list), I used permanent mount device to Virtual Machine (device avoid connection to host, connect directly to direct VM). Unfortunately, same problem as before on Windows device didnt flash firmware to the end.

Here is log from Ubuntu terminal:

root@ubuntu:/media/ubuntu/MINI1/edison-image-decb4c8/toFlash# ls
edison_dnx_fwr.bin          edison_ifwi-dbg-04.bin      flashall.sh
edison_dnx_osr.bin          edison_ifwi-dbg-04-dfu.bin  FlashEdison.json
edison_ifwi-dbg-00.bin      edison_ifwi-dbg-05.bin      helper
edison_ifwi-dbg-00-dfu.bin  edison_ifwi-dbg-05-dfu.bin  ota_update.scr
edison_ifwi-dbg-01.bin      edison_ifwi-dbg-06.bin      package-list.txt
edison_ifwi-dbg-01-dfu.bin  edison_ifwi-dbg-06-dfu.bin  u-boot-edison.bin
edison_ifwi-dbg-02.bin      edison-image-edison.ext4    u-boot-edison.img
edison_ifwi-dbg-02-dfu.bin  edison-image-edison.hddimg  u-boot-envs
edison_ifwi-dbg-03.bin      filter-dfu-out.js
edison_ifwi-dbg-03-dfu.bin  flashall.bat
root@ubuntu:/media/ubuntu/MINI1/edison-image-decb4c8/toFlash# ./flashall.sh 
Using U-Boot target: edison-blankcdc
Now waiting for dfu device 8087:0a99
Please plug and reboot the board
Flashing IFWI
Download    [=========================] 100%      4194304 bytes
Download    [=========================] 100%      4194304 bytes
Flashing U-Boot
Download    [=========================] 100%       475136 bytes
Flashing U-Boot Environment
Download    [=========================] 100%        65536 bytes
Flashing U-Boot Environment Backup
Download    [=========================] 100%        65536 bytes
Rebooting to apply partition changes
Now waiting for dfu device 8087:0a99
Timed out while waiting for dfu device 8087:0a99
DEBUG: lsusb
Bus 001 Device 009: ID 8086:e005 Intel Corp. 
Bus 001 Device 003: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
DEBUG: dfu-util -l
dfu-util 0.9

I would say even that my device is broken, but then it shouldn't be working (flashing firmwares) at all.

USB 2.0 cable got only 4 wires inside: +5V, GDN, D-, D+. I used that cables before to flash older firmwares, they worked.

Is there any chance to use older U-Boot and new image with bootand rootfs?

htot commented 3 years ago

So, now the problem is unplug/plug event is not detected after U-Boot is updated. Might be a combination with vmware. You can try to install the boot and rootfs image manually, that will likely work.

BTW I don't see how apt-get couldn't find the dfu-util package. That is not normal.

Quarer commented 3 years ago

I would say, that after update of U-Boot, device cannot entry to U-Bot mode. Whole booting stops on:


******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

You can try to install the boot and rootfs image manually, that will likely work.

I agree, but to install boot and rootfs I have to be in U-Boot mode, is that correct ?

htot commented 3 years ago

I see, I missed that. You start with a functioning U-Boot 2018.09, then flash it with the U-Boot from the Warrior image (2020.01) and then U-Boot doesn't load. Never had that, but I will try to reproduce maybe tomorrow evening.

In the meanwhile you might want to copy the older U-Boot image over to your Warrior image and flash that, I would expect that to work.

Edit: what I don't understand is: from flashing IFWI to flashing U-Boot 1 file is uploaded twice. But according to according to the scripts 7 files should be uploaded twice. Not sure if that is normal, I'll check.

htot commented 3 years ago

OK I see. U-Boot First run sets hardware_id environment variable which is read from System Controller Unit (SCU). And the hardware_id is used to select edison_ifwi-dbg-xx.bin. So, if you have a different hardware_id that could explain why there is a different result. You make make this visible by adding -> into flashall.sh (or similar with flashall.bat):

function flash-dfu-ifwi {
    ifwi_hwid_found=`dfu-util -l -d ${USB_VID}:${USB_PID} | grep -c $1`
    if [ $ifwi_hwid_found -ne 0 ];
    then
->             dfu-util -l -d ${USB_VID}:${USB_PID} | grep $1
        flash-command ${@:2}
    fi
}

I just tried myself and got (hardware_id = 00):

Found DFU: [8087:0a99] ver=0223, devnum=32, cfg=1, intf=0, path="3-8", alt=0, name="ifwi00", serial="cbd210a7487174ddb6fdc06e815d8e87"

But I note another thing:

Flashing U-Boot
Download        [=========================] 100%       479232 bytes

In the above screenshots your have varying results: 475136, 475648. I think still something goes wrong unpacking the gz. So here is my toFlash listing:

ferry@delfion:~/tmp/edison/edison-warrior/toFlash$ ls -l
totaal 1127388
-rw-rw-r-- 1 ferry ferry      98196 feb 14  2020 edison_dnx_fwr.bin
-rw-rw-r-- 1 ferry ferry     148996 feb 14  2020 edison_dnx_osr.bin
-rw-rw-r-- 1 ferry ferry    4194468 feb 14  2020 edison_ifwi-dbg-00.bin
-rw-rw-r-- 1 ferry ferry    4194304 feb 14  2020 edison_ifwi-dbg-00-dfu.bin
-rw-rw-r-- 1 ferry ferry    4194468 feb 14  2020 edison_ifwi-dbg-01.bin
-rw-rw-r-- 1 ferry ferry    4194304 feb 14  2020 edison_ifwi-dbg-01-dfu.bin
-rw-rw-r-- 1 ferry ferry    4194468 feb 14  2020 edison_ifwi-dbg-02.bin
-rw-rw-r-- 1 ferry ferry    4194304 feb 14  2020 edison_ifwi-dbg-02-dfu.bin
-rw-rw-r-- 1 ferry ferry    4194468 feb 14  2020 edison_ifwi-dbg-03.bin
-rw-rw-r-- 1 ferry ferry    4194304 feb 14  2020 edison_ifwi-dbg-03-dfu.bin
-rw-rw-r-- 1 ferry ferry    4194468 feb 14  2020 edison_ifwi-dbg-04.bin
-rw-rw-r-- 1 ferry ferry    4194304 feb 14  2020 edison_ifwi-dbg-04-dfu.bin
-rw-rw-r-- 1 ferry ferry    4194468 feb 14  2020 edison_ifwi-dbg-05.bin
-rw-rw-r-- 1 ferry ferry    4194304 feb 14  2020 edison_ifwi-dbg-05-dfu.bin
-rw-rw-r-- 1 ferry ferry    4194468 feb 14  2020 edison_ifwi-dbg-06.bin
-rw-rw-r-- 1 ferry ferry    4194304 feb 14  2020 edison_ifwi-dbg-06-dfu.bin
-rw-r--r-- 1 ferry ferry 1073741824 feb 14  2020 edison-image-edison.ext4
-rw-r--r-- 1 ferry ferry   14758912 feb 14  2020 edison-image-edison.hddimg
-rw-rw-r-- 1 ferry ferry        742 feb 14  2020 filter-dfu-out.js
-rw-rw-r-- 1 ferry ferry       7225 feb 14  2020 flashall.bat
-rwxrwxr-x 1 ferry ferry       5935 okt  8 22:52 flashall.sh
-rw-rw-r-- 1 ferry ferry       5939 feb 14  2020 FlashEdison.json
-rw-rw-r-- 1 ferry ferry      84517 okt  8 22:57 flash.log
drwxrwxr-x 1 ferry ferry         34 feb 14  2020 helper
-rw-rw-r-- 1 ferry ferry      22264 feb 14  2020 ota_update.scr
-rw-rw-r-- 1 ferry ferry      24839 feb 14  2020 package-list.txt
-rw-r--r-- 1 ferry ferry     479232 feb 14  2020 u-boot-edison.bin
-rwxr-xr-x 1 ferry ferry    6291968 feb 14  2020 u-boot-edison.img
drwxr-xr-x 1 ferry ferry        140 feb 14  2020 u-boot-envs

Please check the file sizes (and note that you also have different dates).

Quarer commented 3 years ago

In the meanwhile you might want to copy the older U-Boot image over to your Warrior image and flash that, I would expect that to work.

So I tried to boot os with old U-Boot. Like You said, I tried to flash warrior. flashing_v1

Log from CMD:

D:\X>"C:\Program Files (x86)\Intel\Platform Flash Tool Lite\dfu-util.exe" "--alt" "boot" "-D" "D:\X\edison-image-decb4c8\toFlash\edison-image-edison.hddimg" "-t" "4096" "-d" "8087:0a99" "--path" "2-1.2"
dfu-util 0.8.4-msvc

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 8087:0a99
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #6 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Copying data from PC to DFU device
Download        [=========================] 100%     14205440 bytes
Download done.
state(7) = dfuMANIFEST, status(0) = No error condition is present
state(2) = dfuIDLE, status(0) = No error condition is present
Done!

D:\X>"C:\Program Files (x86)\Intel\Platform Flash Tool Lite\dfu-util.exe" "--alt" "rootfs" "-D" "D:\X\edison-image-decb4c8\toFlash\edison-image-edison.ext4" "-t" "4096" "-R" "-d" "8087:0a99" "--path" "2-1.2"
dfu-util 0.8.4-msvc

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 8087:0a99
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #7 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Copying data from PC to DFU device
Download        [=========================] 100%    579686912 bytes
Download done.
state(7) = dfuMANIFEST, status(0) = No error condition is present
state(2) = dfuIDLE, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode

D:\X>

Log from Edison via Putty:


******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2018.09 (Jan 19 2019 - 14:58:11 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
>
=>
  askenv base bdinfo blkcache boot bootd bootefi bootelf bootm bootp bootvx
  cmp coninfo cp cpu crc32 date dfu ...
=> run do_force_flash_os
Saving Environment to MMC... Writing to MMC(0)... OK
##DOWNLOAD ... OK
Ctrl+C to exit ...
######################################################################DOWNLOAD ... OK
Ctrl+C to exit ...
resetting ...

After flashing device stucked on this bootloop:

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2018.09 (Jan 19 2019 - 14:58:11 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Target:blank
Partitioning already done...
Flashing already done...
** Unrecognized filesystem type **
Error: Invalid Boot Flag (found 0xffef, expected 0xaa55)
## Kernel loading failed ...
zboot - Boot bzImage

Usage:
zboot [addr] [size] [initrd addr] [initrd size]
      addr -        The optional starting address of the bzimage.
                    If not set it defaults to the environment
                    variable "fileaddr".
      size -        The optional size of the bzimage. Defaults to
                    zero.
      initrd addr - The address of the initrd image to use, if any.
      initrd size - The size of the initrd image to use, if any.

Unknown boot mode: boot
Saving Environment to MMC... Writing to MMC(0)... OK
Resetting to default boot mode and reboot...
resetting ...

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2018.09 (Jan 19 2019 - 14:58:11 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Target:blank
Partitioning already done...
Flashing already done...
** Unrecognized filesystem type **
Error: Invalid Boot Flag (found 0xffef, expected 0xaa55)
## Kernel loading failed ...
zboot - Boot bzImage

Usage:
zboot [addr] [size] [initrd addr] [initrd size]
      addr -        The optional starting address of the bzimage.
                    If not set it defaults to the environment
                    variable "fileaddr".
      size -        The optional size of the bzimage. Defaults to
                    zero.
      initrd addr - The address of the initrd image to use, if any.
      initrd size - The size of the initrd image to use, if any.

Unknown boot mode: boot
Saving Environment to MMC... Writing to redundant MMC(0)... OK
Resetting to default boot mode and reboot...
resetting ...

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2018.09 (Jan 19 2019 - 14:58:11 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Target:blank
Partitioning already done...
Flashing already done...
** Unrecognized filesystem type **
Error: Invalid Boot Flag (found 0xffef, expected 0xaa55)
## Kernel loading failed ...
zboot - Boot bzImage

Usage:
zboot [addr] [size] [initrd addr] [initrd size]
      addr -        The optional starting address of the bzimage.
                    If not set it defaults to the environment
                    variable "fileaddr".
      size -        The optional size of the bzimage. Defaults to
                    zero.
      initrd addr - The address of the initrd image to use, if any.
      initrd size - The size of the initrd image to use, if any.

Unknown boot mode: boot
Saving Environment to MMC... Writing to MMC(0)... OK
Resetting to default boot mode and reboot...
resetting ...

May because I used command run do_force_flash_os twice - to flash boot and rootfs?

You make make this visible by adding -> into flashall.sh (or similar with flashall.bat):

function flash-dfu-ifwi {
  ifwi_hwid_found=`dfu-util -l -d ${USB_VID}:${USB_PID} | grep -c $1`
  if [ $ifwi_hwid_found -ne 0 ];
  then
->             dfu-util -l -d ${USB_VID}:${USB_PID} | grep $1
      flash-command ${@:2}
  fi

Above script tried to launch under ubuntu 18.04, but without success, pasted in flashall.sh, but nothing showed up. Raw command dfu-util -l output:

root@ubuntu:/media/ubuntu/MINI1# dfu-util -l
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=11, name="initrd", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=10, name="bzImage-initramfs-edison.bin", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=9, name="home", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=8, name="update", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=7, name="rootfs", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=6, name="boot", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=5, name="u-boot-env1", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=4, name="u-boot1", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=3, name="u-boot-env0", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=2, name="u-boot0", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=1, name="ifwib00", serial="8ea00ea445b1991e8a44eb41b2d852aa"
Found DFU: [8087:0a99] ver=0223, devnum=13, cfg=1, intf=0, path="1-3", alt=0, name="ifwi00", serial="8ea00ea445b1991e8a44eb41b2d852aa"
root@ubuntu:/media/ubuntu/MINI1# 

Please check the file sizes (and note that you also have different dates).

Yes, you are right I have half of Your sizes of files. Weirdest thing ever seen. Files with sizes unpacked in Windows 10 x64:

root@ubuntu:/media/ubuntu/AAC0-AC91/SIZE_CHECK_WIN_ARCHIVE_UNPACK/edison-image-decb4c8/toFlash# ls -la
total 622692
drwxr-xr-x 4 ubuntu ubuntu      4096 Oct 10  2020 .
drwxr-xr-x 3 ubuntu ubuntu      4096 Oct 10  2020 ..
-rw-r--r-- 1 ubuntu ubuntu     98196 Feb 14  2020 edison_dnx_fwr.bin
-rw-r--r-- 1 ubuntu ubuntu    148996 Feb 14  2020 edison_dnx_osr.bin
-rw-r--r-- 1 ubuntu ubuntu   1032868 Feb 14  2020 edison_ifwi-dbg-00.bin
-rw-r--r-- 1 ubuntu ubuntu   4194304 Feb 14  2020 edison_ifwi-dbg-00-dfu.bin
-rw-r--r-- 1 ubuntu ubuntu   1032868 Feb 14  2020 edison_ifwi-dbg-01.bin
-rw-r--r-- 1 ubuntu ubuntu   4194304 Feb 14  2020 edison_ifwi-dbg-01-dfu.bin
-rw-r--r-- 1 ubuntu ubuntu   1032868 Feb 14  2020 edison_ifwi-dbg-02.bin
-rw-r--r-- 1 ubuntu ubuntu   4194304 Feb 14  2020 edison_ifwi-dbg-02-dfu.bin
-rw-r--r-- 1 ubuntu ubuntu   1032868 Feb 14  2020 edison_ifwi-dbg-03.bin
-rw-r--r-- 1 ubuntu ubuntu   4194304 Feb 14  2020 edison_ifwi-dbg-03-dfu.bin
-rw-r--r-- 1 ubuntu ubuntu   1032868 Feb 14  2020 edison_ifwi-dbg-04.bin
-rw-r--r-- 1 ubuntu ubuntu   4194304 Feb 14  2020 edison_ifwi-dbg-04-dfu.bin
-rw-r--r-- 1 ubuntu ubuntu   1032868 Feb 14  2020 edison_ifwi-dbg-05.bin
-rw-r--r-- 1 ubuntu ubuntu   4194304 Feb 14  2020 edison_ifwi-dbg-05-dfu.bin
-rw-r--r-- 1 ubuntu ubuntu   1032868 Feb 14  2020 edison_ifwi-dbg-06.bin
-rw-r--r-- 1 ubuntu ubuntu   4194304 Feb 14  2020 edison_ifwi-dbg-06-dfu.bin
-rw-r--r-- 1 ubuntu ubuntu 579686912 Feb 14  2020 edison-image-edison.ext4
-rw-r--r-- 1 ubuntu ubuntu  14205440 Feb 14  2020 edison-image-edison.hddimg
-rw-r--r-- 1 ubuntu ubuntu       742 Feb 14  2020 filter-dfu-out.js
-rwxr-xr-x 1 ubuntu ubuntu      7225 Feb 14  2020 flashall.bat
-rw-r--r-- 1 ubuntu ubuntu      5872 Feb 14  2020 flashall.sh
-rw-r--r-- 1 ubuntu ubuntu      5939 Feb 14  2020 FlashEdison.json
drwxr-xr-x 3 ubuntu ubuntu      4096 Oct 10  2020 helper
-rw-r--r-- 1 ubuntu ubuntu     22264 Feb 14  2020 ota_update.scr
-rw-r--r-- 1 ubuntu ubuntu     24839 Feb 14  2020 package-list.txt
-rw-r--r-- 1 ubuntu ubuntu    475648 Feb 14  2020 u-boot-edison.bin
-rw-r--r-- 1 ubuntu ubuntu   6291968 Feb 14  2020 u-boot-edison.img
drwxr-xr-x 2 ubuntu ubuntu      4096 Oct 10  2020 u-boot-envs
root@ubuntu:/media/ubuntu/AAC0-AC91/SIZE_CHECK_WIN_ARCHIVE_UNPACK/edison-image-decb4c8/toFlash# 

Files with sizes unpacked in Ubuntu 18.04:

root@ubuntu:/media/ubuntu/MINI1/ubuntu_unpack_archive# ls -las
total 193472
     4 drwxr-xr-x  2 root root      4096 Oct  9 23:45 .
     4 drwxr-xr-x 24 root root      4096 Oct  9 23:44 ..
193464 -rw-r--r--  1 root root 197905790 Oct  9 23:47 edison-image-decb4c8.tar.gz
root@ubuntu:/media/ubuntu/MINI1/ubuntu_unpack_archive# tar -zxf edison-image-decb4c8.tar.gz 
root@ubuntu:/media/ubuntu/MINI1/ubuntu_unpack_archive# ls -la toFlash/
total 623348
drwxrwxr-x 4 1001 1001       4096 Feb 14  2020 .
drwxr-xr-x 3 root root       4096 Oct  9 23:49 ..
-rw-rw-r-- 1 1001 1001      98196 Feb 14  2020 edison_dnx_fwr.bin
-rw-rw-r-- 1 1001 1001     148996 Feb 14  2020 edison_dnx_osr.bin
-rw-rw-r-- 1 1001 1001    4194468 Feb 14  2020 edison_ifwi-dbg-00.bin
-rw-rw-r-- 1 1001 1001    4194304 Feb 14  2020 edison_ifwi-dbg-00-dfu.bin
-rw-rw-r-- 1 1001 1001    4194468 Feb 14  2020 edison_ifwi-dbg-01.bin
-rw-rw-r-- 1 1001 1001    4194304 Feb 14  2020 edison_ifwi-dbg-01-dfu.bin
-rw-rw-r-- 1 1001 1001    4194468 Feb 14  2020 edison_ifwi-dbg-02.bin
-rw-rw-r-- 1 1001 1001    4194304 Feb 14  2020 edison_ifwi-dbg-02-dfu.bin
-rw-rw-r-- 1 1001 1001    4194468 Feb 14  2020 edison_ifwi-dbg-03.bin
-rw-rw-r-- 1 1001 1001    4194304 Feb 14  2020 edison_ifwi-dbg-03-dfu.bin
-rw-rw-r-- 1 1001 1001    4194468 Feb 14  2020 edison_ifwi-dbg-04.bin
-rw-rw-r-- 1 1001 1001    4194304 Feb 14  2020 edison_ifwi-dbg-04-dfu.bin
-rw-rw-r-- 1 1001 1001    4194468 Feb 14  2020 edison_ifwi-dbg-05.bin
-rw-rw-r-- 1 1001 1001    4194304 Feb 14  2020 edison_ifwi-dbg-05-dfu.bin
-rw-rw-r-- 1 1001 1001    4194468 Feb 14  2020 edison_ifwi-dbg-06.bin
-rw-rw-r-- 1 1001 1001    4194304 Feb 14  2020 edison_ifwi-dbg-06-dfu.bin
-rw-r--r-- 1 1001 1001 1073741824 Feb 14  2020 edison-image-edison.ext4
-rw-r--r-- 1 1001 1001   14758912 Feb 14  2020 edison-image-edison.hddimg
-rw-rw-r-- 1 1001 1001        742 Feb 14  2020 filter-dfu-out.js
-rw-rw-r-- 1 1001 1001       7225 Feb 14  2020 flashall.bat
-rwxrwxr-x 1 1001 1001       5872 Feb 14  2020 flashall.sh
-rw-rw-r-- 1 1001 1001       5939 Feb 14  2020 FlashEdison.json
drwxrwxr-x 3 1001 1001       4096 Feb 14  2020 helper
-rw-rw-r-- 1 1001 1001      22264 Feb 14  2020 ota_update.scr
-rw-rw-r-- 1 1001 1001      24839 Feb 14  2020 package-list.txt
-rw-r--r-- 1 1001 1001     479232 Feb 14  2020 u-boot-edison.bin
-rwxr-xr-x 1 1001 1001    6291968 Feb 14  2020 u-boot-edison.img
drwxr-xr-x 2 1001 1001       4096 Feb 14  2020 u-boot-envs
root@ubuntu:/media/ubuntu/MINI1/ubuntu_unpack_archive# 

- Last chapter: Sick, but worked -

After unpacking archive in Linux, I copied files to Windows, used Intel Platform Flash Tool. Flashed edison with newest firmware 1st time, without errors.

Boot log:

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2020.01 (Feb 14 2020 - 20:16:38 +0000)

CPU:   Genuine Intel(R) CPU   4000  @  500MHz
DRAM:  980.6 MiB
WDT:   Started with servicing (60s timeout)
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Saving Environment to MMC... Writing to redundant MMC(0)... OK
Saving Environment to MMC... Writing to MMC(0)... OK
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Target:blank
Partitioning using GPT
Writing GPT: success!
Saving Environment to MMC... Writing to redundant MMC(0)... OK
Flashing already done...
##DOWNLOAD ... OK
Ctrl+C to exit ...
################################################################################################################################DOWNLOAD ... OK
Ctrl+C to exit ...
resetting ...

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2020.01 (Feb 14 2020 - 20:16:38 +0000)

CPU:   Genuine Intel(R) CPU   4000  @  500MHz
DRAM:  980.6 MiB
WDT:   Started with servicing (60s timeout)
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Target:blank
Partitioning already done...
Flashing already done...
13722496 bytes read in 591 ms (22.1 MiB/s)
Valid Boot Flag
Setup Size = 0x00004000
Magic signature found
Using boot protocol version 2.0d
Linux kernel version 5.4.0-edison-acpi-standard (oe-user@oe-host) #1 SMP Fri Feb 14 19:59:54 UTC 2020
Building boot_params at 0x00090000
Loading bzImage at address 100000 (13706112 bytes)
Magic signature found
Kernel command line: "root=/dev/mmcblk0p8 rootfstype=ext4 console=ttyS2,115200n8 earlyprintk=ttyS2,115200n8,keep loglevel=4 g_multi.ethernet_config=rndis systemd.unit=multi-user.target hardware_id=00 g_multi.iSerialNumber=8ea00ea445b1991e8a44eb41b2d852aa g_multi.dev_addr=02:00:86:d8:52:aa platform_mrfld_audio.audio_codec=dummy"
Magic signature found

Starting kernel ...

Starting version 241-214-gd1cc09a+
Kernel with acpi enabled detected
Loading acpi tables
[    3.317601] pca953x i2c-INT3491:00: failed writing register
[    3.336261] pca953x i2c-INT3491:01: failed writing register
[    3.351489] pca953x i2c-INT3491:02: failed writing register
[    3.370930] pca953x i2c-INT3491:03: failed writing register
gpioset: at least one GPIO line offset to value mapping must be specified
gpioset: at least one GPIO line offset to value mapping must be specified
Waiting for root device /dev/mmcblk0p8
Found device '/run/media/mmcblk0p8'

Welcome to Poky (Yocto Project Reference Distro) 2.7.2 (warrior)!

[  OK  ] Listening on udev Control Socket.
[  OK  ] Set up automount boot.automount.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Set up automount home.automount.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket.
         Mounting POSIX Message Queue File System...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
         Mounting Huge Pages File System...
[  OK  ] Created slice system-getty.slice.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Reached target Swap.
         Mounting Temporary Directory (/tmp)...
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[  OK  ] Listening on udev Kernel Socket.
         Starting udev Coldplug all Devices...
[  OK  ] Reached target Remote File Systems.
[  OK  ] Set up automount factory.automount.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Reached target Paths.
         Mounting Kernel Debug File System...
[  OK  ] Listening on Journal Audit Socket.
         Starting Journal Service...
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
         Starting Load Kernel Modules...
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Listening on Network Service Netlink Socket.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Started Load Kernel Modules.
         Starting Apply Kernel Variables...
         Mounting Kernel Configuration File System...
         Starting Rebuild Hardware Database...
         Starting Create System Users...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
[  OK  ] Reached target Containers.
[  OK  ] Mounted /var/volatile.
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
         Starting Rebuild Dynamic Linker Cache...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Rebuild Journal Catalog...
         Starting Run pending postinsts...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Rebuild Journal Catalog.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Rebuild Dynamic Linker Cache.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Run pending postinsts.
[*     ] (1 of 4) A start job is running for…/by-partlabel/home (8s [**    ] (1 of 4) A start job is running for…/by-partlabel/home (8s [***   ] (1 of 4) A start job is running for…/by-partlabel/home (9s [ ***  ] (2 of 4) A start job is running for…-partlabel/update (10s [  *** ] (2 of 4) A start job is running for…-partlabel/update (10s [   ***] (2 of 4) A start job is running for…-partlabel/update (11s [  OK  ] Started Rebuild Hardware Database.
         Starting Update is Completed...
         Starting udev Kernel Device Manager...
[  OK  ] Started Update is Completed.
[  OK  ] Started udev Kernel Device Manager.
         Starting Network Service...
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
         Starting sshd.socket.
[  OK  ] Listening on sshd.socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started System Logging Service.
         Starting Login Service...
[  OK  ] Started Watchdog sample daemon.
[  OK  ] Started Battery Voltage daemon.
[  OK  ] Started Crashlog service.
[  OK  ] Started Daemon to load edison mcu app binary.
[  OK  ] Started Cleanjournal service.
         Starting Generate unique machine-id...
[  OK  ] Started Kernel Logging Service.
[  OK  ] Started Edison Arduino board LED Blinker.
[   18.926153] umount[483]: umount: /etc/machine-id: not mounted.
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Telephony service...
[  OK  ] Started Daemon to handle arduino sketches.
[  OK  ] Started D-Bus System Message Bus.
         Starting Connection service...
[  OK  ] Started Daemon to reset sketches.
[  OK  ] Started Network Service.
[FAILED] Failed to start Generate unique machine-id.
See 'systemctl status edison-machine-id.service' for details.
[   19.885141] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43340-sdio for chip BCM43340/2
[   20.337949] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43340-sdio for chip BCM43340/2
[   20.391345] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   20.477059] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43340/2 wl0: Oct 23 2017 08:41:23 version 6.10.190.70 (r674464) FWID 01-98d71006
[  OK  ] Found device /dev/disk/by-partlabel/home.
[  OK  ] Found device Merrifield Serial IO HSUART Controller.
[  OK  ] Found device /dev/disk/by-partlabel/update.
         Starting Hostname Service...
         Starting WPA supplicant...
         Starting Bluetooth service...
[  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
[  OK  ] Created slice system-systemd\x2dfsck.slice.
         Starting File System Check…/dev/disk/by-partlabel/home...
         Starting File System Check…v/disk/by-partlabel/factory...
         Starting Post install service...
[  OK  ] Stopped Battery Voltage daemon.
[  OK  ] Started Battery Voltage daemon.
         Starting Wait for Network to be Configured...
[  OK  ] Started File System Check on /dev/disk/by-partlabel/home.
[  OK  ] Started File System Check …dev/disk/by-partlabel/factory.
[  OK  ] Started Wait for Network to be Configured.
[  OK  ] Started WPA supplicant.
[  OK  ] Stopped Battery Voltage daemon.
[  OK  ] Started Battery Voltage daemon.
         Starting Load/Save RF Kill Switch Status...
         Mounting /factory...
         Mounting /home...
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Mounted /factory.
[  OK  ] Mounted /home.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Login Service.
[  OK  ] Started Telephony service.
[  OK  ] Started Connection service.
[  OK  ] Stopped Battery Voltage daemon.
[  OK  ] Started Battery Voltage daemon.
[  OK  ] Started Start or stop WiFI AP Mode in Edison.
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
[  OK  ] Reached target Network is Online.
         Starting Mosquitto MQTT v3.1/v3.1.1 Broker...
[  OK  ] Started Daily apt download activities.
[  OK  ] Reached target Timers.
[  OK  ] Started Edison PWR button handler.
[  OK  ] Started Mosquitto MQTT v3.1/v3.1.1 Broker.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Bluetooth service.
[  OK  ] Started Set the bluetooth hardware address.
[  OK  ] Reached target Bluetooth.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS2.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Hostname Service.
         Starting OpenSSH Key Generation...
[  OK  ] Stopped Battery Voltage daemon.
[  OK  ] Started Battery Voltage daemon.
[  OK  ] Started Update UTMP about System Runlevel Changes.
[  OK  ] Stopped Battery Voltage daemon.
[FAILED] Failed to start Battery Voltage daemon.
See 'systemctl status battery-voltage.service' for details.
[  OK  ] Stopped Edison Arduino board LED Blinker.
[  OK  ] Started Edison Arduino board LED Blinker.
[  OK  ] Started OpenSSH Key Generation.
[   29.229911] sh[579]: 0
[  OK  ] Stopped Edison Arduino board LED Blinker.
[  OK  ] Started Edison Arduino board LED Blinker.
[   29.426521] sh[579]: Enabled wifi
[   29.607545] sh[579]: Wifi SSID set
[   29.612683] sh[579]: Wifi passphrase set
[   29.619815] sh[579]: Enabled tethering for wifi
[   29.849577] sh[579]: 0
[   29.853845] sh[579]: Post install success
[  OK  ] Stopped Edison Arduino board LED Blinker.
[   30.011308] systemctl[684]: Removed /etc/systemd/system/basic.target.wants/post-install.service.

Poky (Yocto Project Reference Distro) 2.7.2 edison ttyS2

edison login: 

Thank You Sir, a lot. Really great job!

One more thing, I have tried to setup Wi-Fi on Edison. Command configure_edison --setup and it found nothing, output:

Configure Edison: WiFi Connection

Failed to stop hostapd.service: Unit hostapd.service not loaded.
Failed to connect to non-global ctrl_ifname: (nil)  error: No such file or directory
Failed to connect to non-global ctrl_ifname: (nil)  error: No such file or directory

0 :     Rescan for networks
1 :     Exit WiFi Setup
2 :     Manually input a hidden SSID

Enter 0 to rescan for networks.
Enter 1 to exit.
Enter 2 to input a hidden network SSID:

Can you give me some advice how to setup Wi-Fi 2,4Ghz connection? On edison-fw/meta-intel-edison/wiki under section Get Wifi to work there is no article.

htot commented 3 years ago

Leason learned for me

I won't be using gz as archive any more. I never new there are compatibility issues between linux and windows. @andy-shev is recommending xz, I'll investigate that.

oobe

configure_edison is part of oobe, for which @mwallnoefer has a PR here. Unfortunately I haven't been able to work on that much, but will soon.

The PR should be improving on the CLI, while breaking the web interface a bit that I was working on. After we give it a little more love both will be working.

Our help pages are here: https://edison-fw.github.io/meta-intel-edison/ Wifi setup (using connman): https://edison-fw.github.io/meta-intel-edison/4.2-networking.html#wifi

Actually connman is working these days very well, much better then when edison was started. It does at least: ethernet over usb (only eem, I did not implement rndis as windows hosts need) , wifi and bluetooth as well as tethering (no hostapd needed).

On first boot the wifi will be working as AP. If you want connman to stop that:

technologies
tether wifi off
htot commented 3 years ago

BTW I just unpacked tar.gzip on 32bit Win7 using 7-zip 19.00 (x86) and I see no problems (no GNUsparesefile.0, file sizes correct). I've tried with:

-rw-rw-r-- 1 ferry ferry 138006963 okt 10 13:53 toFlash.7z
-rw-rw-r-- 1 ferry ferry 198437406 okt 10 13:49 toFlash.tar.gz
-rw-rw-r-- 1 ferry ferry 137629692 okt 10 13:57 toFlash.tar.xz
-rw-rw-r-- 1 ferry ferry 198129452 okt 10 13:50 toFlash.zip

None had problems, but I think 7z is the most convenient on both platforms, because it skips the tar step (and knowing that zip looses file time precision).

Quarer commented 3 years ago

Our help pages are here: https://edison-fw.github.io/meta-intel-edison/ Wifi setup (using connman): https://edison-fw.github.io/meta-intel-edison/4.2-networking.html#wifi

Thanks 😄, works:

root@Edison:/# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:902 errors:0 dropped:0 overruns:0 frame:0
          TX packets:902 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:60446 (59.0 KiB)  TX bytes:60446 (59.0 KiB)

wlan0     Link encap:Ethernet  HWaddr fc:c2:de:41:70:a3
          inet addr:10.9.0.200  Bcast:10.9.255.255  Mask:255.255.0.0
          inet6 addr: fe80::fec2:deff:fe41:70a3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1
          RX packets:4616 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3966 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:366604 (358.0 KiB)  TX bytes:417107 (407.3 KiB)

root@Edison:/# ping google.com
PING google.com (172.217.18.110): 56 data bytes
64 bytes from 172.217.18.110: seq=0 ttl=118 time=59.909 ms
64 bytes from 172.217.18.110: seq=1 ttl=118 time=65.190 ms
64 bytes from 172.217.18.110: seq=2 ttl=118 time=56.589 ms
64 bytes from 172.217.18.110: seq=3 ttl=118 time=56.230 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 56.230/59.479/65.190 ms
root@Edison:/#

BTW I just unpacked tar.gzip on 32bit Win7 using 7-zip 19.00 (x86) and I see no problems (no GNUsparesefile.0, file sizes correct).

Hard to believe, here you have test of archive-edison-image-decb4c8.tar.gz on:

Also I have one more question, where can I find packages for Edison? Directory /etc/apt/sources.list.d seems to be empty.

root@Edison:/etc/apt/sources.list.d# ls
root@Edison:/etc/apt/sources.list.d#

Using:

root@Edison:/etc/apt/sources.list.d# cat /etc/*release
ID="poky-edison"
NAME="Poky (Yocto Project Reference Distro)"
VERSION="2.7.2 (warrior)"
VERSION_ID="2.7.2"
PRETTY_NAME="Poky (Yocto Project Reference Distro) 2.7.2 (warrior)"
EDISON-3.0
Copyright Intel 2015

On other linux-based devices I can entry source-list of packages. Example 1:

root@OZ1:~# cat /etc/opkg/distfeeds.conf
src/gz openwrt_core http://downloads.openwrt.org/releases/18.06.8/targets/ar71xx/tiny/packages
src/gz openwrt_kmods http://downloads.openwrt.org/releases/18.06.8/targets/ar71xx/tiny/kmods/4.9.214-1-db2d5425c674d1648616e3c37760e80e
src/gz openwrt_base http://downloads.openwrt.org/releases/18.06.8/packages/mips_24kc/base
src/gz openwrt_luci http://downloads.openwrt.org/releases/18.06.8/packages/mips_24kc/luci
src/gz openwrt_packages http://downloads.openwrt.org/releases/18.06.8/packages/mips_24kc/packages
src/gz openwrt_routing http://downloads.openwrt.org/releases/18.06.8/packages/mips_24kc/routing
src/gz openwrt_telephony http://downloads.openwrt.org/releases/18.06.8/packages/mips_24kc/telephony
root@OZ1:~#

Example 2:

root@monkey ~ # cat /etc/apt/sources.list
#------------------------------------------------------------------------------#
#                   OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#

###### Debian Main Repos
deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free

deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free

deb http://deb.debian.org/debian-security stable/updates main
deb-src http://deb.debian.org/debian-security stable/updates main

deb http://ftp.debian.org/debian buster-backports main
deb-src http://ftp.debian.org/debian buster-backports main

#------------------------------------------------------------------------------#
#                      UNOFFICIAL  REPOS
#------------------------------------------------------------------------------#

###### 3rd Party Binary Repos
###Debian Multimedia
deb [arch=amd64,i386] https://www.deb-multimedia.org buster main non-free

###video-dl
#deb http://repo.daniil.it lenny main

root@monkey ~ #
htot commented 3 years ago

OK I replayed my steps and here is what happened: I downloaded the file, ungzipped it with no problem, deleted the original. Then later gezipped, xz, zip and 7z it. The re-gzipped one unpacks without errors on windows. So apparently it was gzipped with a buggy gzip (from Ubuntu 19.10) and re-gzipped good (20.04). I've 7z the files now and uploaded, I hope they are fixed now.

Yeah, I know how other distros work, I have Kubuntu on all my machines. In fact I have Win10 only in a virtual box.

There are distributions that distribute binaries, others distribute source packages. But Yocto is in fact a distribution builder. It downloads sources, compiles them, packs into debs (or rpm or ipk) and creates your own repository. The work is done using a "recipe" that is executed through a tool called bitbake. There are many recipes, see https://layers.openembedded.org/layerindex/branch/zeus/recipes/.

If a recipe exists in a layer, the layer needs to be added to setup.sh (if not already) and then let bitbake build it (bitbake vim or so), then let bitbake build the repo. See https://edison-fw.github.io/meta-intel-edison/5.0-Creating-a-deb-repository.html

TLDR: To install a package, you need to create the deb first. Building the complete image as you downloaded takes about 3 hours on my machine (Core i7 / 100kiops SSD / btrfs).

If you are looking for an image that "just boots" and installs binary deb from debian repo's, that is what the debian image (Buster) does.

Quarer commented 3 years ago

Okey, got it. Thanks for everything. toast