Skip to content

Commit

Permalink
[bot] AutoMerging: merge all upstream's changes:
Browse files Browse the repository at this point in the history
* https://github.com/coolsnowwolf/lede: (23 commits)
  kernel: bump to 5.4.237, 5.10.175 (coolsnowwolf#11016)
  kernel: bump 6.1 to 6.1.20 (coolsnowwolf#11013)
  linux-firmware: fix ax201 firmware version (coolsnowwolf#11010)
  wwan: add QUECTEL RM500U support
  linux-firmware: add QCA9377 SDIO firmware and board data
  kernel:refresh patch (coolsnowwolf#11005)
  kernel: bump 5.15 to 5.15.102 (coolsnowwolf#11003)
  kernel: kmod-wwan: Add package
  kernel: fix missing mhi control devices
  kernel: package mhi mbim driver
  kernel: package mhi wwan ctrl driver
  kernel: package mhi network driver
  kernel: kmod-phy-ax88796b: Add new PHY
  kernel: kmod-usb-dwc2-pci: Add new package
  kernel: add kmod-usb-net-lan78xx
  kernel: provide kmod-fixed-phy as separate kmod
  kernel: add kmod-phy-microchip
  kernel: bump 6.1 to 6.1.19 (coolsnowwolf#10995)
  linux-firmware: update to 20230310 (coolsnowwolf#10993)
  wwan/driver: code alignment
  ...
  • Loading branch information
github-actions[bot] committed Mar 18, 2023
2 parents c3b948d + a76ac2e commit 04a924c
Show file tree
Hide file tree
Showing 255 changed files with 4,398 additions and 2,197 deletions.
4 changes: 2 additions & 2 deletions include/kernel-5.10
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-5.10 = .168
LINUX_KERNEL_HASH-5.10.168 = b67d2596ba8d30510f743f31899c94c43eaf006a254ff44d7fc6ea26e7ab359c
LINUX_VERSION-5.10 = .175
LINUX_KERNEL_HASH-5.10.175 = e277562e28f234e36665ae12b7585f9557a83a86bc4a8de8840a305af6307bce
4 changes: 2 additions & 2 deletions include/kernel-5.15
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-5.15 = .98
LINUX_KERNEL_HASH-5.15.98 = 7dc62cd3a45f95c9b60316a5886ea9406aee256308869dac1e4ec088fbb37787
LINUX_VERSION-5.15 = .102
LINUX_KERNEL_HASH-5.15.102 = 441cddfb970b97759eebdb9b142673662ce0770500e3ae8bcd4b90af369b01e6
4 changes: 2 additions & 2 deletions include/kernel-5.4
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-5.4 = .234
LINUX_KERNEL_HASH-5.4.234 = acc79cb33f2e31bbd8267d4caa7e90bcc9ef5f1fdd060cd34117ad4dae950991
LINUX_VERSION-5.4 = .237
LINUX_KERNEL_HASH-5.4.237 = b708fee0ff0533cc64a5202287ba5581482e2653925a5d46800edfa525c25527
4 changes: 2 additions & 2 deletions include/kernel-6.1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-6.1 = .18
LINUX_KERNEL_HASH-6.1.18 = 842ac15eff0e6fb0c150fdf83f4f6aaf6b4c1239dcf8c14e2227620ec0ae141e
LINUX_VERSION-6.1 = .20
LINUX_KERNEL_HASH-6.1.20 = 76322de8c01a3c63b42c4d1e9b9e7d1897ddb91276e10d73d1f9df3562f031f0
54 changes: 33 additions & 21 deletions package/base-files/files/lib/upgrade/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,9 @@ _v() {
[ -n "$VERBOSE" ] && [ "$VERBOSE" -ge 1 ] && echo "$*" >&2
}

_vn() {
[ -n "$VERBOSE" ] && [ "$VERBOSE" -ge 1 ] && echo -n "$*" >&2
}

v() {
_v "$(date) upgrade: $@"
}

vn() {
_vn "$(date) upgrade: $@"
logger -p info -t upgrade "$@"
}

json_string() {
Expand All @@ -95,8 +88,7 @@ get_image() { # <source> [ <command> ]
if [ -z "$cmd" ]; then
local magic="$(dd if="$from" bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')"
case "$magic" in
1f8b) cmd="zcat";;
425a) cmd="bzcat";;
1f8b) cmd="busybox zcat";;
*) cmd="cat";;
esac
fi
Expand Down Expand Up @@ -135,6 +127,33 @@ get_magic_fat32() {
(get_image "$@" | dd bs=1 count=5 skip=82) 2>/dev/null
}

identify_magic_long() {
local magic=$1
case "$magic" in
"55424923")
echo "ubi"
;;
"31181006")
echo "ubifs"
;;
"68737173")
echo "squashfs"
;;
"d00dfeed")
echo "fit"
;;
"4349"*)
echo "combined"
;;
"1f8b"*)
echo "gzip"
;;
*)
echo "unknown $magic"
;;
esac
}

