恢复系统软件

恢复是使用特殊的恢复启动加载程序(而不是云更新)替换设备上的系统软件的过程。 恢复过程会擦除闪存的内容、替换系统软件并重新启动设备。 因此,应用程序软件和配置数据(包括 Wi-Fi 凭据)将从设备中擦除。 恢复后,必须恢复凭据 ((如果有任何) ),并将设备重新连接到 Internet。

重要

仅当 Microsoft 指示这样做时才执行恢复过程。 仅当云更新不可用时,才需要恢复。

恢复系统软件:

  1. 确保设备通过 USB 连接到计算机。

  2. 运行 az sphere device recover 命令:

    az sphere device recover
    

    应会看到如下所示的输出,尽管图像数量可能有所不同。

     Downloading recovery images...
     Download complete.
     Starting device recovery. Please note that this may take up to 10 minutes.
     Board found. Sending recovery bootloader.
     Erasing flash.
     Sending 16 images. (5558148 bytes to send)
     Sent 1 of 16 images. (5527016 of 5558148 bytes remaining)
     Sent 2 of 16 images. (5411124 of 5558148 bytes remaining)
     Sent 3 of 16 images. (5410732 of 5558148 bytes remaining)
     Sent 4 of 16 images. (5123332 of 5558148 bytes remaining)
     Sent 5 of 16 images. (5106976 of 5558148 bytes remaining)
     Sent 6 of 16 images. (5074876 of 5558148 bytes remaining)
     Sent 7 of 16 images. (2508048 of 5558148 bytes remaining)
     Sent 8 of 16 images. (820260 of 5558148 bytes remaining)
     Sent 9 of 16 images. (795684 of 5558148 bytes remaining)
     Sent 10 of 16 images. (680784 of 5558148 bytes remaining)
     Sent 11 of 16 images. (152180 of 5558148 bytes remaining)
     Sent 12 of 16 images. (78240 of 5558148 bytes remaining)
     Sent 13 of 16 images. (41164 of 5558148 bytes remaining)
     Sent 14 of 16 images. (32768 of 5558148 bytes remaining)
     Sent 15 of 16 images. (16384 of 5558148 bytes remaining)
     Sent 16 of 16 images. (0 of 5558148 bytes remaining)
     Finished writing images; rebooting board.
     Using selected capability file 'fieldservicing-218bef7c.cap'.
     Device ID: 6a06x8x8cxdxa8ed4223a267656cxd59x99a0ced693a2446884a236d925aaaex9axdd0550438595658addc66723x32decx5494x7a20d067c6c8x77a6020c9a46
     Device recovered successfully.
    
  3. 若要继续使用设备进行开发,请运行 az sphere device enable-development 以重新启用应用程序旁加载和调试。

  4. 若要将设备重新连接到 Wi-Fi, 请替换设备上的 Wi-Fi 凭据