Huawei E220 on ALIX

2008-07-16 Thread Martin Schmitt
Hi all!

I'm trying to use a Huawei E220 UMTS USB modem on an ALIX, using OpenBSD
Flashdist 20080504.

I have extended the GEODE configuration as follows:

# diff -c /opt/flashdist-20080504/GEODE /usr/src/sys/arch/i386/conf/GEODE
*** /opt/flashdist-20080504/GEODE   Sun May  4 21:32:07 2008
--- /usr/src/sys/arch/i386/conf/GEODE   Wed Jul 16 21:36:15 2008
***
*** 87,93 
--- 87,95 
  uhub* at usb? # USB Hubs
  uhub* at uhub?# USB Hubs
  umodem*   at uhub?# USB Modems/Serial
+ umsm*   at uhub?# Qualcomm MSM EVDO
  ucom* at umodem?
+ ucom*   at umsm?
  #ubsa*at uhub?# Belkin serial adapter
  #ucom*at ubsa?
  #uftdi*   at uhub?# FTDI FT8U100AX serial adapter

With the kernel built from this configuration, Flashdist sees the Huawei
thing as ugen0, while I expected to see it as ucom0.

Is there anyone in here who can weigh in with some advice regarding
initialization of the Huawei E220? I do know that the E220 needs some
trickery to kill off its mass storage part in order to make the serial
part available. However, I have never worked with this myself, neither
on OpenBSD nor on Linux where the procedure appears to be fairly common.

Also, how can I tell if the kernel built from the above configuration
really has support for umsm?

Thanks for your time,

-martin

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: Huawei E220 on ALIX

2008-07-16 Thread Ryan McBride
On Wed, Jul 16, 2008 at 10:24:36PM +0200, Martin Schmitt wrote:
 I'm trying to use a Huawei E220 UMTS USB modem on an ALIX, using OpenBSD
 Flashdist 20080504.

Please try this with the GENERIC kernel, and report back to us if you 
still have a problem.



Re: Huawei E220 on ALIX

2008-07-16 Thread Stuart Henderson
On 2008-07-16, Ryan McBride [EMAIL PROTECTED] wrote:
 On Wed, Jul 16, 2008 at 10:24:36PM +0200, Martin Schmitt wrote:
 I'm trying to use a Huawei E220 UMTS USB modem on an ALIX, using OpenBSD
 Flashdist 20080504.

 Please try this with the GENERIC kernel, and report back to us if you 
 still have a problem.

Make sure it's -current or a snapshot, not 4.3, for E220.
If it still fails, send output from dmesg and usbdevs -v.



Re: Huawei E220 on ALIX

2008-07-16 Thread Martin Schmitt
Stuart Henderson schrieb:

 Please try this with the GENERIC kernel, and report back to us if you
 still have a problem.

 Make sure it's -current or a snapshot, not 4.3, for E220.
 If it still fails, send output from dmesg and usbdevs -v.

I plugged it into my development box (4.3) where it misbehaved as
expected (the umass driver is not in the GEODE kernel from Flashdist):

umass0 at uhub0 port 1 configuration 1 interface 2 HUAWEI Technologies
HUAWEI Mobile rev 1.10/0.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets
umass0: BBB reset failed, STALLED
umass0: BBB reset failed, STALLED

I'll read up on checking out and building a -current kernel. Judging
from the commit log for umsm.c, it's the only way to go.

-martin

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: Huawei E220 on ALIX

2008-07-16 Thread Martin Schmitt
Got it!

# cu -s 115200 -l /dev/ttyU0
ati
Manufacturer: huawei
Model: E220
Revision: 11.110.05.00.00
IMEI: 355083018404928
+GCAP: +CGSM,+DS,+ES

OK

This is not on the ALIX yet, I'll get to that later.

Thanks,

-martin

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]