Implementing a driver

  • Thread starter Thread starter Lothar Baeurle
  • Start date Start date
L

Lothar Baeurle

Hi,

I'm pretty new to XPe and have a (probably silly) question.

I need to add a driver to my XPe which consists of a .inf file and a .sys
file.
Despite reading serveral documents I've not found how to do it.

I tried to use CD but the .inf file could not be imported (Message: File
import failed due to unspecifiederror while processing file. After pressing
OK CD hangs)

Any help will be appreciated.

Regards,
Lothar
 
Lothar,

Are you using XPe SP1 or XPe SP2 TP?

You can do one of the following things:
- Switch to XP1 SP1 and still use CD to import the INF file (it shouldn't hang in SP1)
http://msdn.microsoft.com/embedded/community/community/tips/xp/thrdprty/default.aspx

if PnP driver:
- Manually (or through your custom component or through TD Extra Files section) copy all the driver files to appropriate windows
directories on run time (\windows\system32;\windows\system32\drivers;\windows\inf). FBA PnP should install the driver properly if
you know that the driver was wroking fine on XP Pro and you included all the driver dependencies in your image.

if non-PnP driver:
- Install the driver on XP Pro machine and monitor the installation with tools like RegSnap/InCtrl5 (Regmon) to capture all the
required registry entries. I assumed that you know all the driver files. Then create a component that just copy all the files to
appropriate windows directories and install the registry entries.
Satisfiy all the driver dependencies and watch on FBALog.txt and SetupAPi.log for possible driver errors.


KM
 
Hi Lothar,

1. Use google groups to find answers on most of your questions.
http://groups.google.com/groups?hl=...F-8&group=microsoft.public.windowsxp.embedded

2. Importing inf files from CD is well documented in product documentation.
As an alternative solution read trough thread for more "advanced" info:
http://groups.google.com/groups?hl=en&lr=&c2coff=1&[email protected]

3. If you are using SP2 TP version then this might be a problem:
http://groups.google.com/groups?hl=en&lr=&c2coff=1&[email protected]

Regards,
Slobodan
 
Hi Slobodan,

Thanks for your advice. I used SP2 - with SP1 (almost) everything works
fine.

In the meantime I got more familiar with the XPE tools.

I created an SLD file, imported it in CD Database and used it in TD.

My current task is to implement a RAM Disk. Driver implementation seems to
work fine (I looked it up in the registry) however the RAM drive is not
displayed in the Explorer.

Any idea what I missed?

Regards,

Lothar
 
Lothar,
My current task is to implement a RAM Disk. Driver implementation seems to
work fine (I looked it up in the registry) however the RAM drive is not
displayed in the Explorer.
Any idea what I missed?

You are missing a RAM disk component.
What have you included? The "Windows RAM Disk Driver" component is just for RAM (Remote) boot.

If you want to implement a ram drive, you should take a look and componentize MS RamDisk sample driver:
http://support.microsoft.com/?kbid=257405 (although it is a sample driver for Win2K).

You can find a list of existing ram-disks on http://lists.gpick.com/pages/RAM_Disks.htm.
 
Back
Top