From owner-freebsd-arm@FreeBSD.ORG Sun Jan 18 20:42:04 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 75EC8848 for ; Sun, 18 Jan 2015 20:42:04 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B60BCC0 for ; Sun, 18 Jan 2015 20:42:03 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1YCwfV-00049a-B5; Sun, 18 Jan 2015 20:41:57 +0000 Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t0IKfrFT027427; Sun, 18 Jan 2015 13:41:55 -0700 (MST) (envelope-from ian@freebsd.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+sSxvfSm2banpYWtZVdMBK Message-ID: <1421613713.14601.333.camel@freebsd.org> Subject: Re: HS mode in RPi From: Ian Lepore To: Daisuke Aoyama Date: Sun, 18 Jan 2015 13:41:53 -0700 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.8 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2015 20:42:04 -0000 On Sun, 2015-01-18 at 17:03 +0900, Daisuke Aoyama wrote: > Hi, > > r277307 add bcm2835_sdhci_hs=1, but this is wrong. > It does not cover HS problem. The quirk and HS switching is not same. > It's only one of problems on some SD card. > I'm using bcm2835_sdhci_hispd_bit but this may not useful. > > HS mode on emmc=100MHz and core=250MHz cause SD card corruption. > To avoid clock domain crossing, you need emmc=250MHz and bcm2835_sdhci_hs=1. > But emmc=250MHz means running as 41MHz on HS mode(250MHz / 2N divider). > However, it seems Linux use emmc=250MHz by default. > > I suggest use emmc=250MHz or keep bcm2835_sdhci_hs=0 by default at this time. > > Regards, The change back to hs=1 default was made on the assumption that people are using the newer firmware files that set the emmc clock to 250. Anyone using older firmware can add this to their config.txt on the boot partition: init_emmc_clock=250000000 -- Ian