Re: [OpenWrt-Devel] [PATCH 2/2] proto-shell: add checkup timeout to restart interface.

2015-08-20 Thread Yousong Zhou
On 20 August 2015 at 12:58, Steven Barth wrote: > Hello Yousong, > > thanks for your patch. > > Shouldn't there by a timeout cancel path somewhere in case the protocol > gets removed after the timer was armed but before it was fired? > I could imagine it causing memory corruption otherwise. > Ind

[OpenWrt-Devel] [netifd][PATCH v2 1/2] Changes for more readability.

2015-08-20 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- device.h|3 +++ interface.c |4 ++-- interface.h |1 + ubus.c |2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/device.h b/device.h index ce135ba..798e19e 100644 --- a/device.h +++ b/device.h @@ -160,8 +160,11 @@ struct

[OpenWrt-Devel] [netifd][PATCH v2 2/2] proto-shell: add checkup timeout to restart interface.

2015-08-20 Thread Yousong Zhou
it by allowing users to configure an timeout value instructing netifd to check if the interface is in up state after its last attempt to setup it and try again if that is not the case. Signed-off-by: Yousong Zhou --- v2 <- v1 - Cancel checkup_timeout when a) interface goes to S_IDLE st

Re: [OpenWrt-Devel] [PATCH] malta: disable mips16

2015-08-27 Thread Yousong Zhou
On 27 August 2015 at 12:02, Dirk Neukirchen wrote: > - it causes issues with qemu versions < 2.2 > should fix issues with Ubuntu 14.03 LTS (qemu 2.0) > errors are: > Kernel panic - not syncing: Attempted to kill init! exitcode=0x0004 > But it's a bug within qemu. I have a simple script [1] f

Re: [OpenWrt-Devel] [PATCH] malta: disable mips16

2015-08-27 Thread Yousong Zhou
On 27 August 2015 at 17:29, John Crispin wrote: > > > On 27/08/2015 10:50, Dirk Neukirchen wrote: >> On 27.08.2015 09:27, Yousong Zhou wrote: >>> On 27 August 2015 at 12:02, Dirk Neukirchen wrote: >>>> - it causes issues with qemu versions < 2.2 >>>

[OpenWrt-Devel] [PATCH] uboot-sunxi: fix mmc transfer timeout for slow sdcards.

2015-08-29 Thread Yousong Zhou
This should fix a issue reported in ticket #20387. Signed-off-by: Yousong Zhou --- ...et-transfer-timeout-according-to-byte_cnt.patch | 36 1 file changed, 36 insertions(+) create mode 100644 package/boot/uboot-sunxi/patches/004-sunxi-mmc-set-transfer-timeout-according

[OpenWrt-Devel] [PATCH 1/6] ppp: cleanup fetching values for several parameters

2015-09-01 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/network/services/ppp/files/ppp.sh |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh index a6389a8..b970f29 100755 --- a/package/network/services

[OpenWrt-Devel] [PATCH 2/6] util-linux: add prlimit command.

2015-09-01 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/utils/util-linux/Makefile | 17 + 1 file changed, 17 insertions(+) diff --git a/package/utils/util-linux/Makefile b/package/utils/util-linux/Makefile index cf80012..f037e6a 100644 --- a/package/utils/util-linux/Makefile +++ b/package

[OpenWrt-Devel] [PATCH 3/6] base-files: set kernel.core_pattern in sysctl.conf

2015-09-01 Thread Yousong Zhou
Move the pattern setting from netifd's service script to /etc/sysctl.conf. Put the timestamp component '%t' just after executable name '%e' for more natural order from output of ls command. Signed-off-by: Yousong Zhou --- package/base-files/files/etc/sysctl.

[OpenWrt-Devel] [PATCH 5/6] target.mk: add optimization flags for MIPS 24Kc.

2015-09-01 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/target.mk |1 + 1 file changed, 1 insertion(+) diff --git a/include/target.mk b/include/target.mk index 3e7f17d..119f88c 100644 --- a/include/target.mk +++ b/include/target.mk @@ -212,6 +212,7 @@ ifeq ($(DUMP),1) CPU_CFLAGS_mips32 = -mips32

[OpenWrt-Devel] [PATCH 4/6] generic: fix unrecognized opcode wsbh when building for MIPS16.

