Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2014 23:43:01 -0200
From:      Luiz Otavio O Souza <lists.br@gmail.com>
To:        ticso@cicely.de
Cc:        Andreas Schwarz <Andreas.Schwarz@schwarzes.net>, George Rosamond <george@ceetonetechnology.com>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>, Tim Kientzle <tim@kientzle.com>
Subject:   Re: sd card probing (was: FreeBSD 10.0 on Raspberry PI B+ no network devices
Message-ID:  <CAB=2f8xHEeF8DtP1eCkpp3Y0rZu3w0Phi_gzMSByGJ74xaFchg@mail.gmail.com>
In-Reply-To: <20141022204454.GA12231@cicely7.cicely.de>
References:  <20140825165622.6771b548@X220.alogt.com> <A7221D06-31EC-4E00-A08C-64DB33F400FE@gromit.dlib.vt.edu> <20140825163528.d2e696cc3d03ad9bebcd239c@schwarzes.net> <20140826074951.4cf5a8fc@X220.alogt.com> <53FD1646.2010103@ceetonetechnology.com> <20140827021349.1273f703c6756d07fad72a16@schwarzes.net> <20141014032743.GK38905@cicely7.cicely.de> <20141014041305.GM38905@cicely7.cicely.de> <CAB=2f8wiBLRYBVHUw-PptzQE-QP3%2B1EmHFMMMipZWi_dUG9m8w@mail.gmail.com> <20141022204454.GA12231@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 22 October 2014 18:44, Bernd Walter  wrote:
> On Tue, Oct 14, 2014 at 12:51:50PM -0300, Luiz Otavio O Souza wrote:
>> On 14 October 2014 01:13, Bernd Walter wrote:
>> >
>> > Ok - that card problem seems random or contact related.
>> > Whatever, it is 6 am - time to sleep ;-)
>>
>> I've found a missing silicon bug workaround on our driver.
>>
>> It's pretty recent and i'm still building new images to test with more
>> cards, but it did fix all the instability i was seeing on the
>> identification of one of my cards.
>>
>> Together with the new firmware (yes, there is another SD fix there) my
>> RPi B rev 2 (with this same card) has gone from unusable to rock
>> stable (i've done 80 cold boots without any damage/corruption to the
>> card).
>>
>> Please, give it a try and let me know if it helps.
>
> Tested.
> All I can say so far is that it is random, but your patch didn't help.

Without my patch you should see the speed and the bus width changing
over the boots and with my patch it should always be the same
(41.6MHz/4bit):
> mmcsd0: 8GB <SDHC 00000 1.0 SN 62A50A6C MFG 11/2013 by 27 SM> at mmc0 41.6MHz/4bit/65535-block

> Furthermore this problem now happens on each boot try.
> It still may be possible that it can boot, but I've tried many more
> times than needed before.
>
> Timecounters tick every 10.000 msec
> usbus0: 480Mbps High Speed USB v2.0
> ugen0.1: <DWCOTG> at usbus0
> uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
> mmcsd0: 8GB <SDHC 00000 1.0 SN 62A50A6C MFG 11/2013 by 27 SM> at mmc0 41.6MHz/4bit/65535-block
> mmcsd0: Error indicated: 1 Timeout
> mmcsd0: Error indicated: 1 Timeout
> fb0: 656x416(0x0@0,0) 16bpp
> fb0: pitch 1312, base 0x5e006000, screen_size 545792
> fbd0 on fb0
> VT: initialize with new VT driver "fb".

Ok.  Can you try add the following to /boot/loader.conf ?

echo hw.bcm2835.sdhci.hs=0 >> /boot/loader.conf

RPi _is_ picky about the SD card, the patch won't make that go away
but should help in a few cases.

There is a possibility that your card won't work in HS mode and now
that the card identification always works, it will always go with the
highest supported speed. The tunable should help if that is the case.

Luiz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB=2f8xHEeF8DtP1eCkpp3Y0rZu3w0Phi_gzMSByGJ74xaFchg>