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

    Kernel Panic when Upgrading to 2.8.0 beta

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    73 Posts 11 Posters 9.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.
    • GertjanG
      Gertjan @manicmoose
      last edited by Gertjan

      @manicmoose said in Kernel Panic when Upgrading to 2.8.0 beta:

      That same WiFi chip/adapter has been working with pfsense/BSD for over 5 years...the driver probably just needs slight adjustment for a newer kernel, would be my expectation.

      I though you were getting the point that pfSense pfSense 2.7.0 uses FreeBSD 14.x
      pfSense 2.8.0 uses newer kernel, 15.x.

      Sure enough, the same (?) driver recompiled for "15" fails - for you.
      If it's part of the new "15" kernel set, then it was working for some one, otherwise FreeBSD (and Netgate ?) wouldn't have included the driver.
      If you have a chip set version type or any detail that can identify your wifi NIC, check up stream (freebsd driver support) if the issue is known, maybe a more recent driver exists already, compiled for your processor (x86, x64 or arm) and didn't make it into this pfSense build (using kernel 15.x).

      I agree, making it work could be very easy. It's just a matter of : the guy who has the same hardware as you and can build/test/write/understand FreeBSD kernel drivers, has to to 'his thing'.

      edit : remember :
      Office 365 for Windows 10 might work Windows 11.
      Office is a user land app.
      A kernel driver is totally different. For some 'devices' like a NIC for Windows 10 will not work for Windows 11. Is has to be, at least, rebuild.
      As system calls, settings etc etc did change, some source modification are needed for every device driver.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      M 1 Reply Last reply Reply Quote 0
      • M
        manicmoose @Gertjan
        last edited by manicmoose

        @Gertjan

        Is it just me, or does it feel weird that pfsense are using freebsd v15, which has not even been officially released yet and won't be until Nov/Dec. this year?
        Normally, software like firewalls are built on N-1 version, which have been road-tested and proven to be solid.
        Obvs, Netgate are different....or are using CE community as the guinea pigs.

        edit
        Looks like there is active work still going on with these drivers for FreeBSD.

        They removed the 'iwm' firmware as shipped kernel modules and are just trying to load the raw firmware with version 15 - so I guess there's hope that once all the pre-req's and bugs are ironed out, a subsequent update from pfsense could get the WiFi adapters working again.

        P 1 Reply Last reply Reply Quote 0
        • P
          Patch @manicmoose
          last edited by Patch

          @manicmoose said in Kernel Panic when Upgrading to 2.8.0 beta:

          are using CE community as the guinea pigs.

          @manicmoose Plus is has been more current than CE in recent years. So no the reverse has been the case which imo is a problem for the long term viability of a free CE version competing for plus clients without clear benefit for Netgate.

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

            Yup Plus has been running 15 for some time.

            But also, yes, there appears to be a regression with some drivers that now ship without firmware and load it. It's not just iwm. It should not kernel panic if the driver fails to attach for whatever reason.

            M 1 Reply Last reply Reply Quote 1
            • M
              manicmoose @stephenw10
              last edited by

              Hi @stephenw10 quick question...

              Having had to use this workaround putting the hint into loader.conf.local....should that be included in the backup xml file? I can't seem to find any reference to the hint in it.
              I would have thought it should be in there, in case we have to rescue boot/reinstall off a USB image?!

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @manicmoose
                last edited by

                @manicmoose

                Your "loader.conf.local" won't get saved in the config.xml.
                Rule of thumb : only GUI settings are saved.

                Possible solution : Install this package :

                0171251c-5ddc-446b-8c72-fae827223fda-image.png

                and use it to date/annotate/detail (with URLs to the sites /forum /whatever ) and make a Note about what you've put into these system file.

                The Notes info will get saved into the config.xml

                From now on, you won't need to remember what you've done today, yesterday, or last year.
                In case of a re install, read your Notes and do what said in there, you'll be fine.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

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

                  No the loader file isn't included in config file.

                  You could add it using the filer package but you don't have to. You can always set that hint at the loader prompt to allow the system to boot before adding the file again.

                  A 1 Reply Last reply Reply Quote 1
                  • A
                    Astronaut 0 @stephenw10
                    last edited by

                    @stephenw10 said in Kernel Panic when Upgrading to 2.8.0 beta:

                    No the loader file isn't included in config file.

                    You could add it using the filer package but you don't have to. You can always set that hint at the loader prompt to allow the system to boot before adding the file again.

                    I ran into this issue when upgrading to 2.8.0 (not beta). I did the loader.conf.local thing and managed to upgrade.

                    What is the right way of dealing with this issue? I really don't want to have to go through the same thing with the next upgrade. This seems like something that should be documented or even better, the kernel should not crash when it detects a device where it doesn't have a driver.

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

                      Indeed it should not. Removing the offending hardware will obviously prevent it. And in almost every case that hardware was not doing anything useful in pfSense anyway.

                      However it should be fixed soon anyway: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283285

                      Hopefully will be in the next release.

                      1 Reply Last reply Reply Quote 0
                      • mioM mio referenced this topic
                      • C
                        CCNewb
                        last edited by

                        As a follow-up, after replacing my motherboard, knock on wood, no more random crashes. And 2.8.0 seems to be working fine so far, no complaints.

                        1 Reply Last reply Reply Quote 2
                        • T
                          thrx1 @manicmoose
                          last edited by

                          @manicmoose said in Kernel Panic when Upgrading to 2.8.0 beta:

                          That same WiFi chip/adapter has been working with pfsense/BSD for over 5 years...the driver probably just needs slight adjustment for a newer kernel, would be my expectation.

                          Reply

                          +1 on the Kernel Panic when Upgrading to 2.8.0 here.
                          I have pfSense running in an Intel NUC7 and it has been running fine for several years until I tried to upgrade to 2.8.0 on Friday. In my case I'm getting the Fatal Trap 12 page fault while in kernel mode with the AC9560 Intel Wireless on the NUC.

                          More details: Aside from the occasional run of dropouts (not dis-similar to @CCNewb symptoms) and a PITA when upgrading from 2.6 to 2.7, all versions of pfSense since 2.6.0 have been pretty solid on the NUC. I chose the NUC because I wanted something as vanilla as I could get to avoid any issues, and I've pretty much done so...until I tried to upgrade to 2.8.0.

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

                            Same advise applies: remove the card, disable it in the BIOS or add the loader hint to disable it in pfSense.

                            The patch should be in 2.8.1.

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              thrx1 @stephenw10
                              last edited by

                              @stephenw10 said in Kernel Panic when Upgrading to 2.8.0 beta:

                              Same advise applies: remove the card, disable it in the BIOS or add the loader hint to disable it in pfSense.

                              The patch should be in 2.8.1.

                              Thanks.

                              1 Reply Last reply Reply Quote 0
                              • T
                                thrx1 @patient0
                                last edited by

                                @patient0 said in Kernel Panic when Upgrading to 2.8.0 beta:

                                At the loader prompt before pfSense boots (press '3' when the boot menu shows) you enter:

                                set hint.iwm.0.disabled="1"

                                I used this method, and the upgrade to 2.8.0 worked.

                                The WiFi card is disabled in the BIOS; however, this was still required when the upgrade occurred. It is also required every time pfSense boots now.

                                I do not need the WiFi on the pfSense box, but it is not removable. Is there a way to set this parameter, or some other so it remains permanent and I do not need to enter this every time pfSense reboots? @patient0 mentioned a config file? Is that an option going forward, and if so, how should I do that exactly?

                                patient0P 1 Reply Last reply Reply Quote 0
                                • patient0P
                                  patient0 @thrx1
                                  last edited by

                                  @thrx1 said in Kernel Panic when Upgrading to 2.8.0 beta:

                                  Is there a way to set this parameter, or some other so it remains permanent

                                  Yes, add/set it in the /boot/loader.conf.local file (it may not exist yet):

                                  hint.iwm.0.disabled="1"

                                  T 1 Reply Last reply Reply Quote 1
                                  • T
                                    thrx1 @patient0
                                    last edited by

                                    @patient0 said in Kernel Panic when Upgrading to 2.8.0 beta:

                                    Yes, add/set it in the /boot/loader.conf.local file (it may not exist yet):

                                    hint.iwm.0.disabled="1"

                                    Thanks for confirming. Applied and works. :-)

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

                                      Hmm, interesting if it's really disabled in the BIOS pfSense shouldn't see it at all. Something not working right there.

                                      T 1 Reply Last reply Reply Quote 0
                                      • D
                                        dominik.b @thrx1
                                        last edited by dominik.b

                                        @thrx1

                                        I just want to verify your steps because I'm facing the same Wi-Fi problem.

                                        1. Create a file called 'loader.conf.local' on your desktop
                                        2. Edit this file and add: hint.iwm.0.disabled="1"
                                        3. Use File Upload on the pfSense GUI to load this file
                                        4. cp /tmp/loader.conf.local /boot/

                                        Correct?

                                        Once I reboot, the error should no longer be visible in the logs of my current version (2.7), but what does the error look like?

                                        When I try to install or upgrade to PFSense 2.8, almost the same error occurs as shown in the large picture of Spacecase.

                                        IMG_20250709_085809.jpg

                                        Regards Dom

                                        patient0P T 2 Replies Last reply Reply Quote 0
                                        • patient0P
                                          patient0 @dominik.b
                                          last edited by

                                          @dominik-b said in Kernel Panic when Upgrading to 2.8.0 beta:

                                          When I try to install or upgrade to PFSense 2.8, almost the same error occurs as shown in the large picture of Spacecase.

                                          Indeed that is the same issue you are facing.

                                          1. ... 4 ... Correct?

                                          I gave it a go using only pfSense GUI and your steps: yes your way does work, IF that file does not yes exist. Otherwise it will get overwritten!!

                                          Ideally you use an editor like Notepad++ to create that file on Windows and set the End Of Line to Unix.

                                          GertjanG 1 Reply Last reply Reply Quote 1
                                          • GertjanG
                                            Gertjan @patient0
                                            last edited by Gertjan

                                            @patient0 said in Kernel Panic when Upgrading to 2.8.0 beta:

                                            like Notepad++ to create that file on Windows and set

                                            @dominik-b .... and use WINSCP - activate the SSH access, the access is 'admin' + your pfSense password.

                                            Btw : For SSH to work, the file system to be available, pfSense needs to have booted ...

                                            A way out : Re install 2.7.2 - and now you can create /modify /boot/loader.conf.local file.
                                            When done, reboot and check that all is well - and that you 'lost' the 'iwm9000fw' device.
                                            From here, upgrade to 2.8.0 and this time, as the kernel doesn't find that device, no more issues.

                                            edit : plan B : from the >db prompt you've shown above, you might be able to "mount" the pfSense partition (read write) mode.
                                            When done, you could create the file.
                                            Then a simple reboot will do the job.

                                            How to mount etc from the >db prompt .... The solution might be here : pfSense Documentation

                                            ( I would vote for the 2.7.2 re install etc ...)

                                            No "help me" PM's please. Use the forum, the community will thank you.
                                            Edit : and where are the logs ??

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.