[OpenWrt-Devel] About 802.11s mesh on IPQ4019, ath10k-ct and ct-firmware
Hi community, I am trying to develop a 802.11s router based on IPQ4019 + OpenWRT. I noticed that in OpenWRT master branch ath10k-ct and ath10k-firmware-qca4019-ct are enabled by default, but they are not enabled in tag 18.06.2. Does it mean that OpenWRT developer community are going the path of using ath10k-ct and ath10k-firmware-qca4019-ct (rather than the upstreamed ath10k + official ath10k firmware from kvalo)? Are there anyone building 802.11s routers based on tag 18.06.1, 18.06.2 or branch openwrt-18.06? Thanks. Xuebing Wang ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ath9k broken
You can build with the 4.9 kernel. I think that something like https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=3b53d6fdbc241173b4264aa49142ba94d406a806 is needed for your SoC. сб, 9 мар. 2019 г. в 21:36, Dmitry Tunin : > > сб, 9 мар. 2019 г. в 21:17, W. Michael Petullo : > > > > >> I have been trying to narrow this down as I find time. > > >> > > >> A stock install of "OpenWrt 18.06.2, r7676-cddd7b4c77" works. > > > > > This doesn't narrow anything down. You need to find a master commit > > > that broke things down. > > > And also rebuild /etc/config/wireless > > > > What about the fact that the kernel on my build assignes IRQ 0 to the > > ath9k driver? Is this in itself an indication that something is wrong? > > > > >> [Stock] # cat /proc/interrupts > > >>CPU0 > > >> 3: 0 MIPS 3 ehci_hcd:usb1 > > >> 4:400 MIPS 4 eth1 > > >> 5: 51 MIPS 5 eth0 > > >> 7: 207161 MIPS 7 timer > > >> 11:8153 MISC 3 serial > > >> 14: 0 MISC 6 ohci_hcd:usb2 > > >> 41: 148108 AR71XX PCI 1 ath9k > > >> ERR: 11 > > >> > > >> [My build] # cat /proc/interrupts > > >>CPU0 > > >> 0: 0 MIPS 0 ath9k > > >> 3: 2 MIPS 3 ehci_hcd:usb1 > > >> 4: 510116 MIPS 4 eth1 > > >> 5: 156905 MIPS 5 eth0 > > >> 7:5050086 MIPS 7 timer > > >> 11: 12 MISC 3 ttyS0 > > >> 14: 26 MISC 6 ohci_hcd:usb2 > > >> ERR: 2 > > > > -- > > Mike > > > > :wq > > Most likely it is, but you need to find out what made this change. On > ath79 the IRQ are assigned a completely different way, but on ar71xx > it shouldn't be this way. > Unless someone made some bad commit. I removed IRQ code from the PCI > driver for ath79, but it shouldn't affect ar71xx target. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ath9k broken
сб, 9 мар. 2019 г. в 21:17, W. Michael Petullo : > > >> I have been trying to narrow this down as I find time. > >> > >> A stock install of "OpenWrt 18.06.2, r7676-cddd7b4c77" works. > > > This doesn't narrow anything down. You need to find a master commit > > that broke things down. > > And also rebuild /etc/config/wireless > > What about the fact that the kernel on my build assignes IRQ 0 to the > ath9k driver? Is this in itself an indication that something is wrong? > > >> [Stock] # cat /proc/interrupts > >>CPU0 > >> 3: 0 MIPS 3 ehci_hcd:usb1 > >> 4:400 MIPS 4 eth1 > >> 5: 51 MIPS 5 eth0 > >> 7: 207161 MIPS 7 timer > >> 11:8153 MISC 3 serial > >> 14: 0 MISC 6 ohci_hcd:usb2 > >> 41: 148108 AR71XX PCI 1 ath9k > >> ERR: 11 > >> > >> [My build] # cat /proc/interrupts > >>CPU0 > >> 0: 0 MIPS 0 ath9k > >> 3: 2 MIPS 3 ehci_hcd:usb1 > >> 4: 510116 MIPS 4 eth1 > >> 5: 156905 MIPS 5 eth0 > >> 7:5050086 MIPS 7 timer > >> 11: 12 MISC 3 ttyS0 > >> 14: 26 MISC 6 ohci_hcd:usb2 > >> ERR: 2 > > -- > Mike > > :wq Most likely it is, but you need to find out what made this change. On ath79 the IRQ are assigned a completely different way, but on ar71xx it shouldn't be this way. Unless someone made some bad commit. I removed IRQ code from the PCI driver for ath79, but it shouldn't affect ar71xx target. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ath9k broken
>> I have been trying to narrow this down as I find time. >> >> A stock install of "OpenWrt 18.06.2, r7676-cddd7b4c77" works. > This doesn't narrow anything down. You need to find a master commit > that broke things down. > And also rebuild /etc/config/wireless What about the fact that the kernel on my build assignes IRQ 0 to the ath9k driver? Is this in itself an indication that something is wrong? >> [Stock] # cat /proc/interrupts >>CPU0 >> 3: 0 MIPS 3 ehci_hcd:usb1 >> 4:400 MIPS 4 eth1 >> 5: 51 MIPS 5 eth0 >> 7: 207161 MIPS 7 timer >> 11:8153 MISC 3 serial >> 14: 0 MISC 6 ohci_hcd:usb2 >> 41: 148108 AR71XX PCI 1 ath9k >> ERR: 11 >> >> [My build] # cat /proc/interrupts >>CPU0 >> 0: 0 MIPS 0 ath9k >> 3: 2 MIPS 3 ehci_hcd:usb1 >> 4: 510116 MIPS 4 eth1 >> 5: 156905 MIPS 5 eth0 >> 7:5050086 MIPS 7 timer >> 11: 12 MISC 3 ttyS0 >> 14: 26 MISC 6 ohci_hcd:usb2 >> ERR: 2 -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ath9k broken
> I have been trying to narrow this down as I find time. > > A stock install of "OpenWrt 18.06.2, r7676-cddd7b4c77" works. This doesn't narrow anything down. You need to find a master commit that broke things down. And also rebuild /etc/config/wireless ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] mac80211: netifd: Use a mask when using `iw set antenna`
The keyword "all" is only supported by `iw set antenna` if it's used as the only argument. Convert "all" into a mask before calling `iw set antenna`. Signed-off-by: Alexander Couzens --- package/kernel/mac80211/Makefile | 2 +- .../kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 7 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile index eedd3f9e8955..d68738aca51c 100644 --- a/package/kernel/mac80211/Makefile +++ b/package/kernel/mac80211/Makefile @@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=mac80211 PKG_VERSION:=4.19.23-1 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE_URL:=@KERNEL/linux/kernel/projects/backports/stable/v4.19.23/ PKG_HASH:=703e940b542eb56067fcd847a7c69398dcc9829f34472647eea4211cb2ab3b83 diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index e7d442f8ef1a..e9389e34477b 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -781,11 +781,14 @@ drv_mac80211_setup() { done } - set_default rxantenna all - set_default txantenna all + set_default rxantenna 0x + set_default txantenna 0x set_default distance 0 set_default antenna_gain 0 + [ "$txantenna" = "all" ] && txantenna=0x + [ "$rxantenna" = "all" ] && rxantenna=0x + iw phy "$phy" set antenna $txantenna $rxantenna >/dev/null 2>&1 iw phy "$phy" set antenna_gain $antenna_gain iw phy "$phy" set distance "$distance" -- 2.21.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ath9k broken
>> Has anything changed with respect to how to configure things? Is there >> a bug in the ath9k driver? > Please specify a commit you were using before the "git pull" that used > to work correctly. That will simplify looking for a regressing change. I have been trying to narrow this down as I find time. A stock install of "OpenWrt 18.06.2, r7676-cddd7b4c77" works. One thing different between my build and the stock build is that my build seems to assign IRQ 0 to the wireless adapter whereas the stock build assignes IRQ 41: [Stock] # cat /proc/interrupts CPU0 3: 0 MIPS 3 ehci_hcd:usb1 4:400 MIPS 4 eth1 5: 51 MIPS 5 eth0 7: 207161 MIPS 7 timer 11: 8153 MISC 3 serial 14: 0 MISC 6 ohci_hcd:usb2 41: 148108 AR71XX PCI 1 ath9k ERR: 11 [My build] # cat /proc/interrupts CPU0 0: 0 MIPS 0 ath9k 3: 2 MIPS 3 ehci_hcd:usb1 4: 510116 MIPS 4 eth1 5: 156905 MIPS 5 eth0 7:5050086 MIPS 7 timer 11: 12 MISC 3 ttyS0 14: 26 MISC 6 ohci_hcd:usb2 ERR: 2 -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH v2] build: have scripts/feeds honor all toplevel .mk-files of a feed
The luci and freifunk feed having a common Makefile included by the individual packages. Currently a change to this file will be ignored when running "scripts/feeds update". When we are updating for a feed, add a dependency for all .mk files in the root of it. Signed-off-by: Sven Roederer --- include/scan.mk | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/scan.mk b/include/scan.mk index d9cd4f7e8c..7df5dc6486 100644 --- a/include/scan.mk +++ b/include/scan.mk @@ -12,10 +12,17 @@ OVERRIDELIST:=$(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-$(SCAN_COOKIE) export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH) +define feedname +$(if $(patsubst feeds/%,,$(1)),,$(word 2,$(subst /, ,$(1 +endef + ifeq ($(SCAN_NAME),target) SCAN_DEPS=image/Makefile profiles/*.mk $(TOPDIR)/include/kernel*.mk $(TOPDIR)/include/target.mk image/*.mk else SCAN_DEPS=$(TOPDIR)/include/package*.mk +ifneq ($(call feedname,$(SCAN_DIR)),) + SCAN_DEPS += $(TOPDIR)/feeds/$(call feedname,$(SCAN_DIR))/*.mk +endif endif ifeq ($(IS_TTY),1) @@ -34,10 +41,6 @@ else endef endif -define feedname -$(if $(patsubst feeds/%,,$(1)),,$(word 2,$(subst /, ,$(1 -endef - define PackageDir $(TMP_DIR)/.$(SCAN_TARGET): $(TMP_DIR)/info/.$(SCAN_TARGET)-$(1) $(TMP_DIR)/info/.$(SCAN_TARGET)-$(1): $(SCAN_DIR)/$(2)/Makefile $(foreach DEP,$(DEPS_$(SCAN_DIR)/$(2)/Makefile) $(SCAN_DEPS),$(wildcard $(if $(filter /%,$(DEP)),$(DEP),$(SCAN_DIR)/$(2)/$(DEP -- 2.11.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] mxs: disable unused serial drivers
This disables PL010 and 8250 serial support for this platform as both drivers are not used: the debug UART is PL011 and the application UARTs use a dedicated MXS specific driver. The kernel size reduction is neglectable, but it also removes the non-working (confusing) /dev/ttyS0 and /dev/ttyS1 devices in a running system (which generate errors when trying to use): root@OpenWrt:~# echo "hello world" > /dev/ttyS0 ash: write error: I/O error root@OpenWrt:~# Signed-off-by: Michael Heimpold --- target/linux/mxs/config-4.14 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target/linux/mxs/config-4.14 b/target/linux/mxs/config-4.14 index 43d6a59bae..abad1807cd 100644 --- a/target/linux/mxs/config-4.14 +++ b/target/linux/mxs/config-4.14 @@ -262,9 +262,7 @@ CONFIG_RTC_MC146818_LIB=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y # CONFIG_SCHED_INFO is not set # CONFIG_SCSI_DMA is not set -CONFIG_SERIAL_8250_FSL=y -CONFIG_SERIAL_AMBA_PL010=y -CONFIG_SERIAL_AMBA_PL010_CONSOLE=y +# CONFIG_SERIAL_8250 is not set CONFIG_SERIAL_AMBA_PL011=y CONFIG_SERIAL_AMBA_PL011_CONSOLE=y CONFIG_SERIAL_MCTRL_GPIO=y -- 2.17.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel