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

    SG-1100 - Failed pfsense upgrade

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    24 Posts 3 Posters 2.0k Views 3 Watching
    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.
    • stephenw10S Offline
      stephenw10 Netgate Administrator
      last edited by

      The installer should work on either port but some USB memsticks will only work in one or the other. The uboot USB stack doesn't seem to handle fallback very well.

      Yes, using a USB3 stick as the target device should be better in terms of boot time. In reality it doesn't make much difference in my experience. Other than at boot.

      E 1 Reply Last reply Reply Quote 0
      • E Offline
        extremesurf @stephenw10
        last edited by

        @stephenw10 Thanks for your help. I got another USB key and put in the USB 3.0 slot to install the operating system, but it seems to fail with 'Invalid Partition 2':

        Hit any key to stop autoboot:  0
        Marvell>> usb reset
        resetting USB...
        USB0:   Register 2000104 NbrPorts 2
        Starting the controller
        USB XHCI 1.00
        USB1:   USB EHCI 1.00
        scanning bus 0 for devices... 2 USB Device(s) found
        scanning bus 1 for devices... 2 USB Device(s) found
               scanning usb for storage devices... 2 Storage Device(s) found
        Marvell>> run usbrecovery
        switch to partitions #0, OK
        mmc1(part 0) is current device
        
        MMC erase: dev # 1, block # 0, count 4194304 ... 4194304 blocks erased: OK
        resetting USB...
        USB0:   Register 2000104 NbrPorts 2
        Starting the controller
        USB XHCI 1.00
        USB1:   USB EHCI 1.00
        scanning bus 0 for devices... 2 USB Device(s) found
        scanning bus 1 for devices... EHCI timed out on TD - token=0x80008d80
        
              USB device not accepting new address (error=22)
        1 USB Device(s) found
               scanning usb for storage devices... 1 Storage Device(s) found
        ** Invalid partition 2 **
        
        

        It's a new flash drive that I haven't ever put data on, and after it failed I did try deleting the partitions and recreating, but I'm not sure if any specific prep is required on the flash drive?

        Do you have any suggestions how to proceed beyond this?

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

          Yes it's probably trying to boot from empty drive. Try swapping the drives for the install.

          Alternatively you can set a boot env to boot from the other device or manually set it at the uboot prompt.

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            extremesurf @stephenw10
            last edited by

            @stephenw10 This is the output when I switch the flash drives around. I should mention that previously I couldn't get the pfSense recovery flash drive to boot off USB 3.0 so I had to move it to USB 2.0.

            Hit any key to stop autoboot:  0
            Marvell>> usb reset
            resetting USB...
            USB0:   Register 2000104 NbrPorts 2
            Starting the controller
            USB XHCI 1.00
            USB1:   USB EHCI 1.00
            scanning bus 0 for devices... usb_new_device: Cannot read configuration, skipping device 13fe:5100
            1 USB Device(s) found
            scanning bus 1 for devices... 2 USB Device(s) found
                   scanning usb for storage devices... 1 Storage Device(s) found
            Marvell>> run usbrecovery
            switch to partitions #0, OK
            mmc1(part 0) is current device
            
            MMC erase: dev # 1, block # 0, count 4194304 ... 4194304 blocks erased: OK
            resetting USB...
            USB0:   Register 2000104 NbrPorts 2
            Starting the controller
            USB XHCI 1.00
            USB1:   USB EHCI 1.00
            scanning bus 0 for devices... usb_new_device: Cannot read configuration, skipping device 13fe:5100
            1 USB Device(s) found
            scanning bus 1 for devices... 2 USB Device(s) found
                   scanning usb for storage devices... 1 Storage Device(s) found
            ** Invalid partition 2 **
            
            

            Can you elaborate on what the alternative options are? I wasn't sure how to set the boot env to boot the alternate or manually set it at the uboot prompt.

            Thanks in advance, I really appreciate the help!

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

              Hmm, I would try a different USB stick.

              Also be sure to completely power cycle the 1100 between attempts to reset the USB bus devices.

              E 1 Reply Last reply Reply Quote 0
              • E Offline
                extremesurf @stephenw10
                last edited by extremesurf

                @stephenw10 I used an NVMe drive in a USB enclosure and switched around the USB ports and managed to get it installed. It failed the first attempt after downloading the packages when it went to check integrity with:

                Child process pid=3197 terminated abnormally: killed
                

                After retrying the install it worked successfully the second time, but when I remove the installer drive and attempt to boot off the flash drive, it gets past the pfSense logo and then it stops at:

                sdhci_xenon1-slot0: Present:  0x01f20000 | Host ctl: 0x00000025
                sdhci_xenon1-slot0: Power:    0x0000000f | Blk gap:  0x00000000
                sdhci_xenon1-slot0: Wake-up:  0x00000000 | Clock:    0x00000407
                sdhci_xenon1-slot0: Timeout:  0x0000000c | Int stat: 0x00000000
                sdhci_xenon1-slot0: Int enab: 0x01ff003b | Sig enab: 0x01ff003b
                sdhci_xenon1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
                sdhci_xenon1-slot0: Caps:     0x25ec0099 | Caps2:    0x0000af77
                sdhci_xenon1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
                sdhci_xenon1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000
                sdhci_xenon1-slot0: ===========================================
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                Mounting from zfs:pfSense/ROOT/default failed with error 6; retrying for 3 more seconds
                random: unblocking device.
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                mmcsd0: Error indicated: 1 Timeout
                Mounting from zfs:pfSense/ROOT/default failed with error 6.
                
                Loader variables:
                  vfs.root.mountfrom=zfs:pfSense/ROOT/default
                
                Manual root filesystem specification:
                  <fstype>:<device> [options]
                      Mount <device> using filesystem <fstype>
                      and with the specified (optional) option list.
                
                    eg. ufs:/dev/da0s1a
                        zfs:zroot/ROOT/default
                        cd9660:/dev/cd0 ro
                          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)
                
                  ?               List valid disk boot devices
                  .               Yield 1 second (for background tasks)
                  <empty line>    Abort manual input
                
                mountroot>
                
                
                1 Reply Last reply Reply Quote 0
                • stephenw10S Offline
                  stephenw10 Netgate Administrator
                  last edited by

                  It's still booting from emmc.

                  If you run at the uboot prompt (Marvel>): printenv. You'll see the uboot environment variables including bootcmd which is still showing 'run emmcboot`.

                  To test it at the prompt just enter: run usbboot

                  If that works as expected then you can change the bootcmd to run that everytime.

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

                    Something else you might be hitting is if the nvme and emmc (which is now probably read-only) have ZFS pools with the same name it might be trying to mount the emmc even after booting usb.

                    In that case you would need to reinstall the NVMe using a different zpool name than the default 'pfsense'.

                    E 1 Reply Last reply Reply Quote 0
                    • E Offline
                      extremesurf @stephenw10
                      last edited by

                      @stephenw10 It boots ok when I move the flash drive back to USB 2.0 (although it is slow, takes 2 minutes 10 secs), but I guess it's not the worst case if it won't boot on USB 3.0.

                      It comes up with these errors in the Filter Reload log:

                      There were error(s) loading the rules: pfstl: DIOCBEGINADDRS: Operation not supported - The line in question reads [0]
                      

                      Not sure if this is anything to worry about, comes up every reboot in the GUI.

                      Thanks again for all of your help!

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

                        Hmm, I have tried creating a second usb boot env in uboot that uses 'loadunit' 1, the other USB device. That might allow it to boot from the USB3 port.

                        That error is unrelated though. I assume you mean pfctl there? That's usually because the kernel has been upgraded and the old pfctl is still running. Is that possible?

                        You might see that if it's still mounting root from the emmc somehow.

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