Ubiquiti USW-Flex

The USW-Flex is a small outdoor device that is powered via PoE++ and can provide power to four other devices.

1. Connect to the booted device at 192.168.1.20 using username/password ubnt via SSH.

  ssh ubnt@192.168.1.20

2. Add the uboot-envtools configuration file /etc/fw_env.config with the following content

  echo "/dev/mtd1 0x0 0x1000 0x10000 1" > /etc/fw_env.config

3. Update the bootloader environment.

  fw_setenv boot_openwrt "fdt addr \$(fdtcontroladdr); fdt rm /signature; bootubnt"
  fw_setenv bootcmd "run boot_openwrt"

4. Transfer the OpenWrt sysupgrade image to the device using SCP.

  scp -O openwrt-22.03.3-ramips-mt7621-ubnt_usw-flex-squashfs-sysupgrade.bin ubnt@192.168.1.20:openwrt.bin

5. Set the bootselect flag to boot from kernel0

  dd if=/dev/zero bs=1 count=1 of=/dev/mtdblock4

6. Write the OpenWrt sysupgrade image to both kernel0 as well as kernel1

  dd if=openwrt.bin of=/dev/mtdblock6
  dd if=openwrt.bin of=/dev/mtdblock7

7. Reboot the device. It should boot into OpenWrt.

To restore the vendor firmware, follow the Ubiquiti UniFi TFTP recovery guide for access points. The process is the same for the Flex switch.

FIXME Find out flash layout, then add the flash layout table here (copy, paste, modify the example).

Please check out the article Flash layout. It contains examples and explanations that describe how to document the flash layout.

To debrick the device, you can restore to the stock firmware and then restart the installation process.

Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.

FIXME Please fill in real values for this device, then remove the EXAMPLEs

The default network configuration is:

Interface Name Description Default configuration
br-lan EXAMPLE LAN & WiFi EXAMPLE 192.168.1.1/24
vlan0 (eth0.0) EXAMPLE LAN ports (1 to 4) EXAMPLE None
vlan1 (eth0.1) EXAMPLE WAN port EXAMPLE DHCP
wl0 EXAMPLE WiFi EXAMPLE Disabled
Port Switch port
LAN 1 4
LAN 2 3
LAN 3 2
LAN 4 1
LAN 5 0

hardware.button on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.

The Ubiquiti USW-Flex has the following buttons:

BUTTON Event
Reset reset

Front:

Back:

Ports:

Note: This will void your warranty!

To open the device you:

  • turn device upside down,
  • heat up the glue sealing in the slit between front and back cover,
  • take a look at the pictures below to locate the snap fasteners and use a small tool like a flat-tip screwdriver to carefully open them.

Knowing how the case looks from the inside should enable you to open it without causing damage.
However, if you intent to not loose the outdoor capability, you should probably renew the glue sealing before reassembly.

Inside of Front Cover:

Inside of Back Cover:

Glue Sealing:

PCB Front:

PCB Back:

port.serial general information about the serial port, serial port cable, etc.

Serial connection parameters
for Ubiquiti USW-Flex
115200, 8N1, 3.3V

port.jtag general information about the JTAG port, JTAG cable, etc.

How to connect to the JTAG Port of this specific device:
Insert photo of PCB with markings for JTAG port

None so far.

UBNT-US.v4.0.66# dmesg [ 0.000000] Linux version 4.4.153 (builder@owrt1505-builder) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3979-2252731af4) ) #0 SMP Thu Aug 30 12:10:54 2018 [ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc) [ 0.000000] Found FDT! at 836be3fc [ 0.000000] MIPS: machine is Ubiquiti Networks, Inc. USW-FLEX [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] User-defined physical RAM map: [ 0.000000] memory: 07ff7c00 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ff6fff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ff6fff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ff6fff] [ 0.000000] On node 0 totalpages: 32759 [ 0.000000] free_area_init_node: node 0, pgdat 80471440, node_mem_map 81000000 [ 0.000000] Normal zone: 256 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 32759 pages, LIFO batch:7 [ 0.000000] VPE topology {1} total 1 [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 0.000000] PERCPU: Embedded 10 pages/cpu @8110d000 s8576 r8192 d24192 u40960 [ 0.000000] pcpu-alloc: s8576 r8192 d24192 u40960 alloc=10*4096 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32503 [ 0.000000] Kernel command line: ubootver= ramoops.mem_address=0x7ff8000 ramoops.mem_size=32768 ramoops.ecc=1 mem=131039K ubntbootid=0 console=ttyS0,115200n8 rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Writing ErrCtl register=00043c02 [ 0.000000] Readback ErrCtl register=00043c02 [ 0.000000] Memory: 119356K/131036K available (3800K kernel code, 231K rwdata, 672K rodata, 5460K init, 257K bss, 11680K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [ 0.000000] NR_IRQS:256 [ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns [ 0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns [ 0.007776] Calibrating delay loop... 577.53 BogoMIPS (lpj=2887680) [ 0.070424] pid_max: default: 32768 minimum: 301 [ 0.075159] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.081687] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.091200] Brought up 1 CPUs [ 0.099390] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.109222] futex hash table entries: 256 (order: 1, 8192 bytes) [ 0.115305] pinctrl core: initialized pinctrl subsystem [ 0.121225] NET: Registered protocol family 16 [ 0.125954] ramoops: using module parameters [ 0.130260] ramoops ramoops: no of_node; not parsing pinctrl DT [ 0.130542] persistent_ram: uncorrectable error in header [ 0.135994] persistent_ram: uncorrectable error in header [ 0.141463] persistent_ram: uncorrectable error in header [ 0.146906] persistent_ram: uncorrectable error in header [ 0.152374] persistent_ram: uncorrectable error in header [ 0.157818] persistent_ram: uncorrectable error in header [ 0.163302] persistent_ram: uncorrectable error in header [ 0.168768] persistent_ram: uncorrectable error in header [ 0.174133] pstore: Registered ramoops as persistent store backend [ 0.180208] ramoops: attached 0x8000@0x7ff8000, ecc: 16/0 [ 0.188841] rt2880-pinmux pinctrl: try to register 61 pins ... [ 0.188870] pinctrl core: registered pin 0 (io0) on rt2880-pinmux [ 0.188895] pinctrl core: registered pin 1 (io1) on rt2880-pinmux [ 0.188909] pinctrl core: registered pin 2 (io2) on rt2880-pinmux [ 0.188921] pinctrl core: registered pin 3 (io3) on rt2880-pinmux [ 0.188933] pinctrl core: registered pin 4 (io4) on rt2880-pinmux [ 0.188945] pinctrl core: registered pin 5 (io5) on rt2880-pinmux [ 0.188957] pinctrl core: registered pin 6 (io6) on rt2880-pinmux [ 0.188969] pinctrl core: registered pin 7 (io7) on rt2880-pinmux [ 0.188981] pinctrl core: registered pin 8 (io8) on rt2880-pinmux [ 0.188994] pinctrl core: registered pin 9 (io9) on rt2880-pinmux [ 0.189006] pinctrl core: registered pin 10 (io10) on rt2880-pinmux [ 0.189018] pinctrl core: registered pin 11 (io11) on rt2880-pinmux [ 0.189030] pinctrl core: registered pin 12 (io12) on rt2880-pinmux [ 0.189043] pinctrl core: registered pin 13 (io13) on rt2880-pinmux [ 0.189055] pinctrl core: registered pin 14 (io14) on rt2880-pinmux [ 0.189072] pinctrl core: registered pin 15 (io15) on rt2880-pinmux [ 0.189084] pinctrl core: registered pin 16 (io16) on rt2880-pinmux [ 0.189096] pinctrl core: registered pin 17 (io17) on rt2880-pinmux [ 0.189108] pinctrl core: registered pin 18 (io18) on rt2880-pinmux [ 0.189121] pinctrl core: registered pin 19 (io19) on rt2880-pinmux [ 0.189133] pinctrl core: registered pin 20 (io20) on rt2880-pinmux [ 0.189145] pinctrl core: registered pin 21 (io21) on rt2880-pinmux [ 0.189157] pinctrl core: registered pin 22 (io22) on rt2880-pinmux [ 0.189169] pinctrl core: registered pin 23 (io23) on rt2880-pinmux [ 0.189181] pinctrl core: registered pin 24 (io24) on rt2880-pinmux [ 0.189194] pinctrl core: registered pin 25 (io25) on rt2880-pinmux [ 0.189206] pinctrl core: registered pin 26 (io26) on rt2880-pinmux [ 0.189218] pinctrl core: registered pin 27 (io27) on rt2880-pinmux [ 0.189231] pinctrl core: registered pin 28 (io28) on rt2880-pinmux [ 0.189243] pinctrl core: registered pin 29 (io29) on rt2880-pinmux [ 0.189256] pinctrl core: registered pin 30 (io30) on rt2880-pinmux [ 0.189268] pinctrl core: registered pin 31 (io31) on rt2880-pinmux [ 0.189280] pinctrl core: registered pin 32 (io32) on rt2880-pinmux [ 0.189293] pinctrl core: registered pin 33 (io33) on rt2880-pinmux [ 0.189305] pinctrl core: registered pin 34 (io34) on rt2880-pinmux [ 0.189317] pinctrl core: registered pin 35 (io35) on rt2880-pinmux [ 0.189330] pinctrl core: registered pin 36 (io36) on rt2880-pinmux [ 0.189342] pinctrl core: registered pin 37 (io37) on rt2880-pinmux [ 0.189354] pinctrl core: registered pin 38 (io38) on rt2880-pinmux [ 0.189366] pinctrl core: registered pin 39 (io39) on rt2880-pinmux [ 0.189379] pinctrl core: registered pin 40 (io40) on rt2880-pinmux [ 0.189391] pinctrl core: registered pin 41 (io41) on rt2880-pinmux [ 0.189404] pinctrl core: registered pin 42 (io42) on rt2880-pinmux [ 0.189416] pinctrl core: registered pin 43 (io43) on rt2880-pinmux [ 0.189429] pinctrl core: registered pin 44 (io44) on rt2880-pinmux [ 0.189441] pinctrl core: registered pin 45 (io45) on rt2880-pinmux [ 0.189453] pinctrl core: registered pin 46 (io46) on rt2880-pinmux [ 0.189469] pinctrl core: registered pin 47 (io47) on rt2880-pinmux [ 0.189481] pinctrl core: registered pin 48 (io48) on rt2880-pinmux [ 0.189493] pinctrl core: registered pin 49 (io49) on rt2880-pinmux [ 0.189505] pinctrl core: registered pin 50 (io50) on rt2880-pinmux [ 0.189518] pinctrl core: registered pin 51 (io51) on rt2880-pinmux [ 0.189530] pinctrl core: registered pin 52 (io52) on rt2880-pinmux [ 0.189542] pinctrl core: registered pin 53 (io53) on rt2880-pinmux [ 0.189555] pinctrl core: registered pin 54 (io54) on rt2880-pinmux [ 0.189567] pinctrl core: registered pin 55 (io55) on rt2880-pinmux [ 0.189579] pinctrl core: registered pin 56 (io56) on rt2880-pinmux [ 0.189592] pinctrl core: registered pin 57 (io57) on rt2880-pinmux [ 0.189604] pinctrl core: registered pin 58 (io58) on rt2880-pinmux [ 0.189616] pinctrl core: registered pin 59 (io59) on rt2880-pinmux [ 0.189628] pinctrl core: registered pin 60 (io60) on rt2880-pinmux [ 0.189670] pinctrl core: add 5 pinctrl maps [ 0.189704] rt2880-pinmux pinctrl: found group selector 1 for i2c [ 0.189722] rt2880-pinmux pinctrl: found group selector 3 for uart2 [ 0.189740] rt2880-pinmux pinctrl: found group selector 2 for uart3 [ 0.189758] rt2880-pinmux pinctrl: found group selector 8 for rgmii2 [ 0.189776] rt2880-pinmux pinctrl: found group selector 4 for jtag [ 0.189798] rt2880-pinmux pinctrl: request pin 3 (io3) for pinctrl [ 0.189816] rt2880-pinmux pinctrl: request pin 4 (io4) for pinctrl [ 0.189836] rt2880-pinmux pinctrl: request pin 9 (io9) for pinctrl [ 0.189852] rt2880-pinmux pinctrl: request pin 10 (io10) for pinctrl [ 0.189868] rt2880-pinmux pinctrl: request pin 11 (io11) for pinctrl [ 0.189884] rt2880-pinmux pinctrl: request pin 12 (io12) for pinctrl [ 0.189901] rt2880-pinmux pinctrl: request pin 5 (io5) for pinctrl [ 0.189917] rt2880-pinmux pinctrl: request pin 6 (io6) for pinctrl [ 0.189933] rt2880-pinmux pinctrl: request pin 7 (io7) for pinctrl [ 0.189949] rt2880-pinmux pinctrl: request pin 8 (io8) for pinctrl [ 0.189966] rt2880-pinmux pinctrl: request pin 22 (io22) for pinctrl [ 0.189982] rt2880-pinmux pinctrl: request pin 23 (io23) for pinctrl [ 0.189998] rt2880-pinmux pinctrl: request pin 24 (io24) for pinctrl [ 0.190015] rt2880-pinmux pinctrl: request pin 25 (io25) for pinctrl [ 0.190031] rt2880-pinmux pinctrl: request pin 26 (io26) for pinctrl [ 0.190047] rt2880-pinmux pinctrl: request pin 27 (io27) for pinctrl [ 0.190063] rt2880-pinmux pinctrl: request pin 28 (io28) for pinctrl [ 0.190080] rt2880-pinmux pinctrl: request pin 29 (io29) for pinctrl [ 0.190096] rt2880-pinmux pinctrl: request pin 30 (io30) for pinctrl [ 0.190112] rt2880-pinmux pinctrl: request pin 31 (io31) for pinctrl [ 0.190129] rt2880-pinmux pinctrl: request pin 32 (io32) for pinctrl [ 0.190145] rt2880-pinmux pinctrl: request pin 33 (io33) for pinctrl [ 0.190163] rt2880-pinmux pinctrl: request pin 13 (io13) for pinctrl [ 0.190179] rt2880-pinmux pinctrl: request pin 14 (io14) for pinctrl [ 0.190195] rt2880-pinmux pinctrl: request pin 15 (io15) for pinctrl [ 0.190211] rt2880-pinmux pinctrl: request pin 16 (io16) for pinctrl [ 0.190227] rt2880-pinmux pinctrl: request pin 17 (io17) for pinctrl [ 0.190244] rt2880-pinmux pinctrl: failed to lookup the sleep state [ 0.215385] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 0.221152] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 0.226740] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 0.233018] usbcore: registered new interface driver usbfs [ 0.238488] usbcore: registered new interface driver hub [ 0.243830] usbcore: registered new device driver usb [ 0.249159] lo: assigned ifindex: 1 [ 0.257904] clocksource: Switched to clocksource GIC [ 0.264363] NET: Registered protocol family 2 [ 0.269438] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.276315] TCP bind hash table entries: 1024 (order: 1, 8192 bytes) [ 0.282687] TCP: Hash tables configured (established 1024 bind 1024) [ 0.289043] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.294811] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.301299] NET: Registered protocol family 1 [ 0.305621] PCI: CLS 0 bytes, default 32 [ 6.287749] 4 CPUs re-calibrate udelay(lpj = 2891776) [ 6.293438] alarmtimer alarmtimer: no of_node; not parsing pinctrl DT [ 6.293822] Crashlog allocated RAM at address 0x3f00000 [ 6.321398] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 6.327149] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 6.341725] io scheduler noop registered [ 6.345570] io scheduler deadline registered (default) [ 6.351456] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled [ 6.358512] serial8250 serial8250: no of_node; not parsing pinctrl DT [ 6.359082] console [ttyS0] disabled [ 6.362624] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 33, base_baud = 3125000) is a 16550A [ 6.371633] console [ttyS0] enabled [ 6.378508] bootconsole [early0] disabled [ 6.387597] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error [ 6.394801] pinctrl core: add 1 pinctrl maps [ 6.394847] rt2880-pinmux pinctrl: found group selector 9 for spi [ 6.394872] rt2880-pinmux pinctrl: request pin 34 (io34) for 1e000b00.spi [ 6.394891] rt2880-pinmux pinctrl: request pin 35 (io35) for 1e000b00.spi [ 6.394908] rt2880-pinmux pinctrl: request pin 36 (io36) for 1e000b00.spi [ 6.394925] rt2880-pinmux pinctrl: request pin 37 (io37) for 1e000b00.spi [ 6.394942] rt2880-pinmux pinctrl: request pin 38 (io38) for 1e000b00.spi [ 6.394959] rt2880-pinmux pinctrl: request pin 39 (io39) for 1e000b00.spi [ 6.394977] rt2880-pinmux pinctrl: request pin 40 (io40) for 1e000b00.spi [ 6.395069] spi-mt7621 1e000b00.spi: sys_freq: 225000000 [ 6.404791] m25p80 spi32766.0: using chunked io (size=32) [ 6.410342] m25p80 spi32766.0: mx25l12805d (16384 Kbytes) [ 6.415797] 8 ofpart partitions found on MTD device spi32766.0 [ 6.421626] Creating 8 MTD partitions on "spi32766.0": [ 6.426749] 0x000000000000-0x000000060000 : "u-boot" [ 6.433816] 0x000000060000-0x000000070000 : "u-boot-env" [ 6.441407] 0x000000070000-0x000000080000 : "Factory" [ 6.448368] 0x000000080000-0x000000090000 : "EEPROM" [ 6.455255] 0x000000090000-0x0000000a0000 : "bs" [ 6.462005] 0x0000000a0000-0x0000001a0000 : "cfg" [ 6.468718] 0x0000001a0000-0x0000008d0000 : "kernel0" [ 6.475585] 0x0000008d0000-0x000001000000 : "kernel1" [ 6.483303] [rather_probe]ei_local->features = 0x8400d881 [ 6.488841] [rather_probe]ei_local->architecture_config = 26 [ 6.494525] ethdma_sysctl_base = 0xbe000000 [ 6.498725] ethdma_frame_engine_base = 0xbe100000 [ 6.503458] ei_local->irq0 = 10 [ 6.506581] ei_local->irq1 = -6 [ 6.509725] ei_local->irq2 = -6 [ 6.512854] [rather_probe]ei_local->chip_name = 7621 [ 6.517811] Mediatek APSoC Ethernet Driver Initialization. [ 6.523100] STD_v0.1 2048 rx/2048 tx descriptors allocated, mtu = 1500! [ 6.530138] GMAC1_MAC_ADRH -- : 0x00006022 [ 6.534215] GMAC1_MAC_ADRL -- : 0x32595972 [ 6.649222] MT7530 Reset Completed!! [ 6.657931] REG_ESW_MAC_P1_MCR(be110100): 0x2105e33b [ 6.663647] change HW-TRAP to 0x17ccf [ 6.671750] port[0] disable 1 [ 6.674706] port[1] disable 1 [ 6.677656] port[2] disable 1 [ 6.680657] port[3] disable 1 [ 6.683610] port[4] disable 1 [ 6.686559] port[5] disable 0 [ 6.689536] port[6] disable 0 [ 8.098355] RAETH_DRV 1e100000.ethernet: loaded mt7621 driver [ 9.509752] eth0: assigned ifindex: 2 [ 9.514563] gsw->irq=30 [ 9.517573] xhci-mtk 1e1c0000.xhci: xHCI Host Controller [ 9.522963] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1 [ 9.538064] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010 [ 9.546550] xhci-mtk 1e1c0000.xhci: irq 29, io mem 0x1e1c0000 [ 9.553473] hub 1-0:1.0: no of_node; not parsing pinctrl DT [ 9.553525] hub 1-0:1.0: USB hub found [ 9.557636] hub 1-0:1.0: 2 ports detected [ 9.562307] xhci-mtk 1e1c0000.xhci: xHCI Host Controller [ 9.567619] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2 [ 9.575323] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 9.584375] hub 2-0:1.0: no of_node; not parsing pinctrl DT [ 9.584426] hub 2-0:1.0: USB hub found [ 9.588599] hub 2-0:1.0: 1 port detected [ 9.593506] mt7621_wdt 1e000100.wdt: Initialized [ 9.598477] u32 classifier [ 9.601172] Performance counters on [ 9.604986] input device check on [ 9.608662] Actions configured [ 9.613831] NET: Registered protocol family 10 [ 9.621462] NET: Registered protocol family 17 [ 9.625986] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 9.638672] 8021q: 802.1Q VLAN Support v1.8 [ 9.670512] Freeing unused kernel memory: 5460K [ 9.690542] init: Console is alive [ 9.694169] init: - watchdog - [ 9.717155] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 9.732546] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0 [ 9.741742] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 9.758130] init: - preinit - [ 9.864806] Raeth STD_v0.1 ( [ 9.867522] Tasklet<6>[ 9.869771] ) [ 9.876398] CDMA_CSG_CFG = 81000000 [ 9.879898] GDMA1_FWD_CFG = 20710000 [ 9.883661] !!!! init ei_local->rx_mask = 40000000 [ 9.888427] !!!! init ei_local->tx_mask = 10000000 [ 9.949289] ra2880stop()... [ 9.951922] Done [ 9.955429] Free TX/RX Ring Memory! [ 10.094344] ubnt_common: module license 'Proprietary' taints kernel. [ 10.100862] Disabling lock debugging due to kernel taint [ 10.249163] ubnthal: Ubiquiti USW-5-Flex [ 10.256942] creating procfs for ubnthal [ 10.256986] creating proc entry for system.info [ 10.257002] creating proc entry for board [ 10.257036] Registering char device sflash (200) succeeds [ 10.262544] creating procfs for status [ 10.262567] creating proc entry for IsDefault [ 10.262582] creating proc entry for IsLocated [ 10.262597] creating proc entry for IsIsolated [ 10.286232] creating /proc/gpio/ [ 10.286275] /proc/gpio/ledbar_control [ 10.286293] /proc/gpio/led_pattern [ 10.286308] /proc/gpio/led_tempo [ 10.286332] /proc/gpio/poe_passthrough [ 17.742076] sh (353): drop_caches: 1 [ 20.620895] procd: - early - [ 20.623881] procd: - watchdog - [ 21.227945] procd: - watchdog - [ 21.231434] procd: - ubus - [ 21.288576] random: ubusd: uninitialized urandom read (4 bytes read, 0 bits of entropy available) [ 21.297925] random: ubusd: uninitialized urandom read (4 bytes read, 0 bits of entropy available) [ 21.306807] random: ubusd: uninitialized urandom read (4 bytes read, 0 bits of entropy available) [ 21.315996] random: ubusd: uninitialized urandom read (4 bytes read, 0 bits of entropy available) [ 21.324949] random: ubusd: uninitialized urandom read (4 bytes read, 0 bits of entropy available) [ 21.334022] random: ubusd: uninitialized urandom read (4 bytes read, 0 bits of entropy available) [ 21.343063] random: ubusd: uninitialized urandom read (4 bytes read, 0 bits of entropy available) [ 21.352275] procd: - init - [ 21.577020] i2c /dev entries driver [ 21.662842] i2c-gpio i2c@0: using pins 3 (SDA) and 4 (SCL) [ 28.129413] kmodloader: loading kernel modules from /etc/modules.d/* [ 28.169403] hidraw: raw HID events driver (C) Jiri Kosina [ 28.184608] Mirror/redirect action on [ 28.192158] usbcore: registered new interface driver cdc_acm [ 28.197969] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters [ 28.214383] usbcore: registered new interface driver usbserial [ 28.220483] usbcore: registered new interface driver usbserial_generic [ 28.227076] usbserial: USB Serial support registered for generic [ 28.252932] usbcore: registered new interface driver pl2303 [ 28.258742] usbserial: USB Serial support registered for pl2303 [ 28.266112] kmodloader: done loading kernel modules from /etc/modules.d/* [ 29.641580] random: dd: uninitialized urandom read (1 bytes read, 0 bits of entropy available) [ 29.661498] random: dd: uninitialized urandom read (2 bytes read, 0 bits of entropy available) [ 29.681555] random: dd: uninitialized urandom read (2 bytes read, 0 bits of entropy available) [ 54.370696] Raeth STD_v0.1 ( [ 54.370727] Tasklet<6>[ 54.370741] ) [ 54.375798] CDMA_CSG_CFG = 81000000 [ 54.375809] GDMA1_FWD_CFG = 20710000 [ 54.375968] !!!! init ei_local->rx_mask = 40000000 [ 54.375979] !!!! init ei_local->tx_mask = 10000000 [ 57.213879] RAETH_DRV 1e100000.ethernet eth0: port 4 link up [ 70.546657] Ebtables v2.0 registered


root@OpenWrt:~# dmesg [ 0.000000] Linux version 5.15.120 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23585-9e86a96af5) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Wed Jul 19 06:04:08 2023 [ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3 [ 0.000000] printk: bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc) [ 0.000000] MIPS: machine is Ubiquiti UniFi Switch Flex [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] VPE topology {2} total 2 [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] percpu: Embedded 11 pages/cpu s14736 r8192 d22128 u45056 [ 0.000000] pcpu-alloc: s14736 r8192 d22128 u45056 alloc=11*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480 [ 0.000000] Kernel command line: console=ttyS0,115200 [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 0.000000] Writing ErrCtl register=0006d9af [ 0.000000] Readback ErrCtl register=0006d9af [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 118700K/131072K available (7320K kernel code, 629K rwdata, 1488K rodata, 1236K init, 250K bss, 12372K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 256 [ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns [ 0.000003] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns [ 0.008027] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688) [ 0.066195] pid_max: default: 32768 minimum: 301 [ 0.071569] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.078778] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.089994] rcu: Hierarchical SRCU implementation. [ 0.095259] smp: Bringing up secondary CPUs ... [ 0.100612] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 0.100637] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.100651] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 0.100695] CPU1 revision is: 0001992f (MIPS 1004Kc) [ 0.159926] Synchronize counters for CPU 1: done. [ 0.189876] smp: Brought up 1 node, 2 CPUs [ 0.198852] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.208630] futex hash table entries: 512 (order: 2, 16384 bytes, linear) [ 0.215637] pinctrl core: initialized pinctrl subsystem [ 0.222552] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.229103] thermal_sys: Registered thermal governor 'step_wise' [ 0.239718] FPU Affinity set after 11720 emulations [ 0.258468] clocksource: Switched to clocksource GIC [ 0.264736] NET: Registered PF_INET protocol family [ 0.269775] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.277826] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.286131] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.293795] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.301410] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.308389] TCP: Hash tables configured (established 1024 bind 1024) [ 0.314857] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.321357] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.328670] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.334275] PCI: CLS 0 bytes, default 32 [ 0.341167] workingset: timestamp_bits=14 max_order=15 bucket_order=1 [ 0.353200] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.359093] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.370268] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.380995] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 0.386986] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 0.393004] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 0.400364] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 0.410740] printk: console [ttyS0] disabled [ 0.415099] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 15, base_baud = 3125000) is a 16550A [ 0.424170] printk: console [ttyS0] enabled [ 0.432458] printk: bootconsole [early0] disabled [ 0.448368] spi-mt7621 1e000b00.spi: sys_freq: 220000000 [ 0.455694] spi-nor spi0.0: mx25l12805d (16384 Kbytes) [ 0.461062] 7 fixed-partitions partitions found on MTD device spi0.0 [ 0.467444] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions [ 0.474832] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions [ 0.482735] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions [ 0.490153] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions [ 0.497778] Creating 7 MTD partitions on "spi0.0": [ 0.502631] 0x000000000000-0x000000060000 : "u-boot" [ 0.509117] 0x000000060000-0x000000070000 : "u-boot-env" [ 0.515559] 0x000000070000-0x000000080000 : "factory" [ 0.521764] 0x000000080000-0x000000090000 : "eeprom" [ 0.527827] 0x000000090000-0x0000000a0000 : "bs" [ 0.533579] 0x0000000a0000-0x0000001a0000 : "cfg" [ 0.539490] 0x0000001a0000-0x000001000000 : "firmware" [ 0.546045] 2 fit-fw partitions found on MTD device firmware [ 0.551784] Creating 2 MTD partitions on "firmware": [ 0.556762] 0x000000000000-0x0000002e0000 : "kernel" [ 0.562983] 0x0000002d81a0-0x000000e60000 : "rootfs" [ 0.568010] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only [ 0.578265] mtd: setting mtd8 (rootfs) as root device [ 0.583585] 1 squashfs-split partitions found on MTD device rootfs [ 0.589819] 0x000000570000-0x000000e60000 : "rootfs_data" [ 0.731334] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module [ 0.744686] mtk_soc_eth 1e100000.ethernet dsa: mediatek frame engine at 0xbe100000, irq 16 [ 0.757625] mtk_soc_eth 1e100000.ethernet lan1: mediatek frame engine at 0xbe100000, irq 16 [ 0.769574] i2c_dev: i2c /dev entries driver [ 0.777049] NET: Registered PF_INET6 protocol family [ 0.785822] Segment Routing with IPv6 [ 0.789728] In-situ OAM (IOAM) with IPv6 [ 0.793745] NET: Registered PF_PACKET protocol family [ 0.798905] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 0.812291] 8021q: 802.1Q VLAN Support v1.8 [ 0.822628] gpio-483 (sda): enforced open drain please flag it properly in DT/ACPI DSDT/board file [ 0.831828] gpio-484 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file [ 0.841179] i2c-gpio i2c-gpio: using lines 483 (SDA) and 484 (SCL) [ 0.847768] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module [ 0.874618] mt7530-mdio mdio-bus:1f: configuring for fixed/rgmii link mode [ 0.882403] mt7530-mdio mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx [ 0.889333] mt7530-mdio mdio-bus:1f lan5 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=18) [ 0.903024] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=19) [ 0.915928] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=20) [ 0.928805] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=21) [ 0.941388] DSA: tree 0 setup [ 0.952695] VFS: Mounted root (squashfs filesystem) readonly on device 31:8. [ 0.963825] Freeing unused kernel image (initmem) memory: 1236K [ 0.969834] This architecture does not have kernel memory protection. [ 0.976264] Run /sbin/init as init process [ 0.980366] with arguments: [ 0.980376] /sbin/init [ 0.980382] with environment: [ 0.980387] HOME=/ [ 0.980392] TERM=linux [ 1.467177] init: Console is alive [ 1.471216] init: - watchdog - [ 1.796859] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 1.851144] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 1.861425] init: - preinit - [ 2.795866] random: jshn: uninitialized urandom read (4 bytes read) [ 2.914617] random: jshn: uninitialized urandom read (4 bytes read) [ 2.948629] random: jshn: uninitialized urandom read (4 bytes read) [ 3.211788] mtk_soc_eth 1e100000.ethernet lan1: PHY [mdio-bus:04] driver [MediaTek MT7530 PHY] (irq=POLL) [ 3.228793] mtk_soc_eth 1e100000.ethernet lan1: configuring for phy/rgmii link mode [ 5.461303] jffs2: notice: (410) jffs2_build_xattr_subsystem: complete building xattr subsystem, 9 of xdatum (0 unchecked, 1 orphan) and 11 of xref (1 dead, 0 orphan) found. [ 5.479180] mount_root: switching to jffs2 overlay [ 5.494079] overlayfs: upper fs does not support tmpfile. [ 5.510898] urandom-seed: Seeding with /etc/urandom.seed [ 5.610126] procd: - early - [ 5.613241] procd: - watchdog - [ 6.234689] procd: - watchdog - [ 6.239406] procd: - ubus - [ 6.325696] random: ubusd: uninitialized urandom read (4 bytes read) [ 6.396266] random: ubusd: uninitialized urandom read (4 bytes read) [ 6.403439] random: ubusd: uninitialized urandom read (4 bytes read) [ 6.416698] procd: - init - [ 7.257693] kmodloader: loading kernel modules from /etc/modules.d/* [ 7.357526] PPP generic driver version 2.4.2 [ 7.365952] NET: Registered PF_PPPOX protocol family [ 7.385084] kmodloader: done loading kernel modules from /etc/modules.d/* [ 7.464318] urngd: v1.0.2 started. [ 7.735856] random: crng init done [ 7.739373] random: 31 urandom warning(s) missed due to ratelimiting [ 13.462030] mtk_soc_eth 1e100000.ethernet lan1: PHY [mdio-bus:04] driver [MediaTek MT7530 PHY] (irq=POLL) [ 13.481812] mtk_soc_eth 1e100000.ethernet lan1: configuring for phy/rgmii link mode [ 13.510309] br-lan: port 1(lan1) entered blocking state [ 13.515571] br-lan: port 1(lan1) entered disabled state [ 13.521393] device lan1 entered promiscuous mode [ 13.575617] mtk_soc_eth 1e100000.ethernet dsa: configuring for fixed/rgmii link mode [ 13.589532] mtk_soc_eth 1e100000.ethernet dsa: Link is Up - 1Gbps/Full - flow control rx/tx [ 13.597975] IPv6: ADDRCONF(NETDEV_CHANGE): dsa: link becomes ready [ 13.631478] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode [ 13.673135] br-lan: port 2(lan2) entered blocking state [ 13.678552] br-lan: port 2(lan2) entered disabled state [ 13.708310] device lan2 entered promiscuous mode [ 13.713077] device dsa entered promiscuous mode [ 13.767976] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mode [ 13.788745] br-lan: port 3(lan3) entered blocking state [ 13.794020] br-lan: port 3(lan3) entered disabled state [ 13.808242] device lan3 entered promiscuous mode [ 13.823775] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mode [ 13.833154] br-lan: port 4(lan4) entered blocking state [ 13.838410] br-lan: port 4(lan4) entered disabled state [ 13.846656] device lan4 entered promiscuous mode [ 13.861671] mt7530-mdio mdio-bus:1f lan5: configuring for phy/gmii link mode [ 13.870270] br-lan: port 5(lan5) entered blocking state [ 13.875554] br-lan: port 5(lan5) entered disabled state [ 13.889173] device lan5 entered promiscuous mode [ 18.738705] mtk_soc_eth 1e100000.ethernet lan1: Link is Up - 1Gbps/Full - flow control rx/tx [ 18.747203] br-lan: port 1(lan1) entered blocking state [ 18.752474] br-lan: port 1(lan1) entered forwarding state [ 18.759892] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready


  • The stock device could only be manage via the proprietary UniFi Controller, else it is a dump switch. When installing OpenWRT you have full control.
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2024/03/22 09:20
  • by marc_b2