On Sun, Jan 9, 2011 at 8:42 PM, Shyamgopal Kundapurkar < [email protected]> wrote:
> viral/arindam, > > 1) people who know me, usually call me shyam. > 2) dmesg does not use /proc or /sys > 3) usb-devices, lsusb and usb_modeswitch all need to use libusb and > libusb-compat. to the best of my knowledge, neither libusb nor > libusb-compat > can still use sysfs. both are on usbfs. if i am wrong, can you please tell > me which version of libusb and libusb-compat can plug into sysfs ? the > hierarchy of usb device info nodes under /sys and /proc are entirely > different. so even "bind"ing /sys/bus/usb to /proc/bus/usb wont do :( > 4) the sysad at draisberghof has identified the usb controller chip > (atheros????) used by tata photon+ (qualcomm 201e/2009) to be same as some > earlier "heir" device marketed in europe and suggested a file under > /etc/usb_modeswitch.d/ to be renamed as 201e:2009. the question was posted > from pune. was it you arindam ? please check the following link ---> > > http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=579&sid=9131409bea04ced85f4e85447332366f > > > > thanks and cheers guys ! > > > On Sun, Jan 9, 2011 at 2:01 AM, Arindam Mukherjee < > [email protected]> wrote: > > > > <[email protected]> wrote: > > >> > > >> I guess if your kernel has usbfs support compiled (possibly there in > > >> Ubuntu 10.x) then it should work. That way Parag might be able to get > > >> it to work. With my case, there was no support (the earlier discussion > > >> with Viral and Shyamgopal has the details). > > >> > > >> Cheers. > > > > > > Hi Arindam, To make this clear, USB FS will allow you to mount usb > > > device entry to /proc/bus/usb/ and get devices file and other file > > > entry. It is not must to use modem. you can use commands, such as > > > dmsg, lsusb and check whether devices are present or not. You can also > > > use sysfs entry and echo "1" to eject entry of sr device intend of > > > doing mount / umount. > > > Good Luck, Viral > > > > > > > My bad. I guess Raseel's experience could be useful if we could figure > > out the Vendor + > > Product specific MessageEndpoint and the MessageContent which is > > written to this endpoint, for the Olive VME101. That entry should be > > there in his /etc/usb_modeswitch.conf I guess. > > > > Hope to hear from you Raseel. > > > > Thanks, > > Arindam > > > > _______________________________________ > > Pune GNU/Linux Users Group Mailing List > > > _______________________________________ > Pune GNU/Linux Users Group Mailing List > Hi guys, sorry for posting the logs a little late, but here goes : When I plug in the USB dongle, raseel@raseel-laptop:~$ lsusb [40339.216197] hub 2-0:1.0: unable to enumerate USB device on port 3 [40340.584178] usb 6-1: new full speed USB device using uhci_hcd and address 4 [40340.742420] usb 6-1: configuration #1 chosen from 1 choice [40340.745465] scsi6 : SCSI emulation for USB Mass Storage devices [40340.745781] usb-storage: device found at 4 [40340.745785] usb-storage: waiting for device to settle before scanning [40345.746432] usb-storage: device scan complete [40345.749293] scsi 6:0:0:0: CD-ROM Qualcomm MMC Storage 2.31 PQ: 0 ANSI: 2 [40345.762348] sr1: scsi3-mmc drive: 297x/297x [40345.762613] sr 6:0:0:0: Attached scsi CD-ROM sr1 [40345.762775] sr 6:0:0:0: Attached scsi generic sg2 type 5 [40345.817361] sr1: CDROM (ioctl) error, command: Xpwrite, Read disk info 51 00 00 00 00 00 00 00 02 00 [40345.817388] sr: Sense Key : Hardware Error [current] [40345.817397] sr: Add. Sense: No additional sense information [40345.879363] sr1: CDROM (ioctl) error, command: Get configuration 46 00 00 00 00 00 00 00 20 00 [40345.879390] sr: Sense Key : Hardware Error [current] [40345.879398] sr: Add. Sense: No additional sense information [40346.054271] sr1: CDROM (ioctl) error, command: Get configuration 46 00 00 00 00 00 00 00 20 00 [40346.054297] sr: Sense Key : Hardware Error [current] [40346.054305] sr: Add. Sense: No additional sense information [40346.157361] sr1: CDROM (ioctl) error, command: Get configuration 46 00 00 00 00 00 00 00 20 00 [40346.157389] sr: Sense Key : Hardware Error [current] [40346.157398] sr: Add. Sense: No additional sense information [40346.230256] sr1: CDROM (ioctl) error, command: Get configuration 46 00 00 00 00 00 00 00 20 00 [40346.230283] sr: Sense Key : Hardware Error [current] [40346.230291] sr: Add. Sense: No additional sense information [40346.265355] sr1: CDROM (ioctl) error, command: Get configuration 46 00 00 28 00 00 00 00 10 00 [40346.265382] sr: Sense Key : Hardware Error [current] [40346.265391] sr: Add. Sense: No additional sense information [40346.299350] sr1: CDROM (ioctl) error, command: Get configuration 46 00 00 20 00 00 00 00 18 00 [40346.299376] sr: Sense Key : Hardware Error [current] [40346.299384] sr: Add. Sense: No additional sense information And the device gets mounted as /dev/sr1 raseel@raseel-laptop:~$ ls /etc/usb_modeswitch.d/ 0421:0610 0ace:2011 0af0:7031 0af0:7501 0af0:d055 1076:7f40 148f:2578 1b7d:0700 0471:1210 0ace:20ff 0af0:7051 0af0:7601 0af0:d057 1199:0fff 16d8:6803 1bbb:f000 0471:1237 0af0:6711 0af0:7071 0af0:7701 0af0:d155 12d1:1001 16d8:700a 1c9e:1001 04e8:f000 0af0:6731 0af0:7111 0af0:7801 0af0:d157 12d1:1003 16d8:f000 1c9e:9200 05c6:1000:sVe=Option 0af0:6751 0af0:7211 0af0:7901 0af0:d255 12d1:1414 19d2:0053 1c9e:f000 05c6:1000:uMa=AnyDATA 0af0:6771 0af0:7251 0af0:8200 0af0:d257 12d1:1446 19d2:2000 1dd6:1000 05c6:1000:uMa=SAMSUNG 0af0:6791 0af0:7271 0af0:8201 0af0:d357 12d1:1520 19d2:2000:uPr=USB_ZTE 1e0e:f000 05c6:1000:uMa=Vertex 0af0:6811 0af0:7301 0af0:c031 0fce:d0e1 12d1:1521 19d2:2000:uPr=ZTE_CDMA 1f28:0021 05c6:2001 0af0:6911 0af0:7311 0af0:d013 1004:1000 1410:5010 19d2:fff5 05c6:f000 0af0:6951 0af0:7361 0af0:d031 1033:0035 1410:5020 19d2:fff6 072f:100d 0af0:6971 0af0:7381 0af0:d033 106c:3b03 1410:5030 1a8d:1000 0930:0d46 0af0:7011 0af0:7401 0af0:d035 106c:3b06 1410:5031 1ab7:5700 Observe there is no "201e:2009" file there. And, raseel@raseel-laptop:~$ lsusb Bus 006 Device 006: ID 201e:2009 When I "Safely Eject" this mounted device, I get the following Error pop-up : Unable to Stop Drive Error detaching: helper exited with exit code 1: Detaching device /dev/sr1 USB device: /sys/devices/pci0000:00/0000:00:1d.1/usb6/6-1) SYNCHRONIZE CACHE: synchronize cache(10): transport: Host_status=0x07 [DID_ERROR] Driver_status=0x08 [DRIVER_SENSE, SUGGEST_OK] FAILED: No such file or directory (Continuing despite SYNCHRONIZE CACHE failure.) STOP UNIT: start stop unit: transport: Host_status=0x07 [DID_ERROR] Driver_status=0x00 [DRIVER_OK, SUGGEST_OK] FAILED: No such file or directory Hope this helps. -- Raseel _______________________________________ Pune GNU/Linux Users Group Mailing List
