Re: [PATCH] tools/fakeroot: update to 1.25.3

2021-01-04 Thread Syrone Wong
>
> This crashes on buildbots with the follow error:
>
> bash: /buildbot/shared-workdir/build/staging_dir/host/bin/autoreconf:
> No such file or directory
>
> You'll need to set autoreconf as a dependency. I think in
> tools/Makefile something like
>
> $(curdir)/fakeroot/compile += $(curdir)/automake/compile

The fix sent to the mailing list:
https://patchwork.ozlabs.org/project/openwrt/patch/20210104081920.1594-1-wong.syr...@gmail.com/

Best Regards,
Syrone Wong

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH] tools: let fakeroot depends on libtool

2021-01-04 Thread Syrone Wong
This fix the buildbots issue when upgrading fakeroot
to 1.25.3.

bash: /buildbot/shared-workdir/build/staging_dir/host/bin/autoreconf:
No such file or directory

Signed-off-by: Syrone Wong 
---
 tools/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/Makefile b/tools/Makefile
index 4bef951c46..3677023aee 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -47,6 +47,7 @@ $(curdir)/cbootimage/compile += $(curdir)/automake/compile
 $(curdir)/cmake/compile += $(curdir)/libressl/compile
 $(curdir)/dosfstools/compile := $(curdir)/autoconf/compile 
$(curdir)/automake/compile
 $(curdir)/e2fsprogs/compile := $(curdir)/libtool/compile
+$(curdir)/fakeroot/compile := $(curdir)/libtool/compile
 $(curdir)/findutils/compile := $(curdir)/bison/compile
 $(curdir)/firmware-utils/compile += $(curdir)/libressl/compile 
$(curdir)/zlib/compile
 $(curdir)/flex/compile := $(curdir)/libtool/compile
-- 
2.29.0.windows.1


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] tools/fakeroot: update to 1.25.3

2021-01-01 Thread Syrone Wong
Thanks for the suggestion, I closed the GitHub PR, please review this
one, although both of them are the same.
I thought not all core developers are following GitHub and the mailing list.

Best Regards,
Syrone Wong

On Sat, Jan 2, 2021 at 6:03 AM Paul Spooren  wrote:
>
> Please don't double post on github and mailing list at the same time.
>
> I'll review this soonish!
> --
>
>
>
> Jan 1, 2021 11:30:39 AM Syrone Wong :
>
> > use PKG_FIXUP:=autoreconf to generate configure
> > 200-hide-dlsym-error.patch deleted due to fixed upstream in another way
> > other patches refreshed to reflect latest changes
> >
> > Signed-off-by: Syrone Wong 
> > ---
> > tools/fakeroot/Makefile   |  7 ++--
> > tools/fakeroot/patches/000-relocatable.patch  |  6 ++--
> > tools/fakeroot/patches/100-portability.patch  | 28 ++--
> > tools/fakeroot/patches/200-disable-doc.patch  | 10 ++
> > .../patches/200-hide-dlsym-error.patch| 32 ---
> > 5 files changed, 26 insertions(+), 57 deletions(-)
> > create mode 100644 tools/fakeroot/patches/200-disable-doc.patch
> > delete mode 100644 tools/fakeroot/patches/200-hide-dlsym-error.patch
> >
> > diff --git a/tools/fakeroot/Makefile b/tools/fakeroot/Makefile
> > index 8c30ee71c3f6..e9daa4b6ad7b 100644
> > --- a/tools/fakeroot/Makefile
> > +++ b/tools/fakeroot/Makefile
> > @@ -5,14 +5,15 @@
> > include $(TOPDIR)/rules.mk
> >
> > PKG_NAME:=fakeroot
> > -PKG_VERSION:=1.24
> > -PKG_RELEASE:=2
> > +PKG_VERSION:=1.25.3
> > +PKG_RELEASE:=1
> >
> > PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
> > PKG_SOURCE_URL:=http://deb.debian.org/debian/pool/main/f/fakeroot
> >
> -PKG_HASH:=2e045b3160370b8ab4d44d1f8d267e5d1d555f1bb522d650e7167b09477266ed
> >
> +PKG_HASH:=8e903683357f7f5bcc31b879fd743391ad47691d4be33d24a76be3b6c21e956c
> > PKG_LICENSE:=GPL-3.0-or-later
> > PKG_LICENSE_FILES:=COPYING
> > +PKG_FIXUP:=autoreconf
> >
> > include $(INCLUDE_DIR)/host-build.mk
> >
> > diff --git a/tools/fakeroot/patches/000-relocatable.patch
> b/tools/fakeroot/patches/000-relocatable.patch
> > index 0408acfa2500..44897c5ab8c7 100644
> > --- a/tools/fakeroot/patches/000-relocatable.patch
> > +++ b/tools/fakeroot/patches/000-relocatable.patch
> > @@ -8,7 +8,7 @@
> > -FAKEROOT_BINDIR=@bindir@
> > +if [ -n "$STAGING_DIR_HOST" ]; then
> > +USEABSLIBPATH=1
> > -+LIB=${STAGING_DIR_HOST}/lib/lib@fakeroot_transformed@@DLSUFFIX@
> > ++
> FAKEROOT_LIB=${STAGING_DIR_HOST}/lib/lib@fakeroot_transformed@@DLSUFFIX@
> > +FAKED=${STAGING_DIR_HOST}/bin/faked
> > +PATHS=
> > +else
> > @@ -16,11 +16,11 @@
> > +FAKEROOT_BINDIR=@bindir@
> >
> > -USEABSLIBPATH=@LDPRELOADABS@
> > --LIB=lib@fakeroot_transformed@@DLSUFFIX@
> > +-FAKEROOT_LIB=lib@fakeroot_transformed@@DLSUFFIX@
> >
> -PATHS=@libdir@:${FAKEROOT_PREFIX}/lib64/libfakeroot:${FAKEROOT_PREFIX}/lib32/libfakeroot
> > -FAKED=${FAKEROOT_BINDIR}/@faked_transformed@
> > +USEABSLIBPATH=@LDPRELOADABS@
> > -+LIB=lib@fakeroot_transformed@@DLSUFFIX@
> > ++FAKEROOT_LIB=lib@fakeroot_transformed@@DLSUFFIX@
> > +
> PATHS=@libdir@:${FAKEROOT_PREFIX}/lib64/libfakeroot:${FAKEROOT_PREFIX}/lib32/libfakeroot
> > +FAKED=${FAKEROOT_BINDIR}/@faked_transformed@
> > +fi
> > diff --git a/tools/fakeroot/patches/100-portability.patch
> b/tools/fakeroot/patches/100-portability.patch
> > index 5713c9e3fe86..315a9e16bfce 100644
> > --- a/tools/fakeroot/patches/100-portability.patch
> > +++ b/tools/fakeroot/patches/100-portability.patch
> > @@ -1,9 +1,9 @@
> > --- a/libfakeroot.c
> > +++ b/libfakeroot.c
> > -@@ -110,8 +110,16 @@
> > - #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT(_STAT_VER,a,b,c,d)
> > +@@ -112,8 +112,16 @@
> >   #define INT_SEND_STAT(a,b) SEND_STAT(a,b,_STAT_VER)
> >   #define INT_SEND_GET_XATTR(a,b) SEND_GET_XATTR(a,b,_STAT_VER)
> > + #define INT_SEND_GET_STAT(a,b) SEND_GET_STAT(a,b)
> > +
> > +/* 10.10 uses id_t in getpriority/setpriority calls, so pretend
> > +   id_t is used everywhere, just happens to be int on some OSes */
> > @@ -17,7 +17,7 @@
> >   #include 
> >   #include 
> >   #include 
> > -@@ -123,7 +131,6 @@
> > +@@ -125,7 +133,6 @@
> >   #include 
> >   #include 
> >   #include 
> > @@ -25,7 +25,7 @@
> >   #ifdef HAVE_SYS_ACL_H
> >   #include 
> >   #endif /* HAVE_SYS_ACL_H */
> > -@@ -1894,7 +1901,7 @@ ssize_t fremovexattr(int fd, const char
> > +@@ -1911,7 

[PATCH] tools/fakeroot: update to 1.25.3

2021-01-01 Thread Syrone Wong
use PKG_FIXUP:=autoreconf to generate configure
200-hide-dlsym-error.patch deleted due to fixed upstream in another way
other patches refreshed to reflect latest changes

Signed-off-by: Syrone Wong 
---
 tools/fakeroot/Makefile   |  7 ++--
 tools/fakeroot/patches/000-relocatable.patch  |  6 ++--
 tools/fakeroot/patches/100-portability.patch  | 28 ++--
 tools/fakeroot/patches/200-disable-doc.patch  | 10 ++
 .../patches/200-hide-dlsym-error.patch| 32 ---
 5 files changed, 26 insertions(+), 57 deletions(-)
 create mode 100644 tools/fakeroot/patches/200-disable-doc.patch
 delete mode 100644 tools/fakeroot/patches/200-hide-dlsym-error.patch

diff --git a/tools/fakeroot/Makefile b/tools/fakeroot/Makefile
index 8c30ee71c3f6..e9daa4b6ad7b 100644
--- a/tools/fakeroot/Makefile
+++ b/tools/fakeroot/Makefile
@@ -5,14 +5,15 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fakeroot
-PKG_VERSION:=1.24
-PKG_RELEASE:=2
+PKG_VERSION:=1.25.3
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
 PKG_SOURCE_URL:=http://deb.debian.org/debian/pool/main/f/fakeroot
-PKG_HASH:=2e045b3160370b8ab4d44d1f8d267e5d1d555f1bb522d650e7167b09477266ed
+PKG_HASH:=8e903683357f7f5bcc31b879fd743391ad47691d4be33d24a76be3b6c21e956c
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_LICENSE_FILES:=COPYING
+PKG_FIXUP:=autoreconf
 
 include $(INCLUDE_DIR)/host-build.mk
 
diff --git a/tools/fakeroot/patches/000-relocatable.patch 
b/tools/fakeroot/patches/000-relocatable.patch
index 0408acfa2500..44897c5ab8c7 100644
--- a/tools/fakeroot/patches/000-relocatable.patch
+++ b/tools/fakeroot/patches/000-relocatable.patch
@@ -8,7 +8,7 @@
 -FAKEROOT_BINDIR=@bindir@
 +if [ -n "$STAGING_DIR_HOST" ]; then
 +USEABSLIBPATH=1
-+LIB=${STAGING_DIR_HOST}/lib/lib@fakeroot_transformed@@DLSUFFIX@
++FAKEROOT_LIB=${STAGING_DIR_HOST}/lib/lib@fakeroot_transformed@@DLSUFFIX@
 +FAKED=${STAGING_DIR_HOST}/bin/faked
 +PATHS=
 +else
@@ -16,11 +16,11 @@
 +FAKEROOT_BINDIR=@bindir@
  
 -USEABSLIBPATH=@LDPRELOADABS@
--LIB=lib@fakeroot_transformed@@DLSUFFIX@
+-FAKEROOT_LIB=lib@fakeroot_transformed@@DLSUFFIX@
 
-PATHS=@libdir@:${FAKEROOT_PREFIX}/lib64/libfakeroot:${FAKEROOT_PREFIX}/lib32/libfakeroot
 -FAKED=${FAKEROOT_BINDIR}/@faked_transformed@
 +USEABSLIBPATH=@LDPRELOADABS@
-+LIB=lib@fakeroot_transformed@@DLSUFFIX@
++FAKEROOT_LIB=lib@fakeroot_transformed@@DLSUFFIX@
 +
PATHS=@libdir@:${FAKEROOT_PREFIX}/lib64/libfakeroot:${FAKEROOT_PREFIX}/lib32/libfakeroot
 +FAKED=${FAKEROOT_BINDIR}/@faked_transformed@
 +fi
diff --git a/tools/fakeroot/patches/100-portability.patch 
b/tools/fakeroot/patches/100-portability.patch
index 5713c9e3fe86..315a9e16bfce 100644
--- a/tools/fakeroot/patches/100-portability.patch
+++ b/tools/fakeroot/patches/100-portability.patch
@@ -1,9 +1,9 @@
 --- a/libfakeroot.c
 +++ b/libfakeroot.c
-@@ -110,8 +110,16 @@
- #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT(_STAT_VER,a,b,c,d)
+@@ -112,8 +112,16 @@
  #define INT_SEND_STAT(a,b) SEND_STAT(a,b,_STAT_VER)
  #define INT_SEND_GET_XATTR(a,b) SEND_GET_XATTR(a,b,_STAT_VER)
+ #define INT_SEND_GET_STAT(a,b) SEND_GET_STAT(a,b)
 +
 +/* 10.10 uses id_t in getpriority/setpriority calls, so pretend
 +   id_t is used everywhere, just happens to be int on some OSes */
@@ -17,7 +17,7 @@
  #include 
  #include 
  #include 
-@@ -123,7 +131,6 @@
+@@ -125,7 +133,6 @@
  #include 
  #include 
  #include 
@@ -25,7 +25,7 @@
  #ifdef HAVE_SYS_ACL_H
  #include 
  #endif /* HAVE_SYS_ACL_H */
-@@ -1894,7 +1901,7 @@ ssize_t fremovexattr(int fd, const char 
+@@ -1911,7 +1918,7 @@ ssize_t fremovexattr(int fd, const char
  }
  #endif /* HAVE_FREMOVEXATTR */
  
@@ -34,7 +34,7 @@
if (fakeroot_disabled)
  return next_setpriority(which, who, prio);
next_setpriority(which, who, prio);
-@@ -2426,3 +2433,19 @@ int sysinfo(int command, char *buf, long
+@@ -2520,3 +2527,19 @@ int sysinfo(int command, char *buf, long
  }
  }
  #endif
@@ -56,16 +56,16 @@
 +#endif
 --- a/wrapfunc.inp
 +++ b/wrapfunc.inp
-@@ -145,7 +145,7 @@ setfsgid;gid_t;(gid_t fsgid);(fsgid)
- #endif /* HAVE_SETFSGID */
+@@ -146,7 +146,7 @@ setfsgid;gid_t;(gid_t fsgid);(fsgid)
  initgroups;int;(const char *user, INITGROUPS_SECOND_ARG group);(user, group)
+ getgroups;int;(int size, gid_t list[]);(size, list)
  setgroups;int;(SETGROUPS_SIZE_TYPE size, const gid_t *list);(size, list)
 -setpriority;int;(int which, int who, int prio);(which, who, prio)
 +setpriority;int;(int which, id_t who, int prio);(which, who, prio)
  #ifdef HAVE_CAPSET
  capset;int;(cap_user_header_t hdrp, const cap_user_data_t datap);(hdrp, datap)
  #endif /* HAVE_CAPSET */
-@@ -197,7 +197,7 @@ fchownat;int;(int dir_fd, const char *pa
+@@ -198,7 +198,7 @@ fchownat;int;(int dir_fd, const char *pa
  mkdirat;int;(int dir_fd, const char *pathname, mode_t mode);(dir_fd, 
pathname, mode)
  #endif /* HAVE_MKDIRAT */
  #ifdef HAVE_OPENAT
@@ -112,17 +112,7 @@
  print "static __inline__ &quo

Re: [OpenWrt-Devel] OpenWrt 19.03 plans

2019-02-25 Thread Syrone Wong
Can someone check https://github.com/openwrt/openwrt/pull/1637?

It works well for GCC 8.3, and should work for 7.4 as well.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] valgrind: enable LTO and refresh patches

2018-11-24 Thread Syrone Wong
> This is probably related to MIP16 being activated, I know that valgrind
> does not support debugging MIPS16, but it is building with that.

I tested it on x86_64 only and don't have any lantiq device. If
someone cannot find
the root cause, feel free to drop this patch as it doesn't affect the
functionality.

Best Regards,
Syrone Wong

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] valgrind: enable LTO and refresh patches

2018-11-23 Thread Syrone Wong
Signed-off-by: Syrone Wong 
---
 package/devel/valgrind/Makefile | 1 +
 package/devel/valgrind/patches/100-fix_configure_check.patch| 2 +-
 package/devel/valgrind/patches/130-fix_arm_arch_detection.patch | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/devel/valgrind/Makefile b/package/devel/valgrind/Makefile
index d3844c2388..a670ba51b5 100644
--- a/package/devel/valgrind/Makefile
+++ b/package/devel/valgrind/Makefile
@@ -105,6 +105,7 @@ CONFIGURE_ARGS += \
--disable-valgrindtk \
--without-included-gettext \
--with-pagesize=4 \
+   --enable-lto
 
 define Package/valgrind/install
$(INSTALL_DIR) $(1)/usr/bin
diff --git a/package/devel/valgrind/patches/100-fix_configure_check.patch 
b/package/devel/valgrind/patches/100-fix_configure_check.patch
index 6ba5fdf1d7..270181ae37 100644
--- a/package/devel/valgrind/patches/100-fix_configure_check.patch
+++ b/package/devel/valgrind/patches/100-fix_configure_check.patch
@@ -1,6 +1,6 @@
 --- a/configure.ac
 +++ b/configure.ac
-@@ -323,7 +323,7 @@ case "${host_os}" in
+@@ -341,7 +341,7 @@ case "${host_os}" in
  # Ok, this is linux. Check the kernel version
  AC_MSG_CHECKING([for the kernel version])
  
diff --git a/package/devel/valgrind/patches/130-fix_arm_arch_detection.patch 
b/package/devel/valgrind/patches/130-fix_arm_arch_detection.patch
index c8d203390c..26291f777b 100644
--- a/package/devel/valgrind/patches/130-fix_arm_arch_detection.patch
+++ b/package/devel/valgrind/patches/130-fix_arm_arch_detection.patch
@@ -6,7 +6,7 @@ Last-Update: 2013-11-30
 
 --- a/configure.ac
 +++ b/configure.ac
-@@ -234,7 +234,7 @@ case "${host_cpu}" in
+@@ -252,7 +252,7 @@ case "${host_cpu}" in
  ARCH_MAX="s390x"
  ;;
  
-- 
2.19.2


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] strace: update to 4.25

2018-11-23 Thread Syrone Wong
Signed-off-by: Syrone Wong 
---
 package/devel/strace/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/devel/strace/Makefile b/package/devel/strace/Makefile
index b1e27f22c3..c4761a4693 100644
--- a/package/devel/strace/Makefile
+++ b/package/devel/strace/Makefile
@@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=strace
-PKG_VERSION:=4.24
+PKG_VERSION:=4.25
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://strace.io/files/$(PKG_VERSION)
-PKG_HASH:=1f4e59fc1edfa2bfb4adf2a748623dc25b105ec79713dd84404199f91b0b0634
+PKG_HASH:=d685f8e65470b7832c3aff60c57ab4459f26ff89f07c10f92bd70ee89efac701
 
 PKG_LICENSE:=BSD-3c
 PKG_LICENSE_FILES:=COPYRIGHT
-- 
2.19.2


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] bzip2: Fix download URL

