On Wed, Jan 24, 2024 at 11:01:23PM +0000, Alex Frolkin wrote: > Okay, I got this wrong. What I thought was MBIM mode is actually CDC > NCM mode, which is not supported in OpenBSD.
I also had a go at patching the driver to make it enable CDC Ethernet mode instead. Enabling it works, cdce(4) attaches, but then something goes mysteriously wrong a second or two later, and it resets and becomes product ID 0x1f01 (which is E303_INIT; a product ID I haven't seen it present before), which umsm(4) then switches to product ID 0x1442 mode: ----- umsm0 at uhub0 port 1 configuration 1 interface 0 "HUAWEI_MOBILE HUAWEI_MOBILE" rev 2.00/1.02 addr 2 umsm0: umass only mode. need to reattach (flag: 0x4000, pid: 0x1f1d) umsm0 detached cdce0 at uhub0 port 1 configuration 1 interface 0 "HUAWEI_MOBILE HUAWEI_MOBILE" rev 2.00/1.02 addr 2 cdce0: address 00:1e:10:1f:00:00 cdce0 detached umsm0 at uhub0 port 1 configuration 1 interface 0 "HUAWEI_MOBILE HUAWEI_MOBILE" rev 2.00/1.02 addr 2 umsm0: umass only mode. need to reattach (flag: 0x100, pid: 0x1f01) umsm0 detached umsm0 at uhub0 port 1 configuration 1 interface 0 "HUAWEI_MOBILE HUAWEI_MOBILE" rev 2.00/1.02 addr 2 ucom0 at umsm0 umsm1 at uhub0 port 1 configuration 1 interface 1 "HUAWEI_MOBILE HUAWEI_MOBILE" rev 2.00/1.02 addr 2 ----- I have no idea what's going on here and I am well and truly out of ideas now. Except, of course, to port NCM support in FreeBSD's cdce(4), but I think that's beyond my skill level. Alex