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

Run0 device hangs/reboots pfsense box when active

Scheduled Pinned Locked Moved General pfSense Questions
28 Posts 6 Posters 7.0k 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.
  • D
    DiskWizard
    last edited by Aug 9, 2013, 10:40 AM Aug 9, 2013, 10:37 AM

    Crash report attached
    errorlog.txt

    1. GA-N3150M-D3P 8Gb RAM

    2. GA-C1037EN-EU 4GB RAM

    • 2,5 SATA III Solid State Drive SLIM S60
    1 Reply Last reply Reply Quote 0
    • D
      DiskWizard
      last edited by Aug 13, 2013, 6:10 PM

      Uprade to

      2.1-RC1  (amd64)
      built on Mon Aug 12 16:27:08 EDT 2013

      FreeBSD 8.3-RELEASE-p9

      gave me nothing, unfortunately.

      1. GA-N3150M-D3P 8Gb RAM

      2. GA-C1037EN-EU 4GB RAM

      • 2,5 SATA III Solid State Drive SLIM S60
      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by Aug 13, 2013, 9:03 PM

        Is the wireless mode of the run0 device Access Point or Infrastructure? If I recall correctly, Infrastructure mode is broken in the FreeBSD 8.x (x =1 or 3, probably others as well) driver for run devices.

        1 Reply Last reply Reply Quote 0
        • D
          DiskWizard
          last edited by Aug 13, 2013, 9:43 PM

          The mode is AP, unchecked Allow intra-BSS communication, trying one more time.

          1. GA-N3150M-D3P 8Gb RAM

          2. GA-C1037EN-EU 4GB RAM

          • 2,5 SATA III Solid State Drive SLIM S60
          1 Reply Last reply Reply Quote 0
          • W
            wallabybob
            last edited by Aug 13, 2013, 11:29 PM

            I'm running a pfSense 2.1 snapshot build. My Tenda W311U is controlled by the run driver and works fine. I have Allow intra-BSS communication checked. My device is reported in the startup output as follows:

            $: dmesg | grep run
            run0: <1.0> on usbus3
            run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address c8:3a:35:c4:ee:f3
            run0: firmware RT2870 loaded
            $ usbconfig dump_device_desc
            . . .
            ugen3.2: <802.11 n WLAN Ralink> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON

            bLength = 0x0012
              bDescriptorType = 0x0001
              bcdUSB = 0x0200
              bDeviceClass = 0x0000
              bDeviceSubClass = 0x0000
              bDeviceProtocol = 0x0000
              bMaxPacketSize0 = 0x0040
              idVendor = 0x148f
              idProduct = 0x3070
              bcdDevice = 0x0101
              iManufacturer = 0x0001  <ralink>iProduct = 0x0002  <802.11 n WLAN>
              iSerialNumber = 0x0003  <1.0>
              bNumConfigurations = 0x0001

            $</ralink>

            What is reported on your system?

            When does the crash occur? (Perhaps when you enable the interface through the GUI?)

            Is the dongle attached at system startup?

            What is the make and model of your dongle?

            1 Reply Last reply Reply Quote 0
            • D
              DiskWizard
              last edited by Aug 14, 2013, 12:40 AM Aug 14, 2013, 12:34 AM

              Well, it is KASENS 660000N

              $ dmesg | grep run
              run0: <1.0> on usbus2
              run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address 48:02:2a:4c:43:8a
              run0: firmware RT2870 loaded
              run0_wlan0: promiscuous mode enabled

              $ usbconfig dump_device_desc
              ugen2.2: <802.11 n WLAN Ralink> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON

              bLength = 0x0012
               bDescriptorType = 0x0001
               bcdUSB = 0x0200
               bDeviceClass = 0x0000
               bDeviceSubClass = 0x0000
               bDeviceProtocol = 0x0000
               bMaxPacketSize0 = 0x0040
               idVendor = 0x148f
               idProduct = 0x3070
               bcdDevice = 0x0101
               iManufacturer = 0x0001   <ralink>iProduct = 0x0002  <802.11 n WLAN>
               iSerialNumber = 0x0003  <1.0>
               bNumConfigurations = 0x0001

              No, it crashes while in use (obtaining the data thru wlan interface)
              Yes, it is attached at startup, loader.conf.local corrected.

              /boot/loader.conf.local
              runfw_load="YES"

              It crashes/hangs @ random times, but it is always connected with WiFi activity.
              4+ days of cable uploading/downloading gave me absolutely no connection problems (i.e. the pfsense box works correctly by itself)</ralink>

              1. GA-N3150M-D3P 8Gb RAM

              2. GA-C1037EN-EU 4GB RAM

              • 2,5 SATA III Solid State Drive SLIM S60
              1 Reply Last reply Reply Quote 0
              • W
                wallabybob
                last edited by Aug 14, 2013, 1:36 AM

                The details you provided look jus like the details of my device but I wonder why @DiskWizard:

                run0_wlan0: promiscuous mode enabled

                Is it a bridge member?

                1 Reply Last reply Reply Quote 0
                • D
                  DiskWizard
                  last edited by Aug 14, 2013, 8:58 AM

                  Yes, I did the WiFi install by some guide in my native language, it is a bridge member.

                  1. GA-N3150M-D3P 8Gb RAM

                  2. GA-C1037EN-EU 4GB RAM

                  • 2,5 SATA III Solid State Drive SLIM S60
                  1 Reply Last reply Reply Quote 0
                  • W
                    wallabybob
                    last edited by Aug 14, 2013, 11:52 AM

                    @DiskWizard:

                    Yes, I did the WiFi install by some guide in my native language, it is a bridge member.

                    Can you try configuring the Wifi device to be a "standalone" interface, not a bridge member and running it that way for a few days to see if that makes a difference?

                    1 Reply Last reply Reply Quote 0
                    • D
                      DiskWizard
                      last edited by Aug 14, 2013, 12:06 PM

                      I will try it 4 sure, can you be so kind please and point me for instructions of the working configuration? If I could find it on my own, there won't be any problems likely.

                      1. GA-N3150M-D3P 8Gb RAM

                      2. GA-C1037EN-EU 4GB RAM

                      • 2,5 SATA III Solid State Drive SLIM S60
                      1 Reply Last reply Reply Quote 0
                      • W
                        wallabybob
                        last edited by Aug 14, 2013, 9:39 PM

                        @DiskWizard:

                        I will try it 4 sure, can you be so kind please and point me for instructions of the working configuration?

                        You will need to allocate a distinct IP subnet for the WiFi interface and WiFi clients, remove the WiFi interface from the bridge, assign an address in that subnet to the WiFi interface, (possibly) enable DHCP server on the WiFi interface and configure DHCP server for that interface, add suitable firewall rules on the WiFi interface. Once that is done it would probably be a good idea to reboot to clear out any memory of your old configuration.

                        Ask if you need help with any of those steps.

                        1 Reply Last reply Reply Quote 0
                        • D
                          DiskWizard
                          last edited by Aug 16, 2013, 12:58 AM

                          Thank you wallabybob for supplying me the directions to solve my problem. The first thing I have done was to reset  my current interfaces configuration using Shell console. I know, now it is the time to assign the WiFi interface as OPTx, but what are the next steps. I usually have no need to ask a pity to myself, but since I am MS sick I do so.
                          Thank you wallabybob anyway.

                          1. GA-N3150M-D3P 8Gb RAM

                          2. GA-C1037EN-EU 4GB RAM

                          • 2,5 SATA III Solid State Drive SLIM S60
                          1 Reply Last reply Reply Quote 0
                          • W
                            wallabybob
                            last edited by Aug 17, 2013, 2:33 AM

                            @DiskWizard:

                            I know, now it is the time to assign the WiFi interface as OPTx, but what are the next steps.

                            Pretty much what I described in my previous reply but you don't need to remove the OPTx interface from the bridge.

                            1 Reply Last reply Reply Quote 0
                            • S
                              selui
                              last edited by Sep 4, 2013, 8:47 PM

                              @wallabybob:

                              Is the wireless mode of the run0 device Access Point or Infrastructure? If I recall correctly, Infrastructure mode is broken in the FreeBSD 8.x (x =1 or 3, probably others as well) driver for run devices.

                              Hi all, I'm new here! Got the same problem with run0.

                              My device is a Linksys WUSB100:

                              run0: <cisco-linksys 0="" 2="" llc="" linksys="" wusb100="" rangeplus="" wireless="" usb="" adapter,="" class="" 0,="" rev="" 2.00="" 1.01,="" addr="">on usbus3
                              run0: MAC/BBP RT2860 (rev 0x0102), RF RT2720 (MIMO 1T2R), address 00:1e:e5:df:5e:84
                              run0: firmware RT2870 loaded</cisco-linksys> 
                              

                              As you say, there is a bug in the Ralink driver in FreeBSD 8.x that has been patched in further versions. More info here and here. So I don't think that removing the interface from the bridge would make sense.

                              There are some updated versions of this driver, where new devices has been added, but the bug seems not to have been fixed.

                              I'm currently trying to get a build environment where I can mix up the (latest?) version of if_run.c with the patched one. Just following these instructions and stealing some sleep time  ;D. Since  there is not too much documentation, I have decided to join the forum and will try to get success with your help.

                              Thank you all

                              1 Reply Last reply Reply Quote 0
                              • W
                                wallabybob
                                last edited by Sep 4, 2013, 9:10 PM

                                @selui:

                                There are some updated versions of this driver, where new devices has been added, but the bug seems not to have been fixed.

                                Where are the updated versions that don't have the bug fixed?

                                1 Reply Last reply Reply Quote 0
                                • S
                                  selui
                                  last edited by Sep 4, 2013, 10:29 PM

                                  @wallabybob:

                                  @selui:

                                  There are some updated versions of this driver, where new devices has been added, but the bug seems not to have been fixed.

                                  Where are the updated versions that don't have the bug fixed?

                                  Here is the latest one for 8.3 dated on 03-2012.

                                  The bug "page fault caused by referring freed node" detected on 2011 seems not to be fixed in that version. Look at run_drain_fifo starting at line 2226 and compare with the same function on this version at line 2242.

                                  Please, let me know if I'm going wrong…

                                  Thanks!

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    DiskWizard
                                    last edited by Sep 5, 2013, 9:04 AM

                                    Ah, exactly as I thought - it is not a configuration problem, but the driver related.

                                    1. GA-N3150M-D3P 8Gb RAM

                                    2. GA-C1037EN-EU 4GB RAM

                                    • 2,5 SATA III Solid State Drive SLIM S60
                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      selui
                                      last edited by Sep 5, 2013, 12:46 PM

                                      I hope I got it!

                                      [2.1-RC1][root@pfsense.ibernetica.com]/root(3): uname -a
                                      FreeBSD pfsense.ibernetica.com 8.3-RELEASE-p10 FreeBSD 8.3-RELEASE-p10 #1: Thu Sep  5 14:04:16 CEST 2013     root@freebsd.ibernetica.com:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8  amd64
                                      [[/code]
                                      
                                      I've just patched the driver, built and installed my fixed kernel. Now testing...  ;D
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        DiskWizard
                                        last edited by Sep 5, 2013, 1:12 PM

                                        Whoa man, you almost make my day  ;D

                                        1. GA-N3150M-D3P 8Gb RAM

                                        2. GA-C1037EN-EU 4GB RAM

                                        • 2,5 SATA III Solid State Drive SLIM S60
                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          DiskWizard
                                          last edited by Sep 9, 2013, 9:12 AM

                                          Since it is the driver from Akinori Furukoshi it should be configured in different way thru wlan0 device. Gonna make some digging in that way.

                                          1. GA-N3150M-D3P 8Gb RAM

                                          2. GA-C1037EN-EU 4GB RAM

                                          • 2,5 SATA III Solid State Drive SLIM S60
                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]