public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] UMS on mx6sl
@ 2015-02-24 22:22 Fabio Estevam
  2015-02-24 22:25 ` Fabio Estevam
  0 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-02-24 22:22 UTC (permalink / raw)
  To: u-boot

Hi,

I am trying to get USB Mass Storage to work on mx6slevk, but I am
getting the following error:

=> ums 0 mmc 1
UMS: disk start sector: 0x0, count: 0x762c00
g_dnl_register: failed!, error: -22
ERROR: g_dnl_register failed
at common/cmd_usb_mass_storage.c:107/do_usb_mass_storage()

On mx6qsabresd it works fine and I am able to mount the SD/eMMC card
on the host PC.

The mx6slevk changes are the same as the ones for sabresd and look like this:

diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h
index 1221418..9a7870a 100644
--- a/include/configs/mx6slevk.h
+++ b/include/configs/mx6slevk.h
@@ -47,6 +47,10 @@
 #define CONFIG_GENERIC_MMC
 #define CONFIG_CMD_FAT
 #define CONFIG_DOS_PARTITION
+#define CONFIG_BOUNCE_BUFFER
+#define CONFIG_CMD_EXT2
+#define CONFIG_CMD_EXT4
+#define CONFIG_CMD_EXT4_WRITE

 /* I2C Configs */
 #define CONFIG_CMD_I2C
@@ -246,6 +250,20 @@
 #define CONFIG_USB_MAX_CONTROLLER_COUNT        2
 #endif

+#define CONFIG_CI_UDC
+#define CONFIG_USBD_HS
+#define CONFIG_USB_GADGET_DUALSPEED

Does anyone have any ideas of what may be missing?

Thanks,

Fabio Estevam

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

* [U-Boot] UMS on mx6sl
  2015-02-24 22:22 [U-Boot] UMS on mx6sl Fabio Estevam
@ 2015-02-24 22:25 ` Fabio Estevam
  2015-02-24 23:10   ` Eric Nelson
  0 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-02-24 22:25 UTC (permalink / raw)
  To: u-boot

On Tue, Feb 24, 2015 at 7:22 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Hi,
>
> I am trying to get USB Mass Storage to work on mx6slevk, but I am
> getting the following error:
>
> => ums 0 mmc 1
> UMS: disk start sector: 0x0, count: 0x762c00
> g_dnl_register: failed!, error: -22
> ERROR: g_dnl_register failed
> at common/cmd_usb_mass_storage.c:107/do_usb_mass_storage()
>
> On mx6qsabresd it works fine and I am able to mount the SD/eMMC card
> on the host PC.
>
> The mx6slevk changes are the same as the ones for sabresd and look like this:

Ops, I missed some to copy some pieces. The changes look like:

--- a/include/configs/mx6slevk.h
+++ b/include/configs/mx6slevk.h
@@ -47,6 +47,10 @@
 #define CONFIG_GENERIC_MMC
 #define CONFIG_CMD_FAT
 #define CONFIG_DOS_PARTITION
+#define CONFIG_BOUNCE_BUFFER
+#define CONFIG_CMD_EXT2
+#define CONFIG_CMD_EXT4
+#define CONFIG_CMD_EXT4_WRITE

 /* I2C Configs */
 #define CONFIG_CMD_I2C
@@ -246,6 +250,20 @@
 #define CONFIG_USB_MAX_CONTROLLER_COUNT        2
 #endif

+#define CONFIG_CI_UDC
+#define CONFIG_USBD_HS
+#define CONFIG_USB_GADGET_DUALSPEED
+
+#define CONFIG_USB_GADGET
+#define CONFIG_CMD_USB_MASS_STORAGE
+#define CONFIG_USB_GADGET_MASS_STORAGE
+#define CONFIG_USBDOWNLOAD_GADGET
+#define CONFIG_USB_GADGET_VBUS_DRAW    2
+
+#define CONFIG_G_DNL_VENDOR_NUM                0x0525
+#define CONFIG_G_DNL_PRODUCT_NUM       0xa4a5
+#define CONFIG_G_DNL_MANUFACTURER      "FSL"
>
> Does anyone have any ideas of what may be missing?

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

* [U-Boot] UMS on mx6sl
  2015-02-24 22:25 ` Fabio Estevam
