From owner-cvs-src@FreeBSD.ORG Wed Mar 28 23:10:20 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F3F116A405; Wed, 28 Mar 2007 23:10:20 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id EF28913C468; Wed, 28 Mar 2007 23:10:19 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l2SMl4bL073722; Thu, 29 Mar 2007 00:47:05 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l2SMkqCj095475 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Mar 2007 00:46:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l2SMkqZN081387; Thu, 29 Mar 2007 00:46:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l2SMkpB2081386; Thu, 29 Mar 2007 00:46:52 +0200 (CEST) (envelope-from ticso) Date: Thu, 29 Mar 2007 00:46:51 +0200 From: Bernd Walter To: Warner Losh Message-ID: <20070328224651.GE80382@cicely12.cicely.de> References: <200703282231.l2SMVWTi069642@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200703282231.l2SMVWTi069642@repoman.freebsd.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/boot/arm/at91/libat91 sd-card.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2007 23:10:20 -0000 On Wed, Mar 28, 2007 at 10:31:32PM +0000, Warner Losh wrote: > imp 2007-03-28 22:31:32 UTC > > FreeBSD src repository > > Modified files: > sys/boot/arm/at91/libat91 sd-card.c > Log: > All SD cards have a block size of 512. The READ_BL_LEN field in the > CSD is usually 512 (well, 9), but for 2GB (and the rogue 4GB SD cards) > it is 1024 (or 2048 for 4GB). This value doesn't work for the block > read commands (which really want 512). Hardcode 512 for those. This > may break really old MMC cards that don't have a 512 block size (I've > never seen one: make my day and send me one :-), but since the MMC > side of the house is currently broken, it should only have the effect > that 2GB (and non-conforming 4GB) SD cards will work. Great! That explains why the partition table was read fine with my 2G card, but although it calculated the right block it failed to read the disklabel. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de