2018-10-31 Thread Syrone Wong
It's default behavior according to
https://github.com/openwrt/openwrt/blob/master/scripts/download.pl#L263

Best Regards,
Syrone Wong
On Tue, Oct 30, 2018 at 1:18 AM Rosen Penev  wrote:
>
> Main website went down. Use openwrt sources for it.
>
> Matches a similar buildroot commit.
>
> Signed-off-by: Rosen Penev 
> ---
>  package/utils/bzip2/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/utils/bzip2/Makefile b/package/utils/bzip2/Makefile
> index ea2fc76833..9f4b1c4529 100644
> --- a/package/utils/bzip2/Makefile
> +++ b/package/utils/bzip2/Makefile
> @@ -12,7 +12,7 @@ PKG_VERSION:=1.0.6
>  PKG_RELEASE:=4
>
>  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
> -PKG_SOURCE_URL:=http://www.bzip.org/$(PKG_VERSION)
> +PKG_SOURCE_URL:=https://downloads.openwrt.org/sources
>  PKG_HASH:=a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
>  PKG_MAINTAINER:=Steven Barth 
>
> --
> 2.19.1
>
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] cns3xxx + gcc8 = compile error

2018-07-30 Thread Syrone Wong
> /home/kvdp/firmware/builds/generic_cns3xxx/tmp/ccuGhaLZ.s: Assembler
> messages:
> /home/kvdp/firmware/builds/generic_cns3xxx/tmp/ccuGhaLZ.s:401: Error:
> selected processor does not support `sev' in ARM mode

Similar to https://github.com/openwrt/openwrt/pull/1203

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] gcc 8.1 mvebu compilation error

2018-07-22 Thread Syrone Wong
> /home/Ansuel/openwrt/tmp/ccyVnmrs.s:204: Error: selected processor
> does not support `dmb ish' in ARM mode

