Re: [OpenWrt-Devel] [PATCH 06/12] malta: Remove kernel 4.14 support

2020-03-10 Thread Yousong Zhou
nel > 4.14 in addition to kernel 4.19 and 5.4. > > Signed-off-by: Hauke Mehrtens Acked-by: Yousong Zhou Regards, yousong > --- > target/linux/malta/config-4.14 | 326 - > 1 file changed, 326 deletions(-) > delete mode 100644 ta

Re: [OpenWrt-Devel] [PATCH 01/12] armvirt: Remove kernel 4.14 support

2020-03-10 Thread Yousong Zhou
nel > 4.14 in addition to kernel 4.19 and 5.4. > > Signed-off-by: Hauke Mehrtens Acked-by: Yousong Zhou Regards, yousong > --- > target/linux/armvirt/32/config-4.14 | 121 --- > target/linux/armvirt/64/config-4.14 | 179 --- >

Re: [OpenWrt-Devel] [PATCH v2] scripts: add docker-run-rootfs.sh

2020-04-14 Thread Yousong Zhou
Hi Paul, On Wed, 15 Apr 2020 at 08:40, Paul Spooren wrote: > > The script allows to run a OpenWrt x86/64 rootfs in no time. It is > possible to access the web interface and SSH via 192.168.1.1. > > By using docker volume mounts you can easily share files/folders between > container and host,

[OpenWrt-Devel] [PATCH] generic: mips: exclude more dsemul code when fpu-emu is not enabled

2020-03-26 Thread Yousong Zhou
:00 0 [stack] 7ff63000-7ff64000 r--p 00:00 0 [vvar] 7ff64000-7ff65000 r-xp 00:00 0 [vdso] Signed-off-by: Yousong Zhou --- ...e-dsemul-code-when-CONFIG_MIPS_FP_SU.patch | 140 ++ 1 file changed, 140 insertions(+) create mode 100644

Re: [OpenWrt-Devel] [PATCH] generic: mips: exclude more dsemul code when fpu-emu is not enabled

2020-03-29 Thread Yousong Zhou
On Mon, 30 Mar 2020 at 07:17, Rosen Penev wrote: > > On Sun, Mar 29, 2020 at 8:34 AM Hauke Mehrtens wrote: > > > > On 3/27/20 5:28 AM, Yousong Zhou wrote: > > > The patch is backported from mips-next. In addition to minor reduction > > > of code size and r

Re: [OpenWrt-Devel] [PATCH 1/1] firewall3: add --contiguous to time-based rules where needed

2020-05-12 Thread Yousong Zhou
On Wed, 13 May 2020 at 00:39, Philip Prindeville wrote: > > > > > On May 12, 2020, at 7:08 AM, Yousong Zhou wrote: > > > > On Sat, 2 May 2020 at 03:21, Philip Prindeville > > wrote: > >> > >> From: Philip Prindeville > >> > >&g

Re: [OpenWrt-Devel] [PATCH 1/1] firewall3: add --contiguous to time-based rules where needed

2020-05-12 Thread Yousong Zhou
On Sat, 2 May 2020 at 03:21, Philip Prindeville wrote: > > From: Philip Prindeville > > If the start_time > stop_time on a rule, then the --contiguous arg > should be included in the rule. It seems that start_time >= stop_time has its defined meaning in xt_time module. Better add another uci

Re: [OpenWrt-Devel] [PATCH] treewide: 5.4: move WATCHDOG_CORE symbol into generic

2020-03-17 Thread Yousong Zhou
On Tue, 17 Mar 2020 at 17:01, Petr Štetiar wrote: > > WATCHDOG_CORE config symbol provides driver/framework for all watchdog > timer drivers and gives them the /dev/watchdog interface (and later also > the sysfs interface). > > WATCHDOG_CORE config symbol was changed from bool to tristate in v5.2

Re: [PATCH] uhttpd: Increase default certificate validate from 2 to 10 years

2020-09-02 Thread Yousong Zhou
On Wed, 2 Sep 2020 at 01:32, Hauke Mehrtens wrote: > > On 9/1/20 12:45 AM, Yousong Zhou wrote: > > It's worth mentioning that recent versions of macos since 10.15 have a > > restriction on certificate validity period, self-signed or not. It's > > a strong restric

Re: [PATCH] uhttpd: Increase default certificate validate from 2 to 10 years

2020-08-31 Thread Yousong Zhou
On Tue, 1 Sep 2020 at 06:45, Yousong Zhou wrote: > > It's worth mentioning that recent versions of macos since 10.15 have a > restriction on certificate validity period, self-signed or not. It's > a strong restriction that the browser ui will have no buttons or knobs > to bypass

Re: [PATCH] uhttpd: Increase default certificate validate from 2 to 10 years

