D-Link dwm-157
-
i was trying to set up a d-link dwm-157 in pfsense but its apparently not supported. So i tried it in freebsd and had the same problem it appears the entry in /usr/src/sys/dev/usb/usbdevs has the wrong id for the device, So i edited this file and recompiled the kernel and the device started working in freebsd. how do i go about recompiling the pfsense kernel to adapt my changes?
-
Easier to get a modem that is supported. As soon as you're compiling anything you become responsible for any changes and maintenance to it. At every release.
If it was just a kernel module that's not as bad but I don't believe you can do that for u3g, which I'm assuming you used.Is the device also missing from 2.5 snapshots? Currently built on FreeBSD 12.0.
Steve
-
i will try FreeBSD 12.0 tomorrow to see if its added in that if so il try 2.5 snapshot.
the only file i needed to edit was the usbdevs the device was in there but had a different idProduct to my usb so i changed it to reflect my device and recompiled the kernel without having to edit u3g file and it worked nice and easy.i thought it was supported its listed here thats why i got that one: https://docs.netgate.com/pfsense/en/latest/cellular/known-working-3g-4g-modems.html
-
What IDs is your device using? What did you expect it to have?
You can check here: https://github.com/pfsense/FreeBSD-src/blob/RELENG_2_5/sys/dev/usb/usbdevs
How does the modem appear when you connected it? A lot of drivers will attach without having the specific ID if the device presents the correct connection type/class.
Steve
-
No it's appears unchanged there. My idprodcut is 0x7d0e where as in the link it's 0x7d02 I believe that's an earlier revision of the stick. If I connect stick to pfsense it shows up as cd1 if I eject that it shows as da1 with no serial ports. In freebsd when I modded the kernel it shows as cd1 if I eject it change a to da1 and also 4 serial ports cuaU show up to.
-
The best thing to do would be submit a pull request to FreeBSD to add that to the file.
I don't think we maintain a patch for that so it wouldn't be any use submitting it to us.
What was the exact change you made?
Steve
-
it has been added to freebsd now see this commit https://github.com/freebsd/freebsd/commit/0aabba20a180086e60fdaa4c042e6824637fcd12
will this make its way in to pfsense at some stage now?
-
If it gets into FreeBSD 12 stable it should be in a 2.5 snapshot when we move to that as base. I believe.
It's probably too late to make 2.4.5 unfortunately.
Steve
-
It looks like it has been added to 11 & 12 stable so should eventually make it in
-
Yup, it's in our branches too. It will not be in 2.4.5 though.
https://github.com/pfsense/FreeBSD-src/commit/53c20dbd882153f18322848108a8488519b59ff9
Steve
-
-