mounting a usb net stick as CDROM (mdev & hotplug)
Hi All,
i've been trying to use a Huawei 3G net stick with a device running embedded linux (2.6.31).
it seems that most of the "howto" out there is for systems using udev.
i've tried using usb modeswitch, but it's not working properly with mdev. after looking online, i found a script that creates the path "/dev/bus/usb" and the files in it required for running usb_modeswitch.
now that i have this script, and added usb_modeswitch, libusb & libusb-compat, i need to add them to the hotplug script so that they will be called when I plug in the net stick. (automation)
It seems that the part calling the hotplag when connecting the net stick, is not installed/working.
does anyone have an idea on how to enable proper mounting of the net stick (as CD ROM) and get the hot-plug to react to it?
here is a trace of the usb enumeration:
[82289.430000] usb 2-1: new full speed USB device using bcm5892-ohci:PORT-2 and address 6
[82289.640000] usb 2-1: not running at top speed; connect to a high speed hub
[82289.660000] usb 2-1: New USB device found, idVendor=12d1, idProduct=1f1c
[82289.670000] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[82289.680000] usb 2-1: Product: HUAWEI Mobile
[82289.690000] usb 2-1: Manufacturer: Vodafone(Huawei)
[82289.690000] usb 2-1: SerialNumber: FFFFFFFFFFFFFFFF
[82289.720000] usb 2-1: configuration #1 chosen from 2 choices
[82289.790000] scsi2 : SCSI emulation for USB Mass Storage devices
[82294.840000] scsi 2:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
thank you in advance,
Gilad
|