If you select a JFFS2 only build for the TP-Link Archer C7 then the ath10k drivers blob doesn't load and the 5GHz band doesn't work at all. It looks like the partitions were hard-coded for sqashfs. This patch allows both squashfs and JFFS2 to work.
Signed-off-by: Spencer Thomason <sthoma...@cleanrouter.com> diff --git a/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin b/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin index 9a32dfc..6ab8023 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin +++ b/target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin @@ -14,13 +14,15 @@ do_load_ath10k_board_bin() { archer-c5 | \ archer-c7) local mac + local mtdpart mac=$(macaddr_add $(cat /sys/class/net/eth1/address) -2) + mtdpart=$(find_mtd_part "art") - dd if=/dev/mtdblock4 \ + dd if=$mtdpart \ bs=1 skip=20480 count=6 \ of=/tmp/ath10k-board.bin macaddr_2bin $mac >> /tmp/ath10k-board.bin - dd if=/dev/mtdblock4 \ + dd if=$mtdpart \ bs=1 skip=20492 count=2104 >> /tmp/ath10k-board.bin ;; mc-mac1200r)
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel