From owner-freebsd-current@FreeBSD.ORG Mon Aug 29 20:26:02 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 DEB5F16A41F for ; Mon, 29 Aug 2005 20:26:02 +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 2F4CC43D4C for ; Mon, 29 Aug 2005 20:26:02 +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 j7TKM7xf014272; Mon, 29 Aug 2005 22:22:07 +0200 (CEST) (envelope-from sos@DeepCore.dk) In-Reply-To: <9105C2F5-0D77-4B43-AFFA-7558BBEDA26A@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> <9105C2F5-0D77-4B43-AFFA-7558BBEDA26A@lassitu.de> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: multipart/mixed; boundary=Apple-Mail-3-1011052415 Message-Id: <2E95AA3B-2CF7-4EFB-9EAC-45683D1F8D7D@DeepCore.dk> From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= Date: Mon, 29 Aug 2005 22:25:40 +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 20:26:03 -0000 --Apple-Mail-3-1011052415 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 29/08/2005, at 21:13, Stefan Bethke wrote: > Thanks for looking into this! NP! :) > > > After the final "ad2: req=0xc17fc000 READ completed callback/ > wakeup", nothing else happens. Hmm, the timeout in there is worrying me, please try the below hack and se if that makes it get through. Might be that the device doesn't like 64K (ie size 0) transfers... --Apple-Mail-3-1011052415 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="diff" Content-Disposition: attachment; filename=diff Index: ata-disk.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/ata-disk.c,v retrieving revision 1.190 diff -u -r1.190 ata-disk.c --- ata-disk.c 17 Aug 2005 15:00:33 -0000 1.190 +++ ata-disk.c 29 Aug 2005 20:20:34 -0000 @@ -142,10 +142,14 @@ adp->disk->d_dump = ad_dump; adp->disk->d_name = "ad"; adp->disk->d_drv1 = dev; +#if 0 if (ch->dma) adp->disk->d_maxsize = ch->dma->max_iosize; else adp->disk->d_maxsize = DFLTPHYS; +#else + adp->disk->d_maxsize = 32*1024; +#endif adp->disk->d_sectorsize = DEV_BSIZE; adp->disk->d_mediasize = DEV_BSIZE * (off_t)adp->total_secs; adp->disk->d_fwsectors = adp->sectors; --Apple-Mail-3-1011052415 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed - S=F8ren --Apple-Mail-3-1011052415--