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

    Reinstall 22.01 firmware on Netgate 1100 failed

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    12 Posts 4 Posters 3.4k 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.
    • J
      jch
      last edited by

      Hello,

      I tried to reinstall the 22.01 firmware on several 1100 and I get the following error: 'ERROR: cannot open /boot/lua/loader.lua: invalid argument.'
      Console output:

      U-Boot 2017.03-armada-17.10.2-g6a6581a-dirty (Nov 22 2018 - 10:40:49 -0200)
      
      Model: Marvell Armada 3720 Community Board ESPRESSOBin
             CPU    @ 1200 [MHz]
             L2     @ 800 [MHz]
             TClock @ 200 [MHz]
             DDR    @ 750 [MHz]
      DRAM:  1 GiB
      U-Boot DT blob at : 000000003f716298
      Comphy-0: USB3          5 Gbps
      Comphy-1: PEX0          2.5 Gbps
      Comphy-2: SATA0         6 Gbps
      SATA link 0 timeout.
      AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
      flags: ncq led only pmp fbss pio slum part sxs
      PCIE-0: Link down
      MMC:   sdhci@d0000: 0, sdhci@d8000: 1
      SF: Detected mx25u3235f with page size 256 Bytes, erase size 64 KiB, total 4 MiB
      Net:   eth0: neta@30000 [PRIME]
      Hit any key to stop autoboot:  0
      Marvell>> run usbrecovery
      ** First descriptor is NOT a primary desc on 1:1 **
      ** First descriptor is NOT a primary desc on 1:1 **
      switch to partitions #0, OK
      mmc1(part 0) is current device
      
      MMC erase: dev # 1, block # 0, count 4194304 ... 4194304 blocks erased: OK
      starting 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... 1 USB Device(s) found
             scanning usb for storage devices... 1 Storage Device(s) found
      reading efi/boot/bootaa64.efi
      2097152 bytes read in 95 ms (21.1 MiB/s)
      reading armada-3720-sg1100.dtb
      12725 bytes read in 20 ms (621.1 KiB/s)
      ## Starting EFI application at 05000000 ...
      Card did not respond to voltage select!
      mmc_init: -95, time 41
      Scanning disk sdhci@d8000.blk...
      Scanning disk usb_mass_storage.lun0...
      Found 5 disks
      Consoles: EFI console  
          Reading loader env vars from /efi/freebsd/loader.env
      FreeBSD/arm64 EFI loader, Revision 1.1
      
         Command line arguments: loader.efi
         Image base: 0x5000000
         EFI version: 2.05
         EFI Firmware: Das U-boot (rev 0.00)
         Console: efi (0x1000)
         Load Path: bootefi
         Load Device: bootefi
      ERROR: cannot open /boot/lua/loader.lua: invalid argument.
      
      
      Type '?' for a list of commands, 'help' for more detailed help.
      OK
      

      I also wonder why the 'pfSense-plus-Netgate-1100-recovery-22.01-RELEASE-aarch64.img.gz' file size is 1.1 GB when usually the pfSense firmware is around 400 MB.

      Has anyone seen the same issue ?

      A 1 Reply Last reply Reply Quote 0
      • A
        anthonys @jch
        last edited by

        @jch
        Two observations.
        Firstly, this looks similar to issue discussed in
        https://forum.netgate.com/topic/169868/22-01-reinstall-goes-wrong
        for which no solution has been posted.
        Secondly, I today requested 22.01 firmware for my SG-1100, and I received an image, different name to the one you mention, of
        pfSense-plus-compat-recovery-22.01-RELEASE-aarch64.img.gz
        I am going to hold off install of 22.01 until I have more clarity.

        1 Reply Last reply Reply Quote 0
        • J
          jch
          last edited by

          Thank you Anthony,

          Sorry I didn't see that the problem is already discuss, indeed it is the same issue

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

            The problem is now understood. The cause is that the old uboot version you have there does not support booting from ZFS.
            The installer should automatically update uboot when you select write to eMMC if it detects an old version but for some reason has not on yours.
            In the linked thread the reason for that is that the uboot version (Nov 1st 2018) was not recognised by the installer but the version you have (Nov 22nd 2018) is known. It should have updated.
            So the first thing I would do here is just try installing again and see if it throws an error if it doesn't update uboot.
            If it still fails then reinstall as UFS, which will boot fine, and then open a support ticket with us:
            https://www.netgate.com/tac-support-request
            Our support guys can walk you through updating uboot manually from there and then you can install ZFS again if you wish.

            Steve

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

              @stephenw10 are you able to clarify why @jch and I appear to have different installation image files:
              'pfSense-plus-Netgate-1100-recovery-22.01-RELEASE-aarch64.img.gz'
              'pfSense-plus-compat-recovery-22.01-RELEASE-aarch64.img.gz'

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

                Ah, OK. That explains why your uboot didn't update, you would not have got that far with that image.
                You need to use the compat image when booting the older uboot image so you should have:
                pfSense-plus-compat-recovery-22.01-RELEASE-aarch64.img.gz

                Contact support if you don't have it.

                The reason the image is much larger is that it has images for both ZFS and UFS installs.

                Steve

                J A 2 Replies Last reply Reply Quote 2
                • J
                  jch @stephenw10
                  last edited by

                  @stephenw10

                  Hello Steve,

                  Thanks for your explanation, could you please upload 'pfSense-plus-compat-recovery-22.01-RELEASE-aarch64.img.gz' on partner area (on NETGATE 1100 Firmware Images directory) ?

                  Jean-Charles

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

                    @jch That should be up there now. Let me know if you're unable to access it.

                    Steve

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jch @stephenw10
                      last edited by

                      @stephenw10
                      All is ok, thank you very much :)

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

                        @stephenw10
                        I finally got round to attempting switch to ZFS using:
                        pfSense-plus-compat-recovery-22.01-RELEASE-aarch64.img.gz
                        I have made two attempts to reinstall my SG-1100. First time I entered "ZFS" at the selection of filesystem prompt, second time simply <CR>.
                        Both times the install completed, but on powercycle (reboot) I end up at:

                        ERROR: cannot open /boot/lua/loader.lua: invalid argument.

                        Third attempt I reinstalled as "UFS", which seems to reboot sucessfully (although I didn't bother proceeding to do a Web login, reconfigure, ...)

                        I still wish to move to ZFS, but I don't have a support contract. Is there a path forward?

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          rcoleman-netgate Netgate @anthonys
                          last edited by

                          @anthonys
                          To get past that error you have to install as UFS first then force-update/verify the U-Boot firmware (see below) and then you can reinstall as ZFS.

                          /usr/local/share/u-boot/1100/u-boot-update.sh -f

                          You can run that through the console shell (option 8) or the Command Prompt on the GUI (Diagnostics -> Command Prompt).

                          Ryan
                          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                          Requesting firmware for your Netgate device? https://go.netgate.com
                          Switching: Mikrotik, Netgear, Extreme
                          Wireless: Aruba, Ubiquiti

                          A 1 Reply Last reply Reply Quote 4
                          • A
                            anthonys @rcoleman-netgate
                            last edited by

                            @rcoleman-netgate Running the force-update has done the trick. The SG-1100 is now running 22.01 using ZFS.
                            Thankyou.

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