Overview
This article describes how to recover a bricked USW-Flex-Mini via recovery mode. The first step in the recovery process is to prepare a web server. See the subsections below on how to do that on each of the different operating systems: Windows, macOS and Ubuntu/Debian and then continue to the recovery instructions once that is done.
Table of Contents
How to Prepare a Web Server
The first step in the recovery process is to prepare a web server. See the subsections below on how to do that on each of the different operating systems: Windows, macOS and Ubuntu/Debian.
How to Prepare a Web Server on Windows
1. Download Python for Windows (Executable Installer) here.
2. Open the downloaded file and make sure you select Add Python x.x to PATH during installation.
3. After the Python installation open Command Prompt as Administrator and confirm that Python is installed correctly with the command below:
python -V
4. Create a directory for the web server by running the commands below:
mkdir c:\webserver
cd c:\webserver
5. Start the Python web server on port 80. Note that the version of Python can be found with the command from step 3:
Python 3.x:
python -m http.server 80
Python 2.x:
python -m SimpleHTTPServer 80
How to Prepare a Web Server on macOS
1. Download Python for macOS here.
2. After the Python installation open Terminal and confirm that Python is installed correctly with the command below:
python -V
3. Create a directory for the web server by running the commands below:
cd ~
mkdir webserver
cd webserver
4. Start the Python web server on port 80. Note that the version of Python can be found with the command from step 2:
Python 3.x:
python -m http.server 80
Python 2.x:
python -m SimpleHTTPServer 80
How to Prepare a Web Server on Ubuntu/Debian
1. Install Python on your machine with the commands below:
sudo apt-get update && sudo apt-get install python3
2. After the Python installation open a terminal and confirm that Python is installed correctly with the command below:
python_version=$(dpkg -l | grep "^ii" | awk '/python/{print$2}' | grep "^python[0-9].[0-9]$" | head -n1)
sudo "${python_version}" -V
3. Create a directory for the web server by running the commands below:
cd ~
mkdir webserver
cd webserver
4. Start the Python web server on port 80. Note that the version of Python can be found with the command from step 2:
Python 3.x:
sudo "${python_version}" -m http.server 80
Python 2.x:
sudo "${python_version}" -m SimpleHTTPServer 80
How to Recover a USW Flex Mini
1. Prepare a web server as explained above, and set the server / computer’s IP to a static 192.168.1.99. The way to set a static IP on a computer will vary from platform to platform. Find instructions on how to do that in your product’s documentation (Windows, macOS or Ubuntu/Linux).
2. Download the latest firmware (found in Downloads), rename the binary to fwupdate.bin and place it in the directory that was created earlier (webserver).
3. Power down the switch by unplugging from the power source.
4. Press the switch’s reset button and hold it down as you provide power to the switch. Hold the reset button down for over 10 seconds during boot up. The LED pattern should be: blue-white-off blinking.
5. The USW-Flex-Mini should be updated after a while.
Source :
https://help.ui.com/hc/en-us/articles/360045001914-UniFi-USW-Flex-Mini-Recovery