Re: How can I replace the system serial driver with my driver?

From: Bill McKenzie (bill.mckenzie_at_nospam.conexant.com)
Date: 04/12/04


Date: Mon, 12 Apr 2004 12:08:38 -0500

If you are using WinDbg, just go to the registry and change the SFCDisable
flag value.
I believe this is all the SFP utility from OSR is doing, although I don't
honestly know. See the following:

http://www.microsoft.com/whdc/hwdev/driver/sfp/wfp.mspx
http://support.microsoft.com/default.aspx?scid=kb;en-us;222473

Setting this registry value to 0xffffff9d on Win2K shuts off SFP until the
value is changed. This is not true on XP. On XP, the first time you don't
boot with WinDbg connected *wham* system file protection kicks back in.
What a pain. I don't really understand this as you have to have
administrator or system privledges to modify this reg key anyway.

Anyway, there you go.

-- 
Bill McKenzie
Software Engineer - Prism 802.11 Wireless Solutions
Conexant Systems, Inc.
"David J. Craig" <SeniorDriversWriter@shogunyoshimuni.com.net> wrote in
message news:eCgp32KIEHA.3528@TK2MSFTNGP09.phx.gbl...
> You can use OSR's SFP utility for testing systems connected to windbg.
> My other method is to modify or create an ImagePath key for the driver
> and have it use my new driver.  You can put it in a test subdirectory
> under system32/drivers just to get it loaded.  Deleting or renaming the
> ImagePath subkey gets you the release version.
>
> "Bill McKenzie" <bill.mckenzie@nospam.conexant.com> wrote in message
> news:uT7kEOKIEHA.2128@TK2MSFTNGP11.phx.gbl...
> > On my target systems I don't screw with all of this mess.
> >
> > Some may have a problem with this, but I don't I just go into my
> > windows\system32\DLLCACHE directory and delete everything, then I go
> to my
> > Windows\Driver Cache directory and either rename or delete everything
> there
> > as well.  This takes away all of the backup files that WinXP uses in
> system
> > file protection.  I think you get a pop or two after this warning that
> > system file protection is having problems, and it may prompt for the
> OS CD.
> > Just ignore these and don't let it have the files back, and viola, no
> more
> > worrying about system file replacement.
> >
> > Make sure you only do this on a driver test or target system and not
> on a
> > machine you care about remaining stable.
> >
> > -- 
> > Bill McKenzie
> > Software Engineer - Prism 802.11 Wireless Solutions
> > Conexant Systems, Inc.
> >
> >
> > "Marco" <sorry@nomail.com> wrote in message
> > news:%23LuWEHIIEHA.3440@TK2MSFTNGP09.phx.gbl...
> > > As you know that the system serial driver has not symbols, so the
> SoftIce
> > > can not watch the code.
> > > I have compiled a new serial driver with symbols, I want to repalce
> the
> > > system one, so I could watch the code and debug the driver. How can
> I do
> > > this?
> > >
> > >
> > > Thanks!
> > >
> > >
> >
> >
>
>


Relevant Pages

  • RE: USB to Serial Port && Kernal BSODs
    ... Kernel Complete Dump File: ... Loading Kernel Symbols ... > normally caused by impropery driver or kernel components. ... After loading this dump file with Windbg, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: blue screen
    ... what is wrong is to run windbg on the dump file. ... download/install windbg from Microsoft Debugging Tools ... all windows." ... This will display a quick analysis of which driver crashed and the most ...
    (microsoft.public.windowsxp.hardware)
  • RE: Vista SP1 fails to install with BCCode: 1000008e
    ... Tools for Windows ... I did not need that driver anymore. ... There are also two open support requests to the free Vista SP1 support. ... windbg symbol path per the windbg help file. ...
    (microsoft.public.development.device.drivers)
  • Re: Bugcode Parameters
    ... > Well, your knowledge of WinDbg is certainly better than mine, but I ... > I trace the addresses through the stack dump in SP2 HidClass, ... beyond SomeSystemDriver, in some other driver whose name is not available. ... and keep .pdb files for each driver you release. ...
    (microsoft.public.development.device.drivers)
  • Re: question about oneys samples
    ... I have stated this on a number of forums, SoftIce has problems: ... debug your driver on the latest version you are SOL ... system reboots and have WinDBG load it for you. ... By using Microsoft's> central symbol server and a 1394 cable, WinDBG is just a "no brainer" for> me. ...
    (microsoft.public.development.device.drivers)