@ 2015-02-24 23:10   ` Eric Nelson
  2015-02-24 23:19     ` Fabio Estevam
  2015-02-25 12:11     ` Marek Vasut
  0 siblings, 2 replies; 10+ messages in thread
From: Eric Nelson @ 2015-02-24 23:10 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

On 02/24/2015 03:25 PM, Fabio Estevam wrote:
> On Tue, Feb 24, 2015 at 7:22 PM, Fabio Estevam <festevam@gmail.com> wrote:
>> Hi,
>>
>> I am trying to get USB Mass Storage to work on mx6slevk, but I am
>> getting the following error:
>>
>> => ums 0 mmc 1
>> UMS: disk start sector: 0x0, count: 0x762c00
>> g_dnl_register: failed!, error: -22
>> ERROR: g_dnl_register failed
>> at common/cmd_usb_mass_storage.c:107/do_usb_mass_storage()
>>
>> On mx6qsabresd it works fine and I am able to mount the SD/eMMC card
>> on the host PC.
>>
>> The mx6slevk changes are the same as the ones for sabresd and look like this:

You might want to check this value:

#define CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP

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

* [U-Boot] UMS on mx6sl
  2015-02-24 23:10   ` Eric Nelson
@ 2015-02-24 23:19     ` Fabio Estevam
  2015-02-25  0:12       ` Eric Nelson
  2015-02-25  2:23       ` Fabio Estevam
  2015-02-25 12:11     ` Marek Vasut
  1 sibling, 2 replies; 10+ messages in thread
From: Fabio Estevam @ 2015-02-24 23:19 UTC (permalink / raw)
  To: u-boot

Hi Eric,

On Tue, Feb 24, 2015 at 8:10 PM, Eric Nelson
<eric.nelson@boundarydevices.com> wrote:

> You might want to check this value:
>
> #define CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP

Thanks for the suggestion. After adding this config the error is still the same:

=> ums 0 mmc 1
UMS: disk start sector: 0x0, count: 0x762c00
g_dnl_register: failed!, error: -19
ERROR: g_dnl_register failed
at common/cmd_usb_mass_storage.c:107/do_usb_mass_storage()

Thanks

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

* [U-Boot] UMS on mx6sl
  2015-02-24 23:19     ` Fabio Estevam
@ 2015-02-25  0:12       ` Eric Nelson
  2015-02-25  2:23       ` Fabio Estevam
  1 sibling, 0 replies; 10+ messages in thread
From: Eric Nelson @ 2015-02-25  0:12 UTC (permalink / raw)
  To: u-boot

On 02/24/2015 04:19 PM, Fabio Estevam wrote:
> Hi Eric,
> 
> On Tue, Feb 24, 2015 at 8:10 PM, Eric Nelson
> <eric.nelson@boundarydevices.com> wrote:
> 
>> You might want to check this value:
>>
>> #define CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP
> 
> Thanks for the suggestion. After adding this config the error is still the same:
> 
> => ums 0 mmc 1
> UMS: disk start sector: 0x0, count: 0x762c00
> g_dnl_register: failed!, error: -19
> ERROR: g_dnl_register failed
> at common/cmd_usb_mass_storage.c:107/do_usb_mass_storage()
> 

A swing and a miss! (story of my attempts at baseball)

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

* [U-Boot] UMS on mx6sl
  2015-02-24 23:19     ` Fabio Estevam
  2015-02-25  0:12       ` Eric Nelson
@ 2015-02-25  2:23       ` Fabio Estevam
  2015-02-25 12:11         ` Marek Vasut
  1 sibling, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-02-25  2:23 UTC (permalink / raw)
  To: u-boot

On Tue, Feb 24, 2015 at 8:19 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Hi Eric,
>
> On Tue, Feb 24, 2015 at 8:10 PM, Eric Nelson
> <eric.nelson@boundarydevices.com> wrote:
>
>> You might want to check this value:
>>
>> #define CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP
>
> Thanks for the suggestion. After adding this config the error is still the same:
>
> => ums 0 mmc 1
> UMS: disk start sector: 0x0, count: 0x762c00
> g_dnl_register: failed!, error: -19
> ERROR: g_dnl_register failed
> at common/cmd_usb_mass_storage.c:107/do_usb_mass_storage()

Ok, I managed to fix it. Will send a patch tomorrow, thanks

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

* [U-Boot] UMS on mx6sl
  2015-02-24 23:10   ` Eric Nelson
  2015-02-24 23:19     ` Fabio Estevam
@ 2015-02-25 12:11     ` Marek Vasut
  1 sibling, 0 replies; 10+ messages in thread
From: Marek Vasut @ 2015-02-25 12:11 UTC (permalink / raw)
  To: u-boot

