From owner-freebsd-current Wed Mar 3 22:47: 7 1999 Delivered-To: freebsd-current@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id F103414D20 for ; Wed, 3 Mar 1999 22:47:05 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id AAA83347; Thu, 4 Mar 1999 00:44:51 -0600 (CST) Date: Thu, 4 Mar 1999 00:44:51 -0600 From: Dan Nelson To: =?unknown-8bit?Q?S=F8ren_Schmidt?= Cc: Tugrul , current@FreeBSD.ORG Subject: Re: New ata driver failure on a ISA machine. Message-ID: <19990304004451.A82372@dan.emsphone.com> References: <199903032055.VAA87674@freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.3i In-Reply-To: =?unknown-8bit?Q?=3C199903032055=2EVAA87674=40freebsd=2Edk=3E=3B_from_?= =?unknown-8bit?Q?=22S=F8ren_Schmidt=22_on_Wed_Mar__3_21:55:21_GMT_1999?= X-OS: FreeBSD 3.1-STABLE Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Mar 03), Søren Schmidt said: > It seems Tugrul wrote: > > Second, at boot: > > > > [...] > > ata0 at 0x1f0-0x1f7 irq 14 on isa > > [...] > > ad0: ATA-? disk at ata0 as master > > ad0: 0MB (0 sectors), 723 cyls, 13 heads, 51 S/T, 512 B/S > > ad0: 16 secs/int, 0 depth queue > > changing root device to ad0a > > error 22: panic cannot mount root (2) > > That is allready fixed also. > > Wait until I commit the first update in an hour or so, then it > should work... Ok; now I have a similar failure case for you (using your updated code): Compaq LTE Elite laptop. Working wd0 probe strings: wdc0: unit 0 (wd0): , multi-block-4, sleep-hack wd0: 328MB (672525 sectors), 915 cyls, 15 heads, 49 S/T, 512 B/S ad0 probe output: ad0: ATA-? disk at ata0 as master ad0: 549280MB (1124925450 sectors), 915 cyls, 15 heads, 49 S/T, 512 B/S ad0: 16 secs/int, 0 depth queue ... Considering FFS root fs. changing root device to ad0s1a ad0: invalid primary partition table: no magic changing root device to ad0a ad0: invalid primary partition table: no magic error 22: panic: cannot mount root (2) What I find fascinating is the LBAsize for the total # of sectors reported by the new driver code. 1124925450 is 0x430D000A. The correct amount, 672525, is 0x000A430D. Sounds like a word-swapping problem somewhere. Maybe LBAsize should only be used if necessary? -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message