Windows IoT error on driver install: Could not sta

2019-08-19 01:35发布

问题:

I created .cab package using a manual: https://docs.microsoft.com/en-us/windows/iot-core/learn-about-hardware/peripheraldrivers

I copied the file, staged the update, but get error on commit:

[192.168.1.17]: PS C:\Data\USERS\DefaultAccount\Documents> applyupdate -stage .\Contoso.Drivers.oem6.cab
Microsoft (C) C:\windows\system32\ApplyUpdate.exe
INFO: Start staging .\Contoso.Drivers.oem6.cab
INFO: UpdateStateIdle
INFO: Check status...
INFO: No past issues to report
INFO: ProgressStateNone: 0
INFO: Shared data folder found: C:\Data\ProgramData\USOShared\Data
INFO: Copying file: .\Contoso.Drivers.oem6.cab
INFO: Staging succeeded
SUCCESS: Staging succeeded
[192.168.1.17]: PS C:\Data\USERS\DefaultAccount\Documents> applyupdate -commit
Microsoft (C) C:\windows\system32\ApplyUpdate.exe
INFO: Start commit
INFO: UpdateStateIdle
INFO: Check status...
INFO: No past issues to report
INFO: Starting component installation...
applyupdate : ERROR: Could not start update, (0x8024A10F)
    + CategoryInfo          : NotSpecified: (ERROR: Could no...e, (0x8024A10F):String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

ERROR: Windows Update is already in progress. Please try again after it has finished.
INFO: ProgressStateNone: 0
ERROR: Commit Failed
[192.168.1.17]: PS C:\Data\USERS\DefaultAccount\Documents>

Reboot of the device don't perform the update, no new device in device manger in Windows Device Portal...

What can be a problem?

UPDATE

The problem is about stack updating process: Failed to install CAB file as device is in the middle of an update

UPDATE

Here is the header of the .inf driver file form PC.

[version]
signature="$CHICAGO$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%PRO%
DriverVer=10/01/2018,3.8.28.0
;DLL Ver=08/29/2017,1.0.0.5
CatalogFile=ser2pl.cat

Currently I have two ways to solve the problem:

  • To solve update problem
  • To use onboard UART port

In the second way I also have problem, I have null in the SerialPort:

string aqs = SerialDevice.GetDeviceSelector();
DeviceInformationCollection devices = await DeviceInformation.FindAllAsync(aqs);
List<DeviceInformation> list = devices.ToList();
DeviceInformation di = list.First();
serialPort = await SerialDevice.FromIdAsync(di.Id);

serialPort is null
di.Id equals: Id "\\\\?\\ACPI#BCM2836#0#{86e0d1e0-8089-11d0-9ce4-08003e301f73}" string
list.Count equal 1

UPDATE

Here is the question about problem with onboard UART:

Unable to open UART port on Windows IoT with Raspberry Pi 3

UPDATE

I reflashed the device, but have same problem with updates. I have device several hours on, and it still downloads the updates:

Current OS Version: 10.0.17763.107
Downloading updates.
Last checked: 2019-02-14 at 08:10