Update QCA Source

This commit is contained in:
VIKINGYFY 2025-04-01 13:32:32 +08:00 committed by VIKING
parent f2debfb5f1
commit 64b75379b9
5 changed files with 46 additions and 36 deletions

View File

@ -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"

View File

@ -14,6 +14,12 @@ if [ -t 1 ]; then
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,14 +53,16 @@ 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}"

View File

@ -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";

View File

@ -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)