[U-Boot] UMS on mx6sl

Fabio Estevam festevam at gmail.com
Tue Feb 24 23:25:07 CET 2015


On Tue, Feb 24, 2015 at 7:22 PM, Fabio Estevam <festevam at 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?


More information about the U-Boot mailing list