OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: EMTSU on April 09, 2019, 04:33:05 pm

Title: Netgate SG-5100 bricked after update to 19.1
Post by: EMTSU on April 09, 2019, 04:33:05 pm
Can anyone help me with this?

I was happily using 18.7 on a Netgate SG-5100 when I was asked to update the unit's software to the latest version, which I did using the GUI. Upon restart the unit is no longer accessible. To add to matters the USB console port does not work (ref. https://forum.opnsense.org/index.php?topic=9979) on this unit. I have a copy of the config.

I'm a real rookie in this world, so can anyone point me in the right direction to get me started?
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: chemlud on April 09, 2019, 06:59:15 pm
Hmm, the mini-USB is the serial console

https://store.netgate.com/SG-5100.aspx

Did you ever get this to work?

Anyways, somehow you managed to "install" OPNsense to the device (copy nano image to eMMC or USB-stick and boot?). Do it again and import your config and you should be done. :-)

Without the console you have to figure out which RJ45 is LAN after first boot (try where your computer get's an IP) and log in to the GUI
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: EMTSU on April 10, 2019, 11:33:14 am
Hi chemlud,

No, I never got the console to work.

Yes, I managed to install OPNsense in the first instance, because the device came with pfSense installed. Now that I don't have a working console and non of the Ethernet ports are dishing out DHCP, I have no way to access the device. Am I missing something?
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: chemlud on April 10, 2019, 12:12:14 pm
You can boot opnsense from a USB-stick to see how it does on your hardware before installing (again). I don't really understand the problem with the serial console,  don'T you see any output via the microUSB console?
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: EMTSU on April 10, 2019, 01:01:33 pm
I have made some progress, but only 'some'.

I can boot the installation, but it cannot see the internal MMC storage, so I am unable to continue. I can see said storage in the BIOS.

Any ideas?
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: EMTSU on April 11, 2019, 12:57:45 pm
Just to clarify, when I boot from USB and attempt an install, the onboard eMMC storage cannot be seen, but it is visible in the BIOS. Is it because there's an existing OS on the storage?
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: EMTSU on April 11, 2019, 05:32:15 pm
So for anyone who might be interested:-

After having no joy with v19.1 and the onboard eMMC storage on my SG-5100, I have managed to re-install using a v18.7 image. So it seems there is an issue or bug of sorts in v19.1 that prevents it from seeing the storage. There seems little point in now upgrading as I'll be back to square one. My only alternative, it would seem, is to try and obtain a rare 2242 M2 SATA drive or an equally rare power cable for the FDD power connector on the motherboard for a 2.5" drive.
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: franco on April 11, 2019, 05:40:13 pm
Looks like a typical rock + hard place situation:

https://github.com/opnsense/src/commit/c4ec367c3d9c4c29da94411b29fe6bfa55cb5d09

On FreeBSD 11.2 eMMC support was added, but it broke legacy MMC. I don't understand why eMMC works on 11.1 but now we can't have both so we side with legacy MMC until we see a better fix.


Cheers,
Franco
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: EMTSU on April 11, 2019, 06:00:03 pm
Quite Franco, thank you.

I have learnt my lesson, I won't be trying to mix Netgate and OPNsense again. I did so originally in good faith. If I had the option I'd buy a Deciso appliance.
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: franco on April 11, 2019, 06:15:52 pm
We will look into FreeBSD to see if the issue has been subsequently fixed. I do hope this is a temporary situation. :)


Cheers,
Franco
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: franco on April 11, 2019, 06:47:51 pm
It might be this commit that mentions repairing legacy support[1]. IT seems to be queued up for FreeBSD 11.3 but we'll go ahead and try it next week with a test image.

https://github.com/opnsense/src/commit/c722f5f3924


Cheers,
Franco

[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231713
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: EMTSU on April 12, 2019, 12:29:59 pm
Thank you for your replies Franco, much appreciated.

After hoping I'd resolved the issue with a rollback to v18.7, it would seem the problems begin again if the device is powered off and then back on again - I moved the device from my desk to the rack and now this happens: https://forum.opnsense.org/index.php?topic=12405 . I can restore v18.7 again, but then I'm back to the same position. I have a workaround of sorts in that I have hooked up an SSD, but despite making it the one and only boot device, I still receive the Controller timeout error, but OPNsense does finally boot after a few minutes.

I am going to try v18.1 next and will report back.
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: EMTSU on April 12, 2019, 02:29:33 pm
v18.1 did not resolve the issue for the onboard eMMC storage. So I am not sure where I stand now, it did work, but now all I get is the Controller timeout error for v18 software.

v19.1 did resolve the issue of the Controller timeout error appearing when booting from the SSD.

So for me at least, it looks like I need a M2 SATA drive (preferred over the 2.5" option).
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: franco on April 14, 2019, 08:55:44 am
Here's the FreeBSD patches applied to a 19.1.6 serial image. Careful with firmware upgrades as the kernel will be removed on the next press of "update" unless we include it in our default updates. If it works that is a soonish possibility for 19.1.x.

https://pkg.opnsense.org/FreeBSD:11:amd64/snapshots/OPNsense-19.1.6-OpenSSL-serial-amd64.img.bz2


Cheers,
Franco
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: EMTSU on April 16, 2019, 12:00:21 pm
Morning Franco! I've given this image a go, but it can't see the eMMC storage and controller error messages appear. Thank you for your efforts.
Title: Re: Netgate SG-5100 bricked after update to 19.1
Post by: franco on April 20, 2019, 07:58:09 pm
This is really strange. The legacy MMC is also broken on this one. This code is queued up for FreeBSD 11.3 so that will be a weird thing to watch going out in a release... For now what we have seems like the least worse option to stick with for the time being.


Sorry,
Franco