Added support for Archer C7 v2

5Ghz AdHoc is not working with current ath10k driver.

Signed-off-by: Jan Kraus <mayosemmel@gmail.com>
Reviewed-by: Michael Fritscher <michael@fritscher.net>
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
Jan Kraus 2016-09-07 20:55:15 +02:00 committed by Tim Niemeyer
parent 04b84ee7bf
commit c739a6c0c3
5 changed files with 53 additions and 1 deletions

36
bsp/archerc7/.config Normal file
View File

@ -0,0 +1,36 @@
# Generated using "./buildscript config openwrt".
# Do no edit manually
#
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_Default=y
CONFIG_BUSYBOX_CUSTOM=y
# CONFIG_BUSYBOX_CONFIG_BRCTL is not set
# CONFIG_BUSYBOX_CONFIG_CROND is not set
# CONFIG_BUSYBOX_CONFIG_CRONTAB is not set
# CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set
CONFIG_BUSYBOX_CONFIG_SHA256SUM=y
CONFIG_CLEAN_IPKG=y
# CONFIG_FASTD_ENABLE_CIPHER_SALSA2012 is not set
# CONFIG_FASTD_ENABLE_MAC_GHASH is not set
# CONFIG_FASTD_ENABLE_METHOD_COMPOSED_GMAC is not set
# CONFIG_FASTD_ENABLE_METHOD_GENERIC_GMAC is not set
# CONFIG_PACKAGE_ALFRED_VIS is not set
CONFIG_PACKAGE_ath10k-firmware-qca988x=y
# CONFIG_PACKAGE_dnsmasq is not set
# CONFIG_PACKAGE_firewall is not set
CONFIG_PACKAGE_gpioctl-sysfs=y
CONFIG_PACKAGE_kmod-ath10k=y
CONFIG_PACKAGE_kmod-ifb=y
# CONFIG_PACKAGE_kmod-ipt-nat is not set
CONFIG_PACKAGE_kmod-ledtrig-heartbeat=y
CONFIG_PACKAGE_kmod-ledtrig-netdev=y
# CONFIG_PACKAGE_kmod-lib-crc-ccitt is not set
# CONFIG_PACKAGE_kmod-ppp is not set
CONFIG_PACKAGE_kmod-sched-connmark=y
CONFIG_PACKAGE_libugpio=y
# CONFIG_PACKAGE_odhcpd is not set
# CONFIG_PACKAGE_opkg is not set
# CONFIG_PACKAGE_ppp is not set
CONFIG_PACKAGE_qos-scripts=y
CONFIG_PACKAGE_tc=y

5
bsp/board_archerc7.bsp Normal file
View File

@ -0,0 +1,5 @@
machine=archerc7
chipset=ar71xx
target=$builddir/$machine
images=("openwrt-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin"
)

View File

@ -54,6 +54,9 @@ case "$BOARD" in
cpe510)
grep "CPE210" /var/sysinfo/model && BOARD=cpe210
;;
archer-c7)
BOARD=archer-c7-v2
;;
esac
uci set board.model.name=$BOARD

View File

@ -0,0 +1,8 @@
WANDEV=eth0
SWITCHDEV=eth1
CLIENT_PORTS="4 5 0t"
WAN_PORTS="1 6"
BATMAN_PORTS="2 3 0t"
ETHMESHMAC=eth0
ROUTERMAC=eth1

View File

@ -29,7 +29,7 @@ if ! uci get network.$SWITCHDEV.ifname; then
echo "# Allow IPv6 RAs on WAN Port" >> /etc/sysctl.conf
if [[ "$WANDEV" = "$SWITCHDEV" ]]; then
if [[ "$WANDEV" = "$SWITCHDEV" ]] || ! [[ -z "$WAN_PORTS" ]]; then
uci set network.${SWITCHDEV}_2=switch_vlan
uci set network.${SWITCHDEV}_2.device=$SWITCHHW
uci set network.${SWITCHDEV}_2.vlan=2