2020-08-31 Thread Yousong Zhou
It's worth mentioning that recent versions of macos since 10.15 have a restriction on certificate validity period, self-signed or not. It's a strong restriction that the browser ui will have no buttons or knobs to bypass the certificate validation, rendering such sites inaccessible. I remembered

[PATCH 3/7] netfilter.mk: add version conditional for nf_nat_ipv4,6

2020-10-13 Thread Yousong Zhou
The upstream linux commit is 3bf195ae ("netfilter: nat: merge nf_nat_ipv4,6 into nat core"). It was included since linux 5.1 Signed-off-by: Yousong Zhou --- include/netfilter.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/netfilter.mk b/include/ne

[PATCH 6/7] netfilter.mk: add version conditional for CONFIG_NF_CT_PROTO_GRE

2020-10-13 Thread Yousong Zhou
moment has no prompt and can only be selected by NF_CONNTRACK_PPTP Fixes: FS#2990 (partial) Ref: https://bugs.openwrt.org/index.php?do=details_id=2990 Signed-off-by: Tony Ambardar [note that the option now can not be enabled on its own] Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2

[PATCH 5/7] netfilter.mk: add version conditional around nf_nat_redirect mod

2020-10-13 Thread Yousong Zhou
d by other kconfig options] Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/netfilter.mk b/include/netfilter.mk index 3c217db106..e5ba3b366e 100644 --- a/include/netfilter.mk +++ b/include/netfilter.mk @@ -184,7 +184,7

[PATCH 2/7] netfilter.mk: use CONFIG_NETFILTER_XT_TARGET_REDIRECT

2020-10-13 Thread Yousong Zhou
CONFIG_IP_NF_TARGET_REDIRECT is a compat option since upstream commit 2cbc78a2 ("netfilter: combine ipt_REDIRECT and ip6t_REDIRECT"). That happened since linux 3.10 Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 7/7] netfilter.mk: add version conditional around CONFIG_NF_NAT_PROTO_GRE

2020-10-13 Thread Yousong Zhou
It was removed in upstream linux commit faec18db ("netfilter: nat: remove l4proto->manip_pkt"). This happened since linux 5.1 Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/netfilter.mk b/include

[PATCH 1/7] netfilter.mk: use CONFIG_NETFILTER_XT_TARGET_MASQUERADE

2020-10-13 Thread Yousong Zhou
CONFIG_IP_NF_TARGET_MASQUERADE and its counterpart CONFIG_IP6_NF_TARGET_MASQUERADE are "backwards-compat option for the user's convenience" Related commit d22c1755 ("netfilter: fix NAT packaging with kernels 5.2+") Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2 +

[PATCH 4/7] generic: 5.4: make nf nat masquerade in unset state by default

2020-10-13 Thread Yousong Zhou
e selected by CONFIG_NETFILTER_XT_TARGET_MASQUERADE introduced still later in 5.2. Signed-off-by: Yousong Zhou --- target/linux/generic/config-5.4 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/linux/generic/config-5.4 b/target/linux/generic/config-5.4 index aa3fbded3b..

[PATCH 0/7] netfilter: kconfig symbol updates

2020-10-13 Thread Yousong Zhou
can only be enabled when selected by others Tony Ambardar (1): netfilter.mk: add version conditional for CONFIG_NF_CT_PROTO_GRE Yousong Zhou (6): netfilter.mk: use CONFIG_NETFILTER_XT_TARGET_MASQUERADE netfilter.mk: use CONFIG_NETFILTER_XT_TARGET_REDIRECT netfilter.mk: add version

Re: Dnssec is never enabled on recent master

2020-09-24 Thread Yousong Zhou
On Tue, 22 Sep 2020 at 19:00, Sami Olmari wrote: > > This commit > https://github.com/openwrt/openwrt/commit/064dc1e81bc85f6ef8becc38854292853a59d2c2 > breaks all dnssec, it will never get enabled despite /etc/config/dhcp > enabling it. Reverting this commit made dnssec to work again. So this >

Re: [PATCH] busybox: fix fwmark and add fwmask support to ip rule

2020-08-03 Thread Yousong Zhou
On Tue, 4 Aug 2020 at 06:58, Rui Salvaterra wrote: > > BusyBox ip (rule) applet supports fwmark for policy routing (albeit through > the > old and deprecated RTA_PROTOINFO message attribute), but fwmask is completely > unsupported. For this reason, mwan3 depends on ip(-tiny), which compiles to >

[PATCH] dnsmasq: abort when dnssec requested but not available

2020-08-04 Thread Yousong Zhou
r (unlikely but less so ;) So this is just being proactive. on/off choices with uci option "dnssec" are still available like before Link: https://github.com/openwrt/openwrt/pull/3265#issuecomment-667795302 Signed-off-by: Yousong Zhou --- package/network/services/dnsmasq/Makefile

Re: [PATCH] kernel: Move CONFIG_IONIC to generic kernel config

