From owner-freebsd-current@FreeBSD.ORG Mon Aug 29 18:33:15 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D43916A41F for ; Mon, 29 Aug 2005 18:33:15 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82BD243D48 for ; Mon, 29 Aug 2005 18:33:14 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.136] (mac.deepcore.dk [194.192.25.136]) by spider.deepcore.dk (8.13.3/8.13.3) with ESMTP id j7TITKkt013002; Mon, 29 Aug 2005 20:29:21 +0200 (CEST) (envelope-from sos@DeepCore.dk) In-Reply-To: <0046E5C3-22EE-4F5D-B2B0-DFF4F0157F6B@lassitu.de> References: <7A0B19EC-2F90-495F-B242-7FB701C32908@lassitu.de> <20050828124321.43365136@Magellan.Leidinger.net> <3923443F-6926-4BB7-8681-40FC68A41B79@lassitu.de> <0046E5C3-22EE-4F5D-B2B0-DFF4F0157F6B@lassitu.de> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= Date: Mon, 29 Aug 2005 20:33:02 +0200 To: Stefan Bethke X-Mailer: Apple Mail (2.734) X-mail-scanned: by DeepCore Virus & Spam killer v1.12 Cc: freebsd-current@freebsd.org Subject: Re: Boot off CF card hangs at "Trying to mount root" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 18:33:15 -0000 On 29/08/2005, at 19:28, Stefan Bethke wrote: > Am 28.08.2005 um 18:46 schrieb Stefan Bethke: > > >> Compiling boot, loader, and kernel without a CPUTYPE setting fixed =20= >> the boot and loader issues; however, the kernel doesn't seem to be =20= >> happy with the CF card: >> >> ad3: 489MB at ata1-slave PIO4 >> Trying to mount root from ufs:/dev/ad3s1a >> >> Again, I can break into the debugger, but I'm not certain what I =20 >> should be looking at. >> > > OK brought home a couple of useful things; I can now run both the =20 > HD and the CF card at the same time, and I have a serial console. > > Booting into 5-stable from the HD let's me access the CF card just =20 > fine. I've attached a verbose boot from both 5-stable and 6-beta3. > > The most striking difference (to me) is that 5-stable thinks DMA66 =20 > is fine (and my tests show that at least reading is not a problem =20 > at all), while 6-beta wants to do PIO4, but seemingly gets stuck. Uhm, both use PIO4 as far as I can tell.. > Time to add debugging to ata? Enable debugging in ata-all.h and set ATA_R_DEBUG in request->flags =20 early in ata_queue_request() and see how far it gets. I'd suspect subtle timing in the lowest levels though.... - S=F8ren