NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/48998: uhso(4) support for Globetrotter HSUPA Modem
>Number: 48998
>Category: kern
>Synopsis: uhso(4) support for Globetrotter HSUPA Modem
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: support
>Submitter-Id: net
>Arrival-Date: Tue Jul 15 16:55:00 +0000 2014
>Originator: Kamil Rytarowski
>Release: 6.1, current
>Organization:
>Environment:
NetBSD compaq 6.99.47 NetBSD 6.99.47 (NO_DRM) #0: Tue Jul 15 15:16:22 CEST 2014
kamil@compaq:/home/kamil/NetBSD-current/src/sys/arch/amd64/compile/NO_DRM amd64
>Description:
uhso(4) missing support for Globetrotter HSUPA Modem(0x8300), Option
N.V.(0x0af0)
It's good idea to sync list of devices from hso.c (Linux) with uhso.c (NetBSD).
>How-To-Repeat:
Get stable or current, verify that there is a lack of support.
>Fix:
Apply the attached patch, rebuild the kernel and boot it.
('1111' - PIN, replace with your own)
Configuration for Orange (Polska).
$ cat ppp/chat.orange
ABORT "NO DIALTONE"
ABORT "NO ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
"" "AT"
OK "AT&F"
OK "AT+CPIN=1111"
OK "AT+CMEE=1"
OK 'AT+CGDCONT=1,"IP","internet"'
OK "ATDT*99***1#"
$ cat ppp/peers/orange
/dev/ttyHS0.08
115200
crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/chat.orange'
noauth
local
ipcp-accept-local
defaultroute
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
user "ppp"
# pppd call orange
And Voilà!
Patch against sources:
Index: src/share/man/man4/uhso.4
===================================================================
RCS file: /cvsroot/src/share/man/man4/uhso.4,v
retrieving revision 1.3
diff -u -r1.3 uhso.4
--- src/share/man/man4/uhso.4 26 Aug 2011 07:56:00 -0000 1.3
+++ src/share/man/man4/uhso.4 15 Jul 2014 16:42:00 -0000
@@ -42,6 +42,7 @@
.It GlobeTrotter Express 40x
.It GlobeTrotter Express HSUPA
.It GlobeTrotter HSUPA
+.It GlobeTrotter HSUPA Modem
.It GlobeTrotter Max HSDPA
.It GlobeTrotter Module 382
.It GlobeTrotter iCON 225
Index: src/sys/dev/usb/uhso.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/uhso.c,v
retrieving revision 1.14
diff -u -r1.14 uhso.c
--- src/sys/dev/usb/uhso.c 5 Jun 2014 23:48:16 -0000 1.14
+++ src/sys/dev/usb/uhso.c 15 Jul 2014 16:42:01 -0000
@@ -243,6 +243,7 @@
{ USB_VENDOR_OPTIONNV, USB_PRODUCT_OPTIONNV_ICON401, UHSOTYPE_CONFIG },
{ USB_VENDOR_OPTIONNV, USB_PRODUCT_OPTIONNV_GTM382,
UHSOTYPE_CONFIG },
{ USB_VENDOR_OPTIONNV, USB_PRODUCT_OPTIONNV_GE40X4, UHSOTYPE_CONFIG },
+ { USB_VENDOR_OPTIONNV, USB_PRODUCT_OPTIONNV_GTHSUPAM, UHSOTYPE_CONFIG },
{ USB_VENDOR_OPTIONNV, USB_PRODUCT_OPTIONNV_ICONEDGE, UHSOTYPE_DEFAULT
},
{ USB_VENDOR_OPTIONNV, USB_PRODUCT_OPTIONNV_MODHSXPA, UHSOTYPE_ICON321
},
{ USB_VENDOR_OPTIONNV, USB_PRODUCT_OPTIONNV_ICON321, UHSOTYPE_ICON321
},
Index: src/sys/dev/usb/usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.674
diff -u -r1.674 usbdevs
--- src/sys/dev/usb/usbdevs 14 Jul 2014 12:02:59 -0000 1.674
+++ src/sys/dev/usb/usbdevs 15 Jul 2014 16:42:02 -0000
@@ -2402,6 +2402,7 @@
product OPTIONNV ICON401 0x7401 iCON 401
product OPTIONNV GTM382 0x7501 GTM 382
product OPTIONNV GE40X4 0x7601 GE40x
+product OPTIONNV GTHSUPAM 0x8300 Globetrotter HSUPA Modem
product OPTIONNV ICONEDGE 0xc031 iCON EDGE
product OPTIONNV MODHSXPA 0xd013 Module HSxPA
product OPTIONNV ICON321 0xd031 iCON 321
Index: src/sys/dev/usb/usbdevs.h
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.666
diff -u -r1.666 usbdevs.h
--- src/sys/dev/usb/usbdevs.h 14 Jul 2014 12:03:42 -0000 1.666
+++ src/sys/dev/usb/usbdevs.h 15 Jul 2014 16:42:02 -0000
@@ -1,10 +1,10 @@
-/* $NetBSD: usbdevs.h,v 1.666 2014/07/14 12:03:42 ryoon Exp $ */
+/* $NetBSD$ */
/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
*
* generated from:
- * NetBSD: usbdevs,v 1.673 2014/06/11 07:05:03 njoly Exp
+ * NetBSD: usbdevs,v 1.674 2014/07/14 12:02:59 ryoon Exp
*/
/*
@@ -2409,6 +2409,7 @@
#define USB_PRODUCT_OPTIONNV_ICON401 0x7401 /* iCON 401 */
#define USB_PRODUCT_OPTIONNV_GTM382 0x7501 /* GTM 382 */
#define USB_PRODUCT_OPTIONNV_GE40X4 0x7601 /* GE40x */
+#define USB_PRODUCT_OPTIONNV_GTHSUPAM 0x8300 /* Globetrotter
HSUPA Modem */
#define USB_PRODUCT_OPTIONNV_ICONEDGE 0xc031 /* iCON EDGE */
#define USB_PRODUCT_OPTIONNV_MODHSXPA 0xd013 /* Module HSxPA
*/
#define USB_PRODUCT_OPTIONNV_ICON321 0xd031 /* iCON 321 */
Home |
Main Index |
Thread Index |
Old Index