Jump to content











Photo
- - - - -

Adding drivers to PE build


  • Please log in to reply
4 replies to this topic

#1 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 April 2011 - 12:29 AM

Hello,

I'd like to add some drivers to my PE build.

I have a copy of the drivers (naturally) and I have identified the registry entries that refer to these drivers, but I am not familiar with the process to add the drivers to Bart.

The driver files are:

sbmount.sys
stcvsm.sys
volsnap.sys

The registry entries are included in the attachment

Thanks

VW

Attached Files



#2 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 23 April 2011 - 12:56 AM

Are you quite certain that VolSnap.sys isn't included in your PE? It is a Microsoft Windows driver. I don't think you need to worry about any VolSnap references at all.

In order to work with (load, modify, unload) a Registry hive file, that hive file must be on a writable medium. So if you have hive files on a CD/DVD, copy them to an HDD filesystem before attempting to work with them.

A Windows XP/2003 PE initially populates its HKLM\SYSTEM\ hive from two sources:
  • TXTSETUP.SIF
  • SETUPREG.HIV
Items in TXTSETUP.SIF are loaded by SETUPLDR quite similarly to how "boot-start" services are loaded by NTLDR for a non-PE Windows. That is, these drivers are loaded at pre-kernel time.

Items in SETUPREG.HIV will be initialized at post-kernel time, as far as I know.

Now I know you've been sworn, and I've read your complaint...

It would seem that you might be able to inject the sbmount item into SETUPREG.HIV, as its Start type is 1 (system-start).

It would seem that you might be able to inject the stcvsm item into TXTSETUP.SIF, as its Start type is 0 (boot-start).

Remember to copy the .SYS files, too.

#3 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 April 2011 - 01:47 AM

@Shao

Thanks for the advice

For others who read this thread, here is a reference on the layout of txtsetup.sif

http://www.msfn.org/...tinf-reference/

#4 VeeDub

VeeDub

    Frequent Member

  • Advanced user
  • 140 posts
  •  
    Australia

Posted 23 April 2011 - 07:24 AM

To compress the drivers in the i386 directory you need compress.exe (which can be found in the Resource Kit)

COMPRESS -r -z filename


#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 23 April 2011 - 12:16 PM

To compress the drivers in the i386 directory you need compress.exe (which can be found in the Resource Kit)

COMPRESS -r -z filename

Not really "need".
You can use makecab allright:
http://www.msfn.org/...pression-issue/

The actual CAB kit is not anymore available:
http://support.micro...kb/310618/en-us

Wayback Machine to the rescue :hi: :
http://www.msfn.org/...-download-link/
http://web.archive.o...n-us/cabsdk.exe

;)

:)
Wonko




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users