home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / riscbsd / sources / patches / netbsd / atapi_i386 / atapi_i386~ / README < prev   
Encoding:
Text File  |  1996-06-06  |  2.9 KB  |  60 lines

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