It looks like you are using malformed compilation flags, please post more info.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] toolchain/gcc: add GCC 8.1.0

2018-07-14 Thread Syrone Wong
> some new warnings triggered by syscall related macros.
>
> - Felix

Do you mean something like https://patchwork.kernel.org/patch/10093317/ ?
It's fixed via https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435

Forgot to mention, to build grub2 for x86_64, there is another patch
should be backported to fix packed-not-aligned error.
https://git.archlinux.org/svntogit/packages.git/tree/trunk/0008-Fix-packed-not-aligned-error-on-GCC-8.patch?h=packages/grub

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] iproute2 4.17.0 build error

2018-07-14 Thread Syrone Wong
> em_ipt.o: In function `em_ipt_print_epot':
> em_ipt.c:(.text.em_ipt_print_epot+0x2e): undefined reference to
> `xtables_init_all'

em_ipt.c gets involved when TC_CONFIG_XT=y, which requires xtables,
while  tc/Makefile doesn't pass flags correctly.

I added a patch to fix this.

--- a/tc/Makefile
+++ b/tc/Makefile
@@ -168,7 +168,7 @@ em_ipset.o: CFLAGS += $$($(PKG_CONFIG) x
 em_ipt.o: CFLAGS += $$($(PKG_CONFIG) xtables --cflags)

 ifeq ($(TC_CONFIG_XT),y)
-  LDFLAGS += $$($(PKG_CONFIG) xtables --libs)
+  LDLIBS += $$($(PKG_CONFIG) xtables --libs)
 endif

 %.yacc.c: %.y

The original one adds `-lxtables` to LDFLAGS instead of LDLIBS. The
compilation succeeds afterward but the packaging
fails.

Package tc is missing dependencies for the following libraries:
libxtables.so.12

I think we'd better exclude em_ipt.c when TC_CONFIG_XT is enabled.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] iproute2 4.17.0 build error

2018-07-14 Thread Syrone Wong
: undefined reference to `xtables_calloc'
em_ipt.o: In function `em_ipt_parse_eopt_argv':
em_ipt.c:(.text.em_ipt_parse_eopt_argv+0x74): undefined reference to
`xtables_init_all'
em_ipt.c:(.text.em_ipt_parse_eopt_argv+0x88): undefined reference to
`xtables_find_match'
em_ipt.c:(.text.em_ipt_parse_eopt_argv+0xbe): undefined reference to
`xtables_calloc'
em_ipt.c:(.text.em_ipt_parse_eopt_argv+0x118): undefined reference to
`xtables_options_xfrm'
em_ipt.c:(.text.em_ipt_parse_eopt_argv+0x186): undefined reference to
`xtables_option_mpcall'
em_ipt.c:(.text.em_ipt_parse_eopt_argv+0x1b5): undefined reference to
`xtables_option_mfcall'
em_ipt.c:(.text.em_ipt_parse_eopt_argv+0x265): undefined reference to
`xtables_free_opts'
em_ipt.o:(.data.em_tc_ipt_globals+0x30): undefined reference to
`xtables_compatible_revision'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:134: tc] Error 1
rm emp_ematch.lex.c
make[3]: *** [Makefile:70: all] Error 2
make[3]: Leaving directory
'/home/wong/github/lede-1/build_dir/target-x86_64_musl/iproute2-full/iproute2-4.17.0'
make[2]: *** [Makefile:192:
/home/wong/github/lede-1/build_dir/target-x86_64_musl/iproute2-full/iproute2-4.17.0/.built]
Error 2
make[2]: Leaving directory
'/home/wong/github/lede-1/package/network/utils/iproute2'
Command exited with non-zero status 2
time: package/network/utils/iproute2/full/compile#17.35#1.89#18.56
make[1]: *** [package/Makefile:109:
package/network/utils/iproute2/compile] Error 2


Best Regards,
Syrone Wong

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] toolchain/gcc: add GCC 8.1.0

