Hello Guys,
I'm using an AM3352 ZCE package and would like some help to understand how to enable USB options for reading files from a USB stick. I only have USB0 in my design and it is forced to be in Host mode by grounding the ID pin. I've also added relevant USB defines for USB0 to be host based on the options present in the am335x_evm.h file.
I have..
#define CONFIG_USB_MUSB_DSPS
#define CONFIG_MUSB_PIO_ONLY
#define CONFIG_MUSB_HOST
#define CONFIG_AM335X_USB0
#define CONFIG_AM335X_USB0_MODE MUSB_HOST
#define CONFIG_DOS_PARTITION
#define CONFIG_FAT_WRITE
#define CONFIG_CMD_FAT
#define CONFIG_CMD_USB
#define CONGIG_CMD_STORAGE
When I start uboot I get the following messages:
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401000 using PIO, IRQ 0
And when I perform help usb - it shows me the following options. And performing those steps also yields positive results
U-Boot# help usb
usb - USB sub-system
Usage:
usb start - start (scan) USB controller
usb reset - reset (rescan) USB controller
usb tree - show USB device tree
usb info [dev] - show available USB devices
U-Boot# usb start
(Re)start USB...
USB0: scanning bus 0 for devices... 1 USB Device(s) found
U-Boot# usb tree
USB device tree:
1 Mass Storage (480 Mb/s, 100mA)
Generic Mass Storage 5BB85D75
U-Boot# usb info
1: Mass Storage, USB Revision 2.0
- Generic Mass Storage 5BB85D75
- Class: (from Interface) Mass Storage
- PacketSize: 64 Configurations: 1
- Vendor: 0x058f Product 0x6387 Version 1.4
Configuration: 1
- Interfaces: 1 Bus Powered 100mA
Interface: 0
- Alternate Setting 0, Endpoints: 2
- Class Mass Storage, Transp. SCSI, Bulk only
- Endpoint 1 Out Bulk MaxPacket 512
- Endpoint 2 In Bulk MaxPacket 512
But if I try 'fatls usb 1' or 'fatls usb 0' it replies back indicating Bad device. Can someone please let me know if I need to enable additional options.
Thank you for your replies and help.
Regards
Santhosh