Re: [OpenWrt-Devel] [PATCH 2/3] ramips: Add base-files for HiWiFi HC5x61 models

2015-09-28 Thread Bastian Bittorf
* Comman Kang [28.09.2015 17:37]: > Mostly done, except this one > > >+ hiwifi-hc5*61) > >+ __fac_mac=`strings /dev/mtd7 | grep 'fac_mac = > >..:..:..:..:..:..'` > >+ lan_mac=`expr "$__fac_mac" : '.*\(..:..:..:..:..:..\)' | tr > >'[A-Z]'

Re: [OpenWrt-Devel] [PATCH 2/3] ramips: Add base-files for HiWiFi HC5x61 models

2015-09-28 Thread Piotr Dymacz
Hello, 2015-09-28 16:52 GMT+02:00 Comman Kang : > Mostly done, except this one > >>+ hiwifi-hc5*61) >>+ __fac_mac=`strings /dev/mtd7 | grep 'fac_mac = >>..:..:..:..:..:..'` >>+ lan_mac=`expr "$__fac_mac" : '.*\(..:..:..:..:..:..\)' | tr

Re: [OpenWrt-Devel] [PATCH v2 1/3] ramips: Add DTS files for HiWiFi HC5x61 models

2015-09-28 Thread Piotr Dymacz
Hello, Just some small, cosmetic things... see inline, below. BTW. I see that these models are very similar (most of the dts files are just copy). Maybe it would be better to make for them one, common dtsi file and separated dts files per model (take Lenovo Y1/Y1S as example). Cheers, Piotr

Re: [OpenWrt-Devel] [PATCH V2 3/3] ramips: Add build files for HiWiFi HC5x61 models

2015-09-28 Thread Piotr Dymacz
Hello, Just three comments: 1. Please, use tabs as in all other profile files (I didn't spot that before, sorry). 2. Keep two empty lines between different boards profiles definitions, take target/linux/ramips/rt305x/profiles/d-link.mk as example. 3. You have selected a lot of external packages.

[OpenWrt-Devel] [PATCH V2 2/3] ramips: Add base-files for HiWiFi HC5x61 models

2015-09-28 Thread Comman Kang
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them. The original author is Justin Liu (rss...@gmail.com). I ported the patch to trunk and submitted it here with

[OpenWrt-Devel] [PATCH v2 1/3] ramips: Add DTS files for HiWiFi HC5x61 models

2015-09-28 Thread Comman Kang
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them. The original author is Justin Liu (rss...@gmail.com). I ported the patch to trunk and submitted it here with

Re: [OpenWrt-Devel] [PATCH 2/3] ramips: Add base-files for HiWiFi HC5x61 models

2015-09-28 Thread Comman Kang
Mostly done, except this one >+ hiwifi-hc5*61) >+ __fac_mac=`strings /dev/mtd7 | grep 'fac_mac = >..:..:..:..:..:..'` >+ lan_mac=`expr "$__fac_mac" : '.*\(..:..:..:..:..:..\)' | tr >'[A-Z]' '[a-z]'` Is that really needed? >+ [ -n "$lan_mac" ] ||

Re: [OpenWrt-Devel] [PATCH 3/3] ramips: Add build files for HiWiFi HC5x61 models

2015-09-28 Thread Comman Kang
Done, thanks 在 15/9/28 下午7:52,“Piotr Dymacz” 写入: >Hello, > >Please, follow the general convention and keep profiles for different >boards from same manufacturer in one file named "manufacturer.mk". > >Cheers, >Piotr > >2015-09-28 12:46 GMT+02:00 Comman Kang :

[OpenWrt-Devel] [PATCH V2 3/3] ramips: Add build files for HiWiFi HC5x61 models

2015-09-28 Thread Comman Kang
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com . These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them. The original author is Justin Liu (rss...@gmail.com). I ported the patch to trunk and

Re: [OpenWrt-Devel] [PATCH 1/3] ramips: Add DTS files for HiWiFi HC5x61 models

2015-09-28 Thread Comman Kang
Done, Thanks for the comment, please take a look at V2 在 15/9/28 下午7:25,“Piotr Dymacz” 写入: >Hello, > >Please, take a look at other dts files in ramips target and follow the >general convention, like: >- use only model name for dts filename >- keep empty lines between nodes

Re: [OpenWrt-Devel] How to add ubus users?

2015-09-28 Thread Jo-Philipp Wich
Hi Christoph, there is no PAM support yet but the appropriate place to add it would be rpc_login_test_login() of rpcd's session.c [1] I wouldn't mind adding PAM support if it is possible to make it optional at runtime. Haven't yet investigated whether it is feasible to dlopen() libpam if

Re: [OpenWrt-Devel] [PATCH 1/3] ramips: Add DTS files for HiWiFi HC5x61 models

2015-09-28 Thread Piotr Dymacz
Hello, Please, take a look at other dts files in ramips target and follow the general convention, like: - use only model name for dts filename - keep empty lines between nodes and between nodes and properties (ex. [1]) [1]

Re: [OpenWrt-Devel] [PATCH] netifd: add table argument to dhcp(v4)

