Re: [OpenWrt-Devel] Barrier Breaker 14.07-rc1

2014-07-14 Thread Yousong Zhou
On 14 July 2014 17:12, John Crispin wrote: > > The OpenWrt developers are proud to announce the first release > candidate of OpenWrt Barrier Breaker. > ___ __ > | |.-.-.-.| | | |..| |_ > | - || _ | -__| || | | ||

Re: [OpenWrt-Devel] Barrier Breaker 14.07-rc1

2014-07-14 Thread Yousong Zhou
On 14 July 2014 19:15, John Crispin wrote: > > > On 14/07/2014 13:13, Yousong Zhou wrote: >> On 14 July 2014 17:12, John Crispin wrote: >>> >>> The OpenWrt developers are proud to announce the first release >>

[OpenWrt-Devel] [PATCH] mac80211: squelch WARN_ON_ONCE() caused by inbalanced set/clear of beacon enable it.

2014-07-16 Thread Yousong Zhou
A WARN_ON_ONCE() dump was triggered on a MT7620A based device with following config. Ticket #17032 can be closed with this patch. config wifi-iface option device radio0 option network lan option mode ap option ssid

Re: [OpenWrt-Devel] [PATCH] mac80211: squelch WARN_ON_ONCE() caused by inbalanced set/clear of beacon enable it.

2014-07-16 Thread Yousong Zhou
Hi, On 14 July 2014 07:39, Yousong Zhou wrote: > A WARN_ON_ONCE() dump was triggered on a MT7620A based device with > following config. Ticket #17032 can be closed with this patch. There are other flaws I'd like to report here. With the same config, station can see the SSID on the

Re: [OpenWrt-Devel] [PATCH] mac80211: squelch WARN_ON_ONCE() caused by inbalanced set/clear of beacon enable it.

2014-07-16 Thread Yousong Zhou
Hi, On 17 July 2014 12:06, Yousong Zhou wrote: > Hi, > > On 14 July 2014 07:39, Yousong Zhou wrote: >> A WARN_ON_ONCE() dump was triggered on a MT7620A based device with >> following config. Ticket #17032 can be closed with this patch. > > There are other flaws I&#

[OpenWrt-Devel] [PATCH] ramips: fix missing inclusion of system.sh for mtd_get_mac_binary and friends.

2014-07-22 Thread Yousong Zhou
From: Yousong Zhou --- target/linux/ramips/base-files/etc/uci-defaults/02_network |1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index 7fbc66b..81f19f9 100755 --- a

[OpenWrt-Devel] [PATCH] ramips: fix missing inclusion of system.sh for mtd_get_mac_binary and friends.

2014-07-22 Thread Yousong Zhou
From: Yousong Zhou Signed-off-by: Yousong Zhou --- target/linux/ramips/base-files/etc/uci-defaults/02_network |1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index

[OpenWrt-Devel] [PATCH] ar71xx: fix LED configuration for HiWiFi-HC6361.

2014-07-22 Thread Yousong Zhou
--- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fa84661..a347802 100755 --- a/target/linux/ar7

[OpenWrt-Devel] [PATCH] ar71xx: fix LED configuration for HiWiFi-HC6361.

2014-07-22 Thread Yousong Zhou
--- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fa84661..a347802 100755 --- a/target/linux/ar7

[OpenWrt-Devel] [PATCH] ar71xx: fix LED configuration for HiWiFi-HC6361.

2014-07-23 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 23fa628

Re: [OpenWrt-Devel] [PATCH] ar71xx: fix LED configuration for HiWiFi-HC6361.

2014-07-23 Thread Yousong Zhou
w. Thanks. The last one was right. The Signed-off-by line was missing in those previous ones somehow. My apology for the noise. Regards. yousong > > John > > On 23/07/2014 09:00, Yousong Zhou wrote: >> >> Signed-off-by: Yousong Zhou --- >&

[OpenWrt-Devel] [PATCH] Remove stale calls to start() in initscripts.

2014-07-23 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/files/etc/init.d/boot|2 -- package/network/config/firewall/files/firewall.init |7 --- 2 files changed, 9 deletions(-) diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot

Re: [OpenWrt-Devel] [PATCH]ramips:support Lenovo AC1200 Wireless router

2014-07-24 Thread Yousong Zhou
Hi, Lintel On 25 July 2014 09:20, Lintel Huang wrote: > No problem,why not? please give me address then I express it. > I guess Roman meant a patch like http://patchwork.openwrt.org/patch/5970/, but I noticed that there are MT7620A-based boards storing their MAC addresses in canonical ASCII for

Re: [OpenWrt-Devel] [PATCH] #9969: Add NFLOG and NFQUEUE targets for netfilter

2014-08-06 Thread Yousong Zhou
Hello, On 7 November 2013 00:47, Derek LaHousse wrote: > Hello, new developer here, open to advice > > https://dev.openwrt.org/ticket/9969 > > Describe Changes: > The included patch creates a menu item for iptables targets NFLOG and > NFQUEUE. NFLOG is the successor to ULOG, while NFQUEUE allows

