mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Support USB port SAMA5D3
@ 2016-06-21 15:26 ner0
  2016-06-22 14:41 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: ner0 @ 2016-06-21 15:26 UTC (permalink / raw)
  To: barebox

Hi, All!

I know that it is possible detect usb (mass storage devices) and mount 
it using Barebox.

I am trying detect a pen drive in a sama5d3 Xplained but it don't work.
I use the command detect -l  but it seems that USB is not detectable.
I've taken a look at the file "init.c" but there is no declaration of 
USB ports.
I have been modifying the code and have added support for USB (basing on 
at91sam9x5k) but can't get it to work.
The driver started correctly
atmel-ehci atmel-ehci: USB EHCI 1.00
when I run "usb" to detect the devices gives me the following message:

# usb
USB: scanning bus for devices...
atmel-ehci atmel-ehci: fail to reset
0 USB Device(s) found

Am I correctly defining the USB port?
Did I miss something?

I add the patch to the version barebox-2016.06.0
Code (patch)
http://pastebin.com/FN1hcgzR

Thanks!
Regards!


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: Support USB port SAMA5D3
  2016-06-21 15:26 Support USB port SAMA5D3 ner0
@ 2016-06-22 14:41 ` Sascha Hauer
       [not found]   ` <CAOTEMUR1kyNt0y6FigsqKiBP0Sjzzq+q4vxba4e73p3oxH7_Fw@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2016-06-22 14:41 UTC (permalink / raw)
  To: ner0; +Cc: barebox

Hi,

On Tue, Jun 21, 2016 at 05:26:56PM +0200, ner0 wrote:
> Hi, All!
> 
> I know that it is possible detect usb (mass storage devices) and mount it
> using Barebox.
> 
> I am trying detect a pen drive in a sama5d3 Xplained but it don't work.
> I use the command detect -l  but it seems that USB is not detectable.
> I've taken a look at the file "init.c" but there is no declaration of USB
> ports.
> I have been modifying the code and have added support for USB (basing on
> at91sam9x5k) but can't get it to work.
> The driver started correctly
> atmel-ehci atmel-ehci: USB EHCI 1.00
> when I run "usb" to detect the devices gives me the following message:
> 
> # usb
> USB: scanning bus for devices...
> atmel-ehci atmel-ehci: fail to reset
> 0 USB Device(s) found
> 
> Am I correctly defining the USB port?
> Did I miss something?

I can't find anything obvious in the patch that could be wrong.
Sometimes it helps to have a look at the U-Boot code if there's
something that needs to be configured additionally. Generally the EHCI
driver should work, I use it regularly on i.MX.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: Support USB port SAMA5D3
       [not found]   ` <CAOTEMUR1kyNt0y6FigsqKiBP0Sjzzq+q4vxba4e73p3oxH7_Fw@mail.gmail.com>
@ 2016-06-30 13:44     ` Sascha Hauer
  0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2016-06-30 13:44 UTC (permalink / raw)
  To: Alex Vazquez; +Cc: barebox

On Thu, Jun 30, 2016 at 10:37:13AM +0200, Alex Vazquez wrote:
>    Hi and Thanks Sascha.
>    I've taken a look at the code and seems it's  right configuration.
>    I tried to change the driver and I am using OHCI.
>    Now I detect the usb hub but if I insert a pen drive give me the next
>    error:
>    barebox@Atmel sama5d3_xplained:/                                          
>         
>    # usb                                                                    
>          
>    USB: scanning bus for devices...                                          
>         
>                                        
>    Bus 000 Device 001: ID 0000:0000 OHCI Root Hub                            
>                                                         
>    ERROR: OHCI Unrecoverable Error, controller usb-ohci disabled            
>                                                                             
>      
>         Couldn't reset port 2                                                
>         
>    1 USB Device(s) found 
>    Depending on which port I insert the pen drive detects the error port 2 or
>    port 3.
>    I have also checked that the registers and peripheral clocks are set well.
>    any more suggestions that may be happening?
>    I think I'm close to finding the problem...

I have just found a sama5d3_xplained board here. The good thing is that
I can reproduce this issue without problems: It's the same here.
Unfortunately I have no idea what's going on.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2016-06-30 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-21 15:26 Support USB port SAMA5D3 ner0
2016-06-22 14:41 ` Sascha Hauer
     [not found]   ` <CAOTEMUR1kyNt0y6FigsqKiBP0Sjzzq+q4vxba4e73p3oxH7_Fw@mail.gmail.com>
2016-06-30 13:44     ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox