Re: Huawei K5161h 4G dongle

2024-01-26 Thread Alex Frolkin
On Wed, Jan 24, 2024 at 11:01:23PM +, 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,

Re: Huawei K5161h 4G dongle

2024-01-25 Thread Alex Frolkin
On Thu, Jan 25, 2024 at 02:36:34PM -0300, Crystal Kolipe wrote: > So, testing with a terminal program rather than pppd, after issuing the > ATD*99# command, are you are seeing the 'CONNECT' string returned, but then > not seeing the characteristic start of the PPP session, (which looks like > line

Re: Huawei K5161h 4G dongle

2024-01-25 Thread Alex Frolkin
On Thu, Jan 25, 2024 at 04:26:40AM -0300, Crystal Kolipe wrote: > Are you sure that the APN and PDP context are correctly set for the ISP you > are trying to connect to? Yes, I'm pretty sure it's correct. > Why are you using *99***1# as the dial string to explicitly select context 1 > instead of

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Alex Frolkin
On Wed, Jan 24, 2024 at 10:03:00PM +, Alex Frolkin wrote: > In any case, I think the right answer is to make it work with umb(4). > I'll see if I can make any progress with this. Okay, I got this wrong. What I thought was MBIM mode is actually CDC NCM mode, which is not supported

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Alex Frolkin
On Wed, Jan 24, 2024 at 03:17:39PM +, Alex Frolkin wrote: > On Wed, Jan 24, 2024 at 11:47:53AM +1100, Jonathan Gray wrote: > > +#define USB_PRODUCT_HUAWEI_K5161H 0x1f1d > > + {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K5161H }, DEV_UMASS5}, > So, this works. Or rather, it

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Alex Frolkin
On Wed, Jan 24, 2024 at 11:47:53AM +1100, Jonathan Gray wrote: > Index: sys/dev/usb/umsm.c > === > RCS file: /cvs/src/sys/dev/usb/umsm.c,v > diff -u -p -r1.125 umsm.c > --- sys/dev/usb/umsm.c2 Apr 2023 23:57:57 - 1.12

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Alex Frolkin
On Tue, Jan 23, 2024 at 07:17:04PM +, Zé Loff wrote: > This may sound silly, but does ejecting it (e.g. "eject /dev/cd0") make > a difference? I seem to recall some devices that (temporarily) switched > mode after being ejected. Thanks, I'd try that, but the cd0 device doesn't actually appear

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Alex Frolkin
On Wed, Jan 24, 2024 at 11:47:53AM +1100, Jonathan Gray wrote: > umsm(4) does the equivalent in the kernel. DEV_UMASS5 seems most > likely, but there are other methods to try as well. Ah, interesting, I'll give that a go. Looking at the code, though, it looks like it might be doing what usb_mode

Huawei K5161h 4G dongle

2024-01-23 Thread Alex Frolkin
Hi all, Has anyone had any success with getting a Huawei (Vodafone-branded) K5161h 4G dongle working on OpenBSD? It looks like it should work with the umb(4) driver, but the problem is getting it into the right mode. When I plug it in, it appears as a USB CD drive, and there are magic commands y

GPIO on Octeon

2023-09-19 Thread Alex Frolkin
Hi all, I see that the Octeon kernel provides an octgpio0 device, but there's no gpio0 at octgpio0 device (and I've tried to compile a kernel that has it, but it fails to configure), and the gpioctl binary is missing. Is GPIO support on this platform just incomplete? Or am I misunderstanding how

Asterisk on Octeon

2023-09-11 Thread Alex Frolkin
Hi all, Has anyone had any success running Asterisk on Octeon (in my case, an EdgeRouter 6P, running OpenBSD 7.3)? If I try to build the port, it fails in the same way as the automated package builds, i.e.: http://build-failures.rhaalovely.net/mips64/2023-08-29/telephony/asterisk/20.log I do