Jonathan Gray wrote:
> On Wed, Jul 18, 2012 at 09:24:01PM +0400, Alexei Malinin wrote:
>> - read/write MicroSD flash card attached to the modem;
>> are these possible with OpenBSD?
>
> You'll need to play with the match code a bit to have that work.
> Perhaps something like the following will work:
>
> --- umsm.c.orig       Thu Jul 19 11:41:00 2012
> +++ umsm.c    Thu Jul 19 11:42:09 2012
> @@ -293,7 +293,8 @@ umsm_match(struct device *parent, void *match, void *a
>                       /*
>                        * Some high-speed modems require special care.
>                        */
> -                     if (flag & DEV_HUAWEI) {
> +                     if (flag & DEV_HUAWEI ||
> +                         uaa->vendor == USB_VENDOR_HUAWEI) {
>                               if (uaa->ifaceno != 2)
>                                       return UMATCH_VENDOR_IFACESUBCLASS;
>                               else

This does not work - patched kernel cannot detect a microSD flash card...

---------------------------------------------
the modem with an attached microSD flash card
---------------------------------------------
# dmesg
...
umsm0 at uhub0 port 4 configuration 1 interface 0 "Huawei Technologies HUAWEI 
Mobile" rev 2.00/0.00 addr 2
umsm0 detached
umsm0 at uhub0 port 4 configuration 1 interface 0 "Huawei Technologies HUAWEI 
Mobile" rev 2.00/0.00 addr 2
ucom0 at umsm0
umsm1 at uhub0 port 4 configuration 1 interface 1 "Huawei Technologies HUAWEI 
Mobile" rev 2.00/0.00 addr 2
ucom1 at umsm1
umsm2 at uhub0 port 4 configuration 1 interface 2 "Huawei Technologies HUAWEI 
Mobile" rev 2.00/0.00 addr 2
ucom2 at umsm2
umsm3 at uhub0 port 4 configuration 1 interface 3 "Huawei Technologies HUAWEI 
Mobile" rev 2.00/0.00 addr 2
ucom3 at umsm3
umsm4 at uhub0 port 4 configuration 1 interface 4 "Huawei Technologies HUAWEI 
Mobile" rev 2.00/0.00 addr 2
umsm5 at uhub0 port 4 configuration 1 interface 5 "Huawei Technologies HUAWEI 
Mobile" rev 2.00/0.00 addr 2
# usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 addr 2: high speed, power 500 mA, config 1, HUAWEI Mobile(0x140c), 
Huawei Technologies(0x12d1), rev 0.00
 port 5 powered
 port 6 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), 
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), 
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), 
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered



PS. Maybe such feature is unnecessary...


--
Alexei Malinin

Reply via email to