New upstream version; add support for ZTE MF691 (T-Mobile Rocket 2)

This commit is contained in:
Dan Williams 2010-12-30 16:21:31 -06:00
parent da4acb920c
commit 45cc570f0b
4 changed files with 43 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
usb-modeswitch-data-20100621.tar.bz2 usb-modeswitch-data-20100621.tar.bz2
usb-modeswitch-data-20100707.tar.bz2 usb-modeswitch-data-20100707.tar.bz2
usb-modeswitch-data-20100817.tar.bz2 usb-modeswitch-data-20100817.tar.bz2
/usb-modeswitch-data-20101222.tar.bz2

View File

@ -1,2 +1 @@
d1fcc283c64a0877cdcac9cd682052f9 usb-modeswitch-data-20100707.tar.bz2 e386386bc389c2a8184c7ea4136fde0e usb-modeswitch-data-20101222.tar.bz2
ec177e3b48b7b2211cd8dbc7ebcfa863 usb-modeswitch-data-20100817.tar.bz2

View File

@ -1,9 +1,9 @@
%define source_name usb-modeswitch-data %define source_name usb-modeswitch-data
Name: usb_modeswitch-data Name: usb_modeswitch-data
Version: 20100817 Version: 20101222
Release: 1%{?dist} Release: 1%{?dist}
Summary: USB Modeswitch gets 4G cards in operational mode Summary: USB Modeswitch gets mobile broadband cards in operational mode
Summary(de): USB Modeswitch aktiviert UMTS-Karten Summary(de): USB Modeswitch aktiviert UMTS-Karten
Group: Applications/System Group: Applications/System
License: GPLv2+ License: GPLv2+
@ -14,6 +14,8 @@ Requires: tcl
Requires: udev Requires: udev
Requires: usb_modeswitch >= 1.1.2 Requires: usb_modeswitch >= 1.1.2
Patch0: ztemf691.patch
%description %description
USB Modeswitch brings up your datacard into operational mode. When plugged USB Modeswitch brings up your datacard into operational mode. When plugged
in they identify themselves as cdrom and present some non-Linux compatible in they identify themselves as cdrom and present some non-Linux compatible
@ -35,6 +37,7 @@ um zu funktionieren.
%prep %prep
%setup -q -n %{source_name}-%{version} %setup -q -n %{source_name}-%{version}
%patch0 -p1
%install %install
@ -61,6 +64,9 @@ udevadm control --reload-rules
%doc ChangeLog COPYING README %doc ChangeLog COPYING README
%changelog %changelog
* Thu Dec 30 2010 Dan Williams <dcbw@redhat.com> 20101222-1
- New upstream
* Tue Aug 24 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100817-1 * Tue Aug 24 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> 20100817-1
- New upstream - New upstream

33
ztemf691.patch Normal file
View File

@ -0,0 +1,33 @@
diff -up usb-modeswitch-data-20101222/40-usb_modeswitch.rules.1201 usb-modeswitch-data-20101222/40-usb_modeswitch.rules
--- usb-modeswitch-data-20101222/40-usb_modeswitch.rules.1201 2010-12-30 16:09:26.951149009 -0600
+++ usb-modeswitch-data-20101222/40-usb_modeswitch.rules 2010-12-30 16:10:07.591149003 -0600
@@ -399,6 +399,9 @@ ATTRS{idVendor}=="19d2", ATTRS{idProduct
# Vodafone (ZTE) K3806-Z
ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1013", RUN+="usb_modeswitch '%b/%k'"
+# T-Mobile Rocket 2 (ZTE) MF691
+ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1201", RUN+="usb_modeswitch '%b/%k'"
+
# ZTE devices
ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="2000", RUN+="usb_modeswitch '%b/%k'"
diff -up usb-modeswitch-data-20101222/usb_modeswitch.d/19d2:1201.1201 usb-modeswitch-data-20101222/usb_modeswitch.d/19d2:1201
--- usb-modeswitch-data-20101222/usb_modeswitch.d/19d2:1201.1201 2010-12-30 16:10:39.107149000 -0600
+++ usb-modeswitch-data-20101222/usb_modeswitch.d/19d2:1201 2010-12-30 16:11:28.013149003 -0600
@@ -0,0 +1,16 @@
+########################################################
+# T-Mobile Rocket 2 (ZTE) MF691
+#
+# Note:
+# This device has multiple USB profiles. Depending upon how it is flipped
+# from storage mode to modem mode determines its final PID and the packages
+# shown on its ISO CD image.
+
+DefaultVendor= 0x19d2
+DefaultProduct= 0x1201
+
+TargetVendor= 0x19d2
+TargetProduct= 0x1203
+
+MessageContent="5553424392020000000000000000061B000000020000000000000000000000"
+