2020-08-09 Thread Yousong Zhou
On Mon, 10 Aug 2020 at 00:17, Hauke Mehrtens wrote: > > It is deactivated everywhere, just set this in the generic config. > > Signed-off-by: Hauke Mehrtens Acked-by: Yousong Zhou Regards, yousong ___ openwrt-devel

Re: [PATCH] malta: Refresh kernel configuration

2020-08-09 Thread Yousong Zhou
a/be boots fine with this applied, so I guess this line is about mips64. > > Signed-off-by: Hauke Mehrtens Tested-By: Yousong Zhou Acked-By: Yousong Zhou Regards, yousong > --- > target/linux/malta/be/config-default | 8 > target/linux/malta/be64/config-default | 7

Re: [PATCH] toolchain: binutils: Fix typo in patch for MIPS64

2020-08-09 Thread Yousong Zhou
lchain/binutils: Add binutils 2.34") > Signed-off-by: Hauke Mehrtens Acked-by: Yousong Zhou Regards, yousong > --- > .../2.34/500-Change-default-emulation-for-mips64-linux.patch| 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git &g

[PATCH firewall3] zones: apply tcp mss clamping also on ingress path

2020-07-22 Thread Yousong Zhou
Fixes FS#3231 Signed-off-by: Yousong Zhou --- zones.c | 8 1 file changed, 8 insertions(+) diff --git a/zones.c b/zones.c index 68b02ab..d5e756c 100644 --- a/zones.c +++ b/zones.c @@ -580,6 +580,14 @@ print_interface_rule(struct fw3_ipt_handle *handle, struct fw3_state *state

Re: [PATCH firewall3] zones: apply tcp mss clamping also on ingress path

2020-07-23 Thread Yousong Zhou
Hi Jo, On Thu, 23 Jul 2020 at 14:31, Jo-Philipp Wich wrote: > > Hi Yousong, > > > On 7/23/20 6:05 AM, Yousong Zhou wrote: > > Fixes FS#3231 > > > > Signed-off-by: Yousong Zhou > > --- > > zones.c | 8 > > 1 file changed, 8 insertions(

Re: [PATCHv2] libunwind: update to 1.4.0

2020-07-28 Thread Yousong Zhou
PKG_HASH:=43997a3939b6ccdf2f669b50fdb8a4d3205374728c2923ddc2354c65260214f8 > -PKG_FIXUP:=autoreconf > -PKG_INSTALL:=1 > +PKG_HASH:=df59c931bd4d7ebfd83ee481c943edf015138089b8e50abed8d9c57ba9338435 > > +PKG_MAINTAINER:=Yousong Zhou > PKG_LICENSE:=X11 > PKG_LICENSE_FILES:=LICENSE > PKG_CPE_ID:=cpe:/a:libunwind_project:

Re: [PATCHv2] libunwind: update to 1.4.0

2020-07-28 Thread Yousong Zhou
On Wed, 29 Jul 2020 at 11:56, Rosen Penev wrote: > > On Tue, Jul 28, 2020 at 6:57 PM Yousong Zhou wrote: > > > > On Wed, 29 Jul 2020 at 04:29, Rosen Penev wrote: > > > > > > Cleanup Makefile for consistency with other ones. > > > > > >

Re: [PATCH 3/3] treewide: switch to HTTPS by default

2020-07-27 Thread Yousong Zhou
On Mon, 27 Jul 2020 at 17:03, Petr Štetiar wrote: > > Henrique de Moraes Holschuh [2020-07-24 13:02:30]: > > > On 24/07/2020 11:29, Petr Štetiar wrote: > > > As there is now WolfSSL included by default due to SAE/WPA3 we can > > > finally switch to TLS/SSL in other parts as well. > > > > >

Re: [PATCH v2 firewall3] zones: apply tcp mss clamping also on ingress path

2020-07-26 Thread Yousong Zhou
On Fri, 24 Jul 2020 at 23:41, Baptiste Jonglez wrote: > > Hi, > > On 24-07-20, Yousong Zhou wrote: > > Fixes FS#3231 > > It looks like this bug also affects 18.06 and 19.07, so the fix should > probably be backported. > Done. For the record, i backported it as patc

[PATCH v2 firewall3] zones: apply tcp mss clamping also on ingress path

2020-07-23 Thread Yousong Zhou
Fixes FS#3231 Signed-off-by: Yousong Zhou --- zones.c | 8 1 file changed, 8 insertions(+) diff --git a/zones.c b/zones.c index 68b02ab..d45077a 100644 --- a/zones.c +++ b/zones.c @@ -580,6 +580,14 @@ print_interface_rule(struct fw3_ipt_handle *handle, struct fw3_state *state

Re: [PATCH] kernel: add module for tcp-hybla congestion control algorithm

