[OpenWrt-Devel] [PATCH] ramips: delete unused file
These file is not used by system. Signed-off-by: Cezary Jackiewicz cezary.jackiew...@gmail.com --- diff --git a/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion b/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion deleted file mode 100644 index e96acc8..000 --- a/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion +++ /dev/null @@ -1 +0,0 @@ -[ $ACTION = motion ] logger webcam motion event -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] ramips: delete unused file
On 04/02/2015 07:04, John Crispin wrote: On 04/02/2015 07:02, Cezary Jackiewicz wrote: These file is not used by system. erm, how is that unused ? people use it for hooking stuff into the motion detection of the belkin webcams. if at all, move it into the matching driver package moving it wont work as the matching kernel patch is currently inside the ralink folder Signed-off-by: Cezary Jackiewicz cezary.jackiew...@gmail.com --- diff --git a/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion b/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion deleted file mode 100644 index e96acc8..000 --- a/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion +++ /dev/null @@ -1 +0,0 @@ -[ $ACTION = motion ] logger webcam motion event ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] ramips: delete unused file
On 04/02/2015 07:02, Cezary Jackiewicz wrote: These file is not used by system. erm, how is that unused ? people use it for hooking stuff into the motion detection of the belkin webcams. if at all, move it into the matching driver package Signed-off-by: Cezary Jackiewicz cezary.jackiew...@gmail.com --- diff --git a/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion b/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion deleted file mode 100644 index e96acc8..000 --- a/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion +++ /dev/null @@ -1 +0,0 @@ -[ $ACTION = motion ] logger webcam motion event ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] linux/modules: add support for Asix ax88179 USB-Gigabit Ethernet adapters
requested and tested by forum user OWonPi https://forum.openwrt.org/viewtopic.php?id=55495 Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de --- package/kernel/linux/modules/usb.mk | 17 + 1 file changed, 17 insertions(+) diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk index 7498bcb..431c7ba 100644 --- a/package/kernel/linux/modules/usb.mk +++ b/package/kernel/linux/modules/usb.mk @@ -1027,6 +1027,23 @@ endef $(eval $(call KernelPackage,usb-net-asix)) +define KernelPackage/usb-net-asix-ax88179 + TITLE:=Kernel module for USB-to-Gigabit-Ethernet Asix convertors + DEPENDS:=+kmod-libphy + KCONFIG:=CONFIG_USB_NET_AX88179_178A + FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/ax88179_178a.ko + AUTOLOAD:=$(call AutoProbe,ax88179_178a) + $(call AddDepends/usb-net) +endef + +define KernelPackage/usb-net-asix-ax88179/description + Kernel module for USB-to-Ethernet ASIX AX88179 based USB 3.0/2.0 + to Gigabit Ethernet adapters. +endef + +$(eval $(call KernelPackage,usb-net-asix-ax88179)) + + define KernelPackage/usb-net-hso TITLE:=Kernel module for Option USB High Speed Mobile Devices KCONFIG:=CONFIG_USB_HSO -- 2.2.2 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] hardened openwrt luci
Hi Dirk, 2015-02-02 1:40 GMT+01:00 Dirk Neukirchen dirkneukirc...@web.de: On 01.02.2015 23:01, Etienne Champetier wrote: hi Dirk, please try 'make clean' or 'make dirclean' I'm pretty sure you need to rebuild almost everything when enabling hardening option 2015-02-01 22:37 GMT+01:00 Dirk Neukirchen dirkneukirc...@web.de: The buildtree is really clean :) git clean -x -f -d cp ../fail1.txt .config make defconfig (note that several packages from feeds are now disabled) make -j 7 ... make -r world: build failed. Please re-run make with V=s to see what's going on nano logs/target/linux/install.txt - same Error i've tried on my build machine with your config and same problem (after a make dirclean) maybe x86_64 related ? CC init/version.o LD init/built-in.o init/built-in.o: In function `do_one_initcall': /tmp/openwrt-cc/build_dir/target-x86_64_uClibc-0.9.33.2/linux-x86_64/linux-3.14.30/init/main.c:692: undefined reference to `__stack_chk_guard' /tmp/openwrt-cc/build_dir/target-x86_64_uClibc-0.9.33.2/linux-x86_64/linux-3.14.30/init/main.c:715: undefined reference to `__stack_chk_guard' init/built-in.o: In function `name_to_dev_t': /tmp/openwrt-cc/build_dir/target-x86_64_uClibc-0.9.33.2/linux-x86_64/linux-3.14.30/init/do_mounts.c:210: undefined reference to `__stack_chk_guard' /tmp/openwrt-cc/build_dir/target-x86_64_uClibc-0.9.33.2/linux-x86_64/linux-3.14.30/init/do_mounts.c:287: undefined reference to `__stack_chk_guard' init/built-in.o: In function `mount_block_root': /tmp/openwrt-cc/build_dir/target-x86_64_uClibc-0.9.33.2/linux-x86_64/linux-3.14.30/init/do_mounts.c:378: undefined reference to `__stack_chk_guard' init/built-in.o:/tmp/openwrt-cc/build_dir/target-x86_64_uClibc-0.9.33.2/linux-x86_64/linux-3.14.30/init/do_mounts.c:434: more undefined references to `_ _stack_chk_guard' follow make[5]: *** [vmlinux] Error 1 make[4]: *** [/tmp/openwrt-cc/build_dir/target-x86_64_uClibc-0.9.33.2/linux-x86_64/linux-3.14.30/.image] Error 2 make[4]: Leaving directory `/tmp/openwrt-cc/target/linux/x86_64' make[3]: *** [install] Error 2 make[3]: Leaving directory `/tmp/openwrt-cc/target/linux' make[2]: *** [target/linux/install] Error 2 make[2]: Leaving directory `/tmp/openwrt-cc' make[1]: *** [/tmp/openwrt-cc/staging_dir/target-x86_64_uClibc-0.9.33.2/stamp/.target_install] Error 2 make[1]: Leaving directory `/tmp/openwrt-cc' make: *** [world] Erreur 2 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] AsiaRF AWM002 (ramips) USB and reboot broken at r44044
On 03/02/2015 09:01, Christian Lamparter wrote: On Tue, Feb 3, 2015 at 8:43 AM, John Crispin blo...@openwrt.org wrote: On 03/02/2015 08:36, Christian Lamparter wrote: Thing is: ralink-phy.c can use some more work! elaborate on what needs work Link to github-source: https://github.com/openwrt-mirror/openwrt/blob/master/target/linux/ramips/patches-3.14/0037-USB-phy-add-ralink-SoC-driver.patch#L102 if (OTG_STATE_B_HOST) { rt_sysc_m32(0, RT_SYSCFG1_USB0_HOST_MODE, RT_SYSC_REG_SYSCFG1); if (!IS_ERR(rsthost)) reset_control_deassert(rsthost); } else { ... rt_sysc_m32(RT_SYSCFG1_USB0_HOST_MODE, 0, RT_SYSC_REG_SYSCFG1); if (!IS_ERR(rstdev)) reset_control_deassert(rstdev); } What about OTG, Is it not supported? The constant (OTG_STATE_B_HOST) will always evaluate to true. OTG is not supported and never has until now due to missing drivers. try to make a statement rather than encapsulating what you are trying to say in a question please, because i still don't get what you mean with needs work Note: For the M2M, the vendor disabled the USB DEV (by setting the reset signal in the boot loader). They did this probably to save power (this unit has a battery). And unfortunately: if the USB DEV reset bit is not cleared, then the connected USB device on the USB HOST (of the ramips) is not detected. Regards, Christian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] redis server
On 03.02.2015 00:25, Ryan Jacobs wrote: Hey, I just happened across this post with a google search. I know it's a year old, but I am also looking to install Redis on an OpenWrt system. I believe that uClibc is the main culprit to make's failure. I don't know how far you got, but here's what I've done so far: https://github.com/antirez/redis/issues/2347. Any input, hints, tips, or whatever would be very much appreciated. Thanks. Creating a redis OpenWrt package should be doable. At least 2 other projects that use uClibc have redis 2.8.x available: Alpine Linux: http://git.alpinelinux.org/cgit/aports/tree/main/redis Buildroot: http://git.buildroot.net/buildroot/tree/package/redis ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ar71xx: add support for the TP-LINK TL-WR941ND v5
This device is very similar to the TL-WR841N v8, only two LED GPIOs are different. Signed-off-by: Matthias Schiffer mschif...@universe-factory.net --- target/linux/ar71xx/base-files/etc/diag.sh | 3 +- .../ar71xx/base-files/etc/uci-defaults/01_leds | 3 +- .../ar71xx/base-files/etc/uci-defaults/02_network | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 ++ .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + .../files/arch/mips/ath79/mach-tl-wr841n-v8.c | 61 ++ target/linux/ar71xx/image/Makefile | 3 +- .../610-MIPS-ath79-openwrt-machines.patch | 3 +- .../720-MIPS-ath79-add-Tube2H-support.patch| 6 +-- 9 files changed, 77 insertions(+), 7 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index af6107b..03ca864 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -226,7 +226,8 @@ get_status_led() { tl-wr841n-v8 | \ tl-wa830re-v2 | \ tl-wr842n-v2 | \ - tl-wr941nd) + tl-wr941nd | \ + tl-wr941nd-v5) status_led=tp-link:green:system ;; archer-c5 | \ diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index d1da572..1d1f2be 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -369,7 +369,8 @@ tl-wr741nd-v4) ucidef_set_led_wlan wlan WLAN tp-link:green:wlan phy0tpt ;; -tl-wr841n-v8) +tl-wr841n-v8 | \ +tl-wr941nd-v5) ucidef_set_led_netdev wan WAN tp-link:green:wan eth0 ucidef_set_led_switch lan1 LAN1 tp-link:green:lan1 switch0 0x04 ucidef_set_led_switch lan2 LAN2 tp-link:green:lan2 switch0 0x08 diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index a223ae8..e5228cf 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -220,6 +220,7 @@ smart-300 |\ tl-mr3420-v2 |\ tl-wr841n-v8 |\ tl-wr842n-v2 |\ +tl-wr941nd-v5 |\ wnr2000-v3 |\ wnr2000-v4 |\ wnr2200 |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 02872de..b5224ae 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -702,6 +702,9 @@ ar71xx_board_detect() { *TL-WR941ND) name=tl-wr941nd ;; + *TL-WR941N/ND v5) + name=tl-wr941nd-v5 + ;; *TL-WR703N v1) name=tl-wr703n ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index bc6866d..576ce56 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -333,6 +333,7 @@ platform_check_image() { tl-wr841n-v9 | \ tl-wr842n-v2 | \ tl-wr941nd | \ + tl-wr941nd-v5 | \ tl-wr1041n-v2 | \ tl-wr1043nd | \ tl-wr1043nd-v2 | \ diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c index 0099b15..73cfdd9 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c @@ -38,6 +38,15 @@ #define TL_MR3420V2_GPIO_LED_3G11 #define TL_MR3420V2_GPIO_USB_POWER 4 +#define TL_WR941NDV5_GPIO_LED_WLAN 13 +#define TL_WR941NDV5_GPIO_LED_QSS 15 +#define TL_WR941NDV5_GPIO_LED_WAN 18 +#define TL_WR941NDV5_GPIO_LED_LAN1 19 +#define TL_WR941NDV5_GPIO_LED_LAN2 20 +#define TL_WR941NDV5_GPIO_LED_LAN3 2 +#define TL_WR941NDV5_GPIO_LED_LAN4 3 +#define TL_WR941NDV5_GPIO_LED_SYSTEM 14 + #define TL_WR841NV8_KEYS_POLL_INTERVAL 20 /* msecs */ #define TL_WR841NV8_KEYS_DEBOUNCE_INTERVAL (3 * TL_WR841NV8_KEYS_POLL_INTERVAL) @@ -127,6 +136,42 @@ static struct gpio_keys_button tl_mr3420v2_gpio_keys[] __initdata = { } }; +static struct gpio_led tl_wr941nd_v5_leds_gpio[] __initdata = { + { + .name = tp-link:green:lan1, + .gpio = TL_WR941NDV5_GPIO_LED_LAN1, + .active_low = 1, + }, { + .name = tp-link:green:lan2, + .gpio = TL_WR941NDV5_GPIO_LED_LAN2, + .active_low = 1, + }, { + .name = tp-link:green:lan3, + .gpio = TL_WR941NDV5_GPIO_LED_LAN3, + .active_low = 1, + }, { + .name = tp-link:green:lan4, +
Re: [OpenWrt-Devel] AsiaRF AWM002 (ramips) USB and reboot broken at r44044
John == John Crispin blo...@openwrt.org writes: John On 03/02/2015 08:36, Christian Lamparter wrote: Thing is: ralink-phy.c can use some more work! John elaborate on what needs work r44248 fixed my problem. Thanks, Christian and John! -- Russell Senior, President russ...@personaltelco.net ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] at71xx: TP-LINK Archer: add 5GHz led entry
Add 5GHz led entry after r44033. Signed-off-by: Cezary Jackiewicz cezary.jackiew...@gmail.com --- diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index d1da572..4dfe652 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -350,6 +350,7 @@ tl-wdr4900-v2) ucidef_set_led_usbdev usb1 USB1 tp-link:green:usb1 1-1 ucidef_set_led_usbdev usb2 USB2 tp-link:green:usb2 2-1 ucidef_set_led_wlan wlan2g WLAN2G tp-link:blue:wlan2g phy0tpt + ucidef_set_led_wlan wlan5g WLAN5G tp-link:blue:wlan5g phy1tpt ;; tl-wr741nd) -- Pozdrawiam, Cezary Jackiewicz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] base-files: default_postinst() fix variable colision
The name variable contains at first the package name, and after the last group name. This patch fixes /etc/rc.d symlink creation (at least). Change name in pkgname, change the other name in ugname (user group name), and id in ugid (user group id) Signed-off-by: Etienne CHAMPETIER champetier.etie...@gmail.com --- package/base-files/files/lib/functions.sh | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index 9d98fb0..dc3b805 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -171,51 +171,51 @@ default_prerm() { } default_postinst() { - local name rusers - name=$(echo $(basename $1) | cut -d. -f1) - rusers=$(grep Require-User: ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.control) + local pkgname rusers + pkgname=$(echo $(basename $1) | cut -d. -f1) + rusers=$(grep Require-User: ${IPKG_INSTROOT}/usr/lib/opkg/info/${pkgname}.control) [ -n $rusers ] { local user group uid gid for a in $(echo $rusers | sed s/Require-User://g); do user= group= for b in $(echo $a | sed s/:/ /g); do - local name id + local ugname ugid - name=$(echo $b | cut -d= -f1) - id=$(echo $b | cut -d= -f2) + ugname=$(echo $b | cut -d= -f1) + ugid=$(echo $b | cut -d= -f2) [ -z $user ] { - user=$name - uid=$id + user=$ugname + uid=$ugid continue } - gid=$id + gid=$ugid [ -n $gid ] { - group_exists $name || group_add $name $gid + group_exists $ugname || group_add $ugname $gid } [ -z $gid ] { - group_add_next $name + group_add_next $ugname gid=$? } [ -z $group ] { user_exists $user || user_add $user $uid $gid - group=$name + group=$ugname continue } - group_add_user $name $user + group_add_user $ugname $user done done } - [ -f ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.postinst-pkg ] ( . ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.postinst-pkg ) + [ -f ${IPKG_INSTROOT}/usr/lib/opkg/info/${pkgname}.postinst-pkg ] ( . ${IPKG_INSTROOT}/usr/lib/opkg/info/${pkgname}.postinst-pkg ) [ -n ${IPKG_INSTROOT} ] || rm -f /tmp/luci-indexcache 2/dev/null - [ $PKG_UPGRADE = 1 ] || for i in `cat ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.list | grep ^/etc/init.d/`; do + [ $PKG_UPGRADE = 1 ] || for i in `cat ${IPKG_INSTROOT}/usr/lib/opkg/info/${pkgname}.list | grep ^/etc/init.d/`; do [ -n ${IPKG_INSTROOT} ] $(which bash) ${IPKG_INSTROOT}/etc/rc.common ${IPKG_INSTROOT}$i enable; \ [ -n ${IPKG_INSTROOT} ] || { $i enable -- 2.1.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] zabbix-agentd package not creating rc.d symlink
Hi, fixed with http://patchwork.ozlabs.org/patch/436014/ 2015-02-02 23:43 GMT+01:00 Etienne Champetier champetier.etie...@gmail.com : Hi, i've just spent 3 hours trying to figure out why when i compile zabbix-agentd in my image, the symlink from rc.d/zabbix_agentd to init.d/zabbix_agentd isn't created. if i execute /etc/init.d/zabbix_agentd enable the symlink is created. With BB the symlink was created. a quick extract of the build log that i suspect is related (there is no zabbix.list, but zabbix-agentd.list, zabbix-extra-mac80211.list, zabbix-extra-network.list, zabbix-extra-wifi.list) Setting flags for package libc to hold. Setting flags for package libgcc to hold. Setting flags for package libpthread to hold. make[3]: Entering directory `/tmp/openwrt-cc' make[3]: Nothing to be done for `package/preconfig'. make[3]: Leaving directory `/tmp/openwrt-cc' cat: /tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/zabbix.list: No such file or directory cat: /tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/zabbix.list: No such file or directory cat: /tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/zabbix.list: No such file or directory cat: /tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/zabbix.list: No such file or directory rm -f /tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/*.postinst* rm -f /tmp/openwrt-cc/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/opkg/info/*.prerm* make[2]: Leaving directory `/tmp/openwrt-cc' make[2]: Entering directory `/tmp/openwrt-cc' For tonight i'm stuck Thanks in advance Etienne ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] AsiaRF AWM002 (ramips) USB and reboot broken at r44044
On Tue, Feb 3, 2015 at 9:20 AM, John Crispin blo...@openwrt.org wrote: On 03/02/2015 09:01, Christian Lamparter wrote: On Tue, Feb 3, 2015 at 8:43 AM, John Crispin blo...@openwrt.org wrote: On 03/02/2015 08:36, Christian Lamparter wrote: Thing is: ralink-phy.c can use some more work! elaborate on what needs work What about OTG, Is it not supported? The constant (OTG_STATE_B_HOST) will always evaluate to true. try to make a statement rather than encapsulating what you are trying to say in a question please, because i still don't get what you mean with needs work OTG :-) In the patch (after the --- cut --- bars, but before the diff) I was asking if anyone knows a cheap and easy to get ramips devices with OTG. Since, I was asking/wondered how OTG is/was supposed to work at all ATM. However: OTG is not supported and never has until now due to missing drivers. So, this is all fine then. Regards, Christian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ath5k: fix spontaneus AR5312 freezes
Signed-off-by: Sergey Ryazanov ryazanov@gmail.com --- .../330-ath5k-fix-spontaneus-AR5312-freezes.patch | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 package/kernel/mac80211/patches/330-ath5k-fix-spontaneus-AR5312-freezes.patch diff --git a/package/kernel/mac80211/patches/330-ath5k-fix-spontaneus-AR5312-freezes.patch b/package/kernel/mac80211/patches/330-ath5k-fix-spontaneus-AR5312-freezes.patch new file mode 100644 index 000..aacadba --- /dev/null +++ b/package/kernel/mac80211/patches/330-ath5k-fix-spontaneus-AR5312-freezes.patch @@ -0,0 +1,45 @@ +From: Sergey Ryazanov ryazanov@gmail.com +Date: Tue, 3 Feb 2015 22:37:26 +0300 +Subject: [PATCH] ath5k: fix spontaneus AR5312 freezes + +Sometimes while CPU have some load and ath5k doing the wireless +interface reset the whole WiSoC completely freezes. Set of tests shows +that using atomic delay function while we wait interface reset helps to +avoid such freezes. + +The easiest way to reproduce this issue: create a station interface, +start continous scan with wpa_supplicant and load CPU by something. Or +just create multiple station interfaces and put them all in continous +scan. + +This patch partially reverts the commit 1846ac3dbec0 (ath5k: Use +usleep_range where possible), which replaces initial udelay() +by usleep_range(). + +I do not know actual source of this issue, but all looks like that HW +freeze is caused by transaction on internal SoC bus, while wireless +block is in reset state. + +Also I should note that I do not know how many chips are affected, but I +did not see this issue with chips, other than AR5312. + +CC: Jiri Slaby jirisl...@gmail.com +CC: Nick Kossifidis mickfl...@gmail.com +CC: Luis R. Rodriguez mcg...@do-not-panic.com +Fixes: 1846ac3dbec0 (ath5k: Use usleep_range where possible) +Reported-by: Christophe Prevotaux c.prevot...@rural-networks.com +Tested-by: Christophe Prevotaux c.prevot...@rural-networks.com +Tested-by: Eric Bree eb...@nltinc.com +Signed-off-by: Sergey Ryazanov ryazanov@gmail.com +--- +--- a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c +@@ -478,7 +478,7 @@ ath5k_hw_wisoc_reset(struct ath5k_hw *ah + regval = ioread32(reg); + iowrite32(regval | val, reg); + regval = ioread32(reg); +- usleep_range(100, 150); ++ udelay(100);/* NB: should be atomic */ + + /* Bring BB/MAC out of reset */ + iowrite32(regval ~val, reg); -- 2.0.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ralink: remove VHT capabilities when not using 802.11ac
The mt76 driver might have some problem working with MT7602. MT7602 should not have VHT capabilities . But the driver not identity properly. Signed-off-by: wengbj fl.serv...@t-firefly.com --- .../0001-mt7602-remove-vht-capabilities.patch | 46 1 file changed, 46 insertions(+) create mode 100644 package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch diff --git a/package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch b/package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch new file mode 100644 index 000..0a1f9c9 --- /dev/null +++ b/package/kernel/mt76/patches/0001-mt7602-remove-vht-capabilities.patch @@ -0,0 +1,46 @@ +--- a/init.c b/init.c +@@ -682,24 +682,27 @@ mt76_init_sband(struct mt76_dev *dev, st + ht_cap-ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; + ht_cap-ampdu_density = IEEE80211_HT_MPDU_DENSITY_4; + +- vht_cap = sband-vht_cap; +- vht_cap-vht_supported = true; ++ if (dev-cap.has_5ghz) ++ { ++ vht_cap = sband-vht_cap; ++ vht_cap-vht_supported = true; + +- mcs_map = (IEEE80211_VHT_MCS_SUPPORT_0_9 (0 * 2)) | +-(IEEE80211_VHT_MCS_SUPPORT_0_9 (1 * 2)) | +-(IEEE80211_VHT_MCS_NOT_SUPPORTED (2 * 2)) | +-(IEEE80211_VHT_MCS_NOT_SUPPORTED (3 * 2)) | +-(IEEE80211_VHT_MCS_NOT_SUPPORTED (4 * 2)) | +-(IEEE80211_VHT_MCS_NOT_SUPPORTED (5 * 2)) | +-(IEEE80211_VHT_MCS_NOT_SUPPORTED (6 * 2)) | +-(IEEE80211_VHT_MCS_NOT_SUPPORTED (7 * 2)); ++ mcs_map = (IEEE80211_VHT_MCS_SUPPORT_0_9 (0 * 2)) | ++(IEEE80211_VHT_MCS_SUPPORT_0_9 (1 * 2)) | ++(IEEE80211_VHT_MCS_NOT_SUPPORTED (2 * 2)) | ++(IEEE80211_VHT_MCS_NOT_SUPPORTED (3 * 2)) | ++(IEEE80211_VHT_MCS_NOT_SUPPORTED (4 * 2)) | ++(IEEE80211_VHT_MCS_NOT_SUPPORTED (5 * 2)) | ++(IEEE80211_VHT_MCS_NOT_SUPPORTED (6 * 2)) | ++(IEEE80211_VHT_MCS_NOT_SUPPORTED (7 * 2)); + +- vht_cap-vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); +- vht_cap-vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); +- vht_cap-cap = IEEE80211_VHT_CAP_RXLDPC | +- IEEE80211_VHT_CAP_TXSTBC | +- IEEE80211_VHT_CAP_RXSTBC_1 | +- IEEE80211_VHT_CAP_SHORT_GI_80; ++ vht_cap-vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); ++ vht_cap-vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); ++ vht_cap-cap = IEEE80211_VHT_CAP_RXLDPC | ++ IEEE80211_VHT_CAP_TXSTBC | ++ IEEE80211_VHT_CAP_RXSTBC_1 | ++ IEEE80211_VHT_CAP_SHORT_GI_80; ++ } + + dev-chandef.chan = sband-channels[0]; + -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel