From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] OpenRD Ultimate SATA & SD
Date: Sat, 18 Jun 2011 07:52:55 +0200 [thread overview]
Message-ID: <4DFC3D37.6020507@aribaud.net> (raw)
In-Reply-To: <BANLkTikTFwMa1y8YH0qpjvZ=HCFMr47eaA@mail.gmail.com>
Hi,
Le 17/06/2011 10:29, Alexei Ozhigov a ?crit :
> 2011/6/17 Prafulla Wadaskar<prafulla@marvell.com>:
>>
>>
>>> -----Original Message-----
>>> From: Philip Hands [mailto:phil at hands.com]
>>> Sent: Friday, June 17, 2011 1:33 AM
>>> To: Alexei Ozhigov
>>> Cc: Prafulla Wadaskar; u-boot at lists.denx.de; Prabhanjan Sarnaik; Ashish
>>> Karkare
>>> Subject: Re: [U-Boot] OpenRD Ultimate SATA& SD
>>>
>>> On Thu, 16 Jun 2011 16:18:46 +0400, Alexei Ozhigov
>>> <alexei.ozhigov@gmail.com> wrote:
>>> ...
>>>>
>>>> I am experiencing the same problem with SATA right now with
>>>> v2011.06-rc2 (tried also the latest master). If MVSATA_STATUS_TIMEOUT
>>>> in mvsata_ide_initialize_port is ignored, SATA drive is found on the
>>>> second port and I am able to read the drive's content.
>>>
>>> Inspired by what you say about timeouts, I thought perhaps increasing
>>> the timeout from 10ms to 1s might make a difference -- that worked!
>>>
>>> ... except that now, it's working regardless :-(
>>>
>>> So, I've no idea if that's really related to what's going on, because
>>> I've now gone as far as reducing the timeout to 5ms and it's _still_
>>> working fine, so perhaps some part of the SATA subsystem was in a state
>>> that was somehow reset by waiting a bit longer for the startup once, and
>>> that's somehow "fixed" it.
>>>
>>> It is still working despite powering down the machine for a while, so
>>> I'm guessing whatever changed is something to do with the state of the
>>> hard drive.
>>>
>>> Sadly that means that I've now lost the ability to test this, since
>>> trying any of the versions that were previously failing now work.
>>>
>>> Anyway, Alexei, try increasing the timeout (i.e. the value being
>>> assigned to timeleft) --- if that works for you too, it seems pretty
>>> harmless, so might be appropriate for wider adoption.
>
> I have already tried longer timeouts for timeleft and it does not help.
>
> Also with timeout circumvention the SATA flash card I was hoping to
> boot from (Transcend TS1GSDOM22V) is identified as follows:
>
> Bus 0: OK Bus 1: OK
> Device 0: Model: TRANSCEND Firm: 20080128 Ser#: 20080407 00000005
> Type: Hard Disk
> Capacity: 955.8 MB = 0.9 GB (1957536 x 512)
> IDE read: device 0 not ready
> IDE read: device 0 not ready
> Device 1: Model: Firm: Ser#:
> Type: Hard Disk
> Capacity: not available
>
> And then the card cannot be read. First attempt shows "OK" although
> the data written to memory are wrong, next attempts result in "device
> 0 not ready". On the other hand, Linux (Debian ARM port) does not
> recognize the card either. So if this problem is not related to
> improper initialization, the question is how SATA flash differs from
> regular SATA drives with respect to SATA controller in 88F6281 and if
> it is actually possible to work with SATA flash on OpenRD.
Can you #define DEBUG at the start of common/cmd_ide.c and rerun the test?
Amicalement,
--
Albert.
next prev parent reply other threads:[~2011-06-18 5:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 9:54 [U-Boot] OpenRD Ultimate SATA & SD Philip Hands
2011-06-16 5:10 ` Prafulla Wadaskar
2011-06-16 10:19 ` Philip Hands
2011-06-16 12:18 ` Alexei Ozhigov
2011-06-16 20:03 ` Philip Hands
2011-06-17 7:47 ` Prafulla Wadaskar
2011-06-17 8:29 ` Alexei Ozhigov
2011-06-18 5:52 ` Albert ARIBAUD [this message]
2011-06-20 9:30 ` Alexei Ozhigov
2011-07-02 6:26 ` Albert ARIBAUD
2011-08-10 13:18 ` Philip Hands
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DFC3D37.6020507@aribaud.net \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.