2018-07-05 Thread Syrone Wong
> By the way, compiling MIPS targets with gcc 8.1 fails, caused by some
> new warnings triggered by syscall related macros.

When I was testing on x86_64, I updated musl to
84b25160e7e15e7531533a9a6b22d5431d1b7629.
I will test on MIPS when I am free.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] toolchain/gcc: add GCC 8.1.0

2018-07-04 Thread Syrone Wong
> I believe the actual fix is in this commit:
> https://github.com/gcc-mirror/gcc/commit/3fa2798aa887d141d86985240f03e2f3809e7e62
>
> I believe the actual underlying issue is described at the end of
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58139

Should I send a v2 and add this explaination?

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 2/3] rules.mk: replace iremap when using GCC 8

2018-06-22 Thread Syrone Wong
Hi,

LGTM. Any documentation on the hidden config symbols?


Best Regards,
Syrone Wong


On Fri, Jun 22, 2018 at 5:00 PM, Yousong Zhou  wrote:
> On Fri, 22 Jun 2018 at 08:22, Syrone Wong  wrote:
>>
>> HI,
>>
>> I'm not sure whether it's the correct way to deal with the flag. When
>> we add GCC 9 in the future, we have to remember to apply this dirty
>> overwrite hack as well.
>> Please feel free to share more elegant ways.
>
> How about adding a hidden config symbol in
> toolchain/gcc/Config.version that says the how to apply the argument.
>
> yousong

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] toolchain/gcc: add GCC 8.1.0

2018-06-21 Thread Syrone Wong
Hi,

I did some googling without testing.

There is a similar issue here[0], it's caused by an unrecognized flag,
please post the configure log related to the error message to see if
it's the case.

Other posts say gas-preprocessor is a Perl script, it seems the
interpreter is not found when configuring. We may add perl as
PKG_BUILD_DEPENDS.

[0]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200714


Best Regards,
Syrone Wong


On Fri, Jun 22, 2018 at 8:14 AM, Rosen Penev  wrote:
> On Thu, Jun 21, 2018 at 5:09 PM Syrone Wong  wrote:
>>
>> HI,
>>
>> We are using FFmpeg 3.2.10, it was cut from master on 2016-10-26,
>> definitely has no fixes to GCC 8, you may want to check the latest
>> 4.0.1. 4.0.1 was released on 2018-06-16. It is the latest stable
>> FFmpeg release from the 4.0 release branch, which was cut from master
>> on 2018-04-16.
>>
>> You can disable FFmpeg temporarily and make sure other important
>> components are working as expected, e.g. kernel, busybox, procd,
>> firewall3, etc.
> Added FFmpeg maintainer to CC.
>>
>>
>> Best Regards,
>> Syrone Wong
>>
>>
>> On Fri, Jun 22, 2018 at 2:07 AM, Rosen Penev  wrote:
>> > Error while compiling ffmpeg:
>> >
>> > GNU assembler not found, install/update gas-preprocessor
>> >
>> >
>> > On Thu, Jun 21, 2018 at 8:09 AM  wrote:
>> >>
>> >> From: Syrone Wong 
>> >>
>> >> Changes compared to GCC 7.x
>> >>
>> >> 001-revert_register_mode_search.patch dropped
>> >>
>> >> The commit guards comparison via maybe_gt(), while 
>> >> 001-revert_register_mode_search.patch simply ignore
>> >> "GET_MODE_SIZE (mode) > GET_MODE_SIZE (found_mode)", the powerpc issue 
>> >> might be fixed, I'm not pretty sure.
>> >>
>> >> upstream commit: 
>> >> https://github.com/gcc-mirror/gcc/commit/52acb7aee19f4bb33e76819907eff343bf4f42e8
>> >>
>> >> 020-PR-libstdc-81797-Add-.NOTPARALLEL-to-include-Makefil.patch dropped 
>> >> due to already upstream
>> >>
>> >> 100-PR-rtl-optimization-83496.patch dropped due to already upstream
>> >>
>> >> 910-mbsd_multi.patch
>> >> modified to fix ambiguous overloaded inform() call error
>> >>
>> >> gcc/input.h
>> >> header: define UNKNOWN_LOCATION ((source_location) 0)
>> >>
>> >> -inform (0, "someone does not honour COPTS correctly, passed %d 
>> >> times",
>> >> - honour_copts);
>> >> +inform (UNKNOWN_LOCATION, "someone does not honour COPTS 
>> >> correctly, passed %d times",
>> >> + honour_copts);
>> >>
>> >> 940-no-clobber-stamp-bits.patch dropped due to fixed upstream by another 
>> >> way
>> >> upstream commit: 
>> >> https://github.com/gcc-mirror/gcc/commit/87b2d547f8ac9778d66909b8726fe967d1efbc74
>> >>
>> >> 950-cpp_file_path_translation.patch dropped, Both -fmacro-prefix-map and 
>> >> -ffile-prefix-map are added
>> >> to gcc 8.1.0, if I understand it correctly, we should use 
>> >> -fmacro-prefix-map
>> >> usage: -fmacro-prefix-map=@var{old}=@var{new}
>> >> upstream commit: 
>> >> https://github.com/gcc-mirror/gcc/commit/859b51f83662d01e4f158ea9327db9ca37fe70b3
>> >>
>> >> -iremap exists as a flag for a long time, for backward compatibility, I 
>> >> think we should keep the
>> >> variable name unchanged but change its value in rules.mk for gcc 8.x and 
>> >> higher.
>> >>
>> >> Compile and run tested on x86_64
>> >>
>> >> Signed-off-by: Syrone Wong 
>> >> ---
>> >>  toolchain/gcc/Config.in   |   3 +
>> >>  toolchain/gcc/Config.version  |   5 +
>> >>  toolchain/gcc/common.mk   |   4 +
>> >>  .../patches/8.1.0/002-case_insensitive.patch  |  24 +++
>> >>  .../gcc/patches/8.1.0/010-documentation.patch |  35 
>> >>  .../patches/8.1.0/110-Fix-MIPS-PR-84790.patch |  20 +++
>> >>  .../gcc/patches/8.1.0/230-musl_libssp.patch   |  13 ++
>> >>  .../300-mips_Os_cpu_rtx_cost_model.patch  |  21 +++
>> >>  .../8.1.0/800-arm_v5te_no_ldrd_strd.patch |  11 ++
>> >>  .../8.1.0/810-arm-softfloat-libgcc.patch  |  33 
>> >>  .../gcc/patches/8.1.0/820-libgcc_pic.pa

