immortalwrt/target/linux/ramips
David Bauer 6537a5ffe8 ramips: add support for Ubiquiti USW-Flex
Hardware
--------
MediaTek MT7621AT
16M SPI-NOR Macronix MX25L12835FMI
Microchip PD69104B1 4-Channel PoE-PSE controller
TI TPS2373 PoE-PD controller

PoE-Controller
--------------

By default, the PoE outputs do not work with OpenWrt. To make them output
power, install the "poemgr" package from the packages feed.
This package can control the PD69104B1 PSE controller.

Installation
------------

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

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.

5. Check the mtd partition number for bs / kernel0 / kernel1

   $ cat /proc/mtd

6. Set the bootselect flag to boot from kernel0

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

7. 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

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

Restore to UniFi
----------------

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

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-09-27 23:53:40 +08:00
..
base-files/etc ramips: remove model name from LED labels 2020-11-21 19:29:29 +08:00
dts ramips: add support for Ubiquiti USW-Flex 2021-09-27 23:53:40 +08:00
files/drivers treewide: backport support for nvmem on non platform devices 2021-08-06 18:51:27 +08:00
image ramips: add support for Ubiquiti USW-Flex 2021-09-27 23:53:40 +08:00
mt76x8 ramips: minew g1-c: use default static address for lan instead of dhcp 2021-08-31 18:28:00 +08:00
mt7620 ramips: add support for Sitecom WLR-4100 v1 002 2021-09-06 23:29:24 +08:00
mt7621 ramips: add support for Ubiquiti USW-Flex 2021-09-27 23:53:40 +08:00
patches-5.4 kernel: bump 5.4 to 5.4.139 2021-08-15 12:38:21 +08:00
patches-5.10 kernel: bump 5.10 to 5.10.57 2021-08-15 12:37:57 +08:00
rt288x ramips: fix missing NVMEM subsystem 2021-07-22 12:04:05 +08:00
rt305x ramips: fix missing NVMEM subsystem 2021-07-22 12:04:05 +08:00
rt3883 ramips: fix missing NVMEM subsystem 2021-07-22 12:04:05 +08:00
Makefile ramips: add support for kernel 5.10 2021-03-06 12:30:21 +08:00
modules.mk ramips: sync official source code 2021-07-09 11:02:15 +08:00