Hardware -------- SOC : MediaTek MT7981B 2x A53 RAM : NT5AD256M16E4-JR 512MiB Flash : ESMT F50L1G41LB 128MB ETH : 5x 1GbE (1x WAN, 4x LAN) 1x SFP+ (2.5 GbE) Switch : MediaTek MT7531AE WiFi : MediaTek MT7976D Buttons : Reset Power : DC 12V 2A Installation ------------ 1. Disassemble the device 2. Create solder bridge on R85, R86, Solder 4-pin header on J4. 3. Connect UART console. 4. In U-Boot shell, enter the following commands to prepare flashing ``` enable_phy extra_para set extra-para score 100 extra_para set extra-para fwFlag good ``` 5. Use `mtkupgrade` command to TFTP flash openwrt-mediatek-filogic-tplink_fr365-v1-squashfs-factory.bin 6. Reboot the device Signed-off-by: Yonghyu Ban <yhban@silicon.moe> Link: https://github.com/openwrt/openwrt/pull/19203 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
44 lines
798 B
Bash
44 lines
798 B
Bash
#!/bin/sh
|
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
. /lib/functions/caldata.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$FIRMWARE" in
|
|
"mediatek/mt7981_eeprom_mt7976_dbdc.bin")
|
|
case "$board" in
|
|
mercusys,mr80x-v3)
|
|
ln -sf /tmp/tp_data/MT7981_EEPROM.bin \
|
|
/lib/firmware/$FIRMWARE
|
|
;;
|
|
tplink,fr365-v1)
|
|
ln -sf /tmp/wlan/radio /lib/firmware/$FIRMWARE
|
|
;;
|
|
ubnt,unifi-6-plus)
|
|
caldata_extract_mmc "factory" 0x0 0x1000
|
|
;;
|
|
esac
|
|
;;
|
|
"mediatek/mt7986_eeprom_mt7975_dual.bin")
|
|
case "$board" in
|
|
mercusys,mr90x-v1|\
|
|
tplink,re6000xd)
|
|
ln -sf /tmp/tp_data/MT7986_EEPROM.bin \
|
|
/lib/firmware/$FIRMWARE
|
|
;;
|
|
esac
|
|
;;
|
|
"mediatek/mt7986_eeprom_mt7976_dual.bin")
|
|
case "$board" in
|
|
tplink,archer-ax80-v1)
|
|
ln -sf /tmp/tp_data/MT7986_EEPROM.bin \
|
|
/lib/firmware/$FIRMWARE
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|