Re: Can't recognize Adaptec APA-1480 with 2.4.0-test1-ac4

From: Michael D. Crawford (crawford@goingware.com)
Date: Fri Jun 02 2000 - 12:19:19 EST


Garst Reese posted a patch against 2.4.0-test1-ac7 that he thought might
help with my problem with not being able to recognize my Adaptec
APA-1480 SlimSCSI cardbus host bus adapter.

I first checked that ac7 worked OK on my machine as distributed, and
that the APA-1480 was still not recognized, and it worked OK and it was
indeed still not recognized.

Then I applied Garst's patch and tried again. I hadn't installed the
full PCMCIA package, but the card was recognized but not initialized
because some module was missing (cb_enabler I think).

I then installed the pcmcia-cs-3.1.15 card services and the card gets
initialided OK:

Jun 2 10:03:44 kingofswing kernel: Linux PCMCIA Card Services 3.1.11
Jun 2 10:03:44 kingofswing kernel: options: [pci] [cardbus] [pm]
Jun 2 10:03:44 kingofswing kernel: Intel PCIC probe: not found.
Jun 2 10:03:44 kingofswing kernel: cs: cb_alloc(bus 2): vendor 0x9004,
device 0x6075
Jun 2 10:03:44 kingofswing kernel: Adding Swap: 128484k swap-space
(priority -1)
Jun 2 10:03:44 kingofswing kernel: cs: IO port probe 0x1000-0x17ff:
clean.
Jun 2 10:03:44 kingofswing kernel: cs: IO port probe 0x0100-0x04ff:
excluding 0x378-0x37f 0x4d0-0x4d7
Jun 2 10:03:44 kingofswing kernel: cs: IO port probe 0x0a00-0x0aff:
clean.
Jun 2 10:03:44 kingofswing kernel: apa1480_attach(bus 2, function 0)
Jun 2 10:03:44 kingofswing kernel: (scsi0) <Adaptec PCMCIA SCSI
controller> found at PCI 2/0/0
Jun 2 10:03:44 kingofswing kernel: (scsi0) Narrow Channel, SCSI ID=7,
3/255 SCBs
Jun 2 10:03:44 kingofswing kernel: (scsi0) Downloading sequencer
code... 422 instructions downloaded

but then when I try to mount a Zip disk I get:

mount /dev/sda1 /mnt
mount: /dev/sda1 has wrong major or minor number

That might be an entirely unrelated problem; however I was able to mount
the drive through the card on 2.2.13 (this is a Slackware 7
distribution)

ls -l /dev/sda1
brw-r----- 1 root disk 8, 1 Apr 29 1995 /dev/sda1

I'll ask about that separately on the list.

For reference, here is Garth's patch. It was originally posted by him
earlier on this thread.

Index: 0-test1-ac7.1/arch/i386/kernel/pci-i386.c
--- 0-test1-ac7.1/arch/i386/kernel/pci-i386.c Fri, 26 May 2000 13:10:01
+1000 kaos (linux-2.4/z/c/28_pci-i386.c 1.1 644)
+++ 0-test1-ac7.1(w)/arch/i386/kernel/pci-i386.c Thu, 01 Jun 2000
20:11:35 +1000 kaos (linux-2.4/z/c/28_pci-i386.c 1.1 644)
@@ -106,6 +106,7 @@
                 reg = PCI_BASE_ADDRESS_0 + 4*resource;
         } else if (resource == PCI_ROM_RESOURCE) {
                 res->flags |= PCI_ROM_ADDRESS_ENABLE;
+ new |= PCI_ROM_ADDRESS_ENABLE;
                 reg = dev->rom_base_reg;
         } else {
                 /* Somebody might have asked allocation of a non-standard resource */

Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
http://www.goingware.com
crawford@goingware.com

   Tilting at Windmills for a Better Tomorrow.

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



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:13 EST