[OpenWrt-Devel] [PATCH] TP-LINK Archer C7 () JFFS2 only 5GHz fix

Spencer Thomason sthomason at cleanrouter.com
Fri May 8 17:04:50 EDT 2015


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 <sthomason at 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150508/91f2a3b0/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list