[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

[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] 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

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] 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] [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

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] 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
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

[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] 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

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] [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] 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 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] [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 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 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] 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 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] [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-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] 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] 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

[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] 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 /

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: >

[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

[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 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 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 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] 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

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

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

[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

[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 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 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 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 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

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

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] 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-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-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] [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] 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

[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] [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

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] [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 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

[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

[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 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 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 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 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] 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

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 >>>

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

[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

[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

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

Re: [OpenWrt-Devel] TP-Link v3 header format description

2015-08-13 Thread Yousong Zhou
On 14 August 2015 at 01:49, Mathias Kresin wrote: > Hey Weijie Gao, > > 2015-08-05 20:07 GMT+02:00 Weijie Gao : > >> This patch adds header version 2 option for mktplinkfw. > > As long as we talk about the same, the new header version is v3. The > v2 header is already covered by mktplinkfw2.c. > >

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

2015-08-12 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 --- proto-shell.c | 53 + 1

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

2015-08-12 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

Re: [OpenWrt-Devel] [PATCH 1/1] [polarssl] Fix build failures due to PKG_NAME != dir name

2015-08-11 Thread Yousong Zhou
On 11 August 2015 at 10:00, Yousong Zhou wrote: > On 2 August 2015 at 19:46, Daniel Dickinson > wrote: >> Packages that depend on PolarSSL fail to build because polarssl's InstallDev >> section never actually gets executed because (prior to this patch) the >> packa

Re: [OpenWrt-Devel] [PATCH 1/1] [polarssl] Fix build failures due to PKG_NAME != dir name

2015-08-10 Thread Yousong Zhou
On 2 August 2015 at 19:46, Daniel Dickinson wrote: > Packages that depend on PolarSSL fail to build because polarssl's InstallDev > section never actually gets executed because (prior to this patch) the package > name does not match the subdir the package is in (presumably due to upstream > name c

Re: [OpenWrt-Devel] package libcoap for OpenWRT, Makefile

2015-08-05 Thread Yousong Zhou
On 5 August 2015 at 21:03, Baptiste Clenet wrote: > 2015-08-05 14:58 GMT+02:00 Yousong Zhou : >> On 5 August 2015 at 16:09, Baptiste Clenet wrote: >>> >>> define Build/Compile >>> $(MAKE) -C $(PKG_BUILD_DIR) \ >>> $(TARGET_CONFIGURE_OPTS) \ &

Re: [OpenWrt-Devel] package libcoap for OpenWRT, Makefile

2015-08-05 Thread Yousong Zhou
On 5 August 2015 at 16:09, Baptiste Clenet wrote: > > define Build/Compile > $(MAKE) -C $(PKG_BUILD_DIR) \ > $(TARGET_CONFIGURE_OPTS) \ > CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)" \ > CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PKG_BUILD_DIR)" \ > LDFLAGS="$(TARGET_LDFLAGS) -L$(PKG_BUILD_DIR) -lcoap" > en

Re: [OpenWrt-Devel] package libcoap for OpenWRT, Makefile

2015-08-05 Thread Yousong Zhou
On 5 August 2015 at 19:43, Baptiste Clenet wrote: >> - You can check for WITH_POSIX (or other CFLAGS etc. in config.log > Check it and it is defined. >> - configure always sets -DWITH_POSIX in CPPFLAGS (see configure.in) > Yes, it is set also. > > Don't know where the problem comes from. It works

Re: [OpenWrt-Devel] Change Uboot default values

2015-07-22 Thread Yousong Zhou
On 22 July 2015 at 19:37, Baptiste Clenet wrote: > Hi, > > I would like to change the default values of Uboot when I choose 2 in the > menu. > In the below example, I would like to change <1>, <2> and <3> by > defaults values that I would have set earlier. > Looks like it's most likely hardcoded

Re: [OpenWrt-Devel] Can't link to ubus / ubox from C++ package

2015-07-22 Thread Yousong Zhou
On 22 July 2015 at 19:34, Tomer Eliyahu wrote: > Hi, > > Sorry if I am repeating this question (I posted it in the developers > forum and stackoverflow), but I am out of luck for 3 days now and come > to think it might be an openwrt bug, forgive me if i'm mistaken.. > > I am writing a GUI for open

Re: [OpenWrt-Devel] Chaos Calmer 15.05-rc3

2015-07-16 Thread Yousong Zhou
On Jul 16, 2015 10:40 PM, "Steven Barth" wrote: > > The OpenWrt developers are proud to announce the third release candidate of OpenWrt Chaos Calmer. > Thanks, guys. regards yousong >___ __ > | |.-.-.-.| | | |.--

Re: [OpenWrt-Devel] [PATCH v2] [netifd] Changes for more readability.

2015-07-14 Thread Yousong Zhou
On Jul 14, 2015 10:56 PM, "Felix Fietkau" wrote: > > On 2015-05-24 09:36, Yousong Zhou wrote: > > - "ifname" for Linux interface name. > > - "interface" for netifd defined logical interface names as in > >/etc/config/network. > >

Re: [OpenWrt-Devel] How to download 3rd party package from git in OpenWrt

2015-07-14 Thread Yousong Zhou
anch_name > > HEAD is now at e3e2b38... Makefile.am: add --with-check to packages target > > > On Mon, Jul 13, 2015 at 8:05 PM, Yousong Zhou wrote: >> >> >> On Jul 13, 2015 6:53 PM, "Pratik Prajapati" >> wrote: >> > >> > Hi, &g

Re: [OpenWrt-Devel] How to install 3rd party package in OpenWrt

2015-07-13 Thread Yousong Zhou
On Jul 13, 2015 5:12 PM, "Pratik Prajapati" wrote: > > Hi, > > What's the difference between following 2 methods in package makefile: > > 1) PKG_INSTALL:=1 > > logs: > make[2]: Leaving directory `/home/pratik.prajapati/work/openwrt-radvd/openwrt-tip/openwrt/package/libs/toolchain' > make[2]: Enter

Re: [OpenWrt-Devel] How to download 3rd party package from git in OpenWrt

2015-07-13 Thread Yousong Zhou
On Jul 13, 2015 6:53 PM, "Pratik Prajapati" wrote: > > Hi, > > I want to build radvd-2.11 package in OpenWrt but i am unable to download it using Makefile rules. > > Makefile: > > include $(TOPDIR)/rules.mk > > PKG_NAME:=radvd > PKG_VERSION:=2.11 > PKG_SOURCE_PROTO:=git > > PKG_BUILD_DIR:=$(BUILD_

Re: [OpenWrt-Devel] [PATCH] malta: add harddisk support

2015-07-08 Thread Yousong Zhou
On 8 July 2015 at 14:17, Dirk Neukirchen wrote: > works with: > qemu-system-mipsel -M malta \ > -hda openwrt-malta-le-root.ext4 \ > -kernel openwrt-malta-le-vmlinux.elf \ > -nographic -append "root=/dev/sda console=ttyS0" > Nice. Never get a chance to play with a real malta board, I have been wo

Re: [OpenWrt-Devel] [PATCH] [generic] ramips: adding support for OY-0001 Wireless Router

2015-07-03 Thread Yousong Zhou
On 3 July 2015 at 14:53, LiWeijian wrote: > > From: Tom Deng <2579131...@qq.com> > > Adding support for OY-0001 Wireless Router. > OY-0001 is a wireless router made by oyewifi.com. Below is the details: > MT7620A, 128MB DDR2, 16MB FLASH, SD Slot, USB 2.0, 4 x LAN + 1 x WAN. Hi, PATCH with HTML em

Re: [OpenWrt-Devel] [PATCH procd] service: use PTY (instead of a pipe) for reading service output

2015-06-19 Thread Yousong Zhou
On Jun 19, 2015 9:16 PM, "Rafał Miłecki" wrote: > > On 19 June 2015 at 14:44, Yousong Zhou wrote: > > On 19 June 2015 at 19:34, Rafał Miłecki wrote: > >> Using pipe automatically switches service to block buffering which kind > >> of breaks our logging.

Re: [OpenWrt-Devel] [PATCH procd] service: use PTY (instead of a pipe) for reading service output

2015-06-19 Thread Yousong Zhou
On 19 June 2015 at 19:34, Rafał Miłecki wrote: > Using pipe automatically switches service to block buffering which kind > of breaks our logging. We won't get anything from FD until the buffer > gets filled fully or the service exits. This makes log messages appear > with an unwanted delay. > Swit

[OpenWrt-Devel] [PATCH v2] openvpn: bump to 2.3.7.

2015-06-17 Thread Yousong Zhou
Two patches are dropped as they were already applied upstream. Signed-off-by: Yousong Zhou --- v2 <- v1 - Update PKG_MD5SUM - Refreshed all patches package/network/services/openvpn/Makefile |6 +-- .../patches/001-backport_cipher_none_fix.patch |

[OpenWrt-Devel] [PATCH] musl: provide wtmp compatibility stub for Linux-PAM.

2015-06-16 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- ...ide-wtmp-compatibility-stub-for-Linux-PAM.patch | 104 1 file changed, 104 insertions(+) create mode 100644 toolchain/musl/patches/200-Provide-wtmp-compatibility-stub-for-Linux-PAM.patch diff --git a/toolchain/musl/patches/200-Provide

[OpenWrt-Devel] [PATCH] openvpn: bump to 2.3.7.

2015-06-14 Thread Yousong Zhou
Two patches are dropped as they were already applied upstream. Signed-off-by: Yousong Zhou --- package/network/services/openvpn/Makefile |4 +- .../patches/001-backport_cipher_none_fix.patch | 57 .../services/openvpn/patches/110-musl_compat.patch | 13

Re: [OpenWrt-Devel] procd/libubox mangles command-line arguments

2015-06-14 Thread Yousong Zhou
Hi, Ted, On 15 June 2015 at 04:57, Ted Hess wrote: > Somewhere in the processing of "procd_set_param command ..." certain > command-line parameters which have colons (":") get treated as argument > delimiters. Example: > > procd_set_param command "foo -a 200:4:16:0 -o hw:0,0" > The correct usage

[OpenWrt-Devel] [PATCH v2 3/3] openvpn: bump PKG_RELEASE.

2015-06-14 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/network/services/openvpn/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/services/openvpn/Makefile b/package/network/services/openvpn/Makefile index 3e9be0d..81d8007 100644 --- a/package/network/services

[OpenWrt-Devel] [PATCH v2 2/3] openvpn: let instances drop to nobody in default config.

2015-06-14 Thread Yousong Zhou
This is for security precautions. As persist_tun and persist_key are already there, this should not cause compatibility issue. Signed-off-by: Yousong Zhou --- package/network/services/openvpn/files/openvpn.config |2 ++ 1 file changed, 2 insertions(+) diff --git a/package/network/services

[OpenWrt-Devel] [PATCH v2 1/3] openvpn: fix handling option auth_retry.

2015-06-14 Thread Yousong Zhou
As reported in ticket #19104, auth_retry takes a argument with 3 choices: none, nointeract, interact. Signed-off-by: Yousong Zhou --- v2 <- v1drop the move of comp_lzo from params to bools package/network/services/openvpn/files/openvpn.init |4 ++-- 1 file changed, 2 inserti

Re: [OpenWrt-Devel] [PATCH 1/3] openvpn: fix handling comp_lzo and auth_retry as the wrong type.

2015-06-14 Thread Yousong Zhou
On 14 June 2015 at 21:35, Felix Fietkau wrote: > On 2015-06-14 06:04, Yousong Zhou wrote: >> As reported in #19104. >> >> Signed-off-by: Yousong Zhou > comp-lzo does not seem to fit well in the "bool" category, it takes > "yes", "no", or &

[OpenWrt-Devel] [PATCH 5/5] service: close instance pipe fd on restart.

2015-06-13 Thread Yousong Zhou
Otherwise we hit max number of fd limit (1024) and instances fail to start with the following errors in syslog Sun Jun 14 01:27:38 2015 daemon.warn procd: pipe() failed: 24 (Too many open files) Signed-off-by: Yousong Zhou --- service/instance.c | 14 -- 1 file changed, 12

[OpenWrt-Devel] [PATCH 4/5] service: allow get_data of specifc instance.

2015-06-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- service/service.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/service/service.c b/service/service.c index c2a242b..2702dc3 100644 --- a/service/service.c +++ b/service/service.c @@ -213,8 +213,17

[OpenWrt-Devel] [PATCH 3/5] service: remove unused struct watch_subscribe definition.

2015-06-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- service/watch.c |5 - 1 file changed, 5 deletions(-) diff --git a/service/watch.c b/service/watch.c index 65e1fec..349b484 100644 --- a/service/watch.c +++ b/service/watch.c @@ -26,11 +26,6 @@ struct watch_object { char *name; }; -struct

[OpenWrt-Devel] [PATCH 2/5] service: dump respawn params in the same order as when passed in.

2015-06-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- service/instance.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/instance.c b/service/instance.c index 4ace40b..e89cbc6 100644 --- a/service/instance.c +++ b/service/instance.c @@ -917,8 +917,8 @@ void instance_dump(struct

[OpenWrt-Devel] [PATCH 1/5] service: optimize relaying stdio output of daemons a bit.

2015-06-13 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- service/instance.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/service/instance.c b/service/instance.c index 3367885..4ace40b 100644 --- a/service/instance.c +++ b/service/instance.c @@ -366,6 +366,10 @@ instance_stdio

[OpenWrt-Devel] [PATCH 0/5] procd: a few cleanup and fixes

2015-06-13 Thread Yousong Zhou
ready free'd previously. [1] https://github.com/yousong/waller/tree/master/ossherd Yousong Zhou (5): service: optimize relaying stdio output of daemons a bit. service: dump respawn params in the same order as when passed in. service: remove unused struct watch_subscribe definition.

[OpenWrt-Devel] [PATCH] firmware-tools/ptgen: fix endianness conversion for PTE .start, .length field.

2015-06-13 Thread Yousong Zhou
They are of 32-bit little endian integers. Signed-off-by: Yousong Zhou --- tools/firmware-utils/src/ptgen.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c index 6379ed7..68bad6f 100644 --- a

<    1   2   3   4   5   6   7   8   >