[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dac960 devices on boot-floppies



On Sat Dec 04, 1999 at 09:23:29AM +1300, Mark van Walraven wrote:
> On Thu, Dec 02, 1999 at 08:16:51AM -0700, Erik Andersen wrote:
> > 
> > I put /proc/sys/dev/cdrom/info into the kernel for exactly this type of
> 
> Neat.  Will this be present in the Potato install kernel?

yup. I used to maintain the kernel CDROM drivers for a couple of years,
so this is not a Debian special hack. I put this into the kernel about
2.1.7x, and it has been there ever since. It is a normal and expected
part of the Uniform CDROM driver (which I made all the low-level cdrom
drivers go through for access to the VFS).

> > You can also check /proc/ide/hd?/media and if it says "cdrom", you
> > it is an ATAPI cdrom.
> 
> Even better.  However, I don't see /proc/ide on any of my systems ...

Hmm.  What do you see for the following commands:

    [andersen@slag andersen]$ uname -a
    Linux slag 2.2.13 #10 Fri Nov 19 10:25:42 MST 1999 i686 unknown
    [andersen@slag andersen]$ cat /proc/devices | grep ide
      3 ide0
     22 ide1
    [andersen@slag andersen]$ cat /proc/ide/hdc/media
    disk

I suspect you are either not using a nice new 2.2.x kernel, or
you have a SCSI only system.

> > it is an ATAPI cdrom. You can check /proc/scsi/scsi and if a device
> > claims it is "Type: CD-ROM" then it is. For a dac960, you can read
> 
> Ah, wonderful!  Presumably anything "Type: Direct-Access" is safe as
> an install target - can anyone with a SCSI tape or CD writer confirm?

[root@dillweed andersen]# modprobe ide-scsi sr_mod
[root@dillweed andersen]# dmesg | tail -n4
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.
  Vendor: PHILIPS   Model: CDD3610 CD-R/RW   Rev: 3.01
  Type:   CD-ROM                             ANSI SCSI revision: 02

I don't have a tape handy, but at least for CD-R/RW you are safe
with that assumption...

> > claims it is "Type: CD-ROM" then it is. For a dac960, you can read
> > /proc/rd/c0/current_status, and it'll tell you lots of interesting
> 
> Unfortunately I don't have a dac960, and no longer have access to a
> smart2-equipped system.  Would some kind person please email some live
> samples?

I have access to some dac960s at the ISP I used to run.  I don't
have any CDROM drives (just disks), but this is what you see:

    [andersen@www andersen]$ df
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hda3             5.7G  962M  4.4G  18% /
    /dev/hda1              61M  3.5M   54M   6% /boot
    /dev/rd/c0d0p1         17G  4.6G   11G  29% /home
    [andersen@www andersen]$ ls /proc/rd/
    c0/  status
    [andersen@www andersen]$ cat /proc/rd/status
    OK
    [andersen@www andersen]$ ls /proc/rd/c0/
    current_status  initial_status  user_command
    [andersen@www andersen]$ cat /proc/rd/c0/current_status
    ***** DAC960 RAID Driver Version 2.2.4 of 23 August 1999 *****
    Copyright 1998-1999 by Leonard N. Zubkoff <lnz@dandelion.com>
    Configuring Mylex DAC960PG PCI RAID Controller
      Firmware Version: 4.06-0-08, Channels: 1, Memory Size: 4MB
      PCI Bus: 0, Device: 16, Function: 1, I/O Address: Unassigned
      PCI Address: 0xFA8FE000 mapped at 0xD0800000, IRQ Channel: 10
      Controller Queue Depth: 64, Maximum Blocks per Command: 128
      Driver Queue Depth: 63, Maximum Scatter/Gather Segments: 33
      Stripe Size: 64KB, Segment Size: 8KB, BIOS Geometry: 128/32
      Physical Devices:
	0:0  Vendor: IBM       Model: DDRS-39130W       Revision: S97B
	     Serial Number: QEJQ1513
	     Disk Status: Online, 17848320 blocks
	0:1  Vendor: IBM       Model: DDRS-39130W       Revision: S97B
	     Serial Number: REFK6894
	     Disk Status: Online, 17848320 blocks
	0:2  Vendor: IBM       Model: DDRS-39130W       Revision: S97B
	     Serial Number: REFM7918
	     Disk Status: Online, 17848320 blocks
      Logical Drives:
	/dev/rd/c0d0: RAID-5, Online, 35696640 blocks, Write Thru
      No Rebuild or Consistency Check in Progress

    [andersen@www andersen]$ cat /proc/rd/c0/initial_status
    ***** DAC960 RAID Driver Version 2.2.4 of 23 August 1999 *****
    Copyright 1998-1999 by Leonard N. Zubkoff <lnz@dandelion.com>
    Configuring Mylex DAC960PG PCI RAID Controller
      Firmware Version: 4.06-0-08, Channels: 1, Memory Size: 4MB
      PCI Bus: 0, Device: 16, Function: 1, I/O Address: Unassigned
      PCI Address: 0xFA8FE000 mapped at 0xD0800000, IRQ Channel: 10
      Controller Queue Depth: 64, Maximum Blocks per Command: 128
      Driver Queue Depth: 63, Maximum Scatter/Gather Segments: 33
      Stripe Size: 64KB, Segment Size: 8KB, BIOS Geometry: 128/32
      Physical Devices:
	0:0  Vendor: IBM       Model: DDRS-39130W       Revision: S97B
	     Serial Number: QEJQ1513
	     Disk Status: Online, 17848320 blocks
	0:1  Vendor: IBM       Model: DDRS-39130W       Revision: S97B
	     Serial Number: REFK6894
	     Disk Status: Online, 17848320 blocks
	0:2  Vendor: IBM       Model: DDRS-39130W       Revision: S97B
	     Serial Number: REFM7918
	     Disk Status: Online, 17848320 blocks
      Logical Drives:
	/dev/rd/c0d0: RAID-5, Online, 35696640 blocks, Write Thru
 
 -Erik

--
Erik B. Andersen   Web:    http://www.xmission.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--


Reply to: