The Ubiquiti UniFi NVR (SKU: UNVR) is a $300, 1U, 4-bay, short depth, low power, silent server that runs Ubiquiti's proprietary UbiOS and applications.
This repo contains files used for exploration of the UNVR and hopefully will have instructions for installing your own OS on it.
In November, 2020, I learned about the UNVR and saw potential for it to be used as a NAS. Unfortunately it comes shipped with Ubiquiti's UbiOS. It's based on Debian, but has very little documentation and runs a myriad of their proprietary applications that I don't need.
On Black Friday, 2020, the UNVR went on sale for $50 off the usual price and I couldn't resist picking it up to play with it.
This project will cover my attempts to modify the UNVR to run a standard Linux installation (starting with Debian), and if that doesn't work, starting from the ground up using LFS (Linux From Scratch).
If you make changes to your NVR you will very likely invalidate the warranty on it. Ubuiti made several efforts to prevent modifications from being performed to the device:
Proceed with caution.
There are serial port pins on the mainboard almost directly behild the SFP+ port. Only the first three pins are required (GND, TXD, RXD). Using a TTL serial adapter of some sort (e.g. FTDI based USB card, the Adafruit TTL serial cable, or an Arduino or one of its clones) you can access the console.
There is no need to use the 4th pin (3v3 pin).
See the images for this project for an example of connecting a basic Moyina FTDI TTL USB adapter.
The UNVR uses the following serial console settings:
I used the following gnu screen command to connect to the console:
screen /dev/tty.usbserial-AG0KB280 115200 8N1
Replace /dev/tty.usbserial-AG0KB280
with the appropriate device name for your system
Between the PSU and the CPU is a USB connected flash drive. This contains the OS that is used to boot the UNVR. It is glued down.
I used a hair dryer to warm up the glue and dental floss to cut through the softened glue. Unfortunately I did not get pictures of this process, only the end result.
See the images for this project for pictures of the flash drive.