openwrt/target/linux/mediatek/patches-5.4
David Bauer 194e85e7db mediatek: add support for Ubiquiti UniFi 6 LR
Hardware
--------

MediaTek MT7622
512MB DDR3 RAM
64M SPI-NOR Flash (Winbond W25Q512JV)
MediaTek MT7622 802.11bgn 4T4R WMAC
MediaTek MT7915 802.11ax 4T4R
Marvell AQR1112 100/1000/2500 NBase-T PHY
Holtek HT32F52241 LED controller
Reset Switch

UART
----

CPU UART0 at the pinout next to the Holtek MCU.

Pinout (first pin next to SoC / MCU)

0 3V3
1 RX
2 TX
3 GND

Settings are 115200 8N1.

Opening the case
----------------

Opening the case is not a nice task, as itis glued together. Insert a
flat knife between the front and back casing below the ethernet port.
Open up a gap this way and insert a flat scredriver, remove the knife.

Work your way around the casing by applying force to seperate the front
and back casing. This losens the glue and opens the plastic clips. Be
gentle, as these clips are very cheap and break quickly.

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

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

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

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

   $ cat /proc/mtd

4. Set the bootselect flag to boot from kernel0

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

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

   $ dd if=openwrt.bin of=/dev/mtdblock8
   $ dd if=openwrt.bin of=/dev/mtdblock9

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

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 634c13c186)
2021-02-18 12:14:34 +01:00
..
0001-v5.7-spi-make-spi-max-frequency-optional.patch kernel: bump 5.4 to 5.4.86 2021-01-01 17:07:28 +01:00
0002-v5.7-spi-add-support-for-mediatek-spi-nor-controller.patch mediatek: backport spi-mem based mtk spinor driver 2020-03-21 12:58:29 +08:00
0003-switch-add-mt7531.patch kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
0005-dts-mt7622-add-gsw.patch kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
0005-dts-mt7629-add-gsw.patch mediatek: fix mixed indent in DTS files 2020-11-16 13:43:39 +01:00
0006-dts-fix-bpi2-console.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
0006-dts-fix-bpi64-console.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
0010-dts-mt7629-rfb-fix-firmware-partition.patch mediatek: mt7629: fix firmware partition 2020-03-21 12:58:29 +08:00
0226-phy-phy-mtk-tphy-Add-hifsys-support.patch mediatek: re-add u3phy2 phy-switch patch 2020-07-09 10:28:40 +02:00
0227-arm-dts-Add-Unielec-U7623-DTS.patch treewide: remove default-state off for LEDs 2020-11-16 13:43:39 +01:00
0301-mtd-mtk-ecc-move-mtk-ecc-header-file-to-include-mtd.patch kernel: bump 5.4 to 5.4.31 2020-04-09 00:12:46 +02:00
0303-mtd-spinand-disable-on-die-ECC.patch kernel: bump 5.4 to 5.4.89 2021-01-15 17:29:41 +01:00
0306-spi-spi-mem-MediaTek-Add-SPI-NAND-Flash-interface-dr.patch kernel: bump 5.4 to 5.4.31 2020-04-09 00:12:46 +02:00
0307-dts-mt7629-add-snand-support.patch kernel: bump 5.4 to 5.4.31 2020-04-09 00:12:46 +02:00
0308-dts-mt7622-add-snand-support.patch kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
0310-dts-add-wmac-support-for-mt7622-rfb1.patch kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
0500-v5.6-crypto-backport-inside-secure.patch kernel: bump 5.4 to 5.4.45 2020-06-09 16:59:33 +02:00
0501-crypto-add-eip97-inside-secure-support.patch mediatek: minor fix to eip97 driver 2020-07-16 09:14:49 +02:00
0502-dts-mt7623-eip97-inside-secure-support.patch mediatek: switch over to extended upstream eip97 driver 2020-06-07 17:52:21 +02:00
0503-crypto-fix-eip97-cache-incoherent.patch kernel: bump 5.4 to 5.4.63 2020-09-06 19:55:19 +02:00
0600-net-phylink-propagate-resolved-link-config-via-mac_l.patch kernel: bump 5.4 to 5.4.92 2021-01-26 00:49:53 +01:00
0601-net-dsa-propagate-resolved-link-config-via-mac_link_.patch kernel: bump 5.4 to 5.4.96 2021-02-08 16:34:18 +01:00
0602-net-dsa-mt7530-use-resolved-link-config-in-mac_link_.patch kernel: bump 5.4 to 5.4.64 2020-09-12 01:28:50 +02:00
0603-net-dsa-mt7530-Extend-device-data-ready-for-adding-a.patch kernel: bump 5.4 to 5.4.64 2020-09-12 01:28:50 +02:00
0604-net-dsa-mt7530-Add-the-support-of-MT7531-switch.patch mediatek: backport the latest version of the mt7531 support patches 2020-09-09 11:51:47 +02:00
0605-arm64-dts-mt7622-add-mt7531-dsa-to-bananapi-bpi-r64-board.patch mediatek: backport the latest version of the mt7531 support patches 2020-09-09 11:51:47 +02:00
0900-bt-mtk-serial-fix.patch kernel: bump 5.4 to 5.4.69 2020-10-02 22:02:26 +02:00
0990-gsw-rtl8367s-mt7622-support.patch kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
0991-dt-bindings-PCI-Mediatek-Update-PCIe-binding.patch kernel: bump 5.4 to 5.4.58 2020-08-18 18:14:54 +02:00
0992-PCI-mediatek-Use-regmap-to-get-shared-pcie-cfg-base.patch kernel: bump 5.4 to 5.4.52 2020-07-17 11:00:33 +02:00
0993-arm64-dts-mediatek-Split-PCIe-node-for-MT2712-MT7622.patch kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
0994-ARM-dts-mediatek-Update-mt7629-PCIe-node.patch kernel: bump 5.4 to 5.4.52 2020-07-17 11:00:33 +02:00
1003-dts-mt7622-rfb-change-to-ax-mtd-layout.patch kernel: bump 5.4 to 5.4.77 2020-11-18 21:13:46 +01:00
1010-pcie-mediatek-fix-clearing-interrupt-status.patch mediatek: fix an irq handling issue 2020-09-04 19:42:35 +02:00
1011-net-ethernet-mtk_eth_soc-add-support-for-coherent-DM.patch kernel: improve skb hash on the mtk ethernet driver 2020-12-18 18:10:52 +01:00
1012-pci-pcie-mediatek-add-support-for-coherent-DMA.patch kernel: bump 5.4 to 5.4.64 2020-09-12 01:28:50 +02:00
1020-spi-nor-w25q512jv.patch mediatek: add support for Ubiquiti UniFi 6 LR 2021-02-18 12:14:34 +01:00
1021-ubnt-ledbar-driver.patch mediatek: add Ubiquiti LED driver 2021-02-18 12:14:25 +01:00