Я новичок в драйверах. Я безуспешно пытался отладить драйвер ядра, используя последовательный COM-порт. Может ли кто-нибудь показать мне правильное направление, как решить проблему?
Я вижу следующие сообщения на консоли kd.
ОШИБКА: DavReadRegistryValues/RegQueryValueExW(4). WStatus = 127
ОШИБКА: DavReadRegistryValues/RegQueryValueExW(5). WStatus = 127
ОШИБКА: DavReadRegistryValues/RegQueryValueExW(6). Статус = 127
В это время я нажал Ctl^D и консоль kd, и я вижу
ЧТЕНИЕ: Тайм-аут.
ЧТЕНИЕ: Ожидание пакета типа 7
ЧТЕНИЕ: Тайм-аут.
ЧТЕНИЕ: Ожидание пакета типа 7.
ПРОЧИТАЙТЕ: Тайм-аут.
РЕДАКТИРОВАТЬ: Проблема исправлена с помощью WinDbg. Я изменил скорость передачи данных на 115200 и вставил прерывание (Ctr ^ Break) до того, как целевая система полностью загрузится. Теперь я могу отлаживать код. Если я вставлю break после того, как целевая система полностью загрузится, я не смогу выполнить отладку. Я не знаю точной причины этого, но доволен текущей ситуацией.
Here are the things I have done
1) Prepared Target system for debug mode by editing the boot.ini file. Added “/debugport=com1 /baudrate=57600” to boot.ini 2) On Host system, started kd.exe and seeing the following output C:\Program Files\Debugging Tools for Windows>kd.exe -k com:port=1,baud=57600 Microsoft (R) Windows Debugger Version 6.6.0007.5 Copyright (c) Microsoft Corporation. All rights reserved. Opened \\.\com1 Waiting to reconnect... 3) Rebooted Target system, system boots slowly than normal boot and I am seeing some messages <<below>> on Host system console 4) At this time, If I press Ctl-C on KD console then Target system freezes (hangs) and proceeds if I enter "g" at kd prompt. This means that Target system is going to debug mode 5) However After some time I am seeing the following message on the host machine console ERROR: DavReadRegistryValues/RegQueryValueExW(4). WStatus = 127 ERROR: DavReadRegistryValues/RegQueryValueExW(5). WStatus = 127 ERROR: DavReadRegistryValues/RegQueryValueExW(6). WStatus = 127 After the above message there are no messages appearing on kd console. I searched internet for "ERROR: DavReadRegistryValues/RegQueryValueExW(6). WStatus = 127" but didn't get proper reason for it. I pressed Ctl^D and kd console and I am seeing READ: Timeout. READ: Wait for type 7 packet READ: Timeout. READ: Wait for type 7 packet READ: Timeout. I have tried above steps with following options ..but no luck I disabled firewall & antivirus software on both Host and Target systems. I unplugged and re-plugged serial cable connection between each trail I have logged-in with Domain account local account with Admin rights Can someone show some light on how to proceed? Both systems are running on XP 32bit SP3 OS.
Thanks King