On Wednesday, February 25, 2015 at 12:10:33 AM, Eric Nelson wrote:
> Hi Fabio,
> 
> On 02/24/2015 03:25 PM, Fabio Estevam wrote:
> > On Tue, Feb 24, 2015 at 7:22 PM, Fabio Estevam <festevam@gmail.com> wrote:
> >> Hi,
> >> 
> >> I am trying to get USB Mass Storage to work on mx6slevk, but I am
> >> getting the following error:
> >> 
> >> => ums 0 mmc 1
> >> UMS: disk start sector: 0x0, count: 0x762c00
> >> g_dnl_register: failed!, error: -22
> >> ERROR: g_dnl_register failed
> >> at common/cmd_usb_mass_storage.c:107/do_usb_mass_storage()
> >> 
> >> On mx6qsabresd it works fine and I am able to mount the SD/eMMC card
> >> on the host PC.
> 
> >> The mx6slevk changes are the same as the ones for sabresd and look like 
this:
> You might want to check this value:
> 
> #define CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP

This is only useful for keyboards ;-)

Best regards,
Marek Vasut

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

* [U-Boot] UMS on mx6sl
  2015-02-25  2:23       ` Fabio Estevam
@ 2015-02-25 12:11         ` Marek Vasut
  2015-02-25 16:07           ` Fabio Estevam
  0 siblings, 1 reply; 10+ messages in thread
From: Marek Vasut @ 2015-02-25 12:11 UTC (permalink / raw)
  To: u-boot

On Wednesday, February 25, 2015 at 03:23:13 AM, Fabio Estevam wrote:
> On Tue, Feb 24, 2015 at 8:19 PM, Fabio Estevam <festevam@gmail.com> wrote:
> > Hi Eric,
> > 
> > On Tue, Feb 24, 2015 at 8:10 PM, Eric Nelson
> > 
> > <eric.nelson@boundarydevices.com> wrote:
> >> You might want to check this value:
> >> 
> >> #define CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP
> > 
> > Thanks for the suggestion. After adding this config the error is still
> > the same:
> > 
> > => ums 0 mmc 1
> > UMS: disk start sector: 0x0, count: 0x762c00
> > g_dnl_register: failed!, error: -19
> > ERROR: g_dnl_register failed
> > at common/cmd_usb_mass_storage.c:107/do_usb_mass_storage()
> 
> Ok, I managed to fix it. Will send a patch tomorrow, thanks

Cool, thanks :)

Best regards,
Marek Vasut

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

* [U-Boot] UMS on mx6sl
  2015-02-25 12:11         ` Marek Vasut
@ 2015-02-25 16:07           ` Fabio Estevam
  2015-02-25 16:40             ` Marek Vasut
  0 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2015-02-25 16:07 UTC (permalink / raw)
  To: u-boot

Hi Marek,

On Wed, Feb 25, 2015 at 9:11 AM, Marek Vasut <marex@denx.de> wrote:
> On Wednesday, February 25, 2015 at 03:23:13 AM, Fabio Estevam wrote:

>> Ok, I managed to fix it. Will send a patch tomorrow, thanks
>
> Cool, thanks :)

Just to let you know that this original problem was caused by an error
in the mx6sl-evk board file, so things look good in the USB stack.

Regards,

Fabio Estevam

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

* [U-Boot] UMS on mx6sl
  2015-02-25 16:07           ` Fabio Estevam
@ 2015-02-25 16:40             ` Marek Vasut
  0 siblings, 0 replies; 10+ messages in thread
From: Marek Vasut @ 2015-02-25 16:40 UTC (permalink / raw)
  To: u-boot

On Wednesday, February 25, 2015 at 05:07:00 PM, Fabio Estevam wrote:
> Hi Marek,
> 
> On Wed, Feb 25, 2015 at 9:11 AM, Marek Vasut <marex@denx.de> wrote:
> > On Wednesday, February 25, 2015 at 03:23:13 AM, Fabio Estevam wrote:
> >> Ok, I managed to fix it. Will send a patch tomorrow, thanks
> > 
> > Cool, thanks :)
> 
> Just to let you know that this original problem was caused by an error
> in the mx6sl-evk board file, so things look good in the USB stack.

Of course, I never ever doubted that ;-)

Best regards,
Marek Vasut

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

end of thread, other threads:[~2015-02-25 16:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 22:22 [U-Boot] UMS on mx6sl Fabio Estevam
2015-02-24 22:25 ` Fabio Estevam
2015-02-24 23:10   ` Eric Nelson
2015-02-24 23:19     ` Fabio Estevam
2015-02-25  0:12       ` Eric Nelson
2015-02-25  2:23       ` Fabio Estevam
2015-02-25 12:11         ` Marek Vasut
2015-02-25 16:07           ` Fabio Estevam
2015-02-25 16:40             ` Marek Vasut
2015-02-25 12:11     ` Marek Vasut

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