Re: More ATAPI/IDE fun. (zip drive this time)

Mark Lord (mlord@pobox.com)
Wed, 20 Jan 1999 19:43:50 -0500


Andre:

This problem is due to a broken "strstr()" function in pre8,
NOT an IDE driver problem per se.

I have already noticed it and emailed Linus separately about the
problem.

Cheers,

-ml

CaT wrote:
>
> Just booted into pre8 (from the v2.1 dir) and found new errors regarding
> my IDE stuff.
>
> The related boot messages are:
>
> Jan 20 11:12:38 kinder kernel: PIIX4: IDE controller on PCI bus 00 dev 39
> Jan 20 11:12:38 kinder kernel: PIIX4: not 100ative mode: will probe irqs later
> Jan 20 11:12:38 kinder kernel: ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
> Jan 20 11:12:38 kinder kernel: ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
> Jan 20 11:12:38 kinder kernel: hda: ST36531A, ATA DISK drive
> Jan 20 11:12:38 kinder kernel: hdb: CREATIVEDVD-ROM DVD2240E 09/27/97, ATAPI CDROM drive
> Jan 20 11:12:38 kinder kernel: hdc: IOMEGA ZIP 100 ATAPI, ATAPI CDROM drive
> Jan 20 11:12:38 kinder kernel: hdd: CD-ROM 32X/AKU, ATAPI CDROM drive
> Jan 20 11:12:38 kinder kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> Jan 20 11:12:38 kinder kernel: ide1 at 0x170-0x177,0x376 on irq 15
> Jan 20 11:12:38 kinder kernel: hda: ST36531A, 6204MB w/128kB Cache, CHS=790/255/63, UDMA
> Jan 20 11:12:38 kinder kernel: hdb: ATAPI 24X CDROM drive, 256kB Cache
> Jan 20 11:12:38 kinder kernel: Uniform CDROM driver Revision: 2.52
> Jan 20 11:12:38 kinder kernel: hdc: packet command error: status=0x51 { DriveReady SeekComplete
> Error }
> Jan 20 11:12:38 kinder kernel: hdc: packet command error: error=0x50
> Jan 20 11:12:38 kinder kernel: ATAPI device hdc:
> Jan 20 11:12:38 kinder kernel: Error: Illegal request -- (Sense key=0x05)
> Jan 20 11:12:38 kinder kernel: Invalid field in command packet -- (asc=0x24, ascq=0x00)
> Jan 20 11:12:38 kinder kernel: The failed "Mode Sense" packet command was:
> Jan 20 11:12:38 kinder kernel: "5a 00 2a 00 00 00 00 00 18 00 00 00 "
> Jan 20 11:12:38 kinder kernel: hdd: ATAPI 32X CDROM drive, 128kB Cache
> Jan 20 11:12:38 kinder kernel: Floppy drive(s): fd0 is 1.44M
> Jan 20 11:12:38 kinder kernel: FDC 0 is a post-1991 82077
> Jan 20 11:12:38 kinder kernel: PPP: version 2.3.3 (demand dialling)
> Jan 20 11:12:38 kinder kernel: TCP compression code copyright 1989 Regents of the University of
> California
> Jan 20 11:12:38 kinder kernel: PPP line discipline registered.
> Jan 20 11:12:38 kinder kernel: Partition check:
> Jan 20 11:12:38 kinder kernel: hda:hda: set_multmode: status=0x51 { DriveReady SeekComplete Error }
> Jan 20 11:12:38 kinder kernel: hda: set_multmode: error=0x04 { DriveStatusError }
> Jan 20 11:12:38 kinder kernel: hda1 hda2 < hda5 > hda3 hda4
>
> Now.... hdc is my zip drive. I never got the above error with any kernel.
> The mysterious hda errors are still there. They only came in when I
> started using 2.2.0pre4 and up. never used 2.2.0pre1-3 or 132. 131ac13
> didn't have em.
>
> Furthermore:
>
> 1001.root@kinder:/root>> mount /mars/zip
> mount: /dev/hdc4 has wrong major or minor number
>
> But:
>
> 0 brw-rw---- 1 root disk 22, 0 May 6 1998 /dev/hdc
> 0 brw-rw---- 1 root disk 22, 1 May 6 1998 /dev/hdc1
> 0 brw-rw---- 1 root disk 22, 2 May 6 1998 /dev/hdc2
> 0 brw-rw---- 1 root disk 22, 3 May 6 1998 /dev/hdc3
> 0 brw-rw---- 1 root disk 22, 4 May 6 1998 /dev/hdc4
>
> Which looks fine.
>
> When I tried to run fdisk on it I got the following:
>
> 1011.root@kinder:/root>> fdisk /dev/hdc
> hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
> hdc: packet command error: error=0x50
> ATAPI device hdc:
> Error: Illegal request -- (Sense key=0x05)
> Invalid command operation code -- (asc=0x20, ascq=0x00)
> The failed "<NULL>" packet command was:
> "43 02 00 00 00 00 00 00 0c 00 00 00 "
> You will not be able to write the partition table.
> hdc: cdrom_read_intr: data underrun (1 blocks)
> end_request: I/O error, dev 16:00 (hdc), sector 1
>
> Unable to read /dev/hdc
>
> Ummm... cdrom? I get the feeling it things my zip drive might be
> a cdrom drive.
>
> On the up side I've not been able to reproduce the previously mentioned
> problem with my DVD drive. :)
>
> System is:
>
> Linux kinder 2.2.0-pre8 #12 Tue Jan 19 17:21:18 EST 1999 i686 unknown
>
> compiled with egcs 1.1.1 with -mcpu=pentiumpro -march=pentiumpro added
>
> Hope this helps. If you need more info then holler. :)
>
> --
> CaT (cat@zip.net.au) URL: http://www.zip.com.au/dev/null
>
> There was farting in the air that night,
> It lit so bright,
> Fernando...
>
> -
> 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/

-- 
mlord@pobox.com

- 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/