Re: [OpenWrt-Devel] [PATCH] #9969: Add NFLOG and NFQUEUE targets for netfilter

2014-08-06 Thread Yousong Zhou
cription on wiki [1] only userspace applications can be modified and compiled with OpenWrt SDK. [1] http://wiki.openwrt.org/doc/howto/obtain.firmware.sdk Regards, yousong > > Thanking you ever much, > > Best Regards, > > Mohideen > > > > On Wednes

[OpenWrt-Devel] [PATCH] iptables: add kmod-ipt-nf* to dependency list of iptables-mod-nf*.

2014-08-07 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/network/utils/iptables/Makefile |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/utils/iptables/Makefile b/package/network/utils/iptables/Makefile index bea2f1d..27201b4 100644 --- a/package/network/utils

[OpenWrt-Devel] [PATCH] package: add libnetfilter-log.

2014-08-07 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/libs/libnetfilter-log/Makefile | 73 +++ ...e-unnecessary-pkgconfig-config.status-dep.patch | 25 ++ ...-build-remove-unused-lines-in-Makefile.am.patch | 24 + ...0003-build-resolve-automake-1.12-warnings.patch | 29

Re: [OpenWrt-Devel] [PATCH] #9969: Add NFLOG and NFQUEUE targets for netfilter

2014-08-07 Thread Yousong Zhou
On 7 August 2014 16:14, Guillaume Déflache wrote: > Now got committed in trunk thanks to cyrus (see > )! Now hoping it will also make it > into the Barrier Breaker release. Well, thank you all for the efforts :) Regards. yousong _

[OpenWrt-Devel] [PATCH] package: fix segfault of iwinfo.scanlist("radio0").

2014-08-08 Thread Yousong Zhou
was supposed to create interface "tmp.", but that won't happen because nl80211_msg() will put an invalid ifidx 0 to the nlmsg. Then iwinfo_ifup() and iwinfo_ifdown() would fail and happily nl80211_get_scanlist() returned 0 and left *len undefined. Signed-off-by: Yousong Zhou --- pac

Re: [OpenWrt-Devel] /sbin/hotplug-call iface event never fired

2014-08-10 Thread Yousong Zhou
On Aug 10, 2014 8:43 PM, "Weiwu Zhang" wrote: > > I found this problem while trying to make ddns work. > > This command updates ddns: > # ACTION=ifup INTERFACE=wan /sbin/hotplug-call iface > > But: 1) reboot would not update ddns; 2) if ip address changed in a > day, ddns would not update; > The

[OpenWrt-Devel] [PATCH] mac80211: fix freeing keys for ap iface in ieee80211_do_stop().

2014-08-13 Thread Yousong Zhou
8 default: 9 printf("Hello.\n"); 10 /* Won't fall through */ 11 case 2: 12 printf("World.\n"); 13 } Signed-off-by: Yousong Zhou

Re: [OpenWrt-Devel] [PATCH] mac80211: fix freeing keys for ap iface in ieee80211_do_stop().

2014-08-14 Thread Yousong Zhou
Hi, On 14 August 2014 11:58, Yousong Zhou wrote: > The patch will fix #17506 and squelch the following WARNING from mac80211.ko > While the patch does fix the WARNING on HiWiFi HC6361, but after checking with commit history, looks like my patch is a revert of the following...

[OpenWrt-Devel] Status of ACS survey with rt2x00 driver using hostapd

2014-08-18 Thread Yousong Zhou
Hi, I am trying to get ACS working on my available devices. What I have noticed is that the command `iw phy phy0 survey dump` returned different result between HiWiFi HC6361 which uses ath9k driver and a MT7620A based device using rt2x00 driver. On HC6361, the command displayed statistics for a

Re: [OpenWrt-Devel] [PATCH] ar71xx: make LED names for EnGenius routers follow convention

2014-08-20 Thread Yousong Zhou
On 21 August 2014 06:45, Forest Crossman wrote: > Signed-off-by: Forest Crossman > --- > target/linux/ar71xx/base-files/etc/diag.sh| 4 ++-- > target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 8 > target/linux/ar71xx/files/arch/mips/ath79/mach-eap300v2.c |

[OpenWrt-Devel] [RFC] mac80211: fix freeing keys for ap iface in ieee80211_do_stop().

2014-08-21 Thread Yousong Zhou
The patch will fix #17506 and squelch the following WARNING from mac80211.ko [ 203.77] [ cut here ] [ 203.77] WARNING: at /home/yousong/trunk-openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/compat-wireless-2014-05-22/net/ma

Re: [OpenWrt-Devel] [PATCH] mac80211: fix freeing keys for ap iface in ieee80211_do_stop().

2014-08-21 Thread Yousong Zhou
On 14 August 2014 15:47, Yousong Zhou wrote: > Hi, > > On 14 August 2014 11:58, Yousong Zhou wrote: >> The patch will fix #17506 and squelch the following WARNING from mac80211.ko >> > > While the patch does fix the WARNING on HiWiFi HC6361, but after > checking w

Re: [OpenWrt-Devel] Status of ACS survey with rt2x00 driver using hostapd