part_magic_efi() {
local magic=$(get_magic_gpt "$@")
[ "$magic" = "EFI PART" ]
Expand Down Expand Up @@ -163,9 +182,11 @@ export_bootdevice() {
fi
done
;;
PARTUUID=????????-????-????-????-??????????0?/PARTNROFF=1 | \
PARTUUID=????????-????-????-????-??????????02)
uuid="${rootpart#PARTUUID=}"
uuid="${uuid%02}00"
uuid="${uuid%/PARTNROFF=1}"
uuid="${uuid%0?}00"
for disk in $(find /dev -type b); do
set -- $(dd if=$disk bs=1 skip=568 count=16 2>/dev/null | hexdump -v -e '8/1 "%02x "" "2/1 "%02x""-"6/1 "%02x"')
if [ "$4$3$2$1-$6$5-$8$7-$9" = "$uuid" ]; then
Expand Down Expand Up @@ -211,7 +232,7 @@ export_partdevice() {
while read line; do
export -n "$line"
done < "$uevent"
if [ $BOOTDEV_MAJOR = $MAJOR -a $(($BOOTDEV_MINOR + $offset)) = $MINOR -a -b "/dev/$DEVNAME" ]; then
if [ "$BOOTDEV_MAJOR" = "$MAJOR" -a $(($BOOTDEV_MINOR + $offset)) = "$MINOR" -a -b "/dev/$DEVNAME" ]; then
export "$var=$DEVNAME"
return 0
fi
Expand All @@ -228,15 +249,6 @@ hex_le32_to_cpu() {
echo "$@"
}

get_partition_by_name() {
for partname in /sys/class/block/$1/*/name; do
[ "$(cat ${partname})" = "$2" ] && {
basename ${partname%%/name}
break
}
done
}

get_partitions() { # <device> <filename>
local disk="$1"
local filename="$2"
Expand Down
4 changes: 2 additions & 2 deletions package/firmware/linux-firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=linux-firmware
PKG_VERSION:=20230117
PKG_VERSION:=20230310
PKG_RELEASE:=1

PKG_SOURCE_URL:=@KERNEL/linux/kernel/firmware
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_HASH:=df11e25ba2fb4d5343473757e17a3b4cef599250a26b1f7e0f038850f0cb3d64
PKG_HASH:=5968d4e5178ca1ecad3c41c36bba4602c288f25c7a48eeaa74113537578199b2

PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>

Expand Down
2 changes: 1 addition & 1 deletion package/firmware/linux-firmware/intel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ $(eval $(call BuildPackage,iwlwifi-firmware-ax200))
Package/iwlwifi-firmware-ax201 = $(call Package/firmware-default,Intel AX201 firmware)
define Package/iwlwifi-firmware-ax201/install
$(INSTALL_DIR) $(1)/lib/firmware
$(INSTALL_DATA) $(PKG_BUILD_DIR)/iwlwifi-so-a0-hr-b0-64.ucode $(1)/lib/firmware
$(INSTALL_DATA) $(PKG_BUILD_DIR)/iwlwifi-so-a0-hr-b0-72.ucode $(1)/lib/firmware
endef
$(eval $(call BuildPackage,iwlwifi-firmware-ax201))

Expand Down
6 changes: 6 additions & 0 deletions package/firmware/linux-firmware/qca_ath10k.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ define Package/ath10k-board-qca9377/install
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/ath10k/QCA9377/hw1.0/board-2.bin \
$(1)/lib/firmware/ath10k/QCA9377/hw1.0/
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/ath10k/QCA9377/hw1.0/board.bin \
$(1)/lib/firmware/ath10k/QCA9377/hw1.0/
endef
$(eval $(call BuildPackage,ath10k-board-qca9377))
Package/ath10k-firmware-qca9377 = $(call Package/firmware-default,ath10k qca9377 firmware,+ath10k-board-qca9377)
Expand All @@ -29,6 +32,9 @@ define Package/ath10k-firmware-qca9377/install
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/ath10k/QCA9377/hw1.0/firmware-6.bin \
$(1)/lib/firmware/ath10k/QCA9377/hw1.0/firmware-6.bin
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/ath10k/QCA9377/hw1.0/firmware-sdio-5.bin \
$(1)/lib/firmware/ath10k/QCA9377/hw1.0/firmware-sdio-5.bin
endef
$(eval $(call BuildPackage,ath10k-firmware-qca9377))

Expand Down
115 changes: 113 additions & 2 deletions package/kernel/linux/modules/netdevices.mk
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,21 @@ endef

$(eval $(call KernelPackage,et131x))

define KernelPackage/phy-microchip
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Microchip Ethernet PHY driver
KCONFIG:=CONFIG_MICROCHIP_PHY
DEPENDS:=+kmod-libphy
FILES:=$(LINUX_DIR)/drivers/net/phy/microchip.ko
AUTOLOAD:=$(call AutoLoad,18,microchip,1)
endef

define KernelPackage/phy-microchip/description
Supports the LAN88XX PHYs.
endef

$(eval $(call KernelPackage,phy-microchip))


define KernelPackage/phylib-broadcom
SUBMENU:=$(NETWORK_DEVICES_MENU)
Expand All @@ -211,6 +226,23 @@ endef
$(eval $(call KernelPackage,phylib-broadcom))


define KernelPackage/phy-ax88796b
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Asix PHY driver
KCONFIG:=CONFIG_AX88796B_PHY
DEPENDS:=+kmod-libphy
FILES:=$(LINUX_DIR)/drivers/net/phy/ax88796b.ko
AUTOLOAD:=$(call AutoProbe,ax88796b)
endef

define KernelPackage/phy-ax88796b/description
Currently supports the Asix Electronics PHY found in the X-Surf 100
AX88796B package.
endef

$(eval $(call KernelPackage,phy-ax88796b))


define KernelPackage/phy-broadcom
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Broadcom Ethernet PHY driver
Expand Down Expand Up @@ -1086,13 +1118,28 @@ endef

$(eval $(call KernelPackage,forcedeth))

define KernelPackage/fixed-phy
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=MDIO Bus/PHY emulation with fixed speed/link PHYs
DEPENDS:=+kmod-libphy
KCONFIG:=CONFIG_FIXED_PHY
FILES:=$(LINUX_DIR)/drivers/net/phy/fixed_phy.ko
AUTOLOAD:=$(call AutoProbe,fixed_phy)
endef

define KernelPackage/fixed-phy/description
Kernel driver for "fixed" MDIO Bus to cover the boards
and devices that use PHYs that are not connected to the real MDIO bus.
endef

$(eval $(call KernelPackage,fixed-phy))

define KernelPackage/of-mdio
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=OpenFirmware MDIO support
DEPENDS:=+kmod-libphy @!TARGET_x86
DEPENDS:=+kmod-libphy +kmod-fixed-phy @!TARGET_x86
KCONFIG:=CONFIG_OF_MDIO
FILES:= \
$(LINUX_DIR)/drivers/net/phy/fixed_phy.ko \
$(LINUX_DIR)/drivers/net/mdio/of_mdio.ko \
$(LINUX_DIR)/drivers/net/mdio/fwnode_mdio.ko@ge5.15
AUTOLOAD:=$(call AutoLoad,41,of_mdio)
Expand Down Expand Up @@ -1424,6 +1471,70 @@ endef

$(eval $(call KernelPackage,sfc-falcon))


define KernelPackage/wwan
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=WWAN Driver Core
DEPENDS:=@(LINUX_5_15||LINUX_6_1)
KCONFIG:=CONFIG_WWAN
FILES:=$(LINUX_DIR)/drivers/net/wwan/wwan.ko
AUTOLOAD:=$(call AutoProbe,wwan)
endef

define KernelPackage/wwan/description
his driver provides a common framework for WWAN drivers.
endef

$(eval $(call KernelPackage,wwan))


define KernelPackage/mhi-net
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=MHI Network Device
DEPENDS:=@(LINUX_5_15||LINUX_6_1) @PCI_SUPPORT +kmod-mhi-bus
KCONFIG:=CONFIG_MHI_NET
FILES:=$(LINUX_DIR)/drivers/net/mhi_net.ko
AUTOLOAD:=$(call AutoProbe,mhi_net)
endef

define KernelPackage/mhi-net/description
Driver for MHI network interface
endef

$(eval $(call KernelPackage,mhi-net))

define KernelPackage/mhi-wwan-ctrl
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=MHI WWAN Control
DEPENDS:=@PCI_SUPPORT +kmod-mhi-bus +kmod-wwan
KCONFIG:=CONFIG_MHI_WWAN_CTRL
FILES:=$(LINUX_DIR)/drivers/net/wwan/mhi_wwan_ctrl.ko
AUTOLOAD:=$(call AutoProbe,mhi_wwan_ctrl)
endef

define KernelPackage/mhi-wwan-ctrl/description
Driver for MHI WWAN Control
This exposes all modem control ports like AT, MBIM, QMI, DIAG, ..
endef

$(eval $(call KernelPackage,mhi-wwan-ctrl))

define KernelPackage/mhi-wwan-mbim
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=MHI MBIM
DEPENDS:=@PCI_SUPPORT +kmod-mhi-bus +kmod-wwan
KCONFIG:=CONFIG_MHI_WWAN_MBIM
FILES:=$(LINUX_DIR)/drivers/net/wwan/mhi_wwan_mbim.ko
AUTOLOAD:=$(call AutoProbe,mhi_wwan_mbim)
endef

define KernelPackage/mhi-wwan-mbim/description
Driver for MHI MBIM
This implements MBIM over MHI
endef

$(eval $(call KernelPackage,mhi-wwan-mbim))

define KernelPackage/atlantic
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Aquantia AQtion 10Gbps Ethernet NIC
Expand Down
42 changes: 38 additions & 4 deletions package/kernel/linux/modules/usb.mk
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,7 @@ define KernelPackage/usb-dwc2
TITLE:=DWC2 USB controller driver
DEPENDS:=+USB_GADGET_SUPPORT:kmod-usb-gadget +kmod-usb-roles
KCONFIG:= \
CONFIG_USB_PCI=y \
CONFIG_USB_DWC2 \
CONFIG_USB_DWC2_PCI \
CONFIG_USB_DWC2_PLATFORM \
CONFIG_USB_DWC2_DEBUG=n \
CONFIG_USB_DWC2_VERBOSE=n \
CONFIG_USB_DWC2_TRACK_MISSED_SOFS=n \
Expand All @@ -453,6 +450,26 @@ endef
$(eval $(call KernelPackage,usb-dwc2))


define KernelPackage/usb-dwc2-pci
TITLE:=DWC2 USB controller driver (PCI)
DEPENDS:=@PCI_SUPPORT +kmod-usb-dwc2 +kmod-usb-phy-nop
KCONFIG:= \
CONFIG_USB_PCI=y \
CONFIG_USB_DWC2_PCI
FILES:= \
$(LINUX_DIR)/drivers/usb/dwc2/dwc2_pci.ko
AUTOLOAD:=$(call AutoLoad,54,dwc2_pci,1)
$(call AddDepends/usb)
endef

define KernelPackage/usb-dwc2-pci/description
The Designware USB2.0 PCI interface module for controllers
connected to a PCI bus.
endef

$(eval $(call KernelPackage,usb-dwc2-pci))


define KernelPackage/usb-dwc3
TITLE:=DWC3 USB controller driver
KCONFIG:= \
Expand Down Expand Up @@ -1138,7 +1155,7 @@ $(eval $(call KernelPackage,usb-net-aqc111))

define KernelPackage/usb-net-asix
TITLE:=Kernel module for USB-to-Ethernet Asix convertors
DEPENDS:=+(LINUX_5_4||LINUX_5_10):kmod-libphy +LINUX_6_1:kmod-phylink \
DEPENDS:=+kmod-phy-ax88796b +LINUX_6_1:kmod-phylink \
+(LINUX_5_15||LINUX_6_1):kmod-mdio-devres \
+(LINUX_5_15||LINUX_6_1):kmod-net-selftests
KCONFIG:=CONFIG_USB_NET_AX8817X
Expand Down Expand Up @@ -1202,6 +1219,23 @@ endef
$(eval $(call KernelPackage,usb-net-kaweth))


define KernelPackage/usb-net-lan78xx
TITLE:=USB-To-Ethernet Microchip LAN78XX convertors
DEPENDS:=+kmod-fixed-phy +kmod-phy-microchip +PACKAGE_kmod-of-mdio:kmod-of-mdio
KCONFIG:=CONFIG_USB_LAN78XX
FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/lan78xx.ko
AUTOLOAD:=$(call AutoProbe,lan78xx)
$(call AddDepends/usb-net)
endef

define KernelPackage/usb-net-lan78xx/description
Kernel module for Microchip LAN78XX based USB 2 & USB 3
10/100/1000 Ethernet adapters.
endef

$(eval $(call KernelPackage,usb-net-lan78xx))


define KernelPackage/usb-net-pegasus
TITLE:=Kernel module for USB-to-Ethernet Pegasus convertors
KCONFIG:=CONFIG_USB_PEGASUS
Expand Down
2 changes: 0 additions & 2 deletions package/wwan/app/fibocom-dial/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=fibocom-dial
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)


include $(INCLUDE_DIR)/package.mk

Expand Down
Loading

0 comments on commit 04a924c

Please sign in to comment.