Message ID | CADHmaC+B7H95Rkf-BRJsyZYAhiycMmFvbh6GBo0BYghPLG7UiQ@mail.gmail.com |
---|---|
State | Changes Requested |
Headers | show |
On 2015-05-08 23:04, Spencer Thomason wrote: > 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@cleanrouter.com > <mailto:sthomason@cleanrouter.com>> Formatting of this patch is screwed up, probably because of HTML/plain text mixing. If you want to avoid such issues, I'd suggest setting up git-send-email. - Felix
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)
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@cleanrouter.com>