2015-09-28 Thread Steven Barth
NAK. Use "option ip4table" and "option ip6table" which works with all protocols already. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] [PATCH V3][iwinfo] nl80211: read TX power using NL80211_CMD_GET_INTERFACE

2015-09-28 Thread Rafał Miłecki
With the mac80211 commit d55d0d598e66 ("nl80211: put current TX power in interface info") it is possible now to get TX power using nl80211. As we don't really support any wext-only drivers it doesn't make sense to leave wext as a fallback. Signed-off-by: Rafał Miłecki --- V2:

Re: [OpenWrt-Devel] [PATCH 2/3] ramips: Add base-files for HiWiFi HC5x61 models

2015-09-28 Thread Piotr Dymacz
Hello, Please, see my comments inline, below. PS. Sorry for being so pedantic :) Cheers, Piotr 2015-09-28 12:46 GMT+02:00 Comman Kang : > HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. > These models have similar hardware specs(MT7620A + 128M DDR2 +

Re: [OpenWrt-Devel] [PATCH 3/3] ramips: Add build files for HiWiFi HC5x61 models

2015-09-28 Thread Piotr Dymacz
Hello, Please, follow the general convention and keep profiles for different boards from same manufacturer in one file named "manufacturer.mk". Cheers, Piotr 2015-09-28 12:46 GMT+02:00 Comman Kang : > HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com >

Re: [OpenWrt-Devel] [PATCH procd] watchdog: shutdown the kernel watchdog when stopping

2015-09-28 Thread Helmut Schaa
On Mon, Sep 28, 2015 at 12:58 AM, Alexander Couzens wrote: > The kernel wdt counting down even when not pinged. > Shutdown the filehandler to /dev/watchdog with magic cookie > to prevent this. > > Signed-off-by: Alexander Couzens > --- > watchdog.c | 17

Re: [OpenWrt-Devel] [PATCH procd] watchdog: shutdown the kernel watchdog when stopping

2015-09-28 Thread John Crispin
On 28/09/2015 14:14, Helmut Schaa wrote: > On Mon, Sep 28, 2015 at 12:58 AM, Alexander Couzens wrote: >> The kernel wdt counting down even when not pinged. >> Shutdown the filehandler to /dev/watchdog with magic cookie >> to prevent this. >> >> Signed-off-by: Alexander Couzens

[OpenWrt-Devel] [PATCH 1/3] ramips: Add DTS files for HiWiFi HC5x61 models

2015-09-28 Thread Comman Kang
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them. The original author is Justin Liu (rss...@gmail.com). I ported the patch to trunk and submitted it here with

[OpenWrt-Devel] [PATCH 2/3] ramips: Add base-files for HiWiFi HC5x61 models

2015-09-28 Thread Comman Kang
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com. These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them. The original author is Justin Liu (rss...@gmail.com). I ported the patch to trunk and submitted it here with

[OpenWrt-Devel] [PATCH 3/3] ramips: Add build files for HiWiFi HC5x61 models

2015-09-28 Thread Comman Kang
HiWiFi HC5661/5761/5861 models are manufactured by http://www.hiwifi.com . These models have similar hardware specs(MT7620A + 128M DDR2 + 16M flash). This patch adds support for them. The original author is Justin Liu (rss...@gmail.com). I ported the patch to trunk and

[OpenWrt-Devel] [PATCH netifd] netifd-proto.sh: add table argument to proto_add_ipv4_route()

2015-09-28 Thread Alexander Couzens
Signed-off-by: Alexander Couzens --- scripts/netifd-proto.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/netifd-proto.sh b/scripts/netifd-proto.sh index 447f0f6..1cbf4fb 100644 --- a/scripts/netifd-proto.sh +++ b/scripts/netifd-proto.sh @@ -122,8

[OpenWrt-Devel] [PATCH] netifd: add table argument to dhcp(v4)

2015-09-28 Thread Alexander Couzens
table defines the specific routing table to modify. Signed-off-by: Alexander Couzens --- package/network/config/netifd/files/lib/netifd/dhcp.script | 8 package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 6 -- 2 files changed, 8 insertions(+), 6

[OpenWrt-Devel] Fwd: Octeon 5020 in d-link dsr-1000n question

2015-09-28 Thread С М
I' m trying to start openwrt on it! hardware is: CPU1: Cavium CN5010 FLAsh: 32 MiB 256 mb RAM WIfi chip: Atheros AR9160 Switch: Broadcom BCM53115 and some 2 usb ports ;-) i've flashed it with  tftpboot 0 openwrt-octeon-generic-vmlinux.64 erase $(linux_start) +$(filesize) cp.b $(fileaddr)

[OpenWrt-Devel] [PATCH v2] ar71xx: add support for TP-LINK TL-WR941ND v6 (international version)

2015-09-28 Thread Matthias Schiffer
The international version is completely different from the already supported Chinese version. The WLAN of the QCA956x SoC used by this router has been fixed in r46948. Signed-off-by: Matthias Schiffer --- v2: rebased on top of trunk +