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

    SG-3100 Died With Bad eMMC

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    21 Posts 4 Posters 649 Views 4 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.
    • J Offline
      jsylvia007 @stephenw10
      last edited by

      @stephenw10 -

      So... that worked? I typed out those commands and it showed me exactly what was posted...

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

        Huh so it has the fat partiton on the drive and it contains the file?

        I would try manually running the command in m2boot then. See exactly where it fails.

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

          Oh wait what do you have m2dev set to?

          Marvell>> printenv m2dev
          m2dev=1
          

          And which slot did you add the drive to?

          Try setting it to 1 (or 0 if it;s already 1).

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

            @stephenw10 - WINNER WINNER CHICKEN DINNER!!!!!!!!!!!!

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jsylvia007 @jsylvia007
              last edited by

              Wait... Spoke too soon... Setting it to 1 looks like it's trying to boot / read from the eMMC and it's REALLY unhappy about that... Any way to stop it from doing that?

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                jsylvia007 @jsylvia007
                last edited by

                It says "External Config Loader Started... mmcsd0" and then it goes off to never, never land, which is exactly what I would expect because the MMC is TOAST.

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

                  Hmm, that's painful. It should eventually get past that. Once it does I would try to clear the partitions from the eMMC. If it allows that....

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

                    @stephenw10 - It did... It failed into a single user mode, I was able to issue a DD to the eMMC and after a reboot, it no longer sees the MMC device. Note that the DD made it VERY angry also, but I let it run for a bit to make sure that it destroyed as much of the partition table at the beginning as possible. It appears to be happy now!

                    I'm going to run another factory reset, etc., just to make sure it doesn't get wonky.

                    Note that when it's in a state with the failed eMMC, the USB terminal is also pretty unstable.

                    Of note for other folks who stumble across this... Believe it or not, the config file was still there and intact. Before I started all of this, I saw the config, was able to cat it out with the device in read-only, but couldn't get access to it. I couldn't remount it, and because it was read-only, I couldn't mount a USB device on top of it, but I was still able to get it.

                    I created a tmpfs on top of /mnt (the exact command escapes me, but I think it was mount -t tmpfs tmpfs /mnt. I think I had to make it read/write, but I can't remember off the top of my head how I did that piece (it might have been mount -u /mnt). From there, I was able to mount a USB stick to /mnt, and then copy the file from /cf/config/config.xml to the USB stick.

                    It took me a LONG time to figure out the tmpfs "hack", but it worked!

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

                      As a last resort you can usually just cat the config file and copy/paste it from the console directly.

                      1 Reply Last reply Reply Quote 1
                      • F Offline
                        FSC830
                        last edited by

                        The uboot commands sound somehow familiar to me, but actually I cant remember if I needed to do so.
                        I cant even remember which version of pfSense was the curretn at this time when adding the m.2 SATA, 21.x or 22.x? 😕

                        Regards

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