Re: [OpenWrt-Devel] [PATCH 2/3] rules.mk: replace iremap when using GCC 8

2018-06-21 Thread Syrone Wong
HI,

I'm not sure whether it's the correct way to deal with the flag. When
we add GCC 9 in the future, we have to remember to apply this dirty
overwrite hack as well.
Please feel free to share more elegant ways.


Best Regards,
Syrone Wong


On Thu, Jun 21, 2018 at 11:08 PM,   wrote:
> From: Syrone Wong 
>
> The original -iremap is replaced by -fmacro-prefix-map in GCC 8
>
> Signed-off-by: Syrone Wong 
> ---
>  rules.mk | 4 
>  1 file changed, 4 insertions(+)
>
> diff --git a/rules.mk b/rules.mk
> index a97b2d2155..8eb8e21a7e 100644
> --- a/rules.mk
> +++ b/rules.mk
> @@ -141,6 +141,10 @@ endif
>
>  ifeq ($(or 
> $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_GCC_VERSION_4_8),$(CONFIG_TARGET_uml)),)
>iremap = -iremap$(1):$(2)
> +  # just overwrite iremap for GCC 8.1 and higher to keep backward 
> compatibility
> +  ifeq ($(CONFIG_GCC_VERSION_8),y)
> +iremap = -fmacro-prefix-map=$(1)=$(2)
> +  endif
>  endif
>
>  PACKAGE_DIR:=$(BIN_DIR)/packages
> --
> 2.17.1
>

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 3/3] package: ignore some new errors introduced by GCC 8

2018-06-21 Thread Syrone Wong
Hi,

I definitely agree we should fix errors, this commit is to bypass
warnings and see if other important components are working well, e.g.
no kernel panic,
busybox is functional, etc. Others can be fixed as the follow-up. It
makes sense to ignore this testing commit.


Best Regards,
Syrone Wong


On Fri, Jun 22, 2018 at 3:15 AM, Mathias Kresin  wrote:
> 21.06.2018 17:08, wong.syr...@gmail.com:
>
>> From: Syrone Wong 
>>
>> Signed-off-by: Syrone Wong 
>> ---
>>   package/network/config/firewall/Makefile | 2 +-
>>   package/system/procd/Makefile| 2 ++
>>   2 files changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/package/network/config/firewall/Makefile
>> b/package/network/config/firewall/Makefile
>> index 01fea237f3..43673cf777 100644
>> --- a/package/network/config/firewall/Makefile
>> +++ b/package/network/config/firewall/Makefile
>> @@ -40,7 +40,7 @@ define Package/firewall/conffiles
>>   /etc/firewall.user
>>   endef
>>   -TARGET_CFLAGS += -ffunction-sections -fdata-sections
>> +TARGET_CFLAGS += -ffunction-sections -fdata-sections
>> -Wno-error=format-overflow
>>   TARGET_LDFLAGS += -Wl,--gc-sections
>>   CMAKE_OPTIONS += $(if $(CONFIG_IPV6),,-DDISABLE_IPV6=1)
>>   diff --git a/package/system/procd/Makefile
>> b/package/system/procd/Makefile
>> index 5971e0293d..c47ff23352 100644
>> --- a/package/system/procd/Makefile
>> +++ b/package/system/procd/Makefile
>> @@ -37,6 +37,8 @@ endif
>>   CMAKE_OPTIONS += -DEARLY_PATH="$(TARGET_INIT_PATH)"
>>   TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
>>   +TARGET_CFLAGS += -Wno-error=format-truncation
>> +
>>   define Package/procd
>> SECTION:=base
>> CATEGORY:=Base system
>
>
> NAK.
>
> Please fix the errors instead of hiding the warning. Both packages are
> OpenWrt specific ones. Shouldn't be that difficult to get the fixes applied.
>
> Mathias
>

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] toolchain/gcc: add GCC 8.1.0

2018-06-21 Thread Syrone Wong
HI,

We are using FFmpeg 3.2.10, it was cut from master on 2016-10-26,
definitely has no fixes to GCC 8, you may want to check the latest
4.0.1. 4.0.1 was released on 2018-06-16. It is the latest stable
FFmpeg release from the 4.0 release branch, which was cut from master
on 2018-04-16.

You can disable FFmpeg temporarily and make sure other important
components are working as expected, e.g. kernel, busybox, procd,
firewall3, etc.


Best Regards,
Syrone Wong


