FreeBSD and Huawei E220 again - which is the best patch for RELENG_7 and RELENG_6?

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Tue Oct 21 22:56:25 UTC 2008


Hello,

It seems there are two PR's with patches for Huawei E220 support in
FreeBSD: usb/118686[1] and usb/112905[2]. Both seems to be missing
something; ie. maximum speed, monitor port functionality.

Which one is best for machines running RELENG_[67]?
And, when will a patch be included in thoise branches?

I don't run -current, so I haven't tested anything there. I tested
patch-2.diff from the first pr[1] on a machine running FreeBSD
7.0-stable:
tingo at kg-work2$ uname -a
FreeBSD kg-work2.kg4.no 7.0-STABLE FreeBSD 7.0-STABLE #2: Sun Oct 19 19:29:06 CEST 2008     root at kg-work2.kg4.no:/usr/obj/usr/src/sys/SX270  i386
The patch didn't apply cleanly, so I applied it manually.
It works, but there are issues. Herer is some output from /var/log/messages:
Oct 21 02:32:23 kg-work2 kernel: ucom0: <HUAWEI Technologies HUAWEI Mobile, class 0/0, rev 1.10/0.00, addr 2> on uhub1
Oct 21 02:32:23 kg-work2 kernel: ucom0: Could not find interrupt in
Oct 21 02:32:23 kg-work2 kernel: device_attach: ucom0 attach returned 6
Oct 21 02:32:23 kg-work2 root: Unknown USB device: vendor 0x12d1 product 0x1003 bus uhub1
Oct 21 02:32:23 kg-work2 kernel: ucom0: <HUAWEI Technologies HUAWEI Mobile, class 0/0, rev 1.10/0.00, addr 2> on uhub1
Oct 21 02:32:23 kg-work2 kernel: ucom0: Could not find interrupt in
Oct 21 02:32:23 kg-work2 kernel: device_attach: ucom0 attach returned 6
Oct 21 02:32:23 kg-work2 kernel: ucom0: at uhub1 port 2 (addr 2) disconnected
Oct 21 02:32:25 kg-work2 kernel: ucom0: <HUAWEI Technologies HUAWEI Mobile, class 0/0, rev 1.10/0.00, addr 2> on uhub1

The "Could not find interrupt in" message means that I do have to unplug and replug the modem a few times before it attcahes.
And some more messages::
Oct 21 02:32:45 kg-work2 kernel: ucom0: ubsa_request: STALLED
Oct 21 02:33:25 kg-work2 last message repeated 9 times
Oct 21 02:33:39 kg-work2 last message repeated 9 times


And I have just tested the e220-patch-6.3 patch from the second pr[2]
on a machine running RELENG_6:
root at kg-omni1# uname -a
FreeBSD kg-omni1.kg4.no 6.4-PRERELEASE FreeBSD 6.4-PRERELEASE #1: Mon Oct 20 19:23:26 CEST 2008     root at kg-omni1.kg4.no:/usr/obj/usr/src/sys/I81K  i386

This patch also needed to be applied by hand. From /var/log/messages:
Oct 22 00:32:30 kg-omni1 kernel: device_attach: ucom0 attach returned 6
Oct 22 00:32:54 kg-omni1 kernel: ucom0: at uhub0 port 2 (addr 2) disconnected
Oct 22 00:33:10 kg-omni1 kernel: ucom0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
Oct 22 00:33:10 kg-omni1 kernel: ucom0: Could not find interrupt in
Oct 22 00:33:10 kg-omni1 kernel: device_attach: ucom0 attach returned 6
Oct 22 00:33:10 kg-omni1 kernel: ucom0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
Oct 22 00:33:10 kg-omni1 kernel: ucom0: Could not find interrupt in
Oct 22 00:33:10 kg-omni1 kernel: device_attach: ucom0 attach returned 6
Oct 22 00:33:52 kg-omni1 kernel: ucom0: at uhub0 port 1 (addr 2) disconnected
Oct 22 00:34:04 kg-omni1 kernel: ucom0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2

It seems I need more tries to get it to attach here.
On this machine I haven't done any more testing yet.

References:
1) http://www.freebsd.org/cgi/query-pr.cgi?pr=118686
2) http://www.freebsd.org/cgi/query-pr.cgi?pr=122905
-- 
Regards,
Torfinn Ingolfsen


More information about the freebsd-usb mailing list