Discussion:
u3g problems with -current
(too old to reply)
Darren Reed
2011-10-11 22:40:33 UTC
Permalink
Using 20111008's kernel, a GENERIC i386 kernel fails to problem u3g
properly.

Current:
Oct 11 00:06:26 firewall /netbsd: u3ginit0 at uhub3 port 2: Switching to
3G mode
Oct 11 00:06:26 firewall /netbsd: u3ginit0: detached
Oct 11 00:06:26 firewall /netbsd: u3ginit0: at uhub3 port 2 (addr 2)
disconnected
Oct 11 00:06:32 firewall /netbsd: umass1 at uhub3 port 2 configuration 1
interface 3
Oct 11 00:06:32 firewall /netbsd: umass1: HUAWEI Technology HUAWEI
Mobile, rev 2.00/0.00, addr 2
Oct 11 00:06:32 firewall /netbsd: umass1: using SCSI over Bulk-Only
Oct 11 00:06:32 firewall /netbsd: scsibus1 at umass1: 2 targets, 1 lun
per target
Oct 11 00:06:32 firewall /netbsd: sd4 at scsibus1 target 0 lun 0:
<HUAWEI, SD Storage, 2.31> disk removable
Oct 11 00:06:32 firewall /netbsd: sd4: drive offline
Oct 11 00:06:32 firewall /netbsd: sd4: unable to open device, error = 19

Older source:
Oct 11 00:11:50 firewall /netbsd: u3ginit0 at uhub3 port 2: Switching to
3G mode
Oct 11 00:11:50 firewall /netbsd: u3ginit0: detached
Oct 11 00:11:50 firewall /netbsd: u3ginit0: at uhub3 port 2 (addr 2)
disconnected
Oct 11 00:11:56 firewall /netbsd: u3g0 at uhub3 port 2 configuration 1
interface 0
Oct 11 00:11:56 firewall /netbsd: ucom0 at u3g0 portno 0: 3G Modem
Oct 11 00:11:56 firewall /netbsd: u3g1 at uhub3 port 2 configuration 1
interface 1
Oct 11 00:11:56 firewall /netbsd: ucom1 at u3g1 portno 1: 3G Modem
Oct 11 00:11:56 firewall /netbsd: u3g2 at uhub3 port 2 configuration 1
interface 2
Oct 11 00:11:56 firewall /netbsd: ucom2 at u3g2 portno 2: 3G Modem
Oct 11 00:11:56 firewall /netbsd: umass1 at uhub3 port 2 configuration 1
interface 3
Oct 11 00:11:56 firewall /netbsd: umass1: HUAWEI Technology HUAWEI
Mobile, rev 2.00/0.00, addr 2
Oct 11 00:11:56 firewall /netbsd: umass1: using SCSI over Bulk-Only

Unfortunately I just untar'd the entire kernel source over what I had
there previously :(

Darren


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Darren Reed
2011-10-14 18:15:15 UTC
Permalink
Ok, I discovered what my problem is.

In the earlier kernel, I added the Huawei device for myself,
with device id of 0x1406. Now the u3g table has an entry like
this:
{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750 },
which is my device but usbdevs has:
product HUAWEI E1750 0x140c Huawei E1750
... which does not match my device.

The casing on the 3G modem that I've got says "E1750" and
nothing else in terms of product identifier.

In light of this, I believe the below is the correct patch?

Darren

--- usbdevs.orig 2011-10-14 20:13:40.000000000 +0200
+++ usbdevs 2011-10-14 20:11:52.000000000 +0200
@@ -1503,7 +1503,8 @@
/* Huawei Technologies products */
product HUAWEI MOBILE 0x1001 Huawei Mobile
product HUAWEI E220 0x1003 Huawei E220
-product HUAWEI E1750 0x140c Huawei E1750
+product HUAWEI E1750_1 0x1406 Huawei E1750
+product HUAWEI E1750_2 0x140c Huawei E1750
product HUAWEI E1750INIT 0x1446 Huawei E1750 USB CD
product HUAWEI K3765 0x1465 Huawei K3765
product HUAWEI E1820 0x14ac Huawei E1820

--- u3g.c.orig 2011-10-01 04:17:13.000000000 +0200
+++ u3g.c 2011-10-14 20:14:07.000000000 +0200
@@ -182,7 +182,8 @@
static const struct usb_devno u3g_devs[] = {
{ USB_VENDOR_DELL, USB_PRODUCT_DELL_W5500 },
/* OEM: Huawei */
- { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750 },
+ { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750_1 },
+ { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750_2 },
{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1820 },
{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220 },
{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765 },

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Christos Zoulas
2011-10-14 21:58:05 UTC
Permalink
Post by Darren Reed
Ok, I discovered what my problem is.
In the earlier kernel, I added the Huawei device for myself,
with device id of 0x1406. Now the u3g table has an entry like
{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E1750 },
product HUAWEI E1750 0x140c Huawei E1750
... which does not match my device.
The casing on the 3G modem that I've got says "E1750" and
nothing else in terms of product identifier.
In light of this, I believe the below is the correct patch?
go for it.

christos


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...