On Fri, Jun 22, 2018 at 2:07 AM, Rosen Penev  wrote:
> Error while compiling ffmpeg:
>
> GNU assembler not found, install/update gas-preprocessor
>
>
> On Thu, Jun 21, 2018 at 8:09 AM  wrote:
>>
>> From: Syrone Wong 
>>
>> Changes compared to GCC 7.x
>>
>> 001-revert_register_mode_search.patch dropped
>>
>> The commit guards comparison via maybe_gt(), while 
>> 001-revert_register_mode_search.patch simply ignore
>> "GET_MODE_SIZE (mode) > GET_MODE_SIZE (found_mode)", the powerpc issue might 
>> be fixed, I'm not pretty sure.
>>
>> upstream commit: 
>> https://github.com/gcc-mirror/gcc/commit/52acb7aee19f4bb33e76819907eff343bf4f42e8
>>
>> 020-PR-libstdc-81797-Add-.NOTPARALLEL-to-include-Makefil.patch dropped due 
>> to already upstream
>>
>> 100-PR-rtl-optimization-83496.patch dropped due to already upstream
>>
>> 910-mbsd_multi.patch
>> modified to fix ambiguous overloaded inform() call error
>>
>> gcc/input.h
>> header: define UNKNOWN_LOCATION ((source_location) 0)
>>
>> -inform (0, "someone does not honour COPTS correctly, passed %d 
>> times",
>> - honour_copts);
>> +inform (UNKNOWN_LOCATION, "someone does not honour COPTS correctly, 
>> passed %d times",
>> + honour_copts);
>>
>> 940-no-clobber-stamp-bits.patch dropped due to fixed upstream by another way
>> upstream commit: 
>> https://github.com/gcc-mirror/gcc/commit/87b2d547f8ac9778d66909b8726fe967d1efbc74
>>
>> 950-cpp_file_path_translation.patch dropped, Both -fmacro-prefix-map and 
>> -ffile-prefix-map are added
>> to gcc 8.1.0, if I understand it correctly, we should use -fmacro-prefix-map
>> usage: -fmacro-prefix-map=@var{old}=@var{new}
>> upstream commit: 
>> https://github.com/gcc-mirror/gcc/commit/859b51f83662d01e4f158ea9327db9ca37fe70b3
>>
>> -iremap exists as a flag for a long time, for backward compatibility, I 
>> think we should keep the
>> variable name unchanged but change its value in rules.mk for gcc 8.x and 
>> higher.
>>
>> Compile and run tested on x86_64
>>
>> Signed-off-by: Syrone Wong 
>> ---
>>  toolchain/gcc/Config.in   |   3 +
>>  toolchain/gcc/Config.version  |   5 +
>>  toolchain/gcc/common.mk   |   4 +
>>  .../patches/8.1.0/002-case_insensitive.patch  |  24 +++
>>  .../gcc/patches/8.1.0/010-documentation.patch |  35 
>>  .../patches/8.1.0/110-Fix-MIPS-PR-84790.patch |  20 +++
>>  .../gcc/patches/8.1.0/230-musl_libssp.patch   |  13 ++
>>  .../300-mips_Os_cpu_rtx_cost_model.patch  |  21 +++
>>  .../8.1.0/800-arm_v5te_no_ldrd_strd.patch |  11 ++
>>  .../8.1.0/810-arm-softfloat-libgcc.patch  |  33 
>>  .../gcc/patches/8.1.0/820-libgcc_pic.patch|  44 +
>>  .../8.1.0/840-armv4_pass_fix-v4bx_to_ld.patch |  28 +++
>>  .../patches/8.1.0/850-use_shared_libgcc.patch |  54 ++
>>  .../patches/8.1.0/851-libgcc_no_compat.patch  |  22 +++
>>  .../patches/8.1.0/870-ppc_no_crtsavres.patch  |  11 ++
>>  .../gcc/patches/8.1.0/881-no_tm_section.patch |  11 ++
>>  .../patches/8.1.0/900-bad-mips16-crt.patch|   9 +
>>  .../gcc/patches/8.1.0/910-mbsd_multi.patch| 146 +++
>>  .../8.1.0/920-specs_nonfatal_getenv.patch |  22 +++
>>  .../8.1.0/930-fix-mips-noexecstack.patch  | 111 
>>  ...ibffi-fix-MIPS-softfloat-build-issue.patch | 168 ++
>>  ...mpilation-when-making-cross-compiler.patch |  67 +++
>>  22 files changed, 862 insertions(+)
>>  create mode 100644 toolchain/gcc/patches/8.1.0/002-case_insensitive.patch
>>  create mode 100644 toolchain/gcc/patches/8.1.0/010-documentation.patch
>>  create mode 100644 toolchain/gcc/patches/8.1.0/110-Fix-MIPS-PR-84790.patch
>>  create mode 100644 toolchain/gcc/patches/8.1.0/230-musl_libssp.patch
>>  create mode 100644 
>> toolchain/gcc/patches/8.1.0/300-mips_Os_cpu_rtx_cost_model.patch
>>  create mode 100644 
>> toolchain/gcc/patches/8.1.0/800-arm_v5te_no_ldrd_strd.patch
>>  create mode 100644 
>> toolchain/gcc/patch

Re: [OpenWrt-Devel] [PATCH 3/5] tools: add iucode-tool

2018-01-17 Thread Syrone Wong
There is another intel ucode generator in Archlinux repo, it seems the
code is more elegant and don't require additional dependency. Do you
have any idea?

https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/intel-ucode


Best Regards,
Syrone Wong