2015-09-01 Thread Yousong Zhou
input}:208: Error: unrecognized opcode `wsbh $2,$2' make[3]: *** [builder.o] Error 1 [1] https://github.com/openwrt/packages/commit/1e29676a8ac74f797f8ca799364681cec575ae6f#commitcomment-12901931 Signed-off-by: Yousong Zhou --- ...recognized-opcode-WSBH-DSBH-DSHD-when-u

[OpenWrt-Devel] [PATCH 6/6] malta: set CPU_TYPE:=24kc.

2015-09-01 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- target/linux/malta/Makefile |1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/malta/Makefile b/target/linux/malta/Makefile index 9352dfa..0cce15e 100644 --- a/target/linux/malta/Makefile +++ b/target/linux/malta/Makefile @@ -8,6 +8,7 @@ include

Re: [OpenWrt-Devel] [PATCH 1/6] ppp: cleanup fetching values for several parameters

2015-09-01 Thread Yousong Zhou
On 1 September 2015 at 20:22, Felix Fietkau wrote: > On 2015-09-01 14:14, Yousong Zhou wrote: >> Signed-off-by: Yousong Zhou >> --- >> package/network/services/ppp/files/ppp.sh |4 +--- >> 1 file changed, 1 insertion(+), 3 deletions(-) >> >> diff --g

Re: [OpenWrt-Devel] [PATCH 4/6] generic: fix unrecognized opcode wsbh when building for MIPS16.

2015-09-01 Thread Yousong Zhou
On 1 September 2015 at 20:46, Florian Fainelli wrote: > Le 1 sept. 2015 05:22, "Yousong Zhou" a écrit : >> >> The issue was found and reported by hynman [1] when compiling reaver for >> ar71xx >> (Big Endian MIPS). >> >> {standard input}: Asse

Re: [OpenWrt-Devel] [PATCH 6/6] malta: set CPU_TYPE:=24kc.

2015-09-01 Thread Yousong Zhou
On Sep 1, 2015 8:44 PM, "Florian Fainelli" wrote: > > Le 1 sept. 2015 05:22, "Yousong Zhou" a écrit : > > > > Signed-off-by: Yousong Zhou > > --- > > target/linux/malta/Makefile |1 + > > 1 file changed, 1 insertion(+) > > >

Re: [OpenWrt-Devel] [DRAFT PATCH] Uboot patch -Sunxi BPI-R1 not building a bootable image

2015-09-03 Thread Yousong Zhou
Hi, Derek On 3 September 2015 at 19:14, Derek Werthmuller wrote: > Over the past week since the kernel version moved to the 4.x series, new > built images are not bootable. With the serial console connected it seems > that its not completing Uboot properly. This is the only output. > U-Boot SPL

[OpenWrt-Devel] [PATCH] malta: move to 4.4 kernel

2016-01-26 Thread Yousong Zhou
s 1. cp target/linux/malta/config-{3.18,4.4} 2. make kernel_menuconfig CONFIG_TARGET=subtarget_platform Signed-off-by: Yousong Zhou --- The patch was run-tested with QEMU 2.5.0. target/linux/malta/Makefile| 2 +- target/linux/malta/config-3.18

[OpenWrt-Devel] [PATCH v2] procd: hotplug.json: allow passing hotplug events from all subsystems

2016-02-13 Thread Yousong Zhou
There are time that programs need to be notified of events from subsystems that are not enumerated in the .json definition, e.g. QEMU guest agent by default requires /dev/virtio-ports/org.qemu.guest_agent.0 which is a symlink to /dev/vportMpN from virtio-ports subsystem. Signed-off-by: Yousong

[OpenWrt-Devel] [PATCH][libubox] json_script: add "isdir" support

2016-02-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- This is intended for use by hotplug system to check whether /etc/hotplug.d/%SUBSYSTEM% is a directory examples/json_script-example.json | 5 + json_script.c | 26 ++ 2 files changed, 31 insertions(+) diff --git a

Re: [OpenWrt-Devel] [PATCH][libubox] json_script: add "isdir" support

2016-02-14 Thread Yousong Zhou
On 15 February 2016 at 05:00, Felix Fietkau wrote: > On 2016-02-13 11:08, Yousong Zhou wrote: >> Signed-off-by: Yousong Zhou >> --- >> This is intended for use by hotplug system to check whether >> /etc/hotplug.d/%SUBSYSTEM% is a directory >> >>

[OpenWrt-Devel] [libubox] [PATCH v2 1/2] json_script: add "isdir" support

2016-02-16 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- v2: return 0 on stat() failure examples/json_script-example.json | 5 + json_script.c | 26 ++ 2 files changed, 31 insertions(+) diff --git a/examples/json_script-example.json b/examples/json_script-example.json

[OpenWrt-Devel] [libubox] [PATCH v2 2/2] examples: add shunit2 tests for json_script

2016-02-16 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- .gitignore |1 + examples/json_script-example.c |6 +- examples/json_script-tests.sh | 287 +++ examples/shunit2 | 1067 4 files changed, 1358 insertions(+), 3 deletions

[OpenWrt-Devel] [PATCH v3] procd: hotplug.json: allow passing hotplug events from all subsystems

2016-02-16 Thread Yousong Zhou
There are time that programs need to be notified of events from subsystems that are not enumerated in the .json definition, e.g. QEMU guest agent by default requires /dev/virtio-ports/org.qemu.guest_agent.0 which is a symlink to /dev/vportMpN from virtio-ports subsystem. Signed-off-by: Yousong

Re: [OpenWrt-Devel] [PATCH v3] procd: hotplug.json: allow passing hotplug events from all subsystems

2016-02-16 Thread Yousong Zhou
On 17 February 2016 at 11:26, Yousong Zhou wrote: > There are time that programs need to be notified of events from > subsystems that are not enumerated in the .json definition, e.g. QEMU > guest agent by default requires /dev/virtio-ports/org.qemu.guest_agent.0 > which is a sym

[OpenWrt-Devel] [libubox] [PATCH v3 1/2] json_script: add "isdir" support

2016-02-16 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- examples/json_script-example.json | 5 + json_script.c | 26 ++ 2 files changed, 31 insertions(+) diff --git a/examples/json_script-example.json b/examples/json_script-example.json index 45636b7..5328e59 100644

[OpenWrt-Devel] [libubox] [PATCH v3 2/2] examples: add shunit2 tests for json_script

2016-02-16 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- .gitignore |1 + examples/json_script-example.c |6 +- examples/json_script-tests.sh | 287 +++ examples/shunit2 | 1067 4 files changed, 1358 insertions(+), 3 deletions

[OpenWrt-Devel] [libubox] [PATCH v3 0/2] json_script: add "isdir" expr and tests

2016-02-16 Thread Yousong Zhou
v3: - fix typo in defining FILE_STDOUT (it was tests.stderr previously) v2: - return 0 on stat() failure - add tests for json_script with utility compiled from examples Yousong Zhou (2): json_script: add "isdir" support examples: add shunit2 tests for j

Re: [OpenWrt-Devel] embed TEXINFO in the latest trunk as build tool

2016-02-23 Thread Yousong Zhou
On 23 February 2016 at 17:29, Arturo Rinaldi wrote: > Hello guys, > > if was wondering if you have ever considered to embed the TEXINFO package as > one of the HOST build tools. I have bumped a couple of times, when > compiling, into some issue related to its binaries especially when the > standar

Re: [OpenWrt-Devel] [PATCH 2/3] IP Virtual Server - Load Balancer - ipvsadm tool

2016-02-24 Thread Yousong Zhou
yousong On 24 February 2016 at 03:57, Mauro Mozzarelli wrote: > All, > > Part 2/3 includes the ipvsadm tool only. > It depends on the ipvs kernel modules patch 1/3 > > Mauro > > Author: Mauro Mozzarelli > Date: Tue Feb 23 19:22:51 2016 + > > This ipvsadm package adds L

Re: [OpenWrt-Devel] [PATCH 2/3] IP Virtual Server - Load Balancer - ipvsadm tool

2016-02-24 Thread Yousong Zhou
Hi, Mauro On 25 February 2016 at 01:00, Mauro Mozzarelli wrote: > Yousong, > > Thank you for your suggestions. > Please see my notes below after your comments > > Mauro > > On Wed, February 24, 2016 13:31, Yousong Zhou wrote: >> yousong >>

Re: [OpenWrt-Devel] [PATCH] service: Support writing pidfiles

2016-03-02 Thread Yousong Zhou
Hi, Karl On 2 March 2016 at 17:07, Karl Palsson wrote: > From: Karl Palsson > > Use the "pidfile" attribute of a service to decide whether to write a > pidfile or not. > > Files are removed on stop/restart, and correctly created if the config > has changed. > > Signed-off-by: Karl Palsson > ---

Re: [OpenWrt-Devel] MAKE_ARGS?

2016-03-02 Thread Yousong Zhou
On 2 March 2016 at 17:15, Mauro Mozzarelli wrote: > Hi, > > I need to pass environment variables to a Makefile (ipvsadm-1.26). I tried > using MAKE_ARGS > as documented on the OpenWrt wiki but it is ignored. > MAKE_VARS can be used. See include/package-defaults.mk for details. p.s. you may als

Re: [OpenWrt-Devel] MAKE_ARGS?

2016-03-02 Thread Yousong Zhou
On 2 March 2016 at 18:16, Mauro Mozzarelli wrote: > > On Wed, March 2, 2016 09:27, Yousong Zhou wrote: >> On 2 March 2016 at 17:15, Mauro Mozzarelli wrote: >>> Hi, >>> >>> I need to pass environment variables to a Makefile (ipvsadm-1.26). I tried >&

Re: [OpenWrt-Devel] MAKE_ARGS?

2016-03-05 Thread Yousong Zhou
On 6 March 2016 at 02:14, Mauro Mozzarelli wrote: > Hi Yousong, > > I think I found where the problem is with environment variables for Makefile. > If add MYVAR=something in MAKE_FLAGS this is passed as argument to "make", > but it > isn't set as an environment variable. So when make invokes anot

Re: [OpenWrt-Devel] [UCI] uci import -m duplicates list options

2016-04-13 Thread Yousong Zhou
On 13 April 2016 at 18:54, Nemesis wrote: > Hi, > > I've incurred in weird behaviour when using the import feature of the uci > tool which seems to cause duplicates when importing configuration files that > have "list" settings. > > To test this you can try to create a file in /tmp/network: > > co

Re: [OpenWrt-Devel] netifd: adding default route + route via previous default route

2016-05-14 Thread Yousong Zhou
On 14 May 2016 at 16:18, Nikos Mavrogiannopoulos wrote: > Hi, > A user of openconnect VPN is trying to use openconnect as a default > route on his router [0]. Currently this works by setting defaultroute=1 > on his /etc/config/network, however, once the default route is setup > the VPN connection

Re: [OpenWrt-Devel] netifd: adding default route + route via previous default route

2016-05-15 Thread Yousong Zhou
On 15 May 2016 at 19:14, Nikos Mavrogiannopoulos wrote: > On Sat, 2016-05-14 at 18:29 +0800, Yousong Zhou wrote: >> On 14 May 2016 at 16:18, Nikos Mavrogiannopoulos >> wrote: >> > >> > Hi, >> > A user of openconnect VPN is trying to use openconnect as

Re: [OpenWrt-Devel] [PATCH]:for demand option in l2tp.sh file of xl2tpd package.

2016-05-19 Thread Yousong Zhou
On 19 May 2016 at 18:50, Pranay Goud wrote: > Hi Developers, > > > > Below patch is for considering demand option in l2tp.sh, demand option is > not getting initialized > > > > json_get_vars ipv6 demand keepalive username password pppd_options > > > > the above line in l2tp.sh fails to read demand

Re: [OpenWrt-Devel] [PATCH]:for demand option in l2tp.sh file of xl2tpd package.

2016-05-19 Thread Yousong Zhou
On 19 May 2016 at 19:17, Yousong Zhou wrote: > On 19 May 2016 at 18:50, Pranay Goud wrote: >> Hi Developers, >> >> >> >> Below patch is for considering demand option in l2tp.sh, demand option is >> not getting initialized >> >> >>

Re: [OpenWrt-Devel] OpenWrt / LEDE

2016-05-24 Thread Yousong Zhou
On 25 May 2016 at 07:56, Daniel Dickinson wrote: > On Tue, 2016-05-24 at 18:18 -0400, Daniel Dickinson wrote: >> On Tue, 2016-05-24 at 23:57 +0200, Zoltan HERPAI wrote: >> [snip] >> > Hi, >> > >> I would like to see a reunion of LEDE and OpenWrt, so do any of the non >> > >> LEDE but OpenWrt core

Re: [OpenWrt-Devel] (no subject)

2016-06-17 Thread Yousong Zhou
On 14 June 2016 at 06:04, Jerome wrote: > To: openwrt-devel@lists.openwrt.org > From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Poulin?= > Date: Mon, 13 Jun 2016 17:47:50 -0400 > Subject: [PATCH] micropython-lib: fix make install seldom fail > > - Since make install path was hardcoded inside the build dir, it

Re: [OpenWrt-Devel] [L2TP] Bad UDP Checksum on TP-LINK hardware

2016-07-29 Thread Yousong Zhou
On 28 July 2016 at 23:45, Leon George wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Hi :-) > > The UDP checksum for outgoing L2TP datagrams seems to be broken. > It has been tested with TP-LINK's WR842n, WDR3600, and WDR4300. > On two normal Linux computers it's working. > > We've

Re: [OpenWrt-Devel] [PATCH 1/2] layerscape: add ls1043ardb-64b target

2016-08-08 Thread Yousong Zhou
On 8 August 2016 at 19:00, Yutang Jiang wrote: > Hi Jonas, > > Sorry for so late update. Now I almost finish the issues of update to 4.4 > and 32b/64b merge, also update Device/* sections and device/profile, But > blocking by minimize kernel config:( . > Previously, I just have a compiled .c

[OpenWrt-Devel] [RFC] netifd: backport support of checkup_interval option

2015-09-17 Thread Yousong Zhou
This is needed for L2TP with xl2tpd daemon. Signed-off-by: Yousong Zhou --- Another option would be bump the netifd version to the lastest, but I am a bit conservative now. That said, I plan to backport xl2tpd from trunk to packages;for-15.05 after this checkup_interval option will be available

Re: [OpenWrt-Devel] Bug #20542 affects all DEVICE_TYPE!=router targets on Chaos Calmer 15.05

2015-09-20 Thread Yousong Zhou
On 21 September 2015 at 01:19, John Crispin wrote: > > > > On 20/09/2015 19:12, Daniel Golle wrote: >> Hi! >> >> I just tested the Chaos Calmer 15.05 release binaries realizing that >> bug #20542 may render targets having DEVICE_TYPE set to something >> else than 'router' unreachable due to missin

Re: [OpenWrt-Devel] [RFC] procd: Allow to enable endless respawning of services

2015-09-21 Thread Yousong Zhou
Hi, Helmut On 21 September 2015 at 23:26, Helmut Schaa wrote: > Extend /etc/config/system with a parameter to enable > infinite respawn mode: > > config system > option service_endless_respawn 1 > > All services that don't specify specific respawn parameters > will get the

Re: [OpenWrt-Devel] [PATCH v2] base-files: init/sysfixtime - exclude dnsmasq.time

2015-09-22 Thread Yousong Zhou
On 23 September 2015 at 01:52, Bastian Bittorf wrote: > dnsmasq maintains dnsmasq.time across reboots and uses it as a means of > determining if current time is good enough to validate dnssec time > stamps. By including /etc/dnsmasq.time as a time source for sysfixtime, > the mechanism was effect

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

2015-09-28 Thread Yousong Zhou
Hi, Previously this year, there were 2 attempts to add support for HC5661 and HC5761 to OpenWrt trunk [1,2]. I only had a HC5661 and it was quite a while ago but the issues then should still remain. The first is about how MAC address is to be read. The "mtd-mac-address" DTS directives apparentl

Re: [OpenWrt-Devel] [PATCH v2] base-files: init/sysfixtime - exclude dnsmasq.time

2015-09-29 Thread Yousong Zhou
Hi, hope this comment is not too late :) On 23 September 2015 at 17:12, Steven Barth wrote: > Using --dnssec-no-timecheck is impractical since it reacts to SIGHUP which > is already overloaded and might be triggered by e.g. config changes. > Agree. I did not check the source code, but it's bad

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

2015-10-02 Thread Yousong Zhou
ctober/028516.html Regards, yousong > Thanks again! > > On Tue, Sep 29, 2015 at 10:10 AM, Yousong Zhou > wrote: >> >> Hi, >> >> Previously this year, there were 2 attempts to add support for HC5661 >> and HC5761 to OpenWrt trunk [1,2]. I

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

2015-10-12 Thread Yousong Zhou
On 10 October 2015 at 22:04, 康 wrote: > > At 2015-09-29 10:10:41, "Yousong Zhou" wrote: >>Hi, >> >>Previously this year, there were 2 attempts to add support for HC5661 >>and HC5761 to OpenWrt trunk [1,2]. I only had a HC5661 and it was >>quit

[OpenWrt-Devel] [PATCH 1/5] generic: fix unrecognized opcode wsbh when building for MIPS16.

2015-10-28 Thread Yousong Zhou
input}:208: Error: unrecognized opcode `wsbh $2,$2' make[3]: *** [builder.o] Error 1 The patch was already in upstream since kernel release 4.3-rc5. [1] https://github.com/openwrt/packages/commit/1e29676a8ac74f797f8ca799364681cec575ae6f#commitcomment-12901931 Signed-off-by: Yousong Zhou

