Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2005 22:25:40 +0200
From:      =?ISO-8859-1?Q?S=F8ren_Schmidt?= <sos@DeepCore.dk>
To:        Stefan Bethke <stb@lassitu.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Boot off CF card hangs at "Trying to mount root"
Message-ID:  <2E95AA3B-2CF7-4EFB-9EAC-45683D1F8D7D@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> <F386A392-B3E9-43E1-BEEF-7B8467AB2E3F@lassitu.de> <3923443F-6926-4BB7-8681-40FC68A41B79@lassitu.de> <0046E5C3-22EE-4F5D-B2B0-DFF4F0157F6B@lassitu.de> <DF6401A2-4BBA-4B7E-92A9-D18DFD705E39@DeepCore.dk> <9105C2F5-0D77-4B43-AFFA-7558BBEDA26A@lassitu.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--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! :)

> <atadebug1.txt>
>
> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2E95AA3B-2CF7-4EFB-9EAC-45683D1F8D7D>