Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    D-Link dwm-157

    Scheduled Pinned Locked Moved Hardware
    10 Posts 2 Posters 819 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gromgsxr
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • G
          gromgsxr
          last edited by gromgsxr

          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

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by stephenw10

            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

            1 Reply Last reply Reply Quote 0
            • G
              gromgsxr
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by stephenw10

                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

                1 Reply Last reply Reply Quote 0
                • G
                  gromgsxr
                  last edited by

                  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?

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • G
                      gromgsxr
                      last edited by

                      It looks like it has been added to 11 & 12 stable so should eventually make it in

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • M mcury referenced this topic on
                        • M mcury referenced this topic on
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.