OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: TheSmoker on July 30, 2020, 11:53:21 AM

Title: Request for adding new HW_ID to u3gen
Post by: TheSmoker on July 30, 2020, 11:53:21 AM
Hello Opnsense Community,

As we are progressing into future with new slot formats for 4G cards, there are a lot of Huawei compatible devices that will work if proper vendor/device id could be added to u3g.

So could anyone add the info from here to next version of opnsense?
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231909
https://bugs.freebsd.org/bugzilla/attachment.cgi?bugid=231909&action=viewall

Tested and working on FreeBSD 12.1.

Cheers!
Title: Re: Request for adding new HW_ID to u3gen
Post by: franco on July 30, 2020, 11:57:04 AM
Hi,

Does "tested on FreeBSD 12.1" mean the patches were tested or that 12.1 fixed the problem?


Cheers,
Franco
Title: Re: Request for adding new HW_ID to u3gen
Post by: TheSmoker on July 30, 2020, 12:09:06 PM
Hi,

I've fetched the src tree, modified the files, recompiled and big surprise usb virtual ports appeared in /dev and are working.

The problem is not yet fixed in 12.1 release. I've tested with 12.1-R-P7.

Cheers!
Title: Re: Request for adding new HW_ID to u3gen
Post by: TheSmoker on July 30, 2020, 12:24:56 PM
After changes...

FreeBSD

root@gw:~ # freebsd-version
12.1-RELEASE-p7


dmesg

u3g0 numa-domain 0 on uhub2
u3g0: <HP lt4132 LTE/HSPA+ 4G Module> on usbus0
u3g0: Found 5 ports.


root@gw:~ # cu -l /dev/cuaU0.0

ATI
Manufacturer: HP Inc.
Model: ME906s-158
Revision: 12.617.23.00.00
IMEI: 356758101748492
+GCAP: +CGSM,+DS,+ES
OK

AT+COPS?
+COPS: 0,0,"Vodafone RO",7

OK


Title: Re: Request for adding new HW_ID to u3gen
Post by: TheSmoker on July 31, 2020, 08:16:07 PM
Quote from: franco on July 30, 2020, 11:57:04 AM
Hi,

Does "tested on FreeBSD 12.1" mean the patches were tested or that 12.1 fixed the problem?


Cheers,
Franco

Hey Franco,

Can be done? Maybe via a patch applied as a plugin/module or something?

Thanks!