2020-12-23 Thread Yousong Zhou
On Wed, 23 Dec 2020 at 20:09, Hauke Mehrtens wrote: > > On 12/23/20 8:36 AM, Yousong Zhou wrote: > > Just the module and no default sysctl conf file is provided > > > > Ref: https://forum.openwrt.org/t/20-xx-tcp-hybla/83076 > > Signed-off-by: Yousong Zhou >

[PATCH v2 1/4] kernel: remove target specific setting of CONFIG_TCP_CONG_ADVANCED

2020-12-23 Thread Yousong Zhou
tcp-bbr do not have to set it on every occasion Signed-off-by: Yousong Zhou --- target/linux/layerscape/armv7/config-5.4 | 1 - target/linux/layerscape/armv8_64b/config-5.4 | 1 - target/linux/zynq/config-5.4 | 1 - 3 files changed, 3 deletions(-) diff --git a/target/linux/

[PATCH v2 4/4] kmod-tcp-hybla: new module for hybla congestion control algorithm

2020-12-23 Thread Yousong Zhou
Just the module and no default sysctl conf file is provided Link: https://forum.openwrt.org/t/20-xx-tcp-hybla/83076 Signed-off-by: Yousong Zhou --- package/kernel/linux/modules/netsupport.mk | 18 ++ 1 file changed, 18 insertions(+) diff --git a/package/kernel/linux/modules

[PATCH v2 2/4] kmod-tcp-bbr: leave CONFIG_TCP_CONG_ADVANCED to target config

2020-12-23 Thread Yousong Zhou
Since generic has the option set to y and other targets now inherit that choice, there is no behaviour change Signed-off-by: Yousong Zhou --- package/kernel/linux/modules/netsupport.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/kernel/linux/modules

[PATCH v2 0/4] add tcp hybla congestion control algorithm

2020-12-23 Thread Yousong Zhou
ike kmod-tcp-bbr, it should not affect users of default build and config v2 <- v1 - Use CONFIG_TCP_CONG_ADVANCED=y in generic config - Use AutoProbe instead of AutoLoad with custom prio order - Existing kmod-tcp-bbr was changed to align with above Yousong Zhou (4): kernel: remove targ

[PATCH v2 3/4] kmod-tcp-bbr: use AutoProbe

2020-12-23 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/kernel/linux/modules/netsupport.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index 958b510015..d287e46270 100644 --- a/package/kernel/linux

[PATCH] pkg_hash: pkg_hash_check_unresolved: fix segfault

