FYI - for anyone else needing USB mass storage to work.
I thought "dr_mode" was "host" by default for backwards compatibility. I was wrong. It's needed (socfpga_cyclone_5_sockit.dts):
&usb1 {
status = "okay"
dr_mode = "host" };
In addition, one other driver was needed:
- device drivers-> [*]usb support->[*] usb attached scsi Some other options were not needed, leaving me with:
- Device Drivers-> [*]USB Support
- Device Drivers-> [*]USB Support->[*] Support for Host-side USB
- Device Drivers-> [*]USB Support->[*] USB Announce new devices
- Device Drivers-> [*]USB Support->[*] EHCI HCD (USB2.0) support
- Device Drivers-> [*]USB Support->[*] EHCI HCD (USB2.0) support->[*] Root Hub Transaction Translators
- Device Drivers-> [*]USB Support->[*] EHCI HCD (USB2.0) support->[*] Improved Transaction Translator scheduling
- Device Drivers-> [*]USB Support->[*] USB Mass Storage support
- Device Drivers-> [*]USB Support->[*] DesignWare USB2 DRD Core Support (Host only mode)
- Device Drivers-> [*]USB Support->[*] USB Physical Layer Drivers
- Device Drivers-> [*]USB Support->[*] USB Physical Layer Drivers->[*] NOP USB Transceiver Driver
- Device Drivers-> [*] SCSI Device Support
- Device Drivers-> [*] legacy /proc/scsi/ support
- Device Drivers-> [*] SCSI disk support
With these options in place fdisk sees the USB stick and partitions on it can be mounted.
Have fun!
George Broz
Moog Industrial Group