Re: your mail

Mike (mike@oakley.keble.ox.ac.uk)
Thu, 31 Dec 1998 17:14:42 +0000 (GMT)


On Tue, 29 Dec 1998, Gadi Oxman wrote:

> Mike,
>
> The following patch should fix this.
>
> Gadi
>
> --- linux/drivers/block/ide.c~ Wed Sep 16 23:25:56 1998
> +++ linux/drivers/block/ide.c Sun Sep 27 21:32:29 1998
> @@ -2334,6 +2334,10 @@
> unit = unit % MAX_DRIVES;
> hwif = &ide_hwifs[hw];
> drive = &hwif->drives[unit];
> + if (strncmp(s + 4, "ide-", 4) == 0) {
> + strncpy(drive->driver_req, s + 4, 9);
> + goto done;
> + }
> switch (match_parm(&s[3], hd_words, vals, 3)) {
> case -1: /* "none" */
> drive->nobios = 1; /* drop into "noprobe" */

This helps sort of. The CD-ReWriter is now detected 8 times, as sr[0-7].
Mounting any, or all, of these works and reading them works fine.
Writing does not produce any errors, but doesn't work either.

> Subject: ide-scsi in 2.1.132
> Date: Sun, 27 Dec 1998 15:21:46 +0000 (GMT)
> From: Mike <mike@oakley.keble.ox.ac.uk>
> Reply-To: Mike Ricketts <rickettm@ox.compsoc.net>
> To: Gadi Oxman <gadio@netvision.net.il>
> CC: linux-kernel@vger.rutgers.edu
>
> I can't seem to get ide-scsi to work at all in 2.1.132. It works fine in
> 2.0.36.
> I have an IDE CD-ReWriter on hdc and a (dodgy) IDE CDROM on hdd. Under
> 2.0.36, with hdc=ide-scsi at the lilo prompt, the rewriter works as a SCSI
> device and the CDROM as an IDE device. This is what I want.
> Under 2.1.132, with hdc=ide-scsi, both drives work fine as IDE CDROMs, but
> the rewriter does not appear as a SCSI device and so I can't write CDs.
>
> Any help would be appreciated.
>
> The relevant bits of the boot messages:
>
> >From 2.1.132:
>
> Dec 27 11:47:51 shub kernel: Linux version 2.1.132 (god@shub.niggurath)
> (gcc version 2.7.2.3) #3 SMP Sat Dec 26 19:56:09 GMT 1998
> <snip>
> Dec 27 11:47:51 shub kernel: ide_setup: hdc=ide-scsi -- BAD OPTION
> <snip>
> Dec 27 11:47:51 shub kernel: PIIX4: IDE controller on PCI bus 00 dev 39
> Dec 27 11:47:51 shub kernel: PIIX4: not 100ative mode: will probe irqs
> later
> Dec 27 11:47:51 shub kernel: ide0: BM-DMA at 0xf000-0xf007, BIOS
> settings: hda:pio, hdb:pio
> Dec 27 11:47:51 shub kernel: ide1: BM-DMA at 0xf008-0xf00f, BIOS
> settings: hdc:pio, hdd:pio
> Dec 27 11:47:51 shub kernel: hda: QUANTUM BIGFOOT_CY4320A, ATA DISK drive
> Dec 27 11:47:51 shub kernel: hdc: PHILIPS CDD3610 CD-R/RW, ATAPI CDROM
> drive
> Dec 27 11:47:51 shub kernel: hdd: WEARNES CDD-1020, ATAPI CDROM drive
> Dec 27 11:47:51 shub kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> Dec 27 11:47:51 shub kernel: ide1 at 0x170-0x177,0x376 on irq 15
> Dec 27 11:47:51 shub kernel: hda: QUANTUM BIGFOOT_CY4320A, 4134MB w/67kB
> Cache,
> CHS=527/255/63
> Dec 27 11:47:51 shub kernel: hdc: ATAPI 6X CDROM CD-R/RW drive, 768kB
> Cache
> Dec 27 11:47:51 shub kernel: Uniform CDROM driver Revision: 2.50
> Dec 27 11:47:51 shub kernel: hdd: ATAPI 10X CDROM drive, 256kB Cache
> Dec 27 11:47:51 shub kernel: scsi0 : SCSI host adapter emulation for IDE
> ATAPI devices
> Dec 27 11:47:51 shub kernel: scsi : 1 host.
> Dec 27 11:47:51 shub kernel: scsi : detected total.
>
> >From 2.0.36:
>
> Dec 26 16:40:40 shub kernel: Linux version 2.0.36 (god@shub.niggurath)
> (gcc version 2.7.2.3) #4 Sat Dec 26 14:42:53 GMT 1998
> <snip>
> Dec 26 16:40:40 shub kernel: hda: QUANTUM BIGFOOT_CY4320A, 4134MB w/67kB
> Cache,
> CHS=527/255/63
> Dec 26 16:40:40 shub kernel: hdc: PHILIPS CDD3610 CD-R/RW, ATAPI drive -
> enabling SCSI emulation
> Dec 26 16:40:40 shub kernel: ATAPI overlap supported: No
> Dec 26 16:40:40 shub kernel: hdd: WEARNES CDD-1020, ATAPI CDROM drive
> Dec 26 16:40:40 shub kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> Dec 26 16:40:40 shub kernel: ide1 at 0x170-0x177,0x376 on irq 15
> Dec 26 16:40:40 shub kernel: scsi0 : SCSI host adapter emulation for IDE
> ATAPI devices
> Dec 26 16:40:40 shub kernel: scsi : 1 host.
> Dec 26 16:40:40 shub kernel: Vendor: PHILIPS Model: CDD3610 CD-R/RW
> Rev: 3.01
> Dec 26 16:40:40 shub kernel: Type: CD-ROM
> ANSI SCSI revision: 02
> Dec 26 16:40:40 shub kernel: scsi : detected total.
>
> TIA
>
> --
> Mike <rickettm@ox.compsoc.net>
>
> Sight is a faculty; seeing is an art.
>
>
>
>

-- 
Mike <rickettm@ox.compsoc.net>

Let me take you a button-hole lower. -- William Shakespeare, "Love's Labour's Lost"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/