Ubiquiti UniFi Security Gateway Pro 4
Rack-mounted 1U device. No Wi-Fi, 4GigE, 2 SFP slots (not supported?)
Manufacturer's page: https://www.ui.com/unifi-routing/unifi-security-gateway-pro-4/
OpenWrt support
Not supported.
Supporting activities
Describe if there are any ongoing activities that might lead to OpenWrt support.
Extremely similar to Ubiquiti EdgeRouter Pro.
Hardware highlights
CPU | Ram | Flash | Network | WLAN | USB | Serial | JTag |
---|---|---|---|---|---|---|---|
Cavium Octeon II V0.1 @ XXXX MHz | 2 GiB | SPI 8MiB, MMC 3.68 GiB | 4x 1000 | - | 1x 2.0 | Yes | ? |
Hardware
Info
Architecture | MIPS |
---|---|
Vendor | EXAMPLE Ralink |
Bootloader | U-Boot |
System-On-Chip | EXAMPLE Ralink RT3052 - MIPS 24K V4.12 |
CPU/Speed | EXAMPLE 451 MHz |
Flash-Chip | EXAMPLE unkown |
Flash size | EXAMPLE 8 MiB |
RAM | EXAMPLE 64 MiB |
Wireless | None |
Ethernet | 4x100Gbit |
Switch | EXAMPLE Qualcomm Atheros QCA8337 |
USB | 1x 2.0 |
Serial | Yes |
JTAG | EXAMPLE Not populated |
Photos
Insert photo of front of the casing
Insert photo of back of the casing
Insert photo of backside label
Insert photo of PCB
Opening the case
Unscrew 3 Philips screws at the back of the case.
Serial
→ port.serial general information about the serial port, serial port cable, etc.
Serial port is available via RJ45 port at the front of the device, marked “Console”. Cisco-like serial cable.
Serial connection parameters for Ubiquiti UniFi Security Gateway Pro 4 | 115200, 8N1 |
---|
JTAG
→ port.jtag general information about the JTAG port, JTAG cable, etc.
How to connect to the JTAG Port of this specific device: ¯\_(ツ)_/¯
Bootlogs
OEM bootlog
Jumping to start of image at address 0xbfca0000 U-Boot 2012.04.01 (UBNT Build Version: e221_002_01aa9) (Aug 17 2018 - 01:13:14) Skipping PCIe port 0 BIST, in EP mode, can't tell if clocked. Skipping PCIe port 1 BIST, reset not done. (port not configured) BIST check passed. UBNT_E220 r1:1, r2:14, serial #: 788A207E20F0 MPR 13-02102-14 Core clock: 1000 MHz, IO clock: 600 MHz, DDR clock: 533 MHz (1066 Mhz DDR) Base DRAM address used by u-boot: 0x8f800000, size: 0x800000 DRAM: 2 GiB Clearing DRAM...... done Flash: 8 MiB Net: octeth0, octeth1, octeth2, octeth3 MMC: Octeon MMC/SD0: 0 USB: USB EHCI 1.00 scanning bus for devices... 2 USB Device(s) found Type the command 'usb start' to scan for USB storage devices. Hit any key to stop autoboot: 0 Octeon ubnt_e220#
OpenWrt bootlog
Octeon ubnt_e220# Octeon ubnt_e220# usb start (Re)start USB... USB: USB EHCI 1.00 scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Octeon ubnt_e220# fatload usb 0:1 $(loadaddr) openwrt-19.07.4-octeon-er-initramfs-kernel.bin reading openwrt-19.07.4-octeon-er-initramfs-kernel.bin 14688528 bytes read Octeon ubnt_e220# bootoctlinux 0 numcores=2 endbootargs mem=0 argv[2]: numcores=2 argv[3]: endbootargs Allocating memory for ELF segment: addr: 0xffffffff81100000 (adjusted to: 0x1100000), size 0x1f5a220 ## Loading big-endian Linux kernel with entry point: 0xffffffff8162f3e0 ... Bootloader: Done loading app on coremask: 0x3 Starting cores 0x3 [ 0.000000] Linux version 4.14.195 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11208-ce6496d796)) #0 SMP Sun Sep 6 16:19:39 2020 [ 0.000000] Skipping L2 locking due to reduced L2 cache size [ 0.000000] CVMSEG size: 2 cache lines (256 bytes) [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 000d9301 (Cavium Octeon II) [ 0.000000] Checking for the multiply/shift bug... no. [ 0.000000] Checking for the daddiu bug... no. [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 000000000c000000 @ 0000000003100000 (usable) [ 0.000000] memory: 0000000000c00000 @ 000000000f200000 (usable) [ 0.000000] memory: 000000006f800000 @ 0000000020000000 (usable) [ 0.000000] memory: 0000000001f5a220 @ 0000000001100000 (usable) [ 0.000000] Wasting 243712 bytes for tracking 4352 unused pages [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Using passed Device Tree. [ 0.000000] software IO TLB: mapped [mem 0x0311d000-0x0315d000] (0MB) [ 0.000000] Primary instruction cache 37kB, virtually tagged, 37 way, 8 sets, linesize 128 bytes. [ 0.000000] Primary data cache 32kB, 32-way, 8 sets, linesize 128 bytes. [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000000000000-0x00000000efffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003059fff] [ 0.000000] node 0: [mem 0x0000000003100000-0x000000000f0fffff] [ 0.000000] node 0: [mem 0x000000000f200000-0x000000000fdfffff] [ 0.000000] node 0: [mem 0x0000000020000000-0x000000008f7fffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000008f7fffff] [ 0.000000] random: get_random_bytes called from 0xffffffff8175c6d8 with crng_init=0 [ 0.000000] percpu: Embedded 18 pages/cpu s35632 r8192 d29904 u73728 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 514178 [ 0.000000] Kernel command line: mtdparts=phys_mapped_flash:640k(boot0)ro,640k(boot1)ro,64k(eeprom)ro root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait console=ttyS0,115200 [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.000000] Memory: 2003424K/2085224K available (5338K kernel code, 348K rwdata, 812K rodata, 8912K init, 16680K bss, 81800K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] CONFIG_RCU_FANOUT set to non-default value of 32 [ 0.000000] RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 127 [ 39.865284] clocksource: OCTEON_CVMCOUNT: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [ 39.876215] Calibrating delay loop (skipped) preset value.. 2000.00 BogoMIPS (lpj=4000000) [ 39.884453] pid_max: default: 32768 minimum: 301 [ 39.889119] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes) [ 39.895746] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes) [ 39.903230] Checking for the daddi bug... no. [ 39.907853] Hierarchical SRCU implementation. [ 39.912398] smp: Bringing up secondary CPUs ... [ 39.917039] SMP: Booting CPU01 (CoreId 1)... [ 39.921311] CPU1 revision is: 000d9301 (Cavium Octeon II) [ 39.921403] smp: Brought up 1 node, 2 CPUs [ 39.932768] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 39.942374] futex hash table entries: 512 (order: 4, 65536 bytes) [ 39.948777] NET: Registered protocol family 16 [ 39.957593] PCIe: Port 0 in endpoint mode, skipping. [ 39.962412] PCIe: Initializing port 1 [ 39.977048] PCIe: Port 1 stuck in reset, skipping. [ 39.987387] SCSI subsystem initialized [ 39.991160] usbcore: registered new interface driver usbfs [ 39.996552] usbcore: registered new interface driver hub [ 40.001833] usbcore: registered new device driver usb [ 40.006979] PCI host bridge to bus 0000:00 [ 40.010930] pci_bus 0000:00: root bus resource [mem 0x1000000000000] [ 40.017268] pci_bus 0000:00: root bus resource [io 0x0000] [ 40.022831] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0] [ 40.029615] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 40.038395] clocksource: Switched to clocksource OCTEON_CVMCOUNT [ 40.044759] NET: Registered protocol family 2 [ 40.049362] TCP established hash table entries: 16384 (order: 5, 131072 bytes) [ 40.056598] TCP bind hash table entries: 16384 (order: 7, 524288 bytes) [ 40.063372] TCP: Hash tables configured (established 16384 bind 16384) [ 40.069832] UDP hash table entries: 1024 (order: 4, 98304 bytes) [ 40.075815] UDP-Lite hash table entries: 1024 (order: 4, 98304 bytes) [ 40.082353] NET: Registered protocol family 1 [ 40.157962] Crashlog allocated RAM at address 0x3f00000 [ 40.163232] workingset: timestamp_bits=62 max_order=19 bucket_order=0 [ 40.172960] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 40.178774] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 40.190052] io scheduler noop registered [ 40.193829] io scheduler deadline registered (default) [ 40.199145] random: fast init done [ 40.199184] octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed. [ 40.210066] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 40.217563] console [ttyS0] disabled [ 40.221010] 1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 34, base_baud = 37500000) is a OCTEON [ 40.230824] console [ttyS0] enabled [ 40.230824] console [ttyS0] enabled [ 40.237772] bootconsole [early0] disabled [ 40.237772] bootconsole [early0] disabled [ 40.245994] 1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 35, base_baud = 37500000) is a OCTEON [ 40.256077] octeon_rng octeon_rng: Octeon Random Number Generator [ 40.264742] loop: module loaded [ 40.268252] of-flash 1f400000.nor: Can't get bank width from device tree [ 40.275130] libphy: mdio_octeon: probed [ 40.289177] mdio_octeon 1180000001800.mdio: Probed [ 40.294111] libphy: mdio_octeon: probed [ 40.307455] mdio_octeon 1180000001900.mdio: Probed [ 40.312475] libphy: Fixed MDIO Bus: probed [ 40.316674] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 40.323224] ehci-pci: EHCI PCI platform driver [ 40.327720] ehci-platform: EHCI generic platform driver [ 40.333089] ehci-platform 16f0000000000.ehci: EHCI Host Controller [ 40.339310] ehci-platform 16f0000000000.ehci: new USB bus registered, assigned bus number 1 [ 40.347756] ehci-platform 16f0000000000.ehci: irq 56, io mem 0x16f0000000000 [ 40.370397] ehci-platform 16f0000000000.ehci: USB 2.0 started, EHCI 1.00 [ 40.377507] hub 1-0:1.0: USB hub found [ 40.381304] hub 1-0:1.0: 2 ports detected [ 40.385608] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 40.391826] ohci-platform: OHCI generic platform driver [ 40.397178] ohci-platform 16f0000000400.ohci: Generic Platform OHCI controller [ 40.404440] ohci-platform 16f0000000400.ohci: new USB bus registered, assigned bus number 2 [ 40.412864] ohci-platform 16f0000000400.ohci: irq 56, io mem 0x16f0000000400 [ 40.486803] hub 2-0:1.0: USB hub found [ 40.490600] hub 2-0:1.0: 2 ports detected [ 40.494973] usbcore: registered new interface driver usb-storage [ 40.501032] octeon_wdt: Initial granularity 5 Sec [ 40.551736] Interface 0 has 4 ports (SGMII) [ 40.555982] Interface 1 has 4 ports (SGMII) [ 40.563482] NET: Registered protocol family 10 [ 40.569378] Segment Routing with IPv6 [ 40.573117] NET: Registered protocol family 17 [ 40.577612] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 40.590600] 8021q: 802.1Q VLAN Support v1.8 [ 40.594953] Bootbus flash: Setting flash for 8MB flash at 0x1f400000 [ 40.734402] usb 1-1: new high-speed USB device number 2 using ehci-platform [ 40.899594] usb-storage 1-1:1.0: USB Mass Storage device detected [ 40.905893] scsi host0: usb-storage 1-1:1.0 [ 41.939044] scsi 0:0:0:0: Direct-Access General USB Flash Disk 1.0 PQ: 0 ANSI: 2 [ 41.948132] sd 0:0:0:0: [sda] 7831552 512-byte logical blocks: (4.01 GB/3.73 GiB) [ 41.956750] sd 0:0:0:0: [sda] Write Protect is off [ 41.962627] sd 0:0:0:0: [sda] No Caching mode page found [ 41.967971] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 41.978767] sda: sda1 [ 41.984377] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 42.269824] phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0000c9 [ 42.280204] Amd/Fujitsu Extended Query Table at 0x0040 [ 42.285378] Amd/Fujitsu Extended Query version 1.1. [ 42.290447] phys_mapped_flash: Swapping erase regions for top-boot CFI table. [ 42.297601] number of CFI chips: 1 [ 42.301029] 3 cmdlinepart partitions found on MTD device phys_mapped_flash [ 42.307923] Creating 3 MTD partitions on "phys_mapped_flash": [ 42.313690] 0x000000000000-0x0000000a0000 : "boot0" [ 42.318965] 0x0000000a0000-0x000000140000 : "boot1" [ 42.324231] 0x000000140000-0x000000150000 : "eeprom" [ 42.332044] OF: fdt: not creating '/sys/firmware/fdt': CRC check failed [ 42.341825] Freeing unused kernel memory: 8912K [ 42.346398] This architecture does not have kernel memory protection. [ 42.359212] init: Console is alive [ 42.362761] init: - watchdog - [ 42.370691] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 42.377588] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 42.386283] init: - preinit - [ 42.462963] random: jshn: uninitialized urandom read (4 bytes read) [ 42.488145] random: jshn: uninitialized urandom read (4 bytes read) [ 42.507291] random: jshn: uninitialized urandom read (4 bytes read) [ 42.535354] eth0: 1000 Mbps Full duplex, port 0, queue 0 [ 42.540795] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 43.538581] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 45.607158] eth0: Link down [ 45.613393] procd: - early - [ 45.616352] procd: - watchdog - [ 46.173082] procd: - watchdog - [ 46.176432] procd: - ubus - [ 46.181578] urandom_read: 1 callbacks suppressed [ 46.181583] random: ubusd: uninitialized urandom read (4 bytes read) [ 46.228890] random: ubusd: uninitialized urandom read (4 bytes read) [ 46.235409] random: ubusd: uninitialized urandom read (4 bytes read) [ 46.242202] procd: - init - Please press Enter to activate this console. [ 46.371049] kmodloader: loading kernel modules from /etc/modules.d/* [ 46.379319] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 46.387461] ip_tables: (C) 2000-2006 Netfilter Core Team [ 46.391747] urngd: v1.0.2 started. [ 46.395647] nf_conntrack version 0.5.0 (16384 buckets, 65536 max) [ 46.417039] xt_time: kernel timezone is -0000 [ 46.425110] PPP generic driver version 2.4.2 [ 46.430359] NET: Registered protocol family 24 [ 46.435894] kmodloader: done loading kernel modules from /etc/modules.d/* [ 46.440608] random: crng init done [ 46.446118] random: 3 urandom warning(s) missed due to ratelimiting [ 50.026007] mmc0: new DDR MMC card at address 0001 [ 50.034518] mmcblk0: mmc0:0001 SEM04G 3.69 GiB [ 50.039177] mmcblk0boot0: mmc0:0001 SEM04G partition 1 2.00 MiB [ 50.045324] mmcblk0boot1: mmc0:0001 SEM04G partition 2 2.00 MiB [ 50.051352] mmcblk0rpmb: mmc0:0001 SEM04G partition 3 2.00 MiB, chardev (252:0) [ 50.059742] mmcblk0: p1 p4 [ 52.675459] br-lan: port 1(eth0) entered blocking state [ 52.680730] br-lan: port 1(eth0) entered disabled state [ 52.686133] device eth0 entered promiscuous mode [ 52.700097] br-lan: port 1(eth0) entered blocking state [ 52.705359] br-lan: port 1(eth0) entered forwarding state [ 52.710895] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 52.724443] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 53.682779] br-lan: port 1(eth0) entered disabled state [ 55.740575] eth0: 1000 Mbps Full duplex, port 0, queue 0 [ 55.745944] br-lan: port 1(eth0) entered blocking state [ 55.751197] br-lan: port 1(eth0) entered forwarding state [ 55.757259] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready BusyBox v1.30.1 () built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt 19.07.4, r11208-ce6496d796 ----------------------------------------------------- === WARNING! ===================================== There is no root password defined on this device! Use the "passwd" command to set up a new password in order to prevent unauthorized SSH logins. -------------------------------------------------- root@OpenWrt:/#