[OpenWrt-Devel] [PATCH 0/5] malta: changes for better testing environment

2015-10-28 Thread Yousong Zhou
/pipermail/openwrt-devel/2015-September/thread.html#35515 Yousong Zhou (5): generic: fix unrecognized opcode wsbh when building for MIPS16. target.mk: add optimization flags for MIPS 24Kc. malta: set CPU_TYPE:=24kc. malta: convert to router type target. malta: use "static" proto for lan

[OpenWrt-Devel] [PATCH 2/5] target.mk: add optimization flags for MIPS 24Kc.

2015-10-28 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/target.mk |1 + 1 file changed, 1 insertion(+) diff --git a/include/target.mk b/include/target.mk index 3e7f17d..119f88c 100644 --- a/include/target.mk +++ b/include/target.mk @@ -212,6 +212,7 @@ ifeq ($(DUMP),1) CPU_CFLAGS_mips32 = -mips32

[OpenWrt-Devel] [PATCH 3/5] malta: set CPU_TYPE:=24kc.

2015-10-28 Thread Yousong Zhou
-system-mipsel 2.3.0 root@OpenWrt:/# cat /proc/cpuinfo | grep 'cpu model\|isa' cpu model : MIPS 24Kc V0.0 FPU V0.0 isa : mips1 mips2 mips32r1 mips32r2 Signed-off-by: Yousong Zhou --- target/linux/malta/Makefile |1 + 1 file changed, 1

