Subject: Re: accessing IDE hard drive via pcmcia card
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 05/17/2004 17:10:36
In message <20040517210116.GA6013@antioche.eu.org>, Manuel Bouyer writes:
>On Mon, May 17, 2004 at 11:24:55AM -0400, Steve Bellovin wrote:
>> [...]
>> I can remove and reinsert the card:
>> 
>> atabus2 detached
>> wdc2 detached
>> wdc2 at pcmcia0 function 0
>> atabus2 at wdc2 channel 0
>
>Can you try a recent current kernel ?
>I debugged a similar problem with a PCMCIA cdrom last week-end ...
>
>If this doesn't help, you can try breaking into ddb before inserting
>the adapter and typing
>write wdcdebug_mask 0x10
>c
>
>Then the kernel should print message, which hopefully will help finding
>why the kernel thinks there's no drive here.
>

Per my followup posting, the kernel is saying

wdc2:0: before reset, st0=0x80, st1=0x80
atabusattach: ch_drive_flags 0x0 0x0

This is with a kernel from yesterday's 2.0-branch source.  If it will 
help, I can build a -current kernel for that machine, but that will 
take until tomorrow, given how slow my -current machine is.

		--Steve Bellovin, http://www.research.att.com/~smb