Comment 7 for bug 384344

Revision history for this message
Naveen N Rao (naveen-n-rao) wrote :

After briefly failing to work with 0.7.1.git.3.7406e3a0e-0ubuntu1~nm1~intrepid1, Network Manager has started to work again with my card with 0.7.1.git.4.364ab2f86-0ubuntu1~nm1~intrepid1. I am enlisting the changes required on an intrepid machine to get a ZTE modem working so that the relevant changes can be made (how do I file this bug against hal-info?).

As a summary, these are the changes required for usbserial-supported ZTE 3G cards to function properly with network manager on intrepid:
1. [hal-info] Update /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi to add 19d2:ffff:

@@ -317,8 +317,9 @@

       <match <email address hidden>:usb.vendor_id" int="0x19d2">
         <!-- Qualcomm: Telstra/NextG CDMA , ZTE CDMA Tech -->
- <match <email address hidden>:usb.product_id" int_outof="0x0001;0xfffe">
+ <match <email address hidden>:usb.product_id" int_outof="0x0001;0xfffe;0xffff">
           <match <email address hidden>:usb.interface.number" int="0">
+ <append key="info.capabilities" type="strlist">modem</append>
             <append key="modem.command_sets" type="strlist">IS-707-A</append>
           </match>
         </match>

2. [udev] Update /etc/udev/rules.d/90-modprobe.rules to load usbserial on detecting ZTE modem:

@@ -66,4 +66,7 @@
 # Load drivers that match kernel-supplied alias
 ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -Q $env{MODALIAS}"

+# Load usbserial for the 3G modem
+SUBSYSTEM=="usb", SYSFS{idVendor}=="19d2", SYSFS{idProduct}=="ffff", RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0xffff"
+
 LABEL="modprobe_end"

3. [network-manager] /lib/udev/nm-modem-probe (move or symlink to /etc/udev/nm-modem-probe)
4. [network-manager] Updated /etc/udev/rules.d/77-nm-probe-modem-capabilities.rules to support usbserial:

 # Only probe known mobile broadband drivers
-DRIVERS=="option|sierra|hso|cdc_acm|qcserial|moto-modem", GOTO="probe"
+DRIVERS=="option|sierra|hso|cdc_acm|qcserial|moto-modem|usbserial_generic", GOTO="probe"

5. Finally, I see a new file being installed by Network Manager: /etc/udev/rules.d/77-nm-zte-port-types.rules. It didn't seem to have any effect on the working of my modem (even after adding rules for product ID ffff). So, what exactly does this do? And, should I be making any updates here?

- Naveen