2014-08-21 Thread Yousong Zhou
Answering my own question. On 18 August 2014 21:27, Yousong Zhou wrote: > Hi, > > I am trying to get ACS working on my available devices. > > What I have noticed is that the command `iw phy phy0 survey dump` > returned different result between HiWiFi HC6361 which uses at

Re: [OpenWrt-Devel] Status of ACS survey with rt2x00 driver using hostapd

2014-08-21 Thread Yousong Zhou
Hi, Helmut On 22 August 2014 04:56, Helmut Schaa wrote: > Your observation is correct, rt2x00 only returns survey data for the current > channel. I also thought about doing the same approach as ath9k but duplicating > the code seems not reasonable. It might make more sense to move the > survey da

[OpenWrt-Devel] [PATCH] mac80211: fix WARN_ON_ONCE() caused by inbalanced set/clear of beacon enable bit.

2014-08-24 Thread Yousong Zhou
ath_null+0x18/0x24 [ 24.25] [<83164078>] rt2800_conf_tx+0x3c8/0x494 [rt2800lib] [ 24.26] [ 24.26] ---[ end trace ff7bf97509953be2 ]--- Signed-off-by: Yousong Zhou --- .../921-rt2x00-fix-beacon-bit-balance.patch| 50 1 fil

Re: [OpenWrt-Devel] [PATCH] mac80211: fix WARN_ON_ONCE() caused by inbalanced set/clear of beacon enable bit.

