immortalwrt/target/linux
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
..
apm821xx kernel: bump 5.4 to 5.4.145 2021-09-15 10:29:40 +08:00
arc770 arc770: drop target 2021-09-14 03:17:29 +08:00
archs38 kernel: Add missing kernel config options 2021-09-16 23:53:31 +08:00
armvirt kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
at91 kernel: move some drm symbols to generic config 2021-06-14 11:48:45 +08:00
ath25 Merge Mainline 2021-09-23 10:13:31 +08:00
ath79 kernel: bump 5.4 to 5.4.144 2021-09-15 10:29:29 +08:00
bcm27xx kernel: bump 5.4 to 5.4.145 2021-09-15 10:29:40 +08:00
bcm47xx Merge Mainline 2021-09-23 10:13:31 +08:00
bcm53xx bcm53xx: MR32: read mac-address from eeprom 2021-09-24 23:55:03 +08:00
bcm63xx bcm63xx: remove memcpy from mac assignment 2021-09-23 23:51:29 +08:00
bcm4908 Merge Mainline 2021-09-23 10:13:31 +08:00
bmips linux: update b53 upstream driver 2021-09-19 23:57:41 +08:00
gemini kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
generic kernel: add patch to fix an issue with kernel headers that broke perf 2021-09-26 23:58:42 +08:00
imx6 Merge Mainline 2021-09-23 10:13:31 +08:00
ipq40xx Merge Mainline 2021-09-23 10:13:31 +08:00
ipq806x Merge Mainline 2021-09-23 10:13:31 +08:00
ipq807x kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
kirkwood kirkwood: increase kernel size of Linksyses 2021-09-21 23:55:02 +08:00
lantiq kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
layerscape kernel: Add missing kernel config options 2021-09-16 23:53:31 +08:00
malta kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
mediatek kernel: bump 5.4 to 5.4.144 2021-09-15 10:29:29 +08:00
mpc85xx kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
mvebu Merge Mainline 2021-09-23 10:13:31 +08:00
mxs treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
octeon kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
octeontx octeontx: add linux 5.10 testing kernel support 2021-09-21 23:56:13 +08:00
omap kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
oxnas kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
pistachio kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
ramips ramips: add support for Ubiquiti USW-Flex 2021-09-27 23:53:40 +08:00
realtek realtek: add ZyXEL GS1900-24HPv2 support 2021-09-21 23:51:59 +08:00
rockchip rockchip: also apply fixes for pine64-bin 2021-09-25 10:10:09 +08:00
sunxi kernel: move two symbols to the generic kconfigs 2021-08-30 12:13:54 +08:00
tegra kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21 2021-09-10 12:26:08 +08:00
uml treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
x86 Merge Mainline 2021-09-11 05:29:44 +08:00
zynq Merge Mainline 2021-09-23 10:13:31 +08:00
Makefile