
                VT82C570MV PCI IDE Device Driver Installation Guide

                        Date: February 23, 1995


OBJECTS

This application note is used to provide the information to use the "INSTALL.EXE" utility to 
setup your system and to install the device drivers for the VT82C570MV PCI IDE card which is a PCI 
IDE chips and it supports 2 IDE channels. There are OS/2, Microsoft Windows, NetWare 
3.11 or 4.0x , SCO UNIX, Windows NT device drivers supported by VIA.   


If your boot disk drive is not the same size as the floppy (3.5") released from VIA then you 
could copy this release floppy to another floppy according to the size of the boot disk drive and 
continue to the rest of the installation procedure.

Note:  Some BIOS have an option to turn on IDE drive block transfer mode. This may cause 
inconsistent problem if used with VT82C570MV PCI IDE driver. Please turn off this option before 
using VT82C570MV PCI IDE driver.
    

INSTALL.EXE

"INSTALL.EXE" is used after you have plugged the VT82C570MV PCI IDE card in your system. 
The utility provides two kinds of methods to install the device drivers  to your system, that is "full" 
and "customized" installation. "INSTALL" could be running only on the Floppy Drive and 
the floppy diskette must not be write protected. For the performance issue, you should 
execute the "INSTALL.EXE" again after you install a new hard disk model in order to get 
the optimal active time and cycle time for that new disk drive. Under the dos prompt type the 
"INSTALL" to execute the utility,
 
                A> INSTALL

and the screen will be displayed :

	                Main
	        [F1]..		Help
	        [Enter].. 	Continue
	        [ESC].. 		Quit

Type [F1] to get the help message and [ESC]  to exit  this setup utility. Type [Enter] to 
continue the setup utility, and the following screen will be shown.

	        Installation
	        [F1].. 		Help
	        [F2]..		Full Installation
	        [F3]..		Customized Installation
	        [ESC]..		Quit

Type [F1] to get the help message and [ESC] to exit  this setup utility. Type [F2], then the 
setup utility will  install all of the VIA device drivers including the Windows and NetWare 
drivers.  Type [F3], the setup utility will provide a customized installation method for you. 

Full Installation

The full installation will automatically install all of the device drivers for you except you type  
[ESC] to quit the installation procedure in the middle of the installation. This setup utility 
provides the Windows and NetWare drivers. If you want to install the OS/2 driver for your 
system, please refer the "OS/2 Installation" section. If you want to install the SCO UNIX driver 
for your system, please refer the "SCO Unix Installation" section on this Application Note. If you 
want to install the Windows/NT for your system, please refer the "Windows/NT installation" 
section. SCO Unix driver and OS/2 driver could not be installed though this setup utility, and you 
should follow the procedure described in the "SCO Unix Installation" and "OS/2 Installation" 
sections.

The Windows and NetWare drivers will be installed sequentially to your 
hard disk.  When the NetWare driver is installed completely, you could type [ESC] to quit from 
this setup utility and all of the drivers are installed successfully. You also could type [ESC] to exit 
in the middle of the install procedure. Then the install procedure will not be completed. If you 
want to install the driver again, you could select the manual installation to complete the 
installation. For the detail information you could refer the "Customized installation" section.

Customized Installation

The customized installation provides a method that you could install the device driver 
customized. The screen will be displayed when you select the customized installation.

	        Customized Installation
	        [F1]..		Install Windows Driver
	        [F2]..		Install NetWare Driver
	        [ESC]..		Quit


Windows

When you select [F1], the Windows driver will be installed to your disk. The setup utility will 
prompt you to type the directory where the Windows driver will be. If  you enter [ENTER] then it 
will take the default directory. 

It also prompt you to type the file name which the original "system.ini " saves as. If you do not 
type the file name then the default file name will be used. It will add one or more lines into the 
"SYSTEM.INI" file, that is "device=c:\windows\system\viaide.386", "32BitDiskAccess=ON" and 
"VIRTUALHDIRQ=OFF" if you have not turn on the 32bits disk access mode and virtal hard
IRQ off. Then it will move the Windows driver from the floppy to the destination directory. 
Type [ESC] to  complete the installation. This Windows driver could support the 32bits disk access
mode if you want to optimize your access speed. 

The default IRQ for the second IDE channel is 15 and if you want to change the IRQ to 11 
then you could set it by adding a new line to the [386Enh] section at the "system.ini".  
Like this ,

	        VIA_IRQ=11

to replace the default IRQ 15 with IRQ 11.

NetWare

When you select the [F2], the NetWare driver will be installed to your disk. The setup utility 
will prompt you to type the directory where the NetWare driver will be. If  you enter [ENTER] 
then it will take the default directory.
 
The VT82C570MV PCI IDE Netware driver could support two channels PCI IDE. The way to 
load VT82C570MV PCI IDE Netware driver and change IRQ number could follow the metod listed 
below :

                : load VIAIDE
                Supported interrupt number values are F, B.
                The second Interrupt number : 

Type "F" for  IRQ 11 to the second channel or type "B" for IRQ 15 to the second channel. If 
the  VT82C570MV is set to the native mode then the interrupt number for the second channel will be 
automatically installed.
 
After the installation, you could type the "load" command to load the driver into the NetWare.

OS/2

If you want to execute the "INSTALL.EXE" to find the disk speed. You should boot from 
DOS  first. Otherwise, the "INSTALL.EXE" will run abnormally.

First, after you executing the speed test, you boot from the OS/2. Type the "DDINSTAL" 
command under the OS/2 command prompt. For example :
	
        	C> DDINSTAL

Type the source floppy drive and the destination disk drive which the OS/2 boot from. Then 
the VIAIDE.ADD will be copy to the destination drive and append a line 
"BASEDEV=VIAIDE.ADD" to the "CONFIG.SYS" file.

Second, modify the "CONFIG.SYS' file to move the line "BASEDEV=VIAIDE.ADD" before 
the default OS/2 hard disk driver named "BASEDEV=IBM1S506.ADD". Otherwise the default 
"IBM1S506.ADD" device driver will be executed but not the "VIAIDE.ADD". 

After these two procedures you could boot from the OS/2 and the VT82C570MV PCI IDE device 
driver will be running.

The default IRQ number for the second IDE channel is 15. If you want to change the default 
IRQ to the IRQ 11 then you could enter the following arguments like the following :

	        BASEDEV=VIAIDE.ADD /A:1 /IRQ:11

and the default IRQ 15 could be changed.

SCO Unix 

In this section it will provide the information how to install the VT82C570MV PCI IDE device 
driver to your SCO UNIX Operation System. Please follow these steps listed below to install the 
VT82C570MV PCI IDE device driver.

The following steps are used to convert the "VT82C570MV PCI IDE Device Drivers" diskette 
which is prepared with DOS format to a SCO UNIX "custom" installable diskette. You should 
prepare an extra blank diskette, 1.2MB (5.25") or 1.44MB (3.5"), to complete the installation.

1.  Login to the SCO UNIX with "root" supper user account.

	        login : root

2.  Insert the "VT82C570MV PCI IDE Device Drivers diskette" into the 3.5" disk drive.

3.  Type the following commands under the SCO UNIX prompt "#":

          # doscp /dev/fd0135ds18:/unix/install   /tmp
          # sh /tmp/install
     
 You could change the device name where the 3.5" diskette is according to your system 
configuration. You could also copy the "VT82C570MV PCI IDE Device Drivers" to 5 1/4" diskette 
and install from it. 

In this installation, it will require you to insert a new blank diskette. After this "install" 
command, you will get a  SCO UNIX "custom" installable diskette.

Now you can use the "custom" installable diskette to install "VT82C570MV PCI IDE Device 
Driver" to your SCO UNIX by the "custom" command. Please insert the "custom" installable 
diskette to the disk drive and type the as follows :

          # custom

Follow the installation instruction and rebuild the kernel.

If you have installed the IDE drives on the 17x channel, you should execute the 
following commands to extract the major number. 

        # cd /etc/conf/cf.d
        # ./configure -j vth1

For example, if you get the number "24", the you could make the nodes for the 17x 
drivers, such as

        # mknod  /dev/mio0 b 24 40

for the drive 0 of 17x channel and 

        # mknod /dev/mio1 b 24 104 

for the drive 1 of 17x channel.

The default IRQ for the second IDE channel is IRQ 15. If you want to change the IRQ 
15 to IRQ 11 and follow the method listed below to change it.

First, edit the file "/etc/conf/pack.d/vth1/space.c" to change the define IRQ number 15 
to 11. Like this,:

        #define WD1_0_VECT 11

then relink the kernel,

	# /etc/conf/cf.d/link_unix

and use the kernel as the boot kernel then the IRQ 11 for the second channel will work.

Windows NT

Install the VT82C570MV PCI IDE Windows NT driver after the system is setup.
Select the "Windows NT Setup" icon on the Main windows. You should choose the 
"Options" menu when the "Windows NT Setup" is pop up.  Navigate the light bar to select the 
"Add/Remove SCSI Adapters" option to install the VT82C570MV PCI IDE Windows NT driver. Push 
the "Add" button then the "Setup Message" message box will be displayed and you select the "OK" 
button to continue this installation.

Poll down the "Adapter" menu and navigate the light bar to select the "Other [Requires a disk 
from a hardware manufacturer]". Then insert the "VT82C570MV Device Driver" diskette into the 
floppy drive and change the path to "A:\nt35" for Windows NT 3.5 or to "A:\nt31" 
for Windows NT 3.1. Push the "OK" button when you already ready. After you push 
the "OK" button then the "Select OEM Option" message box will be displayed and the 
"VIA VT82C570MV" item will be displayed and you push the "OK" button again. 

At the "Select SCSI Adapter Option" message box you push the "Install" button to continue this 
installation and then push "Continue" button to complete this installation. After the copy the 
VIA/IDE Windows NT is installed successfully. After the reboot, the VT82C570MV PCI IDE 
Windows NT will work.

The default IRQ of  the second IDE channel is 15. If you want to change the IRQ from 15 to 11 
then you could rename the "VIADSK11.DSK" to "VIADSK.SYS" on the "\nt" directory
and execute the "INSTALL.EXE" again.


