Jump to content











Photo
- - - - -

Help: Creating scripts for drivers


  • Please log in to reply
1 reply to this topic

#1 Kerrona

Kerrona
  • Members
  • 2 posts
  •  
    Canada

Posted 07 August 2007 - 01:10 PM

Hello All,

I am trying to get my network card detected in LiveXP. I have created a working LiveXP that will boot off USB but my efforts to try and make a script that will load the Intel Pro 1000 network drivers is getting me no where. Below is a quick break down on how I created the script file.

I downloaded the latest drivers from IBM.

Files:
e1e5132.sys
e1e5132.inf
e1e5132.cat
e1e5132.din

I checked my current install of XP to see what files are used for the Network Drivers.

Files:
e1e5132.sys
e1000msg.dll
e1e5132.din
nicco.dll
nicetco.dll
nicinst.dll
prounstl.exe

So from the driver I download and taking a look at the qEmuNIC_RTL8139.script file I am assuming I only need to use the following files:

e1e5132.sys
e1e5132.inf

From here I started Winbuilder and started creating my own script file and the code I used is below:

[Main]

Title=Intel Pro 1000

Description=Network Drivers for IBM

Selected=True

level=4

Locked=True



[Process]

FileCopy,"%ScriptFile%\Drivers\Network\E1E5132.INF","%TargetDir%\I386\inf"

Run,%ScriptFile%\Drivers\Network\,Load-Driver,E1E5132.SYS



[Load-Driver]

If,ExistFile,"%SourceDir%\I386\%spFile%",ShellExecute,"hide","expand.exe","#$q%SourceDir%\I386\%spFile%#$q -F:#1 #$q%TargetDir%\i386\system32\drivers#$q"

If,NotExistFile,#$q%TargetDir%\i386\system32\drivers\#1#$q,ShellExecute,"hide","expand.exe","#$q%SourceDir%\I386\%drFile%#$q -F:#1 #$q%TargetDir%\i386\system32\drivers#$q"



[EncodedFolders]

Folder



[EncodedFile-Folder-E1E5132.INF]

lines=12

....





[Folder]

E1E5132.INF=36Kb,49Kb

E1E5132.SYS=111Kb,148Kb



[EncodedFile-Folder-E1E5132.SYS]

lines=37

....

Note: I added in the [Load Driver] portion not knowing what is does as I am unable to locate any info on the tags used to understand how exactly it works.

If anyone can help or point me to a page that will help with creating driver scripts it would be much appreciated.

#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 07 August 2007 - 01:31 PM

Please have a look here.
There was a similar condition.

I wrote a driver script only containing *.sys and *.inf, and it worked.

Your opinion is :yahoo:

Try it, and when PENetwork starts it should detect the driver.

But there is a small disadvantage:
To call 'Load-Diver' in your script is wrong, because the *.sys is not on the source cd.
I assume, it is in your ...\Network\... directory like the *.inf.
So just copy the *.inf line for the *.sys file, rather than calling 'Load-Driver'

Additionally: If (like here) the driver files are encoded, just extract them to the target.

Excuse me if I tell you well known facts:
This driver must be on the burned CD to boot on your PC.

To try qEmu / VMWare / VirtualBox / VPC emulation, you need the corresponding driver(s).

Peter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users