Update QCA Source
This commit is contained in:
parent
f2debfb5f1
commit
64b75379b9
@ -27,7 +27,7 @@ linksys,mr5500|\
|
||||
linksys,mx2000|\
|
||||
linksys,mx5500|\
|
||||
linksys,spnmx56)
|
||||
ubootenv_add_mtd "/dev/mtd$idx" "0x0" "0x40000" "0x20000"
|
||||
ubootenv_add_mtd "u_env" "0x0" "0x40000" "0x20000"
|
||||
;;
|
||||
jdcloud,re-cs-03)
|
||||
ubootenv_add_mmc "0:APPSBLENV" "0x0" "0x40000" "0x20000"
|
||||
|
@ -3,17 +3,23 @@
|
||||
|
||||
# check if stdout is a terminal, then set colors.
|
||||
if [ -t 1 ]; then
|
||||
red="\033[31m"
|
||||
green="\033[32m"
|
||||
yellow="\033[33m"
|
||||
blue="\033[34m"
|
||||
magenta="\033[35m"
|
||||
cyan="\033[36m"
|
||||
white="\033[37m"
|
||||
reset="\033[m"
|
||||
bold="\033[1m"
|
||||
red="\033[31m"
|
||||
green="\033[32m"
|
||||
yellow="\033[33m"
|
||||
blue="\033[34m"
|
||||
magenta="\033[35m"
|
||||
cyan="\033[36m"
|
||||
white="\033[37m"
|
||||
reset="\033[m"
|
||||
bold="\033[1m"
|
||||
fi
|
||||
|
||||
# Retrieve Linux kernel
|
||||
kernel=$(uname -r)
|
||||
|
||||
# Retrieve CPU freq mode
|
||||
cpu_mode=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
|
||||
|
||||
# Retrieve OpenWRT version
|
||||
[ -r /etc/openwrt_version ] && openwrt_rev=$(cat /etc/openwrt_version)
|
||||
|
||||
@ -38,6 +44,8 @@ ipq_commit=${IPQ_COMMIT:-"N/A"}
|
||||
ipq_date=${IPQ_DATE:-"N/A"}
|
||||
|
||||
# Defaults for empty variables
|
||||
kernel=${kernel:-"N/A"}
|
||||
cpu_mode=${cpu_mode:-"N/A"}
|
||||
openwrt_rev=${openwrt_rev:-"N/A"}
|
||||
model=${model:-"N/A"}
|
||||
nss_version=${nss_version:-"N/A"}
|
||||
@ -45,40 +53,42 @@ ath11k_fw=${ath11k_fw:-"N/A"}
|
||||
mac80211_version=${mac80211_version:-"N/A"}
|
||||
|
||||
# Display the information
|
||||
echo -e "${bold}${red} MODEL${reset}: ${blue}${bold}${model}${reset}"
|
||||
echo -e "${bold}${red} OPENWRT${reset}: ${white}${openwrt_rev}${reset}"
|
||||
echo -e "${bold}${red}IPQ BRANCH${reset}: ${cyan}${ipq_branch}${reset}"
|
||||
echo -e "${bold}${red}IPQ COMMIT${reset}: ${cyan}${ipq_commit}${reset}"
|
||||
echo -e "${bold}${red} IPQ DATE${reset}: ${cyan}${ipq_date}${reset}"
|
||||
echo -e "${bold}${red} NSS FW${reset}: ${magenta}${nss_version}${reset}"
|
||||
echo -e "${bold}${red} MODEL${reset}: ${cyan}${bold}${model}${reset}"
|
||||
echo -e "${bold}${red} KERNEL${reset}: ${cyan}${bold}${kernel}${reset}"
|
||||
echo -e "${bold}${red} CPU MODE${reset}: ${cyan}${bold}${cpu_mode}${reset}"
|
||||
echo -e "${bold}${red} OPENWRT${reset}: ${green}${openwrt_rev}${reset}"
|
||||
echo -e "${bold}${red}IPQ BRANCH${reset}: ${green}${ipq_branch}${reset}"
|
||||
echo -e "${bold}${red}IPQ COMMIT${reset}: ${green}${ipq_commit}${reset}"
|
||||
echo -e "${bold}${red} IPQ DATE${reset}: ${green}${ipq_date}${reset}"
|
||||
echo -e "${bold}${red} NSS FW${reset}: ${yellow}${nss_version}${reset}"
|
||||
echo -e "${bold}${red} MAC80211${reset}: ${yellow}${mac80211_version}${reset}"
|
||||
echo -e "${bold}${red} ATH11K FW${reset}: ${green}${ath11k_fw}${reset}"
|
||||
echo -e "${bold}${red} ATH11K FW${reset}: ${yellow}${ath11k_fw}${reset}"
|
||||
|
||||
# Display GRO Fragmentation status using BusyBox
|
||||
echo -ne "${bold}${red} INTERFACE${reset}: ${white}"
|
||||
n=0
|
||||
for iface in /sys/class/net/br-lan/device /sys/class/net/*/device; do
|
||||
iface=${iface%/*}
|
||||
iface=${iface##*/}
|
||||
ethtool -k "$iface" | awk -v n=$n -v i="$iface" -v rst="${reset}" -v red="${red}" -v green="${green}" '
|
||||
BEGIN { settings=""; if(n>0) spacing=" " }
|
||||
/tx-checksumming|rx-gro-list/ {
|
||||
color=green
|
||||
if($2=="off") color=red
|
||||
settings = settings $1 " " sprintf("%s%-3s%s", color,$2,rst) " ";
|
||||
}
|
||||
END { printf "%s%-11s%s\n", spacing, i, settings; }'
|
||||
n=$((n + 1))
|
||||
iface=${iface%/*}
|
||||
iface=${iface##*/}
|
||||
ethtool -k "$iface" | awk -v n=$n -v i="$iface" -v rst="${reset}" -v red="${red}" -v green="${green}" '
|
||||
BEGIN { settings=""; if(n>0) spacing=" " }
|
||||
/tx-checksumming|rx-gro-list/ {
|
||||
color=green
|
||||
if($2=="off") color=red
|
||||
settings = settings $1 " " sprintf("%s%-3s%s", color,$2,rst) " ";
|
||||
}
|
||||
END { printf "%s%-11s%s\n", spacing, i, settings; }'
|
||||
n=$((n + 1))
|
||||
done
|
||||
|
||||
echo -e "${reset}"
|
||||
echo -ne "${bold}${red} NSS PKGS${reset}: ${white}"
|
||||
|
||||
apk list -I | awk -v count=0 '
|
||||
/kmod-qca|^nss/ {
|
||||
if(count>0) tab=" "
|
||||
print tab $1
|
||||
count++
|
||||
/kmod-qca|^nss/ {
|
||||
if(count>0) tab=" "
|
||||
print tab $1
|
||||
count++
|
||||
}'
|
||||
|
||||
echo -ne "${reset}"
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include "ipq6018-cpr-regulator.dtsi"
|
||||
#include "ipq6018-mp5496.dtsi"
|
||||
#include "ipq6018-cpr-regulator.dtsi"
|
||||
|
||||
&rpm {
|
||||
status = "okay";
|
||||
|
@ -56,9 +56,9 @@ ipq60xx_setup_macs()
|
||||
|
||||
case "$board" in
|
||||
qihoo,360v6)
|
||||
lan_mac=$(mtd_get_mac_ascii factory lanMac)
|
||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||
label_mac=$lan_mac
|
||||
wan_mac=$(mtd_get_mac_ascii factory lanMac)
|
||||
lan_mac=$(macaddr_add "$wan_mac" 1)
|
||||
label_mac=$wan_mac
|
||||
;;
|
||||
tplink,eap610-outdoor)
|
||||
lan_mac=$(get_mac_binary /tmp/factory_data/default-mac 0)
|
||||
|
0
target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata
Normal file → Executable file
0
target/linux/qualcommax/ipq60xx/base-files/etc/hotplug.d/firmware/11-ath11k-caldata
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user