Click here to Skip to main content
15,899,313 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
AnswerRe: Ethernet card - Device Driver Pin
Dave Kreskowiak6-Dec-08 14:40
mveDave Kreskowiak6-Dec-08 14:40 
AnswerRe: Ethernet card - Device Driver Pin
fat_boy7-Dec-08 20:59
fat_boy7-Dec-08 20:59 
GeneralRe: Ethernet card - Device Driver Pin
sharp8110-Dec-08 22:31
sharp8110-Dec-08 22:31 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy10-Dec-08 22:47
fat_boy10-Dec-08 22:47 
GeneralRe: Ethernet card - Device Driver Pin
sharp8110-Dec-08 23:31
sharp8110-Dec-08 23:31 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy10-Dec-08 23:35
fat_boy10-Dec-08 23:35 
GeneralRe: Ethernet card - Device Driver Pin
sharp8110-Dec-08 23:44
sharp8110-Dec-08 23:44 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy11-Dec-08 0:42
fat_boy11-Dec-08 0:42 
OK, so you need to run a debug bersion of the driver, build one using the WDK.

Then set the symbol path in WinDbg to the location of the pdb for your driver.

Set the code path to the location of your drivers source files.

Also set source mode on in WinDbg (Off the Debug menu).

You also need to disable the ethernet card in Device Manager. Why? Well. if you put a BSOD in the code and its set to autostart you will never get the machine up and running again short of booting in safe mode.

You can use .kdfiles command to cause a dynamic driver load from the nost PC to the target PC.

Then when you enable the device in DeviceManager the driver gets copied over. This is quicker than copying it over via a USB stick and gets round Windows File Protection.

Since this error occurs during initialise you want to hard code a breakpoint in MiniportInitialise().

You should also be able to repro the issue with a quick disable-enable in device manager since the device will be depowered for a short time.

If this fails then you need to cath the error after a warm boot, in which case you need the device enqabled in DevoceManager and hope you dont leave any BSODs in the code.


When the machine breaks you can make sure the pdbs are loaded for you device. Look in Debug-Modules in WinDbg. If it doesnt show a pdb loaded for your driver then highlight it and do a reload.

Then by doing a couple of step throughs (F10) the debugger wil load the relevant code and highlight the line you are using.

Morality is indistinguishable from social proscription

GeneralRe: Ethernet card - Device Driver Pin
sharp8111-Dec-08 2:41
sharp8111-Dec-08 2:41 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy15-Dec-08 22:55
fat_boy15-Dec-08 22:55 
GeneralRe: Ethernet card - Device Driver Pin
sharp8114-Dec-08 6:14
sharp8114-Dec-08 6:14 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy15-Dec-08 22:56
fat_boy15-Dec-08 22:56 
GeneralRe: Ethernet card - Device Driver Pin
sharp817-Jan-09 23:00
sharp817-Jan-09 23:00 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy8-Jan-09 0:05
fat_boy8-Jan-09 0:05 
GeneralRe: Ethernet card - Device Driver Pin
sharp818-Jan-09 0:54
sharp818-Jan-09 0:54 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy8-Jan-09 1:08
fat_boy8-Jan-09 1:08 
GeneralRe: Ethernet card - Device Driver Pin
sharp818-Jan-09 5:28
sharp818-Jan-09 5:28 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy8-Jan-09 5:50
fat_boy8-Jan-09 5:50 
GeneralRe: Ethernet card - Device Driver Pin
sharp818-Jan-09 23:28
sharp818-Jan-09 23:28 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy9-Jan-09 2:52
fat_boy9-Jan-09 2:52 
GeneralRe: Ethernet card - Device Driver Pin
sharp819-Jan-09 3:09
sharp819-Jan-09 3:09 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy9-Jan-09 4:12
fat_boy9-Jan-09 4:12 
GeneralRe: Ethernet card - Device Driver Pin
sharp819-Jan-09 4:36
sharp819-Jan-09 4:36 
GeneralRe: Ethernet card - Device Driver Pin
fat_boy9-Jan-09 4:58
fat_boy9-Jan-09 4:58 
GeneralRe: Ethernet card - Device Driver Pin
sharp819-Jan-09 5:06
sharp819-Jan-09 5:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.