[OpenWrt-Devel] [PATCH 4/5] malta: convert to router type target.

2015-10-28 Thread Yousong Zhou
There is currently no relevant definition for developerboard device type in include/target.mk, thus packages like iptables, firewall, dnsmasq etc. are missing in the default images, rendering it almost useless for regular testing or normal use. Signed-off-by: Yousong Zhou --- target/linux/malta

[OpenWrt-Devel] [PATCH 5/5] malta: use "static" proto for lan interface

2015-10-28 Thread Yousong Zhou
This is almost the default config of OpenWrt targets (currently even those sunxi boards with only one ethernet interface use static IP address for its lan interface). While at it, also configure a wan interface if eth1 exists. Signed-off-by: Yousong Zhou --- target/linux/malta/base-files/etc

Re: [OpenWrt-Devel] [PATCH 4/5] malta: convert to router type target.

2015-10-28 Thread Yousong Zhou
On 29 October 2015 at 00:20, Florian Fainelli wrote: > On Oct 28, 2015 5:56 AM, "Yousong Zhou" wrote: >> >> There is currently no relevant definition for developerboard device type >> in include/target.mk, thus packages like iptables, firewall, dnsmasq >> e

Re: [OpenWrt-Devel] [PATCH 5/5] malta: use "static" proto for lan interface

