| Electronic Components Datasheet Search |
|
UM0851 Datasheet(PDF) 63 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0851 Datasheet(HTML) 63 Page - STMicroelectronics |
|
63 / 245 page ![]() UM0851 Communication device drivers Doc ID 16604 Rev 2 63/245 USB mass storage class The USB mass storage standard provides an interface to a variety of storage devices, like hard disk drives and Flash memories. Plug in Flash memory into available USB port and then type the following command. The device is picked up as a USB 1.1 and allocates an address. It also indicated which HCD is used. $ dmesg | less usb 1-1: new full speed USB device using spear-ehci and address 2 usb 1-1: configuration #1 chosen from 1 choice (SCSI emulation automatically kicks in) scsi0 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 2 (Now the device information including model number is retrieved) usb-storage: waiting for device to settle before scanning Vendor: JetFlash Model: TS2GJCV30 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sda: 4014078 512-byte hdwr sectors (2055 MB) (The write-protect sense is EXPERIMENTAL code in the later kernels) sda: Write Protect is off sda: assuming drive cache: write through SCSI device sda: 4014078 512-byte hdwr sectors (2055 MB) sda: Write Protect is off sda: assuming drive cache: write through sda:sda1 usb-storage: Attached SCSI removable disk (At this point, the device is generally accessible by mounting /dev/sda1) (When the device is disconnected, the system acknowledges the same) usb 1-1: USB disconnect, address 2 /* Once the device is connected and mounted, you can access it like a normal hard disk. Usual operations like cp, mv, rm, etc work fine. You could also create a file system on the USB stick/format it. */ # mount /dev/sda1 /mnt/ # df -h Filesystem Size Used Avail Use% Mounted on /dev/root 4.9M 2.5M 2.5M 50% / dev 61.8M 0 61.8M 0% /dev tmpfs 1.9GM 453.0M 1.5G 23% /mnt tmpfs 2.0M 0M 2.0M 0% /tmp /dev/sda1 1.9GM 453.0M 1.5G 23% /mnt/ /* Digital cameras can be accessed the same way as memory sticks. */ USB communication device class (CDC) The USB CDC class supports a lot of communication devices, including Ethernet. Compile and then boot up the kernel with the options relevant to the USB Ethernet adapters enabled. The options are covered in the configuration section below. Plug in the USB Ethernet adapter, you can then see console messages that are similar to the following: $hub 1-0:1.0: over-current change on prot 1 usb 1-1:new high speed USB device using spear-ehci and address 2 usb-1.1: configuration #1 chosen from 1 choice eth0:register 'asix' at usb-SPEAr EHCI-1, ASIX AX88772 USB2.0 Ethernet,00;89:c8:3a:4c:0b /* Type in the following command and check if the device has been recognized */ $ cat /proc/bus/usb/devices |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |