News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

Accessing USB flash disk in zynq-linux on TE0720+TE0703

Started by indar, July 31, 2014, 05:41:59 PM

Previous topic - Next topic

indar

So, is it possible to access an attached USB flash disk on the USB port of TE0703 directly using preloaded zynq-linux on QSPI? If yes, how? I don't see /dev/sd* from within the zynq-linux (so I cannot mount the USB flash disk using normal mount command). I looked at the reference design and it seems that the USB0 module in the zynq processing system has already been activated. Thanks!

best,
Indar

Antti Lukats

testing TE0703 with TE0720-02 and very old boot image

usb 1-1: new high-speed USB device number 2 using xusbps-ehci
scsi0 : usb-storage 1-1:1.0
scsi 0:0:0:0: Direct-Access              USB DISK 3.0     PMAP PQ: 0 ANSI: 6
sd 0:0:0:0: [sda] 30283008 512-byte logical blocks: (15.5 GB/14.4 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA  sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk

zynq> lsusb
Bus 001 Device 002: ID 13fe:5200
Bus 001 Device 001: ID 1d6b:0002

testing with the images built with our petalinux-BSP kernel 3.14

INIT: usb-storage 1-1:1.0: USB Mass Storage device detected
version 2.88 bootingscsi0 : usb-storage 1-1:1.0

scsi 0:0:0:0: Direct-Access              USB DISK 3.0     PMAP PQ: 0 ANSI: 6
sd 0:0:0:0: [sda] 30283008 512-byte logical blocks: (15.5 GB/14.4 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: Attached scsi generic sg0 type 0 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk

seems also OK.

indar

Hello Antti,

Seems there's a problem with ours. The only information I got from the screen is this:

zynq> dmesg | grep '[Uu][Ss][Bb]'
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Found SMSC USB3320 ULPI transceiver.
xusbps-ehci xusbps-ehci.0: Xilinx PS USB EHCI Host Controller
xusbps-ehci xusbps-ehci.0: new USB bus registered, assigned bus number 1
xusbps-ehci xusbps-ehci.0: irq 53, io mem 0x00000000
xusbps-ehci xusbps-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
zynq> lsusb
Bus 001 Device 001: ID 1d6b:0002

When I plug a USB flash disk (8GB, FAT32) in the USB slot, I don't see any update on the screen. Rebooting the system with/without USB flash disk attached in the slot produce the same info like above.
Can you give me hints of how to access USB flash disk like yours? Thanks!

best,
Indar

Antti Lukats

please contact support@..

TE0703 first batches we manufactured did not pass full production tests, so there may be a issue on the USB lines, there are small emi beads on the data lines, we have seen those emi chokes to have "no connect" inside even if they look soldered OK.