2015-10-28 Thread Yousong Zhou
On 29 October 2015 at 00:19, Florian Fainelli wrote: > On Oct 28, 2015 5:56 AM, "Yousong Zhou" wrote: >> >> This is almost the default config of OpenWrt targets (currently even >> those sunxi boards with only one ethernet interface use static IP >> address fo

[OpenWrt-Devel] Fwd: [PATCH 2/5] target.mk: add optimization flags for MIPS 24Kc.

2015-10-28 Thread Yousong Zhou
Fwd to openwrt-devel list. -- Forwarded message -- From: Yousong Zhou Date: 29 October 2015 at 09:59 Subject: Re: [OpenWrt-Devel] [PATCH 2/5] target.mk: add optimization flags for MIPS 24Kc. To: Cristian Morales Vega On 28 October 2015 at 22:18, Cristian Morales Vega wrote

[OpenWrt-Devel] [PATCH v2 0/5] malta: changes for a better testing environment

2015-10-30 Thread Yousong Zhou
/pipermail/openwrt-devel/2015-September/thread.html#35515 v2 <- v1 - Instead of setting the device type explicitly to router, just drop the definition and use the default - Make eth0 the default ifname for wan interface and eth1 if exists the lan interface Yousong Z

[OpenWrt-Devel] [PATCH v2 1/5] generic: fix unrecognized opcode wsbh when building for MIPS16.

2015-10-30 Thread Yousong Zhou
input}:208: Error: unrecognized opcode `wsbh $2,$2' make[3]: *** [builder.o] Error 1 The patch was already in upstream since kernel release 4.3-rc5. [1] https://github.com/openwrt/packages/commit/1e29676a8ac74f797f8ca799364681cec575ae6f#commitcomment-12901931 Signed-off-by: Yousong Zhou

[OpenWrt-Devel] [PATCH v2 3/5] malta: set CPU_TYPE:=24kc.

2015-10-30 Thread Yousong Zhou
-system-mipsel 2.3.0 root@OpenWrt:/# cat /proc/cpuinfo | grep 'cpu model\|isa' cpu model : MIPS 24Kc V0.0 FPU V0.0 isa : mips1 mips2 mips32r1 mips32r2 Signed-off-by: Yousong Zhou --- target/linux/malta/Makefile |1 + 1 file changed, 1

[OpenWrt-Devel] [PATCH v2 2/5] target.mk: add optimization flags for MIPS 24Kc.

2015-10-30 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/target.mk |1 + 1 file changed, 1 insertion(+) diff --git a/include/target.mk b/include/target.mk index f8c0d23..7988056 100644 --- a/include/target.mk +++ b/include/target.mk @@ -212,6 +212,7 @@ ifeq ($(DUMP),1) CPU_CFLAGS_mips32 = -mips32

[OpenWrt-Devel] [PATCH v2 5/5] malta: make eth0 the wan interface by default

2015-10-30 Thread Yousong Zhou
Many packages for OpenWrt currently assume that lan is the "internal" side of the network map, e.g. if installed, dnsmasq will hand out DHCP leases on lan, firewall will allow forwarding on lan. While at it, also configure a lan interface if eth1 exists. Signed-off-by: Yousong Zhou -

[OpenWrt-Devel] [PATCH v2 4/5] malta: use as a default type device

2015-10-30 Thread Yousong Zhou
packages for "router" will be installed to malta firmware images. Signed-off-by: Yousong Zhou --- target/linux/malta/Makefile |2 -- 1 file changed, 2 deletions(-) diff --git a/target/linux/malta/Makefile b/target/linux/malta/Makefile index c9f1586..8392738 100644 --- a/target/linux/malt

Re: [OpenWrt-Devel] polluted env-space after running OpenWrt-helper scripts

2015-11-03 Thread Yousong Zhou
On 3 November 2015 at 19:19, Bastian Bittorf wrote: > while debugging things, we saw that each > command invoked via rc.common->service or > /lib/functions/network.sh -> config_load > pollutes the env-space a *lot*. here it is > for each service ~20k. > > some things are easy for getting rid of: >

Re: [OpenWrt-Devel] uci delete doesn't match documentation

2015-11-06 Thread Yousong Zhou
On 5 November 2015 at 22:44, Karl Palsson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm trying to work out _a_ way of ensuring that a UCI config file > has a given section type with a given name. > > While trying to test out the various methods, I've been deleting > files from /

[OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-27 Thread Yousong Zhou
There are time that programs need to be notified of events from subsystems that are not enumerated in the .json definition, e.g. QEMU guest agent by default requires /dev/virtio-ports/org.qemu.guest_agent.0 which is a symlink to /dev/vportMpN from virtio-ports subsystem. Signed-off-by: Yousong

Re: [OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-27 Thread Yousong Zhou
On 28 November 2015 at 12:22, Yousong Zhou wrote: > There are time that programs need to be notified of events from > subsystems that are not enumerated in the .json definition, e.g. QEMU > guest agent by default requires /dev/virtio-ports/org.qemu.guest_agent.0 > which is a sym

Re: [OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

2015-11-30 Thread Yousong Zhou
On 30 November 2015 at 17:50, John Crispin wrote: > > > On 30/11/2015 10:33, Jo-Philipp Wich wrote: >> Hi all, >> >> as an intermediate solution we could simply allow qemu specific events. >> >> I'm with John here that passing on uevents unfiltered is probably no >> good idea. >> >> ~ Jow > > yep,

Re: [OpenWrt-Devel] [PATCH v6 5/6] ar71xx: scan nand ubi partition for ath9k eeprom files

2015-12-06 Thread Yousong Zhou
Hello, Christian, a few nitpicks inline :) On 6 December 2015 at 06:48, Christian Lamparter wrote: > From: Chris R Blake > > The MR18 stores the ath9k eeprom values on the NAND. > This patch makes it possible to retrieve the images > from there. > > Signed-off-by: Chris R Blake > --- > package

Re: [OpenWrt-Devel] [PATCH v6 5/6] ar71xx: scan nand ubi partition for ath9k eeprom files

2015-12-07 Thread Yousong Zhou
e to mtd_get_mac_binary. A new patch is good if we think it can help improve the code even though it is mostly unrelated in the whole series. And a new nitpick crawls out below... > > Regards, > Chris Blake > > On Sun, Dec 6, 2015 at 10:05 PM, Yousong Zhou wrote: > > Hello,

Re: [OpenWrt-Devel] [PATCH v6 5/6] ar71xx: scan nand ubi partition for ath9k eeprom files

2015-12-07 Thread Yousong Zhou
ementation above. > I used the following command before for fetching MAC addresses from mtd devices. Not sure if it also works for ubi devices... hexdump -v -n 6 -s 0x1fc00 -e '5/1 "%02x:" 1/1 "%02x""\n"' /dev/mtd2 P.S. please avoid top posting Ch

Re: [OpenWrt-Devel] Q: procd / respawn if process dies

2015-12-08 Thread Yousong Zhou
Am 08.12.2015 22:45 schrieb "Bastian Bittorf" : > > while trying to understand the procd > respawn-trigger, I wrote this testscript: > > #!/bin/sh /etc/rc.common > START=50 > USE_PROCD=1 > PROG=/tmp/test.sh > > start_service() > { > { > echo '#!/bin/sh' > ech

Re: [OpenWrt-Devel] [PATCH v5] Add support for Ubiquiti EdgeRouter X (UBNT-ERX)

2015-12-10 Thread Yousong Zhou
Hi, Nikolay, On 3 December 2015 at 15:16, Nikolay Martynov wrote: > This router is based on MT7621 SoC, no wifi, nand. > > Works: > * Boots. > * Ethernet. > * Switch. > * Button (reset). > * Flashing OpenWrt from stock firmware. > * Upgrading OpenWrt. > > Doesn't work: > * No GPIO leds. All leds

Re: [OpenWrt-Devel] [PATCH v5] Add support for Ubiquiti EdgeRouter X (UBNT-ERX)

2015-12-10 Thread Yousong Zhou
yousong On 11 December 2015 at 13:33, Yousong Zhou wrote: > Hi, Nikolay, > > On 3 December 2015 at 15:16, Nikolay Martynov wrote: >> This router is based on MT7621 SoC, no wifi, nand. >> >> Works: >> * Boots. >> * Ethernet. >>

Re: [OpenWrt-Devel] [PATCH] procd base-files: For hotplug expose DEVNAME as variable to hotplug scripts

2015-12-16 Thread Yousong Zhou
On 17 December 2015 at 06:21, wrote: > From: Daniel Dickinson > > Without exposing DEVNAME to scripts in /etc/hotplug.d, > they have no means of determining the actual device file > path (in most cases), which is counter-productive for > doing things like settings permissions on a device file >

Re: [OpenWrt-Devel] [PATCH 1/1] [package] GNU Make

2015-12-21 Thread Yousong Zhou
On 22 December 2015 at 06:08, Heinrich Schuchardt wrote: > OpenWRT provides gcc but lacks make. So building foreign software is > difficult. > GCC is provided as part of the OpenWrt packages feeds (https://github.com/openwrt/packages), so maybe this should also go there. > This patch provides GN

Re: [OpenWrt-Devel] tar: write: Broken pi

2015-12-21 Thread Yousong Zhou
On 22 December 2015 at 06:11, Heinrich Schuchardt wrote: > OpenWRT ChaosCalmer uses busybox 1.23.2. > > For many tar.gz files I receive errors like: > > user@MR3020:~/src$ wget http://tukaani.org/xz/xz-5.2.2.tar.gz > user@MR3020:~/src$ tar -xzf xz-5.2.2.tar.gz > tar: invalid tar magic > user@MR302

Re: [OpenWrt-Devel] [PATCH] use NTP server received via DHCP

2015-12-24 Thread Yousong Zhou
Hi, amine On 23 December 2015 at 00:00, amine ahd wrote: > The current state of NTP is to load the list of NTP servers > from the static file /etc/config/system. > This patch allows ntpd to get NTP servers from DHCP. > ntpd will restart whenever the list of NTP servers is changed. > > Signed-off-

Re: [OpenWrt-Devel] [PATCH] V2 ar71xx : Add Support for the Bitmain Antrouter R1

2015-12-24 Thread Yousong Zhou
Hi, On 24 December 2015 at 09:32, L. D. Pinney wrote: > This patch adds support for the Bitmain Antrouter R1 > > http://wiki.openwrt.org/toh/bitmain/r1 > > Signed-off-by: L. D. Pinney > --- > > V2 Corrects naming errors in Profile in V1 > > target/linux/ar71xx/base-files/etc/board.d/01_leds

Re: [OpenWrt-Devel] Fwd: OpenVSwitch 2.5.0 for Linux kernel 4.3

2015-12-28 Thread Yousong Zhou
On 29 December 2015 at 04:33, Jeroen van Bemmel wrote: > All, > > For a Xiaomi Mini WiFi router I wanted to try OpenVSwitch, but the > 2.4.0 version available in the feeds only supports Linux kernels up to > 4.1. The ramips target uses kernel 4.3, and downgrading to 4.1 didn't work > for me. > > O

[OpenWrt-Devel] [PATCH] base-files: fix generating network configuration

2015-12-30 Thread Yousong Zhou
twork config Signed-off-by: Yousong Zhou --- package/base-files/files/bin/config_generate | 8 package/base-files/files/etc/config/network | 18 -- 2 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 package/base-files/files/etc/config/network diff --

Re: [OpenWrt-Devel] [PATCH] base-files: fix generating network configuration

2015-12-30 Thread Yousong Zhou
t; >> This should fix the issue on malta target and should not affect other >> targets that provide its own default network config >> >> Signed-off-by: Yousong Zhou >> --- >> package/base-files/files/bin/config_generate | 8 >> package/base-files/f

Re: [OpenWrt-Devel] [PATCH] use NTP server received via DHCP

2015-12-30 Thread Yousong Zhou
Hi, On 30 December 2015 at 20:12, Amine Aouled Hamed wrote: > > Hi, > Can you elaborate more on why you prefer uci state? I am just starting with > OpenWRT and the first thing I found was procd. > Most of it is really just personal preference. I prefer uci because it can provide more structure

Re: [OpenWrt-Devel] [PATCH] base-files: fix generating network configuration

2015-12-30 Thread Yousong Zhou
On Wednesday, 30 December 2015, Nathan Hintz wrote: > Hi: > On Dec 30, 2015 4:01 AM, Yousong Zhou > wrote: > > > > With the default /e/c/network present, board_detect won't create a new > > config from board.json. Move this default configuration t

Re: [OpenWrt-Devel] [PATCH] base-files: fix generating network configuration

2016-01-02 Thread Yousong Zhou
Hi, On 31 December 2015 at 20:33, Roman Yeryomin wrote: > On 30 December 2015 at 14:32, Yousong Zhou wrote: >> On 30 December 2015 at 20:12, Jo-Philipp Wich wrote: >>> Hi Yousong. >>> >>> NAK - thats by design. If a network config is present then ther

[OpenWrt-Devel] [PATCH] malta: fix generating network configuration

2016-01-02 Thread Yousong Zhou
With the default network config provided by package base-files present, board_detect won't create a new config from board.json. Signed-off-by: Yousong Zhou --- target/linux/malta/base-files.mk | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 target/linux/malta/base-files.mk

Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-05 Thread Yousong Zhou
Hi On 5 January 2016 at 17:41, Andy Wong wrote: > Hi.I not quite understand.I've change the install part as below: > > define Package/openwrt-dist-luci/install > #!/bin/sh > $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller > $(INSTALL_DATA) ./files/luci/controller/$(2).lua > $(1)/usr/lib/lua/luci

[OpenWrt-Devel] [PATCH libubox] blobmsg_json: blobmsg_format_string: do not escape '/'

2019-02-26 Thread Yousong Zhou
Resolves FS#2147 Signed-off-by: Yousong Zhou --- blobmsg_json.c | 1 - 1 file changed, 1 deletion(-) diff --git a/blobmsg_json.c b/blobmsg_json.c index ca9dd1a..59a4b31 100644 --- a/blobmsg_json.c +++ b/blobmsg_json.c @@ -185,7 +185,6 @@ static void blobmsg_format_string(struct strbuf *s

Re: [OpenWrt-Devel] [PATCH] wireguard: do not add host-dependencies if fwmark is set

2019-03-20 Thread Yousong Zhou
On Tue, 19 Mar 2019 at 23:53, Daniel Golle wrote: > > The 'fwmark' option is used to define routing traffic to > wireguard endpoints to go through specific routing tables. > In that case it doesn't make sense to setup routes for > host-dependencies in the 'main' table, so skip setting host > depen

[OpenWrt-Devel] [PATCH] sdk: fix building external modules when CONFIG_STACK_VALIDATION=y

2019-04-25 Thread Yousong Zhou
-4.14.111' Reference: builddeb: include objtool binary in headers package, https://patchwork.kernel.org/patch/9014071/ Signed-off-by: Yousong Zhou --- target/sdk/Makefile | 8 1 file changed, 8 insertions(+) diff --git a/target/sdk/Makefile b/target/sdk/Makefile index 95ac3be197..

[OpenWrt-Devel] [PATCH 1/2] scripts/qemustart: no-network by default and enable with -n

2019-04-25 Thread Yousong Zhou
characters argument away. Cc: Petr Štetiar Signed-off-by: Yousong Zhou --- scripts/qemustart | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/qemustart b/scripts/qemustart index 951f225272..f0ffc64734 100755 --- a/scripts/qemustart +++ b/scripts/qemu

[OpenWrt-Devel] [PATCH 2/2] scripts/qemustart: fix network device emulation

2019-04-25 Thread Yousong Zhou
We only enabled pcnet driver for malta machine, and x86/legacy target was supposed to only support e1000 model Cc: Petr Štetiar Signed-off-by: Yousong Zhou --- scripts/qemustart | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/scripts/qemustart

Re: [OpenWrt-Devel] [PATCH 1/2] scripts/qemustart: no-network by default and enable with -n

2019-04-25 Thread Yousong Zhou
On Thursday, 25 April 2019, Hans Dedecker wrote: > Hi Yousong, > > On Thu, Apr 25, 2019 at 4:29 PM Yousong Zhou > wrote: > > > > Before this change, we have no way to have network on as both bash and > > zsh have zero exit status for "[ -n ]" and "[

Re: [OpenWrt-Devel] [PATCH 1/2] scripts/qemustart: no-network by default and enable with -n

2019-04-25 Thread Yousong Zhou
On Thu, 25 Apr 2019 at 23:05, Hans Dedecker wrote: > > Hi Yousong, > > On Thu, Apr 25, 2019 at 4:29 PM Yousong Zhou wrote: > > > > Before this change, we have no way to have network on as both bash and > > zsh have zero exit status for "[ -n ]" and

[OpenWrt-Devel] [PATCH v2 2/2] scripts/qemustart: fix network device emulation

2019-04-25 Thread Yousong Zhou
We only enabled pcnet driver for malta machine, and x86/legacy target was supposed to only support e1000 model Cc: Petr Štetiar Signed-off-by: Yousong Zhou --- scripts/qemustart | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/scripts/qemustart

[OpenWrt-Devel] [PATCH v2 1/2] scripts/qemustart: no network by default and enable with -n

2019-04-25 Thread Yousong Zhou
This should make it easier to setup and possibly provide a "work out of the box" experience for most test usage. With typical wan&lan networking setup being only two characters argument away. Cc: Petr Štetiar Signed-off-by: Yousong Zhou --- v2 <- v1 - Rebase on current mas

[OpenWrt-Devel] [PATCH] dnsmasq: skip options that are not compiled in

2019-05-26 Thread Yousong Zhou
Resolves FS#2281 Signed-off-by: Yousong Zhou --- package/network/services/dnsmasq/Makefile | 2 +- .../services/dnsmasq/files/dnsmasq.init | 36 +-- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/package/network/services/dnsmasq/Makefile b/package

<    1   2   3   4   5   6   7   8   >