On Thu, Jan 18, 2018 at 3:41 AM, Zoltan HERPAI <wigy...@uid0.hu> wrote:
> Add tool to "compile" Intel microcode files. The tool will be
> compiled for host (to split the microcode.dat) and for target
> (to forcibly reload the microcode or scan the system if required).
>
> Signed-off-by: Zoltan HERPAI <wigy...@uid0.hu>
> ---
>  package/system/iucode-tool/Makefile | 47 
> +
>  1 file changed, 47 insertions(+)
>  create mode 100644 package/system/iucode-tool/Makefile
>
> diff --git a/package/system/iucode-tool/Makefile 
> b/package/system/iucode-tool/Makefile
> new file mode 100644
> index 000..4381a3a
> --- /dev/null
> +++ b/package/system/iucode-tool/Makefile
> @@ -0,0 +1,47 @@
> +#
> +# Copyright (C) 2018 OpenWrt.org
> +#
> +# This is free software, licensed under the GNU General Public License v2.
> +# See /LICENSE for more information.
> +#
> +
> +include $(TOPDIR)/rules.mk
> +
> +PKG_NAME:=iucode-tool
> +PKG_VERSION:=2.2
> +PKG_RELEASE:=1
> +
> +PKG_SOURCE:=iucode-tool_$(PKG_VERSION).tar.xz
> +PKG_SOURCE_URL:=https://gitlab.com/iucode-tool/releases/raw/latest
> +PKG_HASH:=9810daf925b8a9ca244adc4e1916bcab65601c9ebe87e91c2281f78055982971
> +
> +PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
> +
> +PKG_MAINTAINER:=Zoltan HERPAI <wigy...@uid0.hu>
> +PKG_LICENSE:=GPL-2.0
> +
> +PKG_INSTALL:=1
> +
> +include $(INCLUDE_DIR)/package.mk
> +include $(INCLUDE_DIR)/host-build.mk
> +
> +define Package/iucode-tool
> +  SECTION:=utils
> +  CATEGORY:=Base system
> +  URL:=$(PKG_SOURCE_URL)
> +  DEPENDS:=@TARGET_x86
> +  TITLE:=Intel microcode loader
> +endef
> +
> +define Package/iucode-tool/install
> +   $(INSTALL_DIR) $(1)/lib/firmware
> +   $(INSTALL_DIR) $(1)/usr/bin
> +   $(INSTALL_BIN) $(PKG_BUILD_DIR)/iucode_tool $(1)/usr/bin/
> +endef
> +
> +define Host/Install
> +   $(INSTALL_BIN) $(HOST_BUILD_DIR)/iucode_tool 
> $(STAGING_DIR_HOST)/bin/iucode_tool
> +endef
> +
> +$(eval $(call HostBuild))
> +$(eval $(call BuildPackage,iucode-tool))
> --
> 1.9.1
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [LEDE-DEV] Using kdump... persistent logs, etc.

2017-03-02 Thread Syrone Wong
depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)

x86_64 is disabled by default. You may want to enable it yourself. I
don't know why.


Best Regards,
Syrone Wong


On Fri, Mar 3, 2017 at 2:31 PM, Philip Prindeville
<philipp_s...@redfish-solutions.com> wrote:
> I built an x86_64 image and turned on crash logging, and then forced a crash 
> with:
>
> echo c >/proc/sysrq-trigger
>
> it rebooted, but when it did there was nothing in /sys/kernel/debug/ (i.e. no 
> crashlog file).
>
> What am I missing?  Does this not work with x86_64?
>
> -Philip
>
>
>> On Feb 23, 2017, at 10:27 AM, Philip Prindeville 
>> <philipp_s...@redfish-solutions.com> wrote:
>>
>> Thanks for that.
>>
>>
>>> On Feb 22, 2017, at 11:44 PM, Syrone Wong <wong.syr...@gmail.com> wrote:
>>>
>>> According to LEDE's source code:
>>>
>>> config KERNEL_CRASHLOG
>>> bool "Crash logging"
>>> depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)
>>> default y
>>>
>>> https://github.com/lede-project/source/blob/master/config/Config-kernel.in
>>>
>>> It is enabled by default on some targets and will be available at
>>> `/sys/kernel/debug/crashlog` on next boot after crash.
>>>
>>> The implementation detail can be found here:
>>> https://github.com/lede-project/source/blob/master/target/linux/generic/patches-4.9/930-crashlog.patch
>>>
>>>
>>> Best Regards,
>>> Syrone Wong
>>>
>>>
>>> On Thu, Feb 23, 2017 at 10:05 AM, Philip Prindeville
>>> <philipp_s...@redfish-solutions.com> wrote:
>>>> Hi,
>>>>
>>>> Has anyone managed to use kdump with OpenWRT/LEDE?
>>>>
>>>> I have a box which periodically panics, and since /var is a link to /tmp/ 
>>>> there are no persistent logs.  Which reminds me: is it safe to configure a 
>>>> third partition on my CF card, format it as ext3, and mount that as 
>>>> /var/log in /etc/fstab?
>>>>
>>>> And how would I modify the build process if I wanted to add additional 
>>>> partitions?
>>>>
>>>> Thanks,
>>>>
>>>> -Philip
>>>> ___
>>>> openwrt-devel mailing list
>>>> openwrt-devel@lists.openwrt.org
>>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
>>
>> ___
>> Lede-dev mailing list
>> lede-...@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/lede-dev
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Using kdump... persistent logs, etc.

2017-02-22 Thread Syrone Wong
According to LEDE's source code:

config KERNEL_CRASHLOG
  bool "Crash logging"
  depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)
  default y

https://github.com/lede-project/source/blob/master/config/Config-kernel.in

It is enabled by default on some targets and will be available at
`/sys/kernel/debug/crashlog` on next boot after crash.

The implementation detail can be found here:
https://github.com/lede-project/source/blob/master/target/linux/generic/patches-4.9/930-crashlog.patch


Best Regards,
Syrone Wong


On Thu, Feb 23, 2017 at 10:05 AM, Philip Prindeville
<philipp_s...@redfish-solutions.com> wrote:
> Hi,
>
> Has anyone managed to use kdump with OpenWRT/LEDE?
>
> I have a box which periodically panics, and since /var is a link to /tmp/ 
> there are no persistent logs.  Which reminds me: is it safe to configure a 
> third partition on my CF card, format it as ext3, and mount that as /var/log 
> in /etc/fstab?
>
> And how would I modify the build process if I wanted to add additional 
> partitions?
>
> Thanks,
>
> -Philip
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] iptables 1.6

2016-05-19 Thread Syrone Wong
Hi everyone,

I notice someone is trying to get iptables 1.6 working. I disabled
nftables compatible layer and added two new modules into the
corresponding patch[0]. Please note that there may be something wrong
when building with dnsmasq-full which enables conntrack support these
days[1]

[0]:https://github.com/wongsyrone/lede-1/commit/315c6f30ab6879b17d251b5c2b04214b54bbf60f
and 
https://github.com/wongsyrone/lede-1/commit/59a481fe6ae598afdc3b3706d708a121feefd190
[1]:https://github.com/openwrt-mirror/openwrt/commit/7dbc22a8a28ce2baa019f63323e83eefe10944f9

-- 
Best Regards,
Syrone Wong
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel