2015-04-07 20:04:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
ath10kcal_die() {
|
|
|
|
echo "ath10cal: " "$*"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
ath10kcal_from_file() {
|
|
|
|
local source=$1
|
2019-08-09 15:45:13 +00:00
|
|
|
local offset=$(($2))
|
|
|
|
local count=$(($3))
|
2015-04-07 20:04:14 +00:00
|
|
|
|
2019-03-07 08:40:08 +00:00
|
|
|
dd if=$source of=/lib/firmware/$FIRMWARE iflag=skip_bytes bs=$count skip=$offset count=1 2>/dev/null || \
|
2015-04-07 20:04:14 +00:00
|
|
|
ath10kcal_die "failed to extract calibration data from $source"
|
|
|
|
}
|
|
|
|
|
2015-07-07 13:47:57 +00:00
|
|
|
ath10kcal_extract() {
|
|
|
|
local part=$1
|
2019-08-09 15:45:13 +00:00
|
|
|
local offset=$(($2))
|
|
|
|
local count=$(($3))
|
2018-01-14 15:39:53 +00:00
|
|
|
local mtd cal_size
|
2015-07-07 13:47:57 +00:00
|
|
|
|
|
|
|
mtd=$(find_mtd_chardev $part)
|
|
|
|
[ -n "$mtd" ] || \
|
|
|
|
ath10kcal_die "no mtd device found for partition $part"
|
|
|
|
|
2018-01-14 15:39:53 +00:00
|
|
|
# Check that the calibration data size in header equals the desired size
|
|
|
|
cal_size=$(dd if=$mtd bs=2 count=1 skip=$(( $offset / 2 )) conv=swab 2>/dev/null | hexdump -ve '1/2 "%d"')
|
|
|
|
|
|
|
|
[ "$count" = "$cal_size" ] || \
|
|
|
|
ath10kcal_die "no calibration data found in $part"
|
|
|
|
|
2019-03-07 08:40:08 +00:00
|
|
|
dd if=$mtd of=/lib/firmware/$FIRMWARE iflag=skip_bytes bs=$count skip=$offset count=1 2>/dev/null || \
|
2015-07-07 13:47:57 +00:00
|
|
|
ath10kcal_die "failed to extract calibration data from $mtd"
|
|
|
|
}
|
|
|
|
|
|
|
|
ath10kcal_patch_mac() {
|
|
|
|
local mac=$1
|
|
|
|
|
|
|
|
[ -z "$mac" ] && return
|
|
|
|
|
2019-03-07 08:40:08 +00:00
|
|
|
macaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc oflag=seek_bytes bs=6 seek=6 count=1
|
2015-07-07 13:47:57 +00:00
|
|
|
}
|
|
|
|
|
2015-04-07 20:04:14 +00:00
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
|
|
|
|
. /lib/functions.sh
|
|
|
|
. /lib/functions/system.sh
|
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
board=$(board_name)
|
2015-04-07 20:04:14 +00:00
|
|
|
|
|
|
|
case "$FIRMWARE" in
|
2015-07-07 13:47:57 +00:00
|
|
|
"ath10k/cal-pci-0000:00:00.0.bin")
|
|
|
|
case $board in
|
2017-06-07 19:19:48 +00:00
|
|
|
a40|\
|
|
|
|
a60|\
|
|
|
|
mr1750|\
|
|
|
|
mr1750v2|\
|
|
|
|
om5p-acv2)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "ART" 0x5000 0x844
|
2017-06-07 19:19:48 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +16)
|
|
|
|
;;
|
|
|
|
archer-c25-v1|\
|
|
|
|
tl-wdr6500-v2)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x844
|
2017-06-07 19:19:48 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
|
|
|
|
;;
|
2018-04-16 11:18:37 +00:00
|
|
|
archer-c7-v4|\
|
|
|
|
archer-c7-v5)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x844
|
2017-12-19 01:32:47 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -1)
|
|
|
|
;;
|
2018-02-05 20:31:07 +00:00
|
|
|
cf-e355ac-v1|\
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-11-14 16:38:23 +00:00
|
|
|
cf-e380ac-v1|\
|
|
|
|
cf-e380ac-v2|\
|
ar71xx: add support for YunCore SR3200 and XD3200
YunCore SR3200 is a dual-band AC1200 router, based on Qualcomm/Atheros
QCA9563+QCA9882+QCA8337N.
YunCore XD3200 (FCC ID: 2ADUG-XD3200) is a dual-band AC1200 ceiling mount
AP with PoE support, based on Qualcomm/Atheros QCA9563+QCA9882+QCA8334.
Common specification:
- 775/650/258 MHz (CPU/DDR/AHB)
- 128 MB or RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- 2T2R 2.4 GHz, with ext. PA (SKY65174-21), up to 30 dBm
- 2T2R 5 GHz, with ext. PA (SKY85405-11) and LNA (SKY85601-11), up to 30 dBm
SR3200 specification:
- 5x 10/100/1000 Mbps Ethernet
- 6x ext. RP-SMA antennas (actually, only 4 are connected with radio chips)
- 3x LED (+ 5x LED in RJ45 sockets), 1x button
- UART header on PCB
XD3200 specification:
- 2x 10/100/1000 Mbps Ethernet, with 802.3at PoE support (WAN port)
- 4x internal antennas
- 3 sets of LEDs on external PCB (+ 2x LED near RJ45 sockets), 1x button
- UART and JTAG (custom 6-pin, 2 mm pitch) headers on PCB
LED for 5 GHz WLAN is currently not supported on both devices as it is
connected directly to the QCA9882 radio chip.
Flash instruction under vendor firmware, using telnet/SSH:
1. If your firmware does not have root password, go to point 5
2. Connect PC with 192.168.1.x address to LAN or WAN port
3. Power up device, enter failsafe mode with button (no LED indicator!)
4. Change root password and reboot (mount_root, passwd ..., reboot -f)
5. Upload lede-ar71xx-...-sysupgrade.bin to /tmp using SCP
6. Connect PC with 192.168.188.x address to LAN port, SSH to 192.168.188.253
7. Invoke:
- cd /tmp
- fw_setenv bootcmd "bootm 0x9fe80000 || bootm 0x9f050000"
- mtd -e firmware -r write lede-ar71xx-...-sysupgrade.bin firmware
Flash instruction under U-Boot, using UART:
1. tftp 0x80060000 lede-ar71xx-...-sysupgrade.bin
2. erase 0x9f050000 +$filesize
3. cp.b $fileaddr 0x9f050000 $filesize
4. setenv bootcmd "bootm 0x9fe80000 || bootm 0x9f050000"
5. saveenv && reset
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-12-02 21:42:41 +00:00
|
|
|
dlan-pro-1200-ac|\
|
ar71xx: add support for WHQX E1700AC/E600G/E600GAC v2
WHQX E1700AC v2 is based on Qualcomm QCA9563 + QCA9880 + QCA8334.
Specification:
- 750/400/250 MHz (CPU/DDR/AHB)
- 128 MB of RAM (DDR2)
- 8/16 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz (QCA9563) with external FEM (SKY85309-11)
- 3T3R 5 GHz (QCA9880) with external FEM (SKY85728-11)
- 2x 10/100/1000 Mbps Ethernet (one port with PoE support)
- 1x miniPCIe slot (USB 2.0 bus only)
- 1x microSIM slot
- 1x USB 2.0
- 5x LED (4 driven by GPIO)
- 1x button (reset)
- 1x 2-pos switch
- 1x DC jack for main power input (9-48 V)
- UART (J5) and LEDs (J13) headers on PCB
WHQX E600G is based on Qualcomm QCA9531.
Specification:
- 650/391/216 MHz (CPU/DDR/AHB)
- 64/128 MB of RAM (DDR2)
- 8/16 MB of FLASH (SPI NOR)
- 2T2R 2.4 GHz (QCA9531) with external PA (LXK-6601)
- 2x 10/100 Mbps Ethernet (one port with PoE support)
- 1x miniPCIe slot (with PCIe and USB 2.0 buses)
- 1x microSIM slot
- 5x LED (4 driven by GPIO)
- 1x button (reset)
- 1x DC jack for main power input (9-48 V)
- UART (J100), SIM (J34), JTAG (J5) and LEDs (J7) headers on PCB
WHQX E600GAC is based on Qualcomm QCA9531 + QCA9887.
Specification:
- 650/391/216 MHz (CPU/DDR/AHB)
- 64/128 MB of RAM (DDR2)
- 8/16 MB of FLASH (SPI NOR)
- 2T2R 2.4 GHz (QCA9531)
- 1T1R 5 GHz (QCA9887) with external FEM (SKY85703-11)
- 2x 10/100 Mbps Ethernet
- 6x LED (1x RGB, 5 driven by GPIO)
- 1x button (reset)
- 1x DC jack for main power input (9-12 V)
- UART (J100), USB (J102), JTAG (J5) and LEDs (J7) header on PCB
Important notice:
First version of these boards are using different mtd layout, with ART
data at the end. You should not use v2 images on v1 board because it
will result in lost of ART data!
Flash instruction (using U-Boot CLI and tftp server):
1. Configure PC with static IP 192.168.1.10 and tftp server.
2. Rename "sysupgrade" filename to "firmware.bin" and place it in tftp
server directory.
3. Connect PC with one of RJ45 ports, power up the board and press
"enter" key to access U-Boot CLI.
4. Use the following command to update the device to OpenWrt: "run lfw".
Flash instruction (using U-Boot web-based recovery):
1. Configure PC with static IP 192.168.1.xxx(2-254)/24.
2. Connect PC with one of RJ45 ports, press the reset button, power up
the board and keep button pressed for around 6-7 seconds, until LEDs
start flashing.
3. Open your browser and enter 192.168.1.1, select "sysupgrade" image
and click the upgrade button.
Signed-off-by: Peng Zhang <sd20@qxwlan.com>
[reworked: image generation code, mach-* files, commit description,
fixed minor code style issues, rebased on master]
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2018-01-05 09:38:05 +00:00
|
|
|
e1700ac-v2|\
|
|
|
|
e600gac-v2|\
|
2018-01-12 15:36:25 +00:00
|
|
|
minibox-v3.2|\
|
2018-02-15 22:15:53 +00:00
|
|
|
oolite-v5.2|\
|
|
|
|
oolite-v5.2-dev|\
|
ar71xx: add support for YunCore SR3200 and XD3200
YunCore SR3200 is a dual-band AC1200 router, based on Qualcomm/Atheros
QCA9563+QCA9882+QCA8337N.
YunCore XD3200 (FCC ID: 2ADUG-XD3200) is a dual-band AC1200 ceiling mount
AP with PoE support, based on Qualcomm/Atheros QCA9563+QCA9882+QCA8334.
Common specification:
- 775/650/258 MHz (CPU/DDR/AHB)
- 128 MB or RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- 2T2R 2.4 GHz, with ext. PA (SKY65174-21), up to 30 dBm
- 2T2R 5 GHz, with ext. PA (SKY85405-11) and LNA (SKY85601-11), up to 30 dBm
SR3200 specification:
- 5x 10/100/1000 Mbps Ethernet
- 6x ext. RP-SMA antennas (actually, only 4 are connected with radio chips)
- 3x LED (+ 5x LED in RJ45 sockets), 1x button
- UART header on PCB
XD3200 specification:
- 2x 10/100/1000 Mbps Ethernet, with 802.3at PoE support (WAN port)
- 4x internal antennas
- 3 sets of LEDs on external PCB (+ 2x LED near RJ45 sockets), 1x button
- UART and JTAG (custom 6-pin, 2 mm pitch) headers on PCB
LED for 5 GHz WLAN is currently not supported on both devices as it is
connected directly to the QCA9882 radio chip.
Flash instruction under vendor firmware, using telnet/SSH:
1. If your firmware does not have root password, go to point 5
2. Connect PC with 192.168.1.x address to LAN or WAN port
3. Power up device, enter failsafe mode with button (no LED indicator!)
4. Change root password and reboot (mount_root, passwd ..., reboot -f)
5. Upload lede-ar71xx-...-sysupgrade.bin to /tmp using SCP
6. Connect PC with 192.168.188.x address to LAN port, SSH to 192.168.188.253
7. Invoke:
- cd /tmp
- fw_setenv bootcmd "bootm 0x9fe80000 || bootm 0x9f050000"
- mtd -e firmware -r write lede-ar71xx-...-sysupgrade.bin firmware
Flash instruction under U-Boot, using UART:
1. tftp 0x80060000 lede-ar71xx-...-sysupgrade.bin
2. erase 0x9f050000 +$filesize
3. cp.b $fileaddr 0x9f050000 $filesize
4. setenv bootcmd "bootm 0x9fe80000 || bootm 0x9f050000"
5. saveenv && reset
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-12-02 21:42:41 +00:00
|
|
|
sr3200|\
|
|
|
|
xd3200)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x844
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-11-14 16:38:23 +00:00
|
|
|
;;
|
2016-07-18 17:39:57 +00:00
|
|
|
dap-2695-a1)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "radiocfg" 0x5000 0x844
|
2016-07-18 17:39:57 +00:00
|
|
|
ath10kcal_patch_mac $(mtd_get_mac_ascii bdcfg wlanmac_a)
|
|
|
|
;;
|
2017-06-07 19:19:48 +00:00
|
|
|
dir-869-a1|\
|
2015-07-07 13:47:57 +00:00
|
|
|
qihoo-c301)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "radiocfg" 0x5000 0x844
|
2015-07-07 13:47:57 +00:00
|
|
|
ath10kcal_patch_mac $(mtd_get_mac_ascii devdata wlan5mac)
|
|
|
|
;;
|
2016-11-20 22:18:53 +00:00
|
|
|
dw33d)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x844
|
2019-08-09 15:45:12 +00:00
|
|
|
ath10kcal_patch_mac $(mtd_get_mac_binary art 0x12)
|
2016-11-20 22:18:53 +00:00
|
|
|
;;
|
2017-06-07 19:19:48 +00:00
|
|
|
epg5000|\
|
2016-11-20 22:18:53 +00:00
|
|
|
esr1750)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "caldata" 0x5000 0x844
|
2015-07-18 21:15:42 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +1)
|
|
|
|
;;
|
2018-05-25 10:06:37 +00:00
|
|
|
gl-ar750s|\
|
2017-10-17 21:30:01 +00:00
|
|
|
gl-ar750|\
|
|
|
|
tl-wpa8630)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x844
|
2017-10-17 21:30:01 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +1)
|
|
|
|
;;
|
2018-05-29 15:00:53 +00:00
|
|
|
koala)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x844
|
2019-08-09 15:45:12 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0xc) +0)
|
2018-05-29 15:00:53 +00:00
|
|
|
;;
|
2016-11-20 22:18:53 +00:00
|
|
|
mc-mac1200r)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x844
|
2016-11-20 22:18:53 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1)
|
|
|
|
;;
|
|
|
|
r6100)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "caldata" 0x5000 0x844
|
2016-11-20 22:18:53 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) +2)
|
|
|
|
;;
|
2018-01-08 11:55:05 +00:00
|
|
|
rb-952ui-5ac2nd|\
|
|
|
|
rb-wapg-5hact2hnd)
|
2020-04-19 14:04:42 +00:00
|
|
|
ath10kcal_from_file "/sys/firmware/mikrotik/hard_config/wlan_data" 0x5000 0x844
|
2017-06-07 19:19:48 +00:00
|
|
|
;;
|
2018-02-06 21:08:28 +00:00
|
|
|
re355|\
|
ar71xx: add support for TP-Link TL-WR902AC v1
TP-Link TL-WR902AC v1 is a pocket-size, dual-band (AC750), successor of
TL-MR3020 (both devices use very similar enclosure, in same size). New
device is based on Qualcomm QCA9531 v2 + QCA9887. FCC ID: TE7WR902AC.
Specification:
- 650/391/216 MHz (CPU/DDR/AHB)
- 1x 10/100 Mbps Ethernet
- 1x USB 2.0 (GPIO-controlled power)
- 64 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz (QCA9531)
- 1T1R 5 GHz (QCA9887)
- 5x LED (GPIO-controlled), 2x button, 1x 3-pos switch
- UART pads on PCB (TP1 -> TX, TP2 -> RX, TP3 -> GND, TP4 -> 3V3, jumper
resitors are missing on TX/RX lines)
- 1x micro USB (for power only)
Flash instructions:
Use "factory" image under vendor GUI.
Recovery instructions:
This device contains tftp recovery mode inside U-Boot. You can use it to
flash LEDE (use "factory" image) or vendor firmware.
1. Configure PC with static IP 192.168.0.66/24 and tftp server.
2. Rename "lede-ar71xx-generic-tl-wr902ac-v1-squashfs-factory.bin"
to "wr902acv1_un_tp_recovery.bin" and place it in tftp server dir.
3. Connect PC with LAN port, press the reset button, power up the router
and keep button pressed until WPS LED lights up.
4. Router will download file from server, write it to flash and reboot.
Root access over serial line in vendor firmware: root/sohoadmin.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2017-07-02 16:32:38 +00:00
|
|
|
re450|\
|
|
|
|
tl-wr902ac-v1)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x844
|
2016-01-07 00:40:48 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) -2)
|
|
|
|
;;
|
2017-06-07 19:19:48 +00:00
|
|
|
unifiac-lite|\
|
2016-05-11 07:40:00 +00:00
|
|
|
unifiac-pro)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "EEPROM" 0x5000 0x844
|
2016-02-12 08:31:32 +00:00
|
|
|
;;
|
2017-06-27 21:26:03 +00:00
|
|
|
wi2a-ac200i)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "ART" 0x5000 0x844
|
2017-06-27 21:26:03 +00:00
|
|
|
;;
|
2015-07-07 13:47:57 +00:00
|
|
|
esac
|
|
|
|
;;
|
2015-04-07 20:04:14 +00:00
|
|
|
"ath10k/cal-pci-0000:01:00.0.bin")
|
|
|
|
case $board in
|
2017-06-07 19:19:48 +00:00
|
|
|
archer-c5|\
|
2015-07-07 13:47:57 +00:00
|
|
|
archer-c7)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x844
|
2019-11-13 14:05:29 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1)
|
2015-07-07 13:47:57 +00:00
|
|
|
;;
|
2017-06-07 19:19:48 +00:00
|
|
|
nbg6616|\
|
2015-07-07 13:47:57 +00:00
|
|
|
nbg6716)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "RFdata" 0x5000 0x844
|
2015-11-07 12:51:39 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
|
2015-07-07 13:47:57 +00:00
|
|
|
;;
|
2016-04-09 10:26:08 +00:00
|
|
|
om5p-ac)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "ART" 0x5000 0x844
|
2016-04-09 10:26:08 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth0/address) +16)
|
|
|
|
;;
|
2017-06-07 19:19:48 +00:00
|
|
|
rb-911g-5hpacd|\
|
2017-12-21 14:53:05 +00:00
|
|
|
rb-921gs-5hpacd-r2|\
|
2019-03-22 12:02:40 +00:00
|
|
|
rb-922uags-5hpacd|\
|
2017-03-17 04:00:33 +00:00
|
|
|
rb-962uigs-5hact2hnt)
|
2020-04-19 14:04:42 +00:00
|
|
|
ath10kcal_from_file "/sys/firmware/mikrotik/hard_config/wlan_data" 0x5000 0x844
|
2016-11-20 22:18:53 +00:00
|
|
|
;;
|
2017-11-19 20:11:10 +00:00
|
|
|
wlr8100)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x844
|
2017-11-19 20:11:10 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
|
|
|
|
;;
|
2015-04-07 20:04:14 +00:00
|
|
|
esac
|
|
|
|
;;
|
2017-06-16 13:26:30 +00:00
|
|
|
"ath10k/pre-cal-pci-0000:00:00.0.bin")
|
|
|
|
case $board in
|
2017-06-29 13:20:31 +00:00
|
|
|
archer-c58-v1|\
|
|
|
|
archer-c59-v1|\
|
2018-06-15 04:39:09 +00:00
|
|
|
archer-c59-v2|\
|
2018-02-07 03:47:52 +00:00
|
|
|
archer-c60-v1|\
|
2018-01-22 06:57:57 +00:00
|
|
|
cf-e355ac-v2|\
|
2018-02-07 03:47:52 +00:00
|
|
|
cf-e375ac)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x2f20
|
2017-06-29 13:38:22 +00:00
|
|
|
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
|
|
|
|
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
|
2017-06-16 13:26:30 +00:00
|
|
|
;;
|
2019-01-26 16:59:45 +00:00
|
|
|
archer-c60-v2)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x2f20
|
2019-01-26 16:59:45 +00:00
|
|
|
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
|
|
|
|
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
|
2020-03-11 14:46:00 +00:00
|
|
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -1)
|
2019-01-26 16:59:45 +00:00
|
|
|
;;
|
2018-01-23 20:37:16 +00:00
|
|
|
cf-e385ac)
|
2019-08-09 15:45:13 +00:00
|
|
|
ath10kcal_extract "art" 0x5000 0x2f20
|
2018-01-23 20:37:16 +00:00
|
|
|
;;
|
2017-06-16 13:26:30 +00:00
|
|
|
esac
|
|
|
|
;;
|
2015-04-07 20:04:14 +00:00
|
|
|
*)
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|