2014-08-25 Thread Yousong Zhou
Hi, John On 25 August 2014 14:24, John Crispin wrote: > Hi, > > On 25/08/2014 05:29, Yousong Zhou wrote: >> +-/* +-* Upload beacon to the H/W. >> This is only required on >> +- * USB devices. PCI devices fet

Re: [OpenWrt-Devel] Including git revision commit hash and svn revision id on release announcement.

2014-08-27 Thread Yousong Zhou
On 28 August 2014 11:11, Alive4Ever wrote: > Hello developers. > > Probably you are annoyed by people asking which revision is Barrier Breaker > RC3 or similar, because they want to be able to compile the specific release > theirselves. > > To address this issue, I think it would be better to add

[OpenWrt-Devel] [RFC] imx6: fix image build for Generic profile.

2014-09-08 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- I do not own a board that can run imx6 target firmware, but this patch has been compile tested by myself and aandrew in #openwrt. target/linux/imx6/image/Makefile | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/target/linux

Re: [OpenWrt-Devel] [PATCH] [RESEND] ar71xx: add qihoo 360 c301 router support

2014-09-11 Thread Yousong Zhou
Hi, Weijie On 11 September 2014 17:58, Weijie Gao wrote: > Qihoo 360 C301 is a dual band wireless router supports 802.11n and 802.11ac. > Its chipset is AR9344 + AR9882 with two 16MB flashes. > > This patch adds its initial support. Cool, > > Signed-off-by: Weijie Gao > --- ... > diff --git

Re: [OpenWrt-Devel] couple questions about downloading for a new build

2014-09-11 Thread Yousong Zhou
On 11 September 2014 20:30, Robert P. J. Day wrote: > > first, i created a local mirror with all the tarballs i downloaded > during an earlier build, and configured a new build to use that, and i > noticed that the download operation *copied* over the tarballs into > the dl/ directory. is there

Re: [OpenWrt-Devel] couple questions about downloading for a new build

2014-09-11 Thread Yousong Zhou
On 11 September 2014 21:12, Robert P. J. Day wrote: > On Thu, 11 Sep 2014, Yousong Zhou wrote: > >> On 11 September 2014 20:30, Robert P. J. Day wrote: >> > >> > first, i created a local mirror with all the tarballs i >> > downloaded during an earli

[OpenWrt-Devel] [PATCH v3] dnsmasq: allow de-selecting features from -full variant.

2014-09-17 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- v2 -> v3 - Let the kconfig menu items depend on actual build variant selected. - Make features of -full variant selectable. v1 -> v2 Rebase it on the lastest trunk. package/network/services/dnsmasq/Makefile

[OpenWrt-Devel] [PATCH v6] ppp: add new protocol PPPoSSH.

2014-09-17 Thread Yousong Zhou
e protocol script file ppp.sh will be called with $HOME set to '/', we need to explicitly set it to the right value so that dropbear client can read '~/known_hosts' correctly. Signed-off-by: Yousong Zhou --- I can make this a standalone package (maybe in packages feeds) if that

Re: [OpenWrt-Devel] [PATCH][RESEND.3] ar71xx:stops qihoo c301 booting into backup firmware

2014-09-21 Thread Yousong Zhou
>> On 2014/9/20 17:18, swigger wrote: >>> Openwrt recently adds Qihoo [NYSE:QIHU] C301 router support. >>> However, this router has a backup firmware in the second flash and the >>> current trunk can only boot 3 times before u-boot boots into that backup >>> firmware. This is a stratgy for unbricki

Re: [OpenWrt-Devel] [PATCH][RESEND.3] ar71xx:stops qihoo c301 booting into backup firmware

2014-09-22 Thread Yousong Zhou
Just got the device... Wow On 22 September 2014 15:47, swigger wrote: > Well, it's a good idea. > But I don't know how to create a wiki page. > > QIhoo 360 C301 (http://luyou.360.cn/parameter.html, Simplified Chinese > ONLY), has two 16M flash. > The first flash is full functional, and the second

[OpenWrt-Devel] [PATCH] ar71xx: qihoo-c301: reset imageNtrynum after each successful boot.

2014-09-22 Thread Yousong Zhou
6d |imagemaxtry=3.im| 0050 61 67 65 31 74 72 79 6e 75 6d 3d 30 00 00 00 00 |age1trynum=0| 0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 || Signed-off-by: Yousong Zhou --- package/boot/uboot-envtools/files/ar71xx |3 +++ target/linux/ar7

Re: [OpenWrt-Devel] [PATCH][RESEND.3] ar71xx:stops qihoo c301 booting into backup firmware

2014-09-22 Thread Yousong Zhou
On 22 September 2014 16:42, swigger wrote: > NO, not seama. Seama is only a container, not an encrypted format. > > The original OEM firmware is encrypted by AES ECB mode and have a > RSA-1024 signuature. > The aes key is base64_decode("lbhySwdj31NGnuebNn9FmQ=="); > > The oem's upgrade firmware we

Re: [OpenWrt-Devel] 答复: [PATCH] ar71xx: qihoo-c301: reset imageNtrynum after each successful boot.

2014-09-22 Thread Yousong Zhou
script in uci-defaults during first boot after the fresh installation? anyway, it should work if /etc/fw_env.config was created correctly. regards yousong > > > -邮件原件- > 发件人: Yousong Zhou [mailto:yszhou4t...@gmail.com] > 发送时间: 2014年9月14日 8:28

Re: [OpenWrt-Devel] On support status of OpenWrt for Qihoo C301

2014-09-23 Thread Yousong Zhou
On 23 September 2014 23:54, Weijie Gao wrote: > Hi, > > The gap is not used in official firmware, so it is okay not to keep the gap. > Yeah, I checked the content of that segment when using OEM firmware with "md 0x9ff7" and found it was almost all filled with 0xff. > The seama header of fact

[OpenWrt-Devel] [RFC] ar71xx: fix seama factory type image generation.

2014-09-23 Thread Yousong Zhou
Currently JFFS2 end-of-filesystem marker 0xdeadc0de is included the computation of image's MD5 checksum as part of the seama header. But OpenWrt will erase blocks including and after the marker thus invalidating the checksum after the first boot. Signed-off-by: Yousong Zhou --- This has

Re: [OpenWrt-Devel] On support status of OpenWrt for Qihoo C301

2014-09-23 Thread Yousong Zhou
On 24 September 2014 12:10, swigger wrote: > I think they are in parallel connection, you can have a look at the circuit. > i cannot see it from the circuit. but i do believe that it's more likely that only 2 GPIOs are used to drive the leds. anyway, there is only one window for presentation on

Re: [OpenWrt-Devel] wireless scan/add functioning wrong on my MTK7620n board

2014-09-24 Thread Yousong Zhou
On 25 September 2014 12:06, 张钊 wrote: > I’ve built a firmware from git.openwrt.org/openwrt.git known as CHAOS > CALMER (Bleeding Edge, r42657) for my MTK7620n board, it works well except > this weird problem. > > When I enable wifi, then trying to use iw dev wlan0 scan or trying to add > secondar

Re: [OpenWrt-Devel] wireless scan/add functioning wrong on my MTK7620n board

2014-09-25 Thread Yousong Zhou
hi On 26 September 2014 02:36, 张钊 wrote: > It seems that the weird reboot was caused by the power adapter I used, it > cannot provide enough power output, after changing it the board went normal, > but that warning is still there on UART Console when I add multiple SSID from > Luci interface.

Re: [OpenWrt-Devel] missing debootstrap-udeb_1.0.61_all.udeb

2014-09-27 Thread Yousong Zhou
hi On 27 September 2014 05:44, Robert P. J. Day wrote: > > Download failed. > --2014-09-26 17:31:12-- > http://downloads.openwrt.org/sources/debootstrap-udeb_1.0.61_all.udeb > > should this exist somewhere? > It should try first the URL as specified in the package Makefile. But that retrieval

Re: [OpenWrt-Devel] [RFC] ar71xx: fix seama factory type image generation.

2014-09-28 Thread Yousong Zhou
Add Gabor Juhos and Felix Kaechele to cc list. I tend to think this patch can and should be merged as it is clear that firmwares generated by current method won't work anyway. On 14 September 2014 22:07, Yousong Zhou wrote: > Currently JFFS2 end-of-filesystem marker 0xdeadc0de is incl

Re: [OpenWrt-Devel] desperately seeking info on this weird MT7620A/MT7610EN dev board

2014-10-08 Thread Yousong Zhou
On Oct 8, 2014 4:33 PM, "Robert P. J. Day" > i'm looking at this page: > > http://www.cleanrouter.com/home/product > > and the processor is shown as an atheros AR7161, though. also, the > pandoras hope router apparently has 4 wired ports, and this board has > only two. at the risk of abusing this

Re: [OpenWrt-Devel] desperately seeking info on this weird MT7620A/MT7610EN dev board

2014-10-08 Thread Yousong Zhou
On 9 October 2014 01:27, Robert P. J. Day wrote: > i can't even get to the page in [1], and the router in [2] is listed > as based on AR9331, not MT7620A, so i'm fairly sure that can't be it. > i'll keep trying the first link. Yes, HC6361 is AR9331 based. It is said that HiWiFi switched to Med

Re: [OpenWrt-Devel] [PATCH] ar71xx: qihoo-c301: reset imageNtrynum after each successful boot.

2014-10-08 Thread Yousong Zhou
On 7 October 2014 02:33, John Crispin wrote: > > On 14/09/2014 02:27, Yousong Zhou wrote: >> Qihoo C301 has 2 flash chips of which one is used as primary and the >> other is used as backup. OEM U-Boot will try to boot an activeregion N >> with imageNstatus=0 and imageNtr

Re: [OpenWrt-Devel] [PATCH] ar71xx: qihoo-c301: reset imageNtrynum after each successful boot.

2014-10-11 Thread Yousong Zhou
On 9 October 2014 16:32, John Crispin wrote: > Hi Yousong > > thanks for clarifying. i would prefer to use the uboot-envtools > version that you sent a patch for unless there are any technical > reasons to use the kernel based patch. I take `/etc/init.d/done` as a better indication of a successfu

Re: [OpenWrt-Devel] Help, how to troubleshoot openwrt crash(reboot)

2014-10-12 Thread Yousong Zhou
On Oct 12, 2014 2:41 AM, "document" wrote: > > hi, > > how to troubleshoot openwrt crash(reboot) ? > > i have openvpn-2.3.2 installed from opkg but when i manually start it about 1min passed, router (openwrt-12.09) will reboot. > > when i enabled openvpn service on startup, router will auto reboot

[OpenWrt-Devel] [PATCH 1/4] firmware-utils: fix compilation warnings.

2014-10-17 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- tools/firmware-utils/src/buffalo-tftp.c |2 -- tools/firmware-utils/src/mkrtn56uimg.c |8 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/firmware-utils/src/buffalo-tftp.c b/tools/firmware-utils/src/buffalo-tftp.c index

[OpenWrt-Devel] [PATCH 2/4] build: add $(STAGING_DIR_HOST)/usr/{include, lib} to build search path.

2014-10-17 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- rules.mk |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.mk b/rules.mk index c9efb9e..f44e8ed 100644 --- a/rules.mk +++ b/rules.mk @@ -187,9 +187,9 @@ export PKG_CONFIG HOSTCC:=gcc HOSTCXX:=g++ -HOST_CPPFLAGS:=-I

[OpenWrt-Devel] [PATCH 3/4] openssl: add host build.

2014-10-17 Thread Yousong Zhou
Only support Linux at the moment. Signed-off-by: Yousong Zhou --- package/libs/openssl/Makefile | 56 + 1 file changed, 56 insertions(+) diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index 0c42362..e33f9bd 100644 --- a

[OpenWrt-Devel] [PATCH 4/4] firmware-utils: restore compilation of mkhilinkfw.

2014-10-17 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- target/linux/ramips/image/Makefile |2 +- tools/Makefile |1 + tools/firmware-utils/Makefile |4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips

[OpenWrt-Devel] [PATCH 1/3] ar71xx: add comments for Image/BuildLoader{, Alone}.

2014-10-17 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- target/linux/ar71xx/image/Makefile | 17 + 1 file changed, 17 insertions(+) diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 78e2d70..a382f3a 100644 --- a/target/linux/ar71xx/image/Makefile +++ b

[OpenWrt-Devel] [PATCH 3/3] ar71xx: unify usage of IMAGE_PROFILE instead of PROFILE.

2014-10-17 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- target/linux/ar71xx/image/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index a382f3a..f0e6586 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target

[OpenWrt-Devel] [PATCH 2/3] ramips: add comments for image/Makefile.

2014-10-17 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- target/linux/ramips/image/Makefile | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index f048caf..b390467 100644 --- a/target/linux/ramips/image

Re: [OpenWrt-Devel] [PATCHv2] [netifd/scripts] make netifd scripts recognize signal strings such as INT/TERM/KILL/... signal in proto_kill_command()

2014-10-18 Thread Yousong Zhou
Am 16.10.2014 14:59 schrieb "Bastian Bittorf" : > > [netifd/scripts] make netifd scripts recognize signal strings such as INT/TERM/KILL/... > > instead of let the caller do the conversion of symbolic to numeric (e.g. SIGUSR1 -> 16), > do the conversion internally - the old mode (numeric) is still s

Re: [OpenWrt-Devel] [PATCHv2] [netifd/scripts] make netifd scripts recognize signal strings such as INT/TERM/KILL/... signal in proto_kill_command()

2014-10-18 Thread Yousong Zhou
Am 18.10.2014 23:58 schrieb "Bastian Bittorf" : > > * Yousong Zhou [18.10.2014 17:58]: > > > + signal="$( kill -l "$signal" )" > > > > the quotes may not work... > > they work and you should always quote a var,

Re: [OpenWrt-Devel] [PATCH 4/4] firmware-utils: restore compilation of mkhilinkfw.

2014-10-20 Thread Yousong Zhou
Hi, Felix On 20 October 2014 16:28, Felix Fietkau wrote: > On 2014-10-17 11:58, Yousong Zhou wrote: >> diff --git a/tools/Makefile b/tools/Makefile >> index 5629251..9879be1 100644 >> --- a/tools/Makefile >> +++ b/tools/Makefile >> @@ -72,6 +72,7 @@ $(curdir)/b43

Re: [OpenWrt-Devel] [PATCH 4/4] firmware-utils: restore compilation of mkhilinkfw.

2014-10-21 Thread Yousong Zhou
Hi, John, Felix On 20 October 2014 17:24, Yousong Zhou wrote: > Hi, Felix > > On 20 October 2014 16:28, Felix Fietkau wrote: >> On 2014-10-17 11:58, Yousong Zhou wrote: >>> diff --git a/tools/Makefile b/tools/Makefile >>> index 5629251..9879be1 100644 >>

Re: [OpenWrt-Devel] Configuring OVS on OpenWRT

2014-11-20 Thread Yousong Zhou
On 21 November 2014 10:03, Yilun Zhou wrote: > Hi, > > > I have installed OVS on my router and I want to connect it with a Floodlight > controller. The IP address of the laptop on which Floodlight is running is > 192.168.1.161 and Floodlight is running on port 6633. Here is what I am > doing. > >

[OpenWrt-Devel] [PATCH 0/4] Add multi-line option value support to UCI config file parser.

2014-11-24 Thread Yousong Zhou
p the related bits all in one place, not just many remedy scripts scattered here and there. [1] see `append_params()` in package/network/services/openvpn/files/openvpn.init Yousong Zhou (4): Drop test cases for deprecated ucimap-example. Sync ref test result with current implementation. Use o

[OpenWrt-Devel] [PATCH 1/4] Drop test cases for deprecated ucimap-example.

2014-11-24 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- test/tests.d/060-ucimap_example |9 - 1 file changed, 9 deletions(-) delete mode 100644 test/tests.d/060-ucimap_example diff --git a/test/tests.d/060-ucimap_example b/test/tests.d/060-ucimap_example deleted file mode 100644 index 984726b..000

[OpenWrt-Devel] [PATCH 2/4] Sync ref test result with current implementation.

2014-11-24 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- test/references/export.result | 10 +- test/references/import.result |8 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/references/export.result b/test/references/export.result index 957e687..bc06655 100644 --- a/test

[OpenWrt-Devel] [PATCH 3/4] Use offset into parser buffer to avoid potential heap overflow.

2014-11-24 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- delta.c| 15 +++- file.c | 216 +++- uci_internal.h |8 ++- util.c | 11 +-- 4 files changed, 147 insertions(+), 103 deletions(-) diff --git a/delta.c b/delta.c index 32628dc

[OpenWrt-Devel] [PATCH 4/4] Add test coverage for multi-line option value.

2014-11-24 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- test/references/add_section.result |2 +- test/references/export.data|7 ++- test/references/export.result |5 + test/references/get_multiline.data

[OpenWrt-Devel] [PATCH 1/3] examples: add .notify_write callback.

2014-12-07 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- ustream-example-client.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/ustream-example-client.c b/ustream-example-client.c index fc49146..6527362 100644 --- a/ustream-example-client.c +++ b/ustream-example-client.c @@ -46,6 +46,11 @@ static void

[OpenWrt-Devel] [PATCH 2/3] Fix SSL negotiation being interrupted by .notify_write from BIO method.

2014-12-07 Thread Yousong Zhou
ustream_ssl_check_conn() may be called by .notify_write while a previous SSL_connect() is still in process. This can happen because the .notify_write callback will may be triggered by writes in the BIO methods. Signed-off-by: Yousong Zhou --- ustream-ssl.c | 19 +++ ustream

[OpenWrt-Devel] [PATCH 3/3] cmake: Do not hardcode /opt/local/include for Apple.

2014-12-07 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- CMakeLists.txt |5 - 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f494f6d..c09fe51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,11 +7,6 @@ ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing

[OpenWrt-Devel] [PATCH 1/5] libubox: drop legacy json-c support

2014-12-07 Thread Yousong Zhou
: Yousong Zhou --- CMakeLists.txt |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f24fee9..737f2ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ IF(APPLE) ENDIF() INCLUDE(FindPkgConfig) -PKG_CHECK_MODULES

[OpenWrt-Devel] [PATCH 2/5] lua: do not hardcode /opt/local/include for Apple.

2014-12-07 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- CMakeLists.txt |5 - examples/CMakeLists.txt |5 - lua/CMakeLists.txt |1 - 3 files changed, 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 737f2ae..4b1570c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt

[OpenWrt-Devel] [PATCH 3/5] examples: fix build.

2014-12-07 Thread Yousong Zhou
- runqueue-example.c: fix include path for in-tree build. - blobmsg-example.c: add inttypes.h for using PRIu64. - add examples/ subdirectory to main CMakeLists.txt Signed-off-by: Yousong Zhou --- CMakeLists.txt |1 + examples/blobmsg-example.c |1 + examples/runqueue

[OpenWrt-Devel] [PATCH 4/5] ustream: add function ustream_fill_with_read_buf().

2014-12-07 Thread Yousong Zhou
Useful in the following use pattern. int available = ustream_pending_data(s, false); if (available >= sizeof(struct msghdr)) { struct msghdr h; ustream_fill_with_read_buf(s, &h, sizeof(h)); } Signed-off-by: Yousong Zhou --- us

[OpenWrt-Devel] [PATCH 5/5] ustream: call notify_write() when bytes are written.

2014-12-07 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- ustream.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/ustream.c b/ustream.c index 64cdc6a..1d0c38e 100644 --- a/ustream.c +++ b/ustream.c @@ -364,6 +364,17 @@ static void ustream_write_error(struct ustream *s

Re: [OpenWrt-Devel] [PATCH 1/3] examples: add .notify_write callback.

2014-12-07 Thread Yousong Zhou
Hmm, sorry for being a little ambiguous. The 3 patches in this series is for ustream-ssl. The other 5 patches in another series is for libubox. On 11 November 2014 at 18:33, Yousong Zhou wrote: > > Signed-off-by: Yousong Zhou > --- > ustream-example-client.c |6 ++ >

Re: [OpenWrt-Devel] [PATCH 1/5] libubox: drop legacy json-c support

2014-12-07 Thread Yousong Zhou
On 11 November 2014 at 18:51, Yousong Zhou wrote: > The cmake logic is wrong (E.G. PKG_CHECK_FOR_MODULES fails unless all > modules are found), and the legacy libjson.so name is also used by the other > libjson (http://sourceforge.net/projects/libjson/) which provides an > incompat

[OpenWrt-Devel] [PATCH v2 00/10] libubox: various minor fixes and enhancements.

2014-12-10 Thread Yousong Zhou
Yousong Zhou (10): libubox: drop legacy json-c support lua: do not hardcode /opt/local/include for Apple. examples: fix build. ustream: add function ustream_fill_with_read_buf(). ustream: call notify_write() when bytes are written. blobmsg: remove unneeded assignment in

[OpenWrt-Devel] [PATCH v2 01/10] libubox: drop legacy json-c support

2014-12-10 Thread Yousong Zhou
: Yousong Zhou --- CMakeLists.txt |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f24fee9..737f2ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ IF(APPLE) ENDIF() INCLUDE(FindPkgConfig) -PKG_CHECK_MODULES

[OpenWrt-Devel] [PATCH v2 02/10] lua: do not hardcode /opt/local/include for Apple.

2014-12-10 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- CMakeLists.txt |5 - examples/CMakeLists.txt |5 - lua/CMakeLists.txt |1 - 3 files changed, 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 737f2ae..4b1570c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt

[OpenWrt-Devel] [PATCH v2 03/10] examples: fix build.

2014-12-10 Thread Yousong Zhou
- runqueue-example.c: fix include path for in-tree build. - blobmsg-example.c: add inttypes.h for using PRIu64. - add examples/ subdirectory to main CMakeLists.txt Signed-off-by: Yousong Zhou --- CMakeLists.txt |1 + examples/blobmsg-example.c |1 + examples/runqueue

[OpenWrt-Devel] [PATCH v2 04/10] ustream: add function ustream_fill_with_read_buf().

2014-12-10 Thread Yousong Zhou
Useful in the following use pattern. int available = ustream_pending_data(s, false); if (available >= sizeof(struct msghdr)) { struct msghdr h; ustream_fill_with_read_buf(s, &h, sizeof(h)); } Signed-off-by: Yousong Zhou --- us

[OpenWrt-Devel] [PATCH v2 05/10] ustream: call notify_write() when bytes are written.

2014-12-10 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- ustream.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/ustream.c b/ustream.c index 64cdc6a..1d0c38e 100644 --- a/ustream.c +++ b/ustream.c @@ -364,6 +364,17 @@ static void ustream_write_error(struct ustream *s

[OpenWrt-Devel] [PATCH v2 06/10] blobmsg: remove unneeded assignment in blobmsg_alloc_string_buffer().

2014-12-10 Thread Yousong Zhou
data_dest should already be assigned by blobmsg_new() if the return value is not NULL. Signed-off-by: Yousong Zhou --- blobmsg.c |1 - 1 file changed, 1 deletion(-) diff --git a/blobmsg.c b/blobmsg.c index 9fe96e4..80b984a 100644 --- a/blobmsg.c +++ b/blobmsg.c @@ -262,7 +262,6

[OpenWrt-Devel] [PATCH v2 07/10] jshn: add error handling and fix memory leak in jshn_format().

2014-12-10 Thread Yousong Zhou
Though currently jshn is more a one-shot data transformation tool and won't leak much memory in its lifetime, people may use it as example code, so do it right. Signed-off-by: Yousong Zhou --- jshn.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --

[OpenWrt-Devel] [PATCH v2 08/10] json_script: fix logic invert of handle_expr_not().

2014-12-10 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- json_script.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_script.c b/json_script.c index 0ec7b38..0d51f79 100644 --- a/json_script.c +++ b/json_script.c @@ -338,7 +338,7 @@ static int handle_expr_not(struct json_call *call, struct

[OpenWrt-Devel] [PATCH v2 09/10] json_script: fix eval_string().

2014-12-10 Thread Yousong Zhou
- Fix handling of "%%". - Fix length requirement when calling blobmsg_realloc_string_buffer(). Signed-off-by: Yousong Zhou --- json_script.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json_script.c b/json_script.c index 0d51f79..9805b04 10

[OpenWrt-Devel] [PATCH v2 10/10] json_script: remove unneed argument check before calling __json_script_file_free().

2014-12-10 Thread Yousong Zhou
NULL check is present at the begining of function body. Signed-off-by: Yousong Zhou --- json_script.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/json_script.c b/json_script.c index 9805b04..7de005d 100644 --- a/json_script.c +++ b/json_script.c @@ -592,8 +592,7

Re: [OpenWrt-Devel] [PATCH 5/5] ustream: call notify_write() when bytes are written.

2014-12-11 Thread Yousong Zhou
On 12 December 2014 at 00:36, Felix Fietkau wrote: > On 2014-11-11 11:51, Yousong Zhou wrote: >> >> Signed-off-by: Yousong Zhou > The idea behind the notify_write callback was to notify callers of > buffers being drained. What's the intended use case for this patch? T

Re: [OpenWrt-Devel] [PATCH v2 08/10] json_script: fix logic invert of handle_expr_not().

2014-12-11 Thread Yousong Zhou
On 12 December 2014 at 00:52, Felix Fietkau wrote: > On 2014-11-12 14:59, Yousong Zhou wrote: >> Signed-off-by: Yousong Zhou >> --- >> json_script.c |2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/json_script.c b/json_sc

Re: [OpenWrt-Devel] [PATCH 4/5] ustream: add function ustream_fill_with_read_buf().

2014-12-11 Thread Yousong Zhou
On 12 December 2014 at 00:33, Felix Fietkau wrote: > On 2014-11-11 11:51, Yousong Zhou wrote: >> Useful in the following use pattern. >> >> int available = ustream_pending_data(s, false); >> if (available >= sizeof(struct msghdr)) { &g

Re: [OpenWrt-Devel] [PATCH 2/3] Fix SSL negotiation being interrupted by .notify_write from BIO method.

2014-12-11 Thread Yousong Zhou
On 12 December 2014 at 00:42, Felix Fietkau wrote: > On 2014-11-11 11:34, Yousong Zhou wrote: >> ustream_ssl_check_conn() may be called by .notify_write while a previous >> SSL_connect() is still in process. This can happen because the >> .notify_write callback will may be t

Re: [OpenWrt-Devel] [PATCH v2 00/10] libubox: various minor fixes and enhancements.

2014-12-11 Thread Yousong Zhou
On 12 December 2014 at 01:05, Felix Fietkau wrote: > On 2014-11-12 14:59, Yousong Zhou wrote: >> Yousong Zhou (10): >> libubox: drop legacy json-c support >> lua: do not hardcode /opt/local/include for Apple. >> examples: fix build. >> ustream: add fu

Re: [OpenWrt-Devel] [PATCH 2/3] Fix SSL negotiation being interrupted by .notify_write from BIO method.

2014-12-12 Thread Yousong Zhou
On 12 December 2014 at 19:36, Felix Fietkau wrote: > On 2014-12-12 05:16, Yousong Zhou wrote: >> On 12 December 2014 at 00:42, Felix Fietkau wrote: >>> On 2014-11-11 11:34, Yousong Zhou wrote: >>>> ustream_ssl_check_conn() may be called by .notify_write while a

Re: [OpenWrt-Devel] [PATCH] ramips:Add support for Aigale Ai-BR100

2014-12-12 Thread Yousong Zhou
Hi, gch On 13 December 2014 at 10:41, 郭传鈜 wrote: > Aigale Ai-BR100 is a router with mt7620a soc. > There are only 2 lights on the board (WAN and WLAN) so I used the wlan light > as the status led. > IIRC, there are 3 LEDs, but one of them is for power supply indication and cannot be controlled

[OpenWrt-Devel] [PATCH 01/12] Fix a few style issues.

2014-12-15 Thread Yousong Zhou
- Remove deprecated uci-static and ucimap-example from .gitignore. - Minor code formatting fix. Signed-off-by: Yousong Zhou --- .gitignore |2 -- file.c |2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c3e50e0..0407feb 100644 --- a

<    1   2   3   4   5   6   7   8   >