All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Using sata on mx6qsabrelite
@ 2012-04-25 18:40 Fabio Estevam
  2012-04-25 19:10 ` Eric Nelson
  0 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2012-04-25 18:40 UTC (permalink / raw)
  To: u-boot

Hi,

On Stefano?s tree I see this sata patch for mx5/mx6:
http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commit;h=6931bd30d03de827c52bf2c8ddc6ed0c8f21dc9d

Has anyone tried sata support on mx6qsabrelite yet?

Any patches missing that were not applied?

I don't have a way to test it at the moment, but I have a colleague
that wants to use sata on mx6qsabrelite.

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Using sata on mx6qsabrelite
  2012-04-25 18:40 [U-Boot] Using sata on mx6qsabrelite Fabio Estevam
@ 2012-04-25 19:10 ` Eric Nelson
  2012-04-25 22:11   ` Eric Nelson
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Nelson @ 2012-04-25 19:10 UTC (permalink / raw)
  To: u-boot

On 04/25/2012 11:40 AM, Fabio Estevam wrote:
> Hi,
>
> On Stefano?s tree I see this sata patch for mx5/mx6:
> http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commit;h=6931bd30d03de827c52bf2c8ddc6ed0c8f21dc9d
>
> Has anyone tried sata support on mx6qsabrelite yet?
>
> Any patches missing that were not applied?
>
> I don't have a way to test it at the moment, but I have a colleague
> that wants to use sata on mx6qsabrelite.
>

Hi Fabio,

I've tried it and it just worked for me, but it's been a month or so.

I'll dig out my SATA drive and test again this afternoon.

Regards,


Eric

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Using sata on mx6qsabrelite
  2012-04-25 19:10 ` Eric Nelson
@ 2012-04-25 22:11   ` Eric Nelson
  2012-04-25 23:55     ` Eric Nelson
  2012-04-29 15:08     ` Stefano Babic
  0 siblings, 2 replies; 8+ messages in thread
From: Eric Nelson @ 2012-04-25 22:11 UTC (permalink / raw)
  To: u-boot

On 04/25/2012 12:10 PM, Eric Nelson wrote:
> On 04/25/2012 11:40 AM, Fabio Estevam wrote:
>> Hi,
>>
>> On Stefano?s tree I see this sata patch for mx5/mx6:
>> http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commit;h=6931bd30d03de827c52bf2c8ddc6ed0c8f21dc9d
>>
>>
>> Has anyone tried sata support on mx6qsabrelite yet?
>>
>> Any patches missing that were not applied?
>>
>> I don't have a way to test it at the moment, but I have a colleague
>> that wants to use sata on mx6qsabrelite.
>>
>
> Hi Fabio,
>
> I've tried it and it just worked for me, but it's been a month or so.
>

It looks like I'm a bit forgetful.

It didn't __just work__. It required a couple of patches that
seem to be lingering:
	http://patchwork.ozlabs.org/patch/148600/
	http://patchwork.ozlabs.org/patch/148599/

> I'll dig out my SATA drive and test again this afternoon.
>
I'll rebase and test.

Stefano, I'm not sure if the second patch above is on my plate or yours.

I'll review the history and see. I think you had asked for a meaningful
error code instead of returning -1, but that would require an update
to the first patch (clock enabling) to maybe return -ETIMEDOUT or something.

Regards,


Eric

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Using sata on mx6qsabrelite
  2012-04-25 22:11   ` Eric Nelson
@ 2012-04-25 23:55     ` Eric Nelson
  2012-04-26  0:14       ` Fabio Estevam
  2012-04-29 15:08     ` Stefano Babic
  1 sibling, 1 reply; 8+ messages in thread
From: Eric Nelson @ 2012-04-25 23:55 UTC (permalink / raw)
  To: u-boot

On 04/25/2012 03:11 PM, Eric Nelson wrote:
> On 04/25/2012 12:10 PM, Eric Nelson wrote:
>> On 04/25/2012 11:40 AM, Fabio Estevam wrote:
>>> Hi,
>>>
>>> On Stefano?s tree I see this sata patch for mx5/mx6:
>>> http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commit;h=6931bd30d03de827c52bf2c8ddc6ed0c8f21dc9d
>>>
>>>
>>>
>>> Has anyone tried sata support on mx6qsabrelite yet?
>>>
>>> Any patches missing that were not applied?
>>>
>>> I don't have a way to test it at the moment, but I have a colleague
>>> that wants to use sata on mx6qsabrelite.
>>>
>>
>> Hi Fabio,
>>
>> I've tried it and it just worked for me, but it's been a month or so.
>>
>
> It looks like I'm a bit forgetful.
>
> It didn't __just work__. It required a couple of patches that
> seem to be lingering:
> http://patchwork.ozlabs.org/patch/148600/
> http://patchwork.ozlabs.org/patch/148599/
>
>> I'll dig out my SATA drive and test again this afternoon.
>>
> I'll rebase and test.
>

Hi Fabio,

I just re-based and re-sent two of the three patches needed to get
SATA up and running against mainline/master.

	MX6QSABRELITE U-Boot > sata init
	AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
	flags: ncq stag pm led clo only pmp pio slum part
	SATA Device Info:
	S/N:            26EK5486T
	Product model number: TOSHIBA MK4032GSX
	Firmware version: AS212D
	Capacity: 75200265 sectors
	MX6QSABRELITE U-Boot > ext2ls sata 0:1 /
	<DIR>       4096 .
	<DIR>       4096 ..
	<DIR>      16384 lost+found
	<DIR>       4096 bin
	<DIR>       4096 mnt
	<DIR>       4096 lib
	<DIR>       4096 var
	<DIR>       4096 root

The third commit is Stefano's SATA driver for i.MX5/6:

	http://git.denx.de/u-boot-imx.git/?p=u-boot/u-boot-imx.git;a=commit;h=6931bd30d03de827c52bf2c8ddc6ed0c8f21dc9d

The two new patches are here:
	http://lists.denx.de/pipermail/u-boot/2012-April/123168.html
and here:
	http://lists.denx.de/pipermail/u-boot/2012-April/123169.html

Regards,


Eric

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Using sata on mx6qsabrelite
  2012-04-25 23:55     ` Eric Nelson
@ 2012-04-26  0:14       ` Fabio Estevam
       [not found]         ` <68FFD0B41A0D0B4C9959B950448DE6800DD403@039-SN2MPN1-012.039d.mgd.msft.net>
  0 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2012-04-26  0:14 UTC (permalink / raw)
  To: u-boot

Hi Eric,

On Wed, Apr 25, 2012 at 8:55 PM, Eric Nelson
<eric.nelson@boundarydevices.com> wrote:

> I just re-based and re-sent two of the three patches needed to get
> SATA up and running against mainline/master.

That's good news! Thanks a lot!

I think Pete can give a try on SATA with mainline U-boot now.

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Using sata on mx6qsabrelite
       [not found]         ` <68FFD0B41A0D0B4C9959B950448DE6800DD403@039-SN2MPN1-012.039d.mgd.msft.net>
@ 2012-04-26 20:17           ` Fabio Estevam
  2012-04-27  5:35             ` Dirk Behme
  0 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2012-04-26 20:17 UTC (permalink / raw)
  To: u-boot

Pete,

On Thu, Apr 26, 2012 at 5:10 PM, Pinewski Pete-RYLV50
<rylv50@freescale.com> wrote:
> Eric, Fabio,
> I just cloned the master tree, applied the patches (no problems), built u-boot ("make mx6qsabrelite") and tried to flash the u-boot.bin into the sabrelite board but I am having issues.
> Is there a trick to doing this?

You should build it as 'make u-boot.imx' and then flash it to the card.

Please follow the steps at:
http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.mx6qsabrelite;h=6f2f5343de29a539c11dbe59181d96c4e1dfde93;hb=HEAD

Regards,

Fabio Estevam

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Using sata on mx6qsabrelite
  2012-04-26 20:17           ` Fabio Estevam
@ 2012-04-27  5:35             ` Dirk Behme
  0 siblings, 0 replies; 8+ messages in thread
From: Dirk Behme @ 2012-04-27  5:35 UTC (permalink / raw)
  To: u-boot

On 26.04.2012 22:17, Fabio Estevam wrote:
> Pete,
> 
> On Thu, Apr 26, 2012 at 5:10 PM, Pinewski Pete-RYLV50
> <rylv50@freescale.com> wrote:
>> Eric, Fabio,
>> I just cloned the master tree, applied the patches (no problems), built u-boot ("make mx6qsabrelite") and tried to flash the u-boot.bin into the sabrelite board but I am having issues.
>> Is there a trick to doing this?
> 
> You should build it as 'make u-boot.imx' and then flash it to the card.
> 
> Please follow the steps at:
> http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.mx6qsabrelite;h=6f2f5343de29a539c11dbe59181d96c4e1dfde93;hb=HEAD

Just as a side node: With the commit

http://git.denx.de/?p=u-boot.git;a=commit;h=38fcc71cc58b1c9a224b707b03eb6574cb2dc027

in U-Boot 2012.04.1 the extra 'make u-boot.imx' isn't necessary any 
more. Looks like we should update the doc/README.mx6qsabrelite.

Best regards

Dirk

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Using sata on mx6qsabrelite
  2012-04-25 22:11   ` Eric Nelson
  2012-04-25 23:55     ` Eric Nelson
@ 2012-04-29 15:08     ` Stefano Babic
  1 sibling, 0 replies; 8+ messages in thread
From: Stefano Babic @ 2012-04-29 15:08 UTC (permalink / raw)
  To: u-boot

On 26/04/2012 00:11, Eric Nelson wrote:
> On 04/25/2012 12:10 PM, Eric Nelson wrote:
>> On 04/25/2012 11:40 AM, Fabio Estevam wrote:
>>> Hi,
>>>
>>> On Stefano?s tree I see this sata patch for mx5/mx6:
>>> http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commit;h=6931bd30d03de827c52bf2c8ddc6ed0c8f21dc9d
>>>
>>>
>>>
>>> Has anyone tried sata support on mx6qsabrelite yet?
>>>
>>> Any patches missing that were not applied?
>>>
>>> I don't have a way to test it at the moment, but I have a colleague
>>> that wants to use sata on mx6qsabrelite.
>>>
>>
>> Hi Fabio,
>>
>> I've tried it and it just worked for me, but it's been a month or so.
>>
> 
> It looks like I'm a bit forgetful.
> 
> It didn't __just work__. It required a couple of patches that
> seem to be lingering:
>     http://patchwork.ozlabs.org/patch/148600/
>     http://patchwork.ozlabs.org/patch/148599/
> 
>> I'll dig out my SATA drive and test again this afternoon.
>>
> I'll rebase and test.
> 
> Stefano, I'm not sure if the second patch above is on my plate or yours.

Sorry for late answer. From my point of view, I was waiting for new
version of the patch.

> 
> I'll review the history and see. I think you had asked for a meaningful
> error code instead of returning -1,

No, a very minor comment - only returning immediately. I see you did
already in V3 ;-).

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-04-29 15:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-25 18:40 [U-Boot] Using sata on mx6qsabrelite Fabio Estevam
2012-04-25 19:10 ` Eric Nelson
2012-04-25 22:11   ` Eric Nelson
2012-04-25 23:55     ` Eric Nelson
2012-04-26  0:14       ` Fabio Estevam
     [not found]         ` <68FFD0B41A0D0B4C9959B950448DE6800DD403@039-SN2MPN1-012.039d.mgd.msft.net>
2012-04-26 20:17           ` Fabio Estevam
2012-04-27  5:35             ` Dirk Behme
2012-04-29 15:08     ` Stefano Babic

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.