VIA WCE X86 Floppy Disk Driver Installation Guide
8/5/1999
Copyright (C) 1999 VIA Technologies, INC.
1. Release note
This software package release is version 1.0. The floppy disk
driver operates on any Windows CE X86-based platform using
VIA's chipsets or VIA's network controllers. The driver supports
5.25" (360 KB or 1.2 MB) and 3.5" (720 KB, 1.2/1.44/2.88 MB)
floppy disk drives. The driver works properly with Microsoft
Windows CE 2.11, and it should work for Windows CE 2.12 and 3.0
as well.
An included floppy disk loader utility enables the user, through
the "VIA Floppy Disk" Control Panel application, or the Tray Icon
for Windows CE 2.12 or later with a task bar, to automatically or
manually mount/unmount floppy disks to/from the file system.
Furthermore, the user has a control over how frequently to detect
disk insertion or removal. These specially added features provide
extra flexibility in meeting various application requirements.
Note if you remove the disk during drive read or write operation,
there is no guarantee of data correctness or system stability.
2. File descriptions
The package contains 13 files as described below.
\debug\FLOPPY DLL 36,704 07-21-99 15:57
floppy disk driver (debug version)
\debug\FLOPPY MAP 38,215 06-10-99 14:35
\debug\FLOPPY PDB 167,936 06-10-99 14:35
\debug\FDLOADER EXE 43,063 08-04-99 15:40
floppy disk loader binary (debug version)
\debug\FDLOADER CPL 39,503 07-15-99 18:30
floppy disk loader control panel application (debug version)
\retail\FLOPPY DLL 11,537 07-21-99 17:10
floppy disk driver (retail version)
\retail\FDLOADER EXE 25,088 08-04-99 18:05
floppy disk loader binary (retail version)
\retail\FDLOADER CPL 24,576 07-15-99 17:52
floppy disk loader control panel application (retail version)
CONFIG BIB 1,446 06-25-99 13:30 sample config.bib file
COMMON REG 138 08-04-99 18:13 sample common.reg file
PLATFORM REG 1,229 07-19-99 18:24 sample platform.reg file
PLATFORM BIB 230 07-08-99 14:24 sample platform.bib file
README TXT this readme file
3. Assume the target platform is named VIACEPC and the Windows CE 2.11
MAXALL configuration is used for initial evaluation of the floppy
disk driver and the utility. Step-by-step installation and test
instructions are described below.
4. Enable floppy controller interrupt
In file CFWPC.C in directory \Wince211\Platform\Viacepc\Kernel\Hal
locate the following line within function OEMInit():
// IRQ6 is normally the floppy controller.
Add the following line here:
SETUP_INTERRUPT_MAP(SYSINTR_FIRMWARE+6, 6);
5. Make a WCE binary image
Type "blddemo" in the command prompt.
6. Copy files to directory \Wince211\release
For retail build, copy the following three files:
\retail\FLOPPY.DLL
\retail\FDLOADER.EXE
\retail\FDLOADER.CPL
For debug build, copy the following five files:
\debug\FLOPPY.MAP
\debug\FLOPPY.PDB
\debug\FLOPPY.DLL
\debug\FDLOADER.EXE
\debug\FDLOADER.CPL
7. Update bib files in directory \Wince211\release
(1) To include the driver into NK.bin, in the platform.bib file
add the following seven lines:
IF CEPC_FLOPPY
FLOPPY.dll $(_FLATRELEASEDIR)\FLOPPY.dll NK SH
IF CEPC_DETECT_FLOPPY
FDLOADER.EXE $(_FLATRELEASEDIR)\FDLOADER.EXE NK H
FDLOADER.CPL $(_FLATRELEASEDIR)\FDLOADER.CPL NK SH
ENDIF
ENDIF
A sample platform.bib file is included for your reference.
(2) To reserve a memory buffer for DMA transfer, in the config.bib
file add the following line:
FLOPPY 80247000 00010000 RESERVED
A sample config.bib file is included for your reference.
Physical memory addresses starting from 80247000h to 80256fffh
are reserved. The starting address used here is an example and
can be adjusted as needed. The only constraint is that the
reserved buffer must be solely used by the driver.
If the starting address is other than 80247000h or the buffer
length is other than 10000h, you need to modify the related
registry in the platform.reg file. Read further for details.
8. Update registry in directory \Wince211\release
(1) In the platform.reg file, add the following registry settings:
IF CEPC_FLOPPY
IF CEPC_BUILTIN_FLOPPY
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Floppy]
"Index"=dword:1
"Dll"="FLOPPY.DLL"
"Prefix"="DSK"
"Order"=dword:1
"Ioctl"=dword:4
"FSD"="FATFS.DLL"
ENDIF
[HKEY_LOCAL_MACHINE\Drivers\Floppy]
"Irq"=dword:06
"IoBase"=dword:03F0
"IoLen"=dword:8
"Dma"=dword:2
"DmaBaseAddr"=dword:80247000
"DmaLen"=dword:00010000
"Folder"="Floppy" ; Optional, default is "Storage Card"
;"Index"=dword:1 ; Optional, for running ddtk
"DriveType"=dword:3 ; for 1.44M disk drive
;"DriveType"=dword:0 ; for 360K disk drive
;"DriveType"=dword:1 ; for 1.2M disk drive
;"DriveType"=dword:2 ; for 720K disk drive
;"DriveType"=dword:4 ; for 2.88M disk drive
IF CEPC_DETECT_FLOPPY
; The values of the registry sub-keys below is optional,
; you can change these values via the "VIA Floppy Disk"
; Control Panel application.
"AutoLoad"=dword:1
"DetectTime"=dword:f
"FloppyOn"=dword:1
ENDIF
ENDIF
A sample platform.reg file is included for your reference.
The Floppy Disk drivers use several registry sub-keys under the
[HKEY_LOCAL_MACHINE\Drivers\Floppy] key.
"DmaBaseAddr" (default 80247000h): the starting address of the
memory buffer reserved for DMA transfer; the value should
match with that in the config.bib file.
"DmaLen" (default 00010000h): the size of the reserved buffer;
the value should match with that in the config.bib file.
"DriveType" (default 3): the drive and disk media types:
0 for 360K disk; 1 for 1.2M disk; 2 for 720K disk;
3 for 1.44M disk; 4 for 2.88M disk.
"AutoLoad" (default 1): set 1 to enable auto load mode;
0 to disable.
"DetectTime" (default fh): the period of time from 0 up
to 999999 seconds for checking floppy disk insertion
or removal.
"FloppyOn" (default 1): set 1 to load the driver; 0 to unload;
if "AutoLoad" is set as 1, ignore "FloppyOn" setting.
(2) In the common.reg file, add the following registry settings:
IF CEPC_FLOPPY
IF CEPC_DETECT_FLOPPY
[HKEY_LOCAL_MACHINE\init]
"Launch80"="fdloader.exe"
"Depend80"=hex:14,00
ENDIF
ENDIF
A sample common.reg file is included for your reference.
9. If your application needs to swap floppy disks at run time,
set the following two environment variables:
CEPC_FLOPPY=1
CEPC_DETECT_FLOPPY=1
If your application requires no disk change at run time,
set the following two environment variables:
CEPC_FLOPPY=1
CEPC_BUILTIN_FLOPPY=1
10. Execute "makeimg" and download the binary image NK.bin to
your target platform.
11. Basic testing
Execute the "cmd" program and type "dir." The "Floppy" directory
will appear if the floppy disk driver is installed successfully.
If your build includes automatic disk insertion or removal
detection, double click the "VIA Floppy Disk" Control Panel
application. Verify the check box of "Auto" is marked on (default)
and the button of "Load Floppy Disk" or "Unload Floppy Disk" is
hidden (default).
You may change the period of time in seconds for automatic
detection in the "Set Detection Period" edit box. Mark off
the "Auto" check box to enable manual control, and verify the
existence of either the "Load Floppy Disk" or the
"Unload Floppy Disk" button. The "Load Floppy Disk" button
represents the floppy disk is unmounted from the file system,
and you may press the button to mount it. The "Unload Floppy Disk"
button represents the floppy disk is mounted to the file system,
and you may press the button to unmount it. Press the context
help "?" button to get more information about this floppy disk
loader.
For WCE 2.12 or later with a task bar, you may also set floppy disk
as automatic or manual mount/unmount via the Tray Icon, near the
right bottom corner on the screen, which has a disk drive image.
Click the icon to pop up a menu, and then verify "Auto Load" is
checked (default). You may select the "Set Detection Period" menu
item to modify the detection time period. You may mark off the
"Auto Load" menu item to enable manual control.
12. Trouble Shooting
In case you encounter any problem, first connect the debug port in
your target Windows CE platform to a serial port in your PC-based
NT development platform, e.g. with communication parameters
{38400, n, 8, 1}. Make a debug build binary image and download it
to your target platform. Dump related debug messages and then
contact VIA's representatives for further technical assistance.
13. Quality assurance
The software package has been tested by the RW_ALL and the RWTEST
programs, shipped along with Windows CE 2.11. The RW_ALL test
program scans a disk, to correctly read to and write from every
sector on the disk. The RWTEST test program performs stress tests
for disk reads and writes. This release passed all the tests.
Download Driver Pack
After your driver has been downloaded, follow these simple steps to install it.
Expand the archive file (if the download file is in zip or rar format).
If the expanded file has an .exe extension, double click it and follow the installation instructions.
Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.
Find the device and model you want to update in the device list.
Double-click on it to open the Properties dialog box.
From the Properties dialog box, select the Driver tab.
Click the Update Driver button, then follow the instructions.
Very important: You must reboot your system to ensure that any driver updates have taken effect.
For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.