home *** CD-ROM | disk | FTP | other *** search
- I have a working driver for ATAPI cdroms for beta-tests. There is no audio
- support yet, but I can mount and read a cdrom. I've only tested it on
- my p100 machine which has a IDE drive and ATAPI cdrom on its IDE bus.
- The IDE drive supports my root, swap and /usr partitions. I also have
- a NCR SCSI controller. The first IDE controller is an PCI one, and
- support the IDE drive. The second is an ISA and support the cdrom.
- I think the cdrom drive is a NEC but I'm not sure.
- Note that, although my motherboard offers 2 IDE busses, i had to disable
- the second in the BIOS and add an ISA IDE controller for the cdrom,
- because the second built-in IDE controller of my motherboard seems to
- send buggy interrupts.
-
-
- This needed an important rework of the wd/wdc drivers. The file wd.c
- has been splitted into wd.c for "hight level" IDE drive operations
- (probe/attach, read/write/strategy routines ...), and wdc.c
- which manages the IDE and ATAPI commands. This has been done to be able
- to set up a per-controller queue of operations. The ATAPI part is
- copied from SCSI, there is a "atapibus" which is used by the ATAPI-devices
- drivers to send generic commands. So it should be easy to have ATAPI support
- on others types of controllers, although i don't know whether these exist.
-
- Things which don't work yet:
- - audio commands for ATAPI cdrom drives.
- - ATAPI in DMA mode
-
- Things which should work, but have not yet been tested:
- - IDE in DMA mode
-
- The patch file is available from
- ftp://ftp.ensta.fr/pub/NetBSD/atapi ('official site') and
- ftp://lix.polytechnique.fr/pub/manu/atapi.tar.gz (wich has a better internet
- link), It contains diffs against 1.1 and current sources. Don't forget to
- create the directory sys/atapi before applying the diffs.
- To install:
- - BACKUP YOUR IDE DRIVE(S). I didn't have any problems, but who knows ...
- - recompile your kernel with the two lines:
- atapibus* at wdc?
- acd* at atapibus? drive?
- Just after the wdc/wd declaration in your kernel config file. (the patch file
- adds theses to the GENERIC file).
- - Create the devices in /dev, with major 17 (18 for -current) for block device
- and 21 for characters. The minors are as for other disk devices.
-
- After reboot you should be able to mount your cdrom. If the mount fails
- with a 'unit attention' message in the console, retry the mount.
-
- For now i plan to add the following, in priority order:
- - audio commands.
-
- If someone makes any changes to this (audio support, or bug
- fixes) please send me a patch (e-mail: bouyer@ensta.fr). I'll update the
- files on the ftp server with contributed patches and my own changes.
-
- Each update is constituted by a file patch[number] in
- ftp://lix.polytechnique.fr/pub/manu or ftp://ftp.ensta.fr/pub/NetBSD/atapi
- so if you have the driver already installed, you can update it without
- problems. The file atapi.tar.gz contain the latest version (both for 1.1
- and current), you can ignore the files patch* if you get this.
-