適当に翻訳する。
富士通のLIFEBOOK AH45/XをWindows11にアップグレードした。
途中で出たエラー(ErrorCode: 0x8007051A)の原因がわからなくて、あれこれ調べて30時間くらいかかった。
Microsoft が配っている「SetupDiag.exe」の結果などは記事の最後に掲載。
結論を先に書くと、「C:\Windows\System32\drivers」の中にある「PxHlpa64.sys」を削除して、関連するレジストリキーの値を空にしたら解決した。
マカフィーの削除、Windows Defender の停止、Bios のアップデートなど色々やったが全部無駄だった。
★解決の手順
(1)「PxHlpa64.sys」を削除。「C:\Windows\System32\drivers」の中にある。
これだけだとWindows11をインストールするための Win11_25H2_Japanese_x64_v2.iso をマウントできなくなってしまう。PxHlpa64.sys はDVDなどへの書き込みで使われる Corel 社製のドライバらしい。
(2)ISOをマウントするときにPxHlpa64.sysが参照されないように、レジストリキー「HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e965-e325-11ce-bfc1-08002be10318}」の「LowerFilters」の値を「PxHlpa64」から空欄に変更。(中身を削除。)
これで Windows11 のインストール用 iso ファイルをマウントできるようになる。
(3)CPUの検査に引っかからないように次のレジストリキーを作成して設定。
レジストリキー「HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup」
値の名前「AllowUpgradesWithUnsupportedTPMOrCPU」
型「REG_DWORD(DWORD 32ビット)」
値の内容「1」
これをやらないとCPUが未対応です、みたいなエラーが出る。
(4)次いで Widnows 11 の ISO ファイルをダウンロードする。
「x64 デバイス用 Windows 11 ディスク イメージ (ISO) をダウンロードする」からダウンロード。
(5)ダウンロードした ISO ファイルをマウントして「setup.exe」を実行 する。
この時、更新プログラムのダウンロードは、Windows 11 のインストール時には行わないようにする。
そうしないとエラーが出る。
★エラーの出力
result.log Matching Profile found: UnknownDriverMigrationFailure - D7541B80-5071-42CE-AD14-FBE8C0C4F7FD SetupDiag version: 1.7.0.0 System Information: Machine Name = LAPTOP-3A5BGPFI Manufacturer = Unknown Model = Unknown HostOSArchitecture = x64 FirmwareType = UEFI BiosReleaseDate = 20230515000000.000000+000 BiosVendor = Version 1.29 BiosVersion = Version 1.29 HostOSVersion = 10.0.19045 HostOSBuildString = 19041.1.amd64fre.vb_release.191206-1406 TargetOSBuildString = 10.0.26100.5074 (ge_release_svc_prod3.250826-1428) HostOSLanguageId = 1041 HostOSEdition = Core RegisteredAV = Windows Defender FilterDrivers = WinSetupMon UpgradeStartTime = 2025/12/19 13:49:40 UpgradeEndTime = 2025/12/19 14:36:27 UpgradeElapsedTime = 00:46:47 Error: SetupDiag reports a fatal error on driver migrations. ErrorCode: 0x8007051A Refer to "https://docs.microsoft.com/en-us/windows/desktop/Debug/system-error-codes" for error information. Last Setup Phase: Phase Name: Pre-Finalize Phase Started: 2025/12/19 14:34:56 Phase Ended: 0001/01/01 0:00:00 Phase Time Delta: 00:00:00 Completed Successfully? False Last Setup Operation: Operation Name: Process Drivers for Migration Operation Started: 2025/12/19 14:35:23 Operation Ended: 0001/01/01 0:00:00 Operation Time Delta: 0:00:00:00.0000000 Completed Successfully? False
setuperr.log
...
...
2025-12-19 23:58:48, Error CONX Windows::Compat::Appraiser::RegistryMarkerOutputter::InitializeIndicatorsToRemoveDuplicates (465): Failed to find list table of indicators to remove duplicates, swallowing: [0x80070490].[gle=0x80070490]
2025-12-19 23:58:48, Error CONX Windows::Compat::Appraiser::RegistryMarkerOutputter::Initialize (348): Failed to initialize indicators to remove duplicates, swallowing: [0x80070490].[gle=0x80070490]
2025-12-19 23:59:24, Error CDeploymentSession::SetEcoQos(10461): Result = 0xD0000003
2025-12-19 23:59:24, Error CDeploymentSession::IsRangeRequestSupported(4297): Result = 0x80040154
2025-12-19 23:59:24, Error IsRangeRequestSupported failed with: [80040154 [Error,Facility=FACILITY_ITF,Code=340 (0x0154)]]. Setting RangeRequestSupported to FALSE
2025-12-19 23:59:25, Error CONX hwreqchk: ERROR,Windows::Compat::HardwareRequirements::HardwareRequirementSettings::IsMeteredConnection,29,Failed to get NetworkCostType assuming metered network [0x80004005].
2025-12-19 23:59:26, Error CONX Windows::Compat::Appraiser::RegistryMarkerOutputter::InitializeIndicatorsToRemoveDuplicates (465): Failed to find list table of indicators to remove duplicates, swallowing: [0x80070490].[gle=0x80070490]
2025-12-19 23:59:26, Error CONX Windows::Compat::Appraiser::RegistryMarkerOutputter::Initialize (348): Failed to initialize indicators to remove duplicates, swallowing: [0x80070490].[gle=0x80070490]
2025-12-19 23:59:51, Error CONX Windows::Compat::Appraiser::WicaApplicationInventory::ConstructFileAsset (732): Failed PicRetrieveFileInfo: [0x80004005].[gle=0x80004005]
2025-12-19 23:59:51, Error CONX Windows::Compat::Appraiser::WicaApplicationInventory::AddAntiMalwareFiles (634): Failed to construct file asset [c]: [0x80004005][gle=0x80004005]
2025-12-19 23:59:51, Error CONX Windows::Compat::Appraiser::WicaApplicationInventory::ConstructFileAsset (732): Failed PicRetrieveFileInfo: [0x80004005].[gle=0x80004005]
2025-12-19 23:59:51, Error CONX Windows::Compat::Appraiser::WicaApplicationInventory::AddAntiMalwareFiles (634): Failed to construct file asset [c]: [0x80004005][gle=0x80004005]
2025-12-20 00:00:26, Error CONX Windows::Compat::Appraiser::RegistryMarkerOutputter::InitializeIndicatorsToRemoveDuplicates (465): Failed to find list table of indicators to remove duplicates, swallowing: [0x80070490].[gle=0x80070490]
2025-12-20 00:00:26, Error CONX Windows::Compat::Appraiser::RegistryMarkerOutputter::Initialize (348): Failed to initialize indicators to remove duplicates, swallowing: [0x80070490].[gle=0x80070490]
2025-12-20 00:10:15, Error [0x0808ff] MIG COutOfProcPluginFactory::CreateInstance: m_currentHostSurrogate->LoadDllServer(C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-RasServer-MigPlugin\RasMigPlugin.dll, {D26AA4A5-92AD-48DB-8D59-95EF0DCE6939}, 1) failed, hr=[0x8007007f].
2025-12-20 00:10:15, Error [0x080387] MIG Failure while calling IDiscovery->Discover for Plugin={ServerPath="Microsoft-Windows-RasServer-MigPlugin\RasMigPlugin.dll", CLSID={D26AA4A5-92AD-48DB-8D59-95EF0DCE6939}, ThreadingModel=Apartment, ExceptionHandling=Default}. Error: 0x8007007F
2025-12-20 00:10:16, Error SP FOD Validator: Failed to Get Capabilities using DISM API. Error: 8007051A[gle=0x0000007a]
2025-12-20 00:10:16, Error SP FOD Validator: Failed to build FoD list, will ignore this validator. Error: 8007051A
2025-12-20 00:10:16, Error SP LP Validator: Failed to get packages using DISM API. Error: 8007051A[gle=0x0000007a]
2025-12-20 00:10:16, Error SP LP Validator: Failed to build language package list, will ignore this validator. Error: 8007051A
2025-12-20 00:10:58, Error SP pSPRemoveUpgradeRegTree: failed to delete reg tree HKLM\SYSTEM\Setup\Upgrade[gle=0x00000005]
2025-12-20 00:12:41, Error [0x080831] MIG CSIAgent: Invalid xml format: FormatException: "script" attribute is mandatory. class Mig::CMXEMerge *__cdecl Mig::CMXEMigrationXml::LoadMerge(class UnBCL::XmlNode *,int,class Mig::CMXEMigrationXml *,class Mig::CMXEXmlComponent *)
2025-12-20 00:18:56, Error [0x0808fe] MIG Plugin {ff9c714f-b864-4f43-ae39-ec07d7385abe}: Found invalid upper filters for class {4d36e967-e325-11ce-bfc1-08002be10318}.
2025-12-20 00:20:27, Error SP Failed to get driver packages from the online system. Error: 0x8007051A[gle=0x0000007a]
2025-12-20 00:20:28, Error SP Operation failed: Process Drivers for Migration. Error: 0x8007051A[gle=0x000000b7]
2025-12-20 00:20:28, Error SP COperationQueue::Sort: Could not find an execution phase for 98
2025-12-20 00:20:28, Error SP ExecuteOperations: Operations cannot be sorted. This is a fatal failure.
2025-12-20 00:20:28, Error SP ExecuteOperations: Main operation execution failed. Error: 0x8007000D
2025-12-20 00:20:28, Error SP ExecuteOperations: Failed execution phase Pre-Finalize. Error: 0x8007000D
2025-12-20 00:20:28, Error MOUPG MoSetupPlatform: ExecuteCurrentOperations reported failure![gle=0x0000000d]
2025-12-20 00:20:28, Error MOUPG MoSetupPlatform: Using action error code: [0x8007051A][gle=0x0000000d]
2025-12-20 00:20:28, Error MOUPG CDlpActionPreFinalize::ExecuteRoutine(784): Result = 0x8007051A[gle=0x0000000d]
2025-12-20 00:20:29, Error MOUPG CDlpActionImpl<class CDlpErrorImpl<class CDlpObjectInternalImpl<class CUnknownImpl<class IMoSetupDlpAction> > > >::Execute(503): Result = 0x8007051A
2025-12-20 00:20:29, Error MOUPG CDlpTask::ExecuteAction(3334): Result = 0x8007051A
2025-12-20 00:20:29, Error MOUPG CDlpTask::ExecuteActions(3487): Result = 0x8007051A
2025-12-20 00:20:29, Error MOUPG CDlpTask::Execute(1643): Result = 0x8007051A
2025-12-20 00:20:29, Error MOUPG CSetupManager::ExecuteTask(3129): Result = 0x8007051A
2025-12-20 00:20:29, Error MOUPG CSetupManager::ExecuteTask(3091): Result = 0x8007051A
2025-12-20 00:20:29, Error MOUPG CSetupManager::ExecuteInstallMode(1172): Result = 0x8007051A
2025-12-20 00:20:29, Error MOUPG CSetupManager::ExecuteDownlevelMode(622): Result = 0x8007051A
2025-12-20 00:21:13, Error MOUPG CSetupManager::Execute(358): Result = 0x8007051A[gle=0x0000007f]
2025-12-20 00:21:13, Error MOUPG CSetupHost::Execute(517): Result = 0x8007051A[gle=0x0000007f]
setupact.log
...
...
2025-12-19 23:55:38, Info UI Determining whether we should run ConX or legacy setup
2025-12-19 23:55:38, Info UI Will launch ConX setup experience
2025-12-19 23:55:38, Info UI Initializing Media class driver for audio support
2025-12-19 23:55:38, Info UI Initializing media class driver status: 126
2025-12-19 23:55:38, Info UI Launching ConX setup experience
2025-12-19 23:55:38, Info UI Inspecting ConX Setup Cmdline
2025-12-19 23:55:38, Info UI Launching E:\Sources\SetupPrep.exe
2025-12-20 00:10:15, Info MIG MigHost started with command line: {EEDA5A6C-7D13-4CC0-83B1-195487087452} /InitDoneEvent:MigHost.{EEDA5A6C-7D13-4CC0-83B1-195487087452}.Event /ParentPID:11440
2025-12-20 00:10:15, Info MIG MigHost: CMigPluginSurrogate::Init: Successfully initialized surrogate.
2025-12-20 00:10:15, Info MIG MigHost: Initialized successfully with CLSID[{EEDA5A6C-7D13-4CC0-83B1-195487087452}] and LogDir=[]
2025-12-20 00:10:15, Info MIG MigHost: CMigPluginSurrogate::LoadDllServer in progress: BinaryPath=[C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-RasServer-MigPlugin\RasMigPlugin.dll], CLSID=[{D26AA4A5-92AD-48DB-8D59-95EF0DCE6939}], ApartmentThreadingModel=[1].
2025-12-20 00:10:15, Info MIG MigHost: CMigPluginSurrogate::COMGenericThreadingHostThreadProc: ThreadID=[0x2448], Server=[C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-RasServer-MigPlugin\RasMigPlugin.dll], CLSID=[{D26AA4A5-92AD-48DB-8D59-95EF0DCE6939}], ApartmentThreadingModel=[1], ExceptionPolicy=[1]
2025-12-20 00:10:15, Info MIG MigHost: CMigPluginSurrogate::LoadAndRegisterServerInThreadContext: Loaded server(C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-RasServer-MigPlugin\RasMigPlugin.dll)
2025-12-20 00:10:15, Error [0x08085f] MIG MigHost: CMigPluginSurrogate::LoadAndRegisterServerInThreadContext: LoadLibraryExW(C:\$WINDOWS.~BT\Sources\ReplacementManifests\Microsoft-Windows-RasServer-MigPlugin\RasMigPlugin.dll, LOAD_WITH_ALTERED_SEARCH_PATH) failed gle=0x7f.[gle=0x0000007f]
2025-12-20 00:10:15, Info MIG MigHost: CMigPluginSurrogate::LoadAndRegisterServerInThreadContext: File is present, most likely it does not load on the current OS version
2025-12-20 00:10:15, Error [0x080863] MIG MigHost: CMigPluginSurrogate::COMGenericThreadingHostThreadProc: LoadAndRegisterServerInThreadContext() failed hr=0x8007007f.[gle=0x0000007f]
2025-12-20 00:10:15, Info MIG MigHost: CMigPluginSurrogate::LoadDllServer finished: Result=[0x8007007f].
2025-12-20 00:10:16, Info MIG MigHost: Exiting process.
★参考になったサイト
・PxHlpa64.sysを削除してメモリ整合性をONにする(Windows11)
・デバイス セキュリティで互換性のないドライバーの解決方法を教えてください。
・仮想ドライブにISOファイルをマウント出来なくなった件 Windows10
(1)構築時のエラー
libyaml-cpp がどうのというエラーが発生。
...
...
shirouto_honnyaku@shirouto_honnyaku-tk:~/git_code/Vita3K$ cmake --build build/linux-ninja-clang
[0/2] Re-checking globbed directories...
[450/1375] Scanning /home/shirouto_honnyaku/git_code...pp/src/binary.cpp for CXX dependencies
FAILED: external/yaml-cpp/CMakeFiles/yaml-cpp.dir/Debug/src/binary.cpp.o.ddi
"CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS-NOTFOUND" -format=p1689 -- /usr/bin/clang++ -DYAML_CPP_NO_CONTRIB -DYAML_CPP_STATIC_DEFINE -DCMAKE_INTDIR=\"Debug\" -I/home/shirouto_honnyaku/git_code/Vita3K/external/yaml-cpp/include -I/home/shirouto_honnyaku/git_code/Vita3K/external/yaml-cpp/src -g -std=c++20 -fPIC -w -x c++ /home/shirouto_honnyaku/git_code/Vita3K/external/yaml-cpp/src/binary.cpp -c -o external/yaml-cpp/CMakeFiles/yaml-cpp.dir/Debug/src/binary.cpp.o -MT external/yaml-cpp/CMakeFiles/yaml-cpp.dir/Debug/src/binary.cpp.o.ddi -MD -MF external/yaml-cpp/CMakeFiles/yaml-cpp.dir/Debug/src/binary.cpp.o.ddi.d > external/yaml-cpp/CMakeFiles/yaml-cpp.dir/Debug/src/binary.cpp.o.ddi.tmp && mv external/yaml-cpp/CMakeFiles/yaml-cpp.dir/Debug/src/binary.cpp.o.ddi.tmp external/yaml-cpp/CMakeFiles/yaml-cpp.dir/Debug/src/binary.cpp.o.ddi
/bin/sh: 1: CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS-NOTFOUND: not found
[459/1375] Building CXX object externa...s/dynarmic.dir/Debug/cmake_pch.hxx.pch
ninja: build stopped: subcommand failed.
shirouto_honnyaku@shirouto_honnyaku-tk:~/git_code/Vita3K$
「Vita3K」というディレクトリの名前を一時的に「Vita3K_R080301」に変えたのが問題の原因だったらしく、新たに git clone したらエラーが出なくなった。
(2)実行時のエラーその1
ファームウェアのインストールを行おうとすると、ファイルを選択するためのウィンドウの表示に失敗するというエラーが発生。
D-Busが然るべきサービスを見つけられなかったようだ。
...
...
There was an error while opening the file browser:
No such interface "org.freedesktop.portal.FileChooser" on object at path /org/freedesktop/portal/desktop.
...
...
これは「xdg-desktop-portal-gtk」をインストールして解決。
「sudo apt install xdg-desktop-portal-gtk」である。
(3)実行時のエラーその2
ファームウェアが正しくインストールされていないと、次のようなエラーが出る。
...
...
[12:02:45.767] |E| [load_module]: Missing file at sys/external/libsystemgesture.suprx (target path: vs0:sys/external/libsystemgesture.suprx)
[12:02:45.768] |I| [export_sceSysmoduleLoadModule]: Loading module ID: SCE_SYSMODULE_NP_TROPHY
[12:02:45.768] |I| [export_sceSysmoduleLoadModule]: Loading module ID: SCE_SYSMODULE_SYSTEM_GESTURE
[12:02:45.768] |I| [load_module]: Loading module "vs0:sys/external/libsystemgesture.suprx"
[12:02:45.768] |E| [load_module]: Missing file at sys/external/libsystemgesture.suprx (target path: vs0:sys/external/libsystemgesture.suprx)
[12:02:45.768] |I| [export_sceSysmoduleLoadModule]: Loading module ID: SCE_SYSMODULE_NP_TROPHY
[12:02:45.768] |I| [export_sceSysmoduleLoadModule]: Loading module ID: SCE_SYSMODULE_SYSTEM_GESTURE
[12:02:45.769] |I| [load_module]: Loading module "vs0:sys/external/libsystemgesture.suprx"
[12:02:45.769] |E| [load_module]: Missing file at sys/external/libsystemgesture.suprx (target path: vs0:sys/external/libsystemgesture.suprx)
...
...
firmwareのインストールが正しく行われていなかったらしく、vs0ディレクトリに何もファイルが存在しなかった。
ファームウェアをインストールしなおしたら、/home/shirouto_honnyaku/.local/share/Vita3K/Vita3K/vs0に新たにディレクトリ等が作られた。
firmwareは2種類必要なので注意。
(4)実行時のエラーその3
エレコムのコントローラー(SHANWAN JC-U4013S)が正しく認識されない問題が発生。
R1ボタン等が反応しない。
SDLがそもそもコントローラーの入力を捉えていない。
他のアプリケーションでは、SHANWAN JC-U4013S は普通に使えている。
gamecontrollerdb.txt に載っているエレコムの SHANWAN JC-U4013S のボタン配置を無理やり登録すると(Vita3Kのソースコードの中で SDL_AddGamepadMapping() を使う)、R1ボタンが正しく反応するようになり、今度は十字ボタンが反応しなくなった。
ソースコードの中のどこかで1回実行されるコード
...
...
// ここから改変
char new_mapping[] = "030000006e0500000f20000010010000,SHANWAN JC-U4013S DirectInput Mode,a:b2,b:b3,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a2,righty:a3,start:b11,x:b0,y:b1,platform:Linux,";
int updated = SDL_AddGamepadMapping(new_mapping);
std::cout << "改変箇所通過" << std::endl;
// ここまで改変
...
...
「h0.4」等の代わりに「b12」などを指定すると行けそうではあるが、その前に Directinput から XInput に変えてみたら、何もせずとも入力できるようになった。
カレンダー
カテゴリー
最新記事
ブログ内検索
広告