2020-12-24 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- libopkg/pkg_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopkg/pkg_hash.c b/libopkg/pkg_hash.c index 879c0ec..dbed3fe 100644 --- a/libopkg/pkg_hash.c +++ b/libopkg/pkg_hash.c @@ -263,7 +263,7 @@ pkg_hash_check_unresolved(pkg_t

Re: [PATCH] build: replace which with Bash command built-in

2020-12-22 Thread Yousong Zhou
On Tue, 22 Dec 2020 at 17:51, Petr Štetiar wrote: > > `which` utility is not shipped by default for example on recent Arch > Linux and then any steps relying on its presence fails, like for example > following Python3 prereq build check: > > $ python3 --version > Python 3.9.1 > > $ make >

[PATCH] kernel: add module for tcp-hybla congestion control algorithm

2020-12-22 Thread Yousong Zhou
Just the module and no default sysctl conf file is provided Ref: https://forum.openwrt.org/t/20-xx-tcp-hybla/83076 Signed-off-by: Yousong Zhou --- package/kernel/linux/modules/netsupport.mk | 20 1 file changed, 20 insertions(+) diff --git a/package/kernel/linux/modules

[PATCH v2 10/10] x86: upgrade: make code comment appear as log lines

2020-11-09 Thread Yousong Zhou
table from bootdisk... == upgrade: Extract boot sector from the image 37+26 records in 37+26 records out == upgrade: Reading partition table from image... Signed-off-by: Yousong Zhou --- target/linux/x86/base-files/lib/upgrade/platform.sh | 6 ++ 1 file changed, 2 insertions(+), 4

[PATCH v2 05/10] base-files: upgrade: fwtool.sh: rewording logs

2020-11-09 Thread Yousong Zhou
The intent is to make it sound more like info level message, not some error like "404 not found". x86 target at the moment makes image with only signature but no metadata (ref commit f8141216 "x86: append metadata to combined images"). Signed-off-by: Yousong Zhou --- pack

[PATCH v2 01/10] base-files: upgrade: log with date prefix

2020-11-09 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/common.sh | 2 +- package/base-files/files/lib/upgrade/stage2| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade

[PATCH v2 03/10] base-files: upgrade: add get_image_dd()

2020-11-09 Thread Yousong Zhou
This is mainly to handle stderr message "Broken pipe", "F+P records in/out" by common pattern "xcat | dd .." Ref: https://bugs.openwrt.org/index.php?do=details_id=3140 Reported-by: Philip Prindeville Signed-off-by: Yousong Zhou --- package/base-files/files/lib/u

Re: [PATCH v2 03/10] base-files: upgrade: add get_image_dd()

2020-11-09 Thread Yousong Zhou
On Tue, 10 Nov 2020 at 13:35, Philip Prindeville wrote: > > Comments… > > > > On Nov 9, 2020, at 7:22 PM, Yousong Zhou wrote: > > > > This is mainly to handle stderr message "Broken pipe", "F+P records > > in/out" by common pattern "

[PATCH v2 07/10] base-files: bump PKG_RELEASE

2020-11-09 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index f63c4db533..b546eb7e0b 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile

[PATCH v2 00/10] sysupgrade: reword and organize log lines

2020-11-09 Thread Yousong Zhou
pv shared memory for cpu 0 [ 38.519259] reboot: Restarting system [ 38.523725] reboot: machine restart Yousong Zhou (10): base-files: upgrade: log with date prefix base-files: upgrade: use stdin redirection to replace cat command base-files: upgrade: add get_image_dd() base-fil

[PATCH v2 06/10] base-files: upgrade: stage2: rework log lines

2020-11-09 Thread Yousong Zhou
- Use common v function when possible - Write log lines to stderr when using echo Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/stage2 | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/base-files/files/lib/upgrade/stage2 b/package

[PATCH v2 02/10] base-files: upgrade: use stdin redirection to replace cat command

2020-11-09 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index c4947e4624..e12dfc9678 100644 --- a/package

[PATCH v2 08/10] x86: upgrade: use v function for writting logs

2020-11-09 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- .../linux/x86/base-files/lib/upgrade/platform.sh | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target/linux/x86/base-files/lib/upgrade/platform.sh b/target/linux/x86/base-files/lib/upgrade/platform.sh index 1bcd492dd7

[PATCH v2 04/10] base-files: upgrade: fwtool.sh: use v for log lines

2020-11-09 Thread Yousong Zhou
This will have at least the following effects - Log lines will have common prefix - They will be output to stderr instead of stdout Signed-off-by: Yousong Zhou --- .../base-files/files/lib/upgrade/fwtool.sh| 24 +-- 1 file changed, 12 insertions(+), 12 deletions(-) diff

[PATCH v2 09/10] x86: upgrade: use get_image_dd

2020-11-09 Thread Yousong Zhou
Ref: https://bugs.openwrt.org/index.php?do=details_id=3140 Reported-by: Philip Prindeville Signed-off-by: Yousong Zhou --- target/linux/x86/base-files/lib/upgrade/platform.sh | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/linux/x86/base-files/lib/upgrade

[PATCH v3 04/11] base-files: upgrade: add get_image_dd()

2020-11-10 Thread Yousong Zhou
This is mainly to handle stderr message "Broken pipe", "F+P records in/out" by common pattern "xcat | dd .." Ref: https://bugs.openwrt.org/index.php?do=details_id=3140 Reported-by: Philip Prindeville Signed-off-by: Yousong Zhou --- package/base-files/fi

[PATCH v3 01/11] base-files: upgrade: log with date prefix

2020-11-10 Thread Yousong Zhou
And log to stderr Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/common.sh | 2 +- package/base-files/files/lib/upgrade/stage2| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files

[PATCH v3 03/11] base-files: upgrade: use stdin redirection to replace cat command

2020-11-10 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 0f25199365..5eb7b23a83 100644 --- a/package

[PATCH v3 11/11] x86: upgrade: make code comment appear as log lines

2020-11-10 Thread Yousong Zhou
from image... Signed-off-by: Yousong Zhou --- target/linux/x86/base-files/lib/upgrade/platform.sh | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/linux/x86/base-files/lib/upgrade/platform.sh b/target/linux/x86/base-files/lib/upgrade/platform.sh index 0b54caea29..

[PATCH v3 08/11] base-files: bump PKG_RELEASE

2020-11-10 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index f63c4db533..b546eb7e0b 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile

Re: [PATCH v2 10/10] x86: upgrade: make code comment appear as log lines

2020-11-10 Thread Yousong Zhou
On Tue, 10 Nov 2020 at 19:56, Adrian Schmutzler wrote: > > Hi, > > > -Original Message- > > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > > On Behalf Of Yousong Zhou > > Sent: Dienstag, 10. November 2020 03:22 > > To:

[PATCH v3 02/11] base-files: upgrade: add vn and variants

2020-11-10 Thread Yousong Zhou
To be used with in the following pattern vn "Remaining: " for p in $xx; do _vn "$p" done _v Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/common.sh | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/package/

[PATCH v3 07/11] base-files: upgrade: stage2: use v for log lines

2020-11-10 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/stage2 | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package/base-files/files/lib/upgrade/stage2 b/package/base-files/files/lib/upgrade/stage2 index 211a3f4b33..c7629c383f 100755

[PATCH v3 09/11] x86: upgrade: use v function for writting logs

2020-11-10 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- .../linux/x86/base-files/lib/upgrade/platform.sh | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target/linux/x86/base-files/lib/upgrade/platform.sh b/target/linux/x86/base-files/lib/upgrade/platform.sh index 1bcd492dd7

[PATCH v3 06/11] base-files: upgrade: fwtool.sh: rewording logs

2020-11-10 Thread Yousong Zhou
The intent is to make it sound more like info level message, not some error like "404 not found". x86 target at the moment makes image with only signature but no metadata (ref commit f8141216 "x86: append metadata to combined images"). Signed-off-by: Yousong Zhou --- pack

[PATCH v3 00/11] sysupgrade: reword and organize log lines

2020-11-10 Thread Yousong Zhou
pv shared memory for cpu 0 [ 38.519259] reboot: Restarting system [ 38.523725] reboot: machine restart Yousong Zhou (11): base-files: upgrade: log with date prefix base-files: upgrade: add vn and variants base-files: upgrade: use stdin redirection to replace cat command base-fi

[PATCH v3 10/11] x86: upgrade: use get_image_dd

2020-11-10 Thread Yousong Zhou
Ref: https://bugs.openwrt.org/index.php?do=details_id=3140 Reported-by: Philip Prindeville Signed-off-by: Yousong Zhou --- target/linux/x86/base-files/lib/upgrade/platform.sh | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/linux/x86/base-files/lib/upgrade

[PATCH v3 05/11] base-files: upgrade: fwtool.sh: use v for log lines

2020-11-10 Thread Yousong Zhou
This will have at least the following effects - Log lines will have common prefix - They will be output to stderr instead of stdout Signed-off-by: Yousong Zhou --- .../base-files/files/lib/upgrade/fwtool.sh| 26 +-- 1 file changed, 13 insertions(+), 13 deletions(-) diff

Re: [PATCH v3 00/11] sysupgrade: reword and organize log lines

2020-11-11 Thread Yousong Zhou
On Tue, 10 Nov 2020 at 21:46, Yousong Zhou wrote: > > The series mainly aims to make sysupgrade log output more organized and > less disturbing, in the following aspects > > - Hide "write error: Broken pipe" from cat command and its friends > - Hide "F+P reco

[PATCH 08/10] x86: upgrade: use v function for writting logs

2020-11-03 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- .../linux/x86/base-files/lib/upgrade/platform.sh | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target/linux/x86/base-files/lib/upgrade/platform.sh b/target/linux/x86/base-files/lib/upgrade/platform.sh index 1bcd492dd7

[PATCH 05/10] base-files: upgrade: fwtool.sh: rewording logs

2020-11-03 Thread Yousong Zhou
The intent is to make it sound more like info level message, not some error like "404 not found". x86 target at the moment makes image with only signature but no metadata (ref commit f8141216 "x86: append metadata to combined images"). Signed-off-by: Yousong Zhou --- pack

[PATCH 02/10] base-files: upgrade: use stdin redirection to replace cat command

2020-11-03 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 56daabd778..808fad178b 100644 --- a/package

[PATCH 04/10] base-files: upgrade: fwtool.sh: use v for log lines

2020-11-03 Thread Yousong Zhou
This will have at least the following effects - Log lines will have common prefix - They will be output to stderr instead of stdout Signed-off-by: Yousong Zhou --- .../base-files/files/lib/upgrade/fwtool.sh| 24 +-- 1 file changed, 12 insertions(+), 12 deletions(-) diff

[PATCH 07/10] base-files: bump PKG_RELEASE

2020-11-03 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index c139ea313b..f63c4db533 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile

[PATCH 03/10] base-files: upgrade: add get_image_dd()

2020-11-03 Thread Yousong Zhou
This is mainly to handle error message "Broken pipe" by common pattern "xcat | dd .." Ref: https://bugs.openwrt.org/index.php?do=details_id=3140 Reported-by: Philip Prindeville Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/common.sh | 6 +

Re: [PATCH 01/10] base-files: upgrade: log with prefix

2020-11-03 Thread Yousong Zhou
On Tue, 3 Nov 2020 at 21:02, Adrian Schmutzler wrote: > > Hi, > > > -Original Message- > > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > > On Behalf Of Yousong Zhou > > Sent: Dienstag, 3. November 2020 13:21 > > To: P

[PATCH 10/10] x86: upgrade: make code comment appear as log lines

2020-11-03 Thread Yousong Zhou
table from bootdisk... == upgrade: Extract boot sector from the image 37+26 records in 37+26 records out == upgrade: Reading partition table from image... Signed-off-by: Yousong Zhou --- target/linux/x86/base-files/lib/upgrade/platform.sh | 6 ++ 1 file changed, 2 insertions(+), 4

[PATCH 01/10] base-files: upgrade: log with prefix

2020-11-03 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 2eb26ba44b..56daabd778 100644 --- a/package

[PATCH 06/10] base-files: upgrade: stage2: rework log lines

2020-11-03 Thread Yousong Zhou
- Use common v function when possible - Write log lines to stderr when using echo Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/stage2 | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/base-files/files/lib/upgrade/stage2 b/package

[PATCH 00/10] sysupgrade: reword and organize log lines

2020-11-03 Thread Yousong Zhou
mpleted == upgrade: Rebooting system... umount: can't unmount /dev: Resource busy umount: can't unmount /tmp: Resource busy [ 106.922638] Unregister pv shared memory for cpu 0 [ 106.931062] reboot: Restarting system [ 106.936009] reboot: machine restart Yousong Zhou (10): base

[PATCH 09/10] x86: upgrade: use get_image_dd

2020-11-03 Thread Yousong Zhou
Ref: https://bugs.openwrt.org/index.php?do=details_id=3140 Reported-by: Philip Prindeville Signed-off-by: Yousong Zhou --- target/linux/x86/base-files/lib/upgrade/platform.sh | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target/linux/x86/base-files/lib/upgrade

[PATCH netifd 2/4] proto: rework parse_addr to return struct device_addr

2020-10-20 Thread Yousong Zhou
This is a preparation for the next commit to record address index for the returned device_addr struct Signed-off-by: Yousong Zhou --- proto.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/proto.c b/proto.c index cbc92b1..d80cae0 100644

[PATCH netifd 1/4] build: find and use libnl header dirs

2020-10-20 Thread Yousong Zhou
Name of the libnl .pc file is libnl-3.0.pc This commit is mainly for testing netifd build of usual Linux systems. netifd Makefile in current OpenWrt build system specifies custom cmake flags to point to libnl-tiny Signed-off-by: Yousong Zhou --- CMakeLists.txt | 8 ++-- 1 file changed, 6

[PATCH netifd 3/4] device_addr: record address index as in the blob

2020-10-20 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- interface-ip.h | 1 + proto.c| 2 ++ 2 files changed, 3 insertions(+) diff --git a/interface-ip.h b/interface-ip.h index 5ab9299..b17ad94 100644 --- a/interface-ip.h +++ b/interface-ip.h @@ -127,6 +127,7 @@ struct device_addr { struct vlist_node

[PATCH netifd 4/4] interface: proto_ip: order by address index first

2020-10-20 Thread Yousong Zhou
. More importantly, the ubus output and dnsmasq config generation will be more predictable. Signed-off-by: Yousong Zhou --- interface-ip.c | 11 +-- proto.c| 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/interface-ip.c b/interface-ip.c index f1ed8d3

[PATCH v2 7/8] netfilter.mk: add version conditional around nf_nat_redirect mod

2020-10-21 Thread Yousong Zhou
d by other kconfig options] Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/netfilter.mk b/include/netfilter.mk index 02173d4355..0c29c0bd04 100644 --- a/include/netfilter.mk +++ b/include/netfilter.mk @@ -184,7 +184,7

[PATCH v2 4/8] generic: 5.4: make nf nat masquerade in unset state by default

2020-10-21 Thread Yousong Zhou
e selected by CONFIG_NETFILTER_XT_TARGET_MASQUERADE introduced still later in 5.2. Signed-off-by: Yousong Zhou --- target/linux/generic/config-5.4 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/linux/generic/config-5.4 b/target/linux/generic/config-5.4 index 04fda5de24..

[PATCH v2 1/8] netfilter.mk: use CONFIG_NETFILTER_XT_TARGET_MASQUERADE

2020-10-21 Thread Yousong Zhou
CONFIG_IP_NF_TARGET_MASQUERADE and its counterpart CONFIG_IP6_NF_TARGET_MASQUERADE are "backwards-compat option for the user's convenience" Related commit d22c1755 ("netfilter: fix NAT packaging with kernels 5.2+") Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2 +

[PATCH v2 0/8] netfilter: kconfig symbol updates

2020-10-21 Thread Yousong Zhou
y Ambardar (1): netfilter.mk: add version conditional for CONFIG_NF_CT_PROTO_GRE Yousong Zhou (7): netfilter.mk: use CONFIG_NETFILTER_XT_TARGET_MASQUERADE netfilter.mk: use CONFIG_NETFILTER_XT_TARGET_REDIRECT netfilter.mk: add version conditional for nf_nat_ipv4,6 generic: 5.4: make nf n

[PATCH v2 5/8] netfilter.mk: add version conditional for CONFIG_NF_CT_PROTO_GRE

2020-10-21 Thread Yousong Zhou
moment has no prompt and can only be selected by NF_CONNTRACK_PPTP Fixes: FS#2990 (partial) Ref: https://bugs.openwrt.org/index.php?do=details_id=2990 Signed-off-by: Tony Ambardar [note that the option now can not be enabled on its own] Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2

[PATCH v2 2/8] netfilter.mk: use CONFIG_NETFILTER_XT_TARGET_REDIRECT

2020-10-21 Thread Yousong Zhou
CONFIG_IP_NF_TARGET_REDIRECT is a compat option since upstream commit 2cbc78a2 ("netfilter: combine ipt_REDIRECT and ip6t_REDIRECT"). That happened since linux 3.10 Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 3/8] netfilter.mk: add version conditional for nf_nat_ipv4, 6

2020-10-21 Thread Yousong Zhou
The upstream linux commit is 3bf195ae ("netfilter: nat: merge nf_nat_ipv4,6 into nat core"). It was included since linux 5.1 Signed-off-by: Yousong Zhou --- include/netfilter.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/netfilter.mk b/include/ne

[PATCH v2 6/8] netfilter.mk: add version conditional around CONFIG_NF_NAT_PROTO_GRE

2020-10-21 Thread Yousong Zhou
It was removed in upstream linux commit faec18db ("netfilter: nat: remove l4proto->manip_pkt"). This happened since linux 5.0 Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/netfilter.mk b/include

[PATCH v2 8/8] netfilter.mk: remove now obsolete kmod nf_nat_redirect

2020-10-21 Thread Yousong Zhou
Now that the minimal kernel version maintained here is 4.19 Signed-off-by: Yousong Zhou --- include/netfilter.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/include/netfilter.mk b/include/netfilter.mk index 0c29c0bd04..2c71c07056 100644 --- a/include/netfilter.mk +++ b/include

Re: [RFC] raise gcc/make versions for 20.x

2020-12-16 Thread Yousong Zhou
On Wed, 16 Dec 2020 at 13:11, Petr Štetiar wrote: > > Paul Spooren [2020-12-15 16:26:14]: > > Hi, > > > I've seen two patches for version raises of build requirements and would > > like to know if we should merge them before or after 20.x. > > > > make: 3.81.x -> 4.1.x > > gcc: 4.8 -> 6.x > > >

[PATCH 2/3] netfilter: add kmod-nft-socket

2022-02-24 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2 ++ package/kernel/linux/modules/netfilter.mk | 11 +++ 2 files changed, 13 insertions(+) diff --git a/include/netfilter.mk b/include/netfilter.mk index 751fabef19..83455cc378 100644 --- a/include

[PATCH 3/3] netfilter: add kmod-nft-tproxy

2022-02-24 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/netfilter.mk | 2 ++ package/kernel/linux/modules/netfilter.mk | 11 +++ 2 files changed, 13 insertions(+) diff --git a/include/netfilter.mk b/include/netfilter.mk index 83455cc378..2ef8f83e4c 100644 --- a/include

[PATCH 1/3] netfilter: separate packages for kmod-ipt-socket and kmod-ipt-tproxy

2022-02-24 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/netfilter.mk | 13 package/kernel/linux/modules/netfilter.mk | 39 ++- 2 files changed, 45 insertions(+), 7 deletions(-) diff --git a/include/netfilter.mk b/include/netfilter.mk index 4602a1d412

[RFC 1/2] ath79: add nvmem cell mac-address-ascii support

2022-04-08 Thread Yousong Zhou
This is needed for devices with mac address stored in ascii format, e.g. HiWiFi HC6361 to be ported in the following patch. Signed-off-by: Yousong Zhou --- ...of_net-add-mac-address-ascii-support.patch | 103 ++ .../408-mtd-redboot_partition_scan.patch | 4 +- ...of_net

[RFC 2/2] ath79: port HiWiFi HC6361 from ar71xx

2022-04-08 Thread Yousong Zhou
hsmt image 81b193b95ea5f8e5c30cd62fa9facf275f39233be4fdeed7038f3deed2736156 After the bootstrap step, current build of OpenWrt can be installed there fine. Signed-off-by: Yousong Zhou --- .../linux/ath79/dts/ar9331_hiwifi_hc6361.dts | 156 ++ .../generic/base-files/etc/board.d/01_leds| 4 + target/linux/a

[RFC 0/2] Backport HiWiFi HC6361 support from ar71xx

2022-04-08 Thread Yousong Zhou
ress" was added the the tree. But later the probe will fail with -EPROBE_DEFER because of PHY connect failure. Then on the 2nd call of ag71xx_probe and of_get_mac_address, the incremented address will be found and incremented again Yousong Zhou (2): ath79: add nvmem cell mac-address-ascii support

Re: OpenWrt IKEv2 NAT traversal (or similar) problem

2023-05-31 Thread Yousong Zhou
On Wed, 31 May 2023 at 22:20, Peter Naulls wrote: > > On 5/30/23 21:09, Yousong Zhou wrote: > > On Wed, 31 May 2023 at 06:38, Peter Naulls wrote: > >> > > > > > Is it that your dns traffic is not going through the tunnel? curl > > -vvv should revea

<    2   3   4   5   6   7   8   >