--- a/package/firmware/ipq-wifi/Makefile +++ b/package/firmware/ipq-wifi/Makefile @@ -54,7 +54,9 @@ ALLWIFIBOARDS:= \ zte_mf289f \ zte_mf287 \ zte_mf287plus \ - zyxel_nbg7815 + zyxel_nbg7815 \ + qihoo_360v6 \ + cmiot_ax18 ALLWIFIPACKAGES:=$(foreach BOARD,$(ALLWIFIBOARDS),ipq-wifi-$(BOARD)) @@ -159,6 +161,8 @@ $(eval $(call generate-ipq-wifi-package,netgear_rax120v2,Netgear RAX120v2)) $(eval $(call generate-ipq-wifi-package,netgear_wax218,Netgear WAX218)) $(eval $(call generate-ipq-wifi-package,netgear_wax620,Netgear WAX620)) $(eval $(call generate-ipq-wifi-package,netgear_wax630,Netgear WAX630)) +$(eval $(call generate-ipq-wifi-package,qihoo_360v6,QIHOO 360V6)) +$(eval $(call generate-ipq-wifi-package,zyxel_nbg7815,Zyxel NBG7815)) $(eval $(call generate-ipq-wifi-package,qnap_301w,QNAP 301w)) $(eval $(call generate-ipq-wifi-package,prpl_haze,prpl Haze)) $(eval $(call generate-ipq-wifi-package,redmi_ax6,Redmi AX6)) --- a/target/linux/qualcommax/image/ipq60xx.mk +++ b/target/linux/qualcommax/image/ipq60xx.mk @@ -30,6 +30,32 @@ define Device/cmiot_ax18 endef TARGET_DEVICES += cmiot_ax18 +define Device/qihoo_360v6 + $(call Device/FitImage) + $(call Device/UbiFit) + DEVICE_VENDOR := Qihoo 360 + DEVICE_MODEL := V6 + BLOCKSIZE := 128k + PAGESIZE := 2048 + DEVICE_DTS_CONFIG := config@cp03-c1 + DEVICE_PACKAGES := ipq-wifi-qihoo_360v6 + SOC := ipq6000 +endef +TARGET_DEVICES += qihoo_360v6 + +define Device/zn_m2 + $(call Device/FitImage) + $(call Device/UbiFit) + DEVICE_VENDOR := ZN + DEVICE_MODEL := M2 + BLOCKSIZE := 128k + PAGESIZE := 2048 + DEVICE_DTS_CONFIG := config@cp03-c1 + DEVICE_PACKAGES := ipq-wifi-cmiot_ax18 + SOC := ipq6018 +endef +TARGET_DEVICES += zn_m2 + define Device/glinet_gl-ax1800 $(call Device/FitImage) $(call Device/UbiFit) --- a/target/linux/qualcommax/ipq60xx/base-files/etc/board.d/02_network +++ b/target/linux/qualcommax/ipq60xx/base-files/etc/board.d/02_network @@ -11,9 +11,14 @@ ipq807x_setup_interfaces() local board="$1" case "$board" in - cmiot,ax18) + cmiot,ax18|\ + qihoo,v6|\ + zn,m2) ucidef_set_interfaces_lan_wan "eth1 eth2 eth3" "eth0" - ;; + ;; + linksys,mr7350) + ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "eth4" + ;; glinet,gl-ax1800) ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4" "eth0" ;; --- a/target/linux/qualcommax/ipq60xx/base-files/etc/board.d/01_leds +++ b/target/linux/qualcommax/ipq60xx/base-files/etc/board.d/01_leds @@ -6,7 +6,8 @@ board_config_update board=$(board_name) case "$board" in - cmiot,ax18) + cmiot,ax18|\ + zn,m2) ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth0" ucidef_set_led_netdev "wlan2g" "WLAN2G" "blue:wlan2g" "wlan1" ucidef_set_led_netdev "wlan5g" "WLAN5G" "blue:wlan5g" "wlan0" --- a/target/linux/qualcommax/ipq60xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/qualcommax/ipq60xx/base-files/lib/upgrade/platform.sh @@ -17,6 +17,8 @@ platform_pre_upgrade() { platform_do_upgrade() { case "$(board_name)" in cmiot,ax18|\ + qihoo,v6|\ + zn,m2|\ glinet,gl-axt1800|\ glinet,gl-ax1800) nand_do_upgrade "$1" --- a/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata +++ b/target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata @@ -10,6 +10,9 @@ case "$FIRMWARE" in "ath11k/IPQ6018/hw1.0/cal-ahb-c000000.wifi.bin") case $(board_name) in cmiot,ax18|\ + linksys,mr7350|\ + qihoo,v6|\ + zn,m2|\ glinet,gl-axt1800|\ glinet,gl-ax1800) caldata_extract "0:art" 0x1000 0x10000 --- a/package/feeds/kiddin9/base-files/files/etc/init.d/led +++ b/package/feeds/kiddin9/base-files/files/etc/init.d/led @@ -76,6 +76,8 @@ load_led() { "netdev") [ -n "$dev" ] && { echo $dev > /sys/class/leds/${sysfs}/device_name + [ -e "/sys/class/leds/${sysfs}/mode" ] && \ + echo $mode > /sys/class/leds/${sysfs}/mode for m in $mode; do [ -e "/sys/class/leds/${sysfs}/$m" ] && \ echo 1 > /sys/class/leds/${sysfs}/$m