[OpenWrt-Devel] [PATCH] ar71xx: Enable sysupgrade on the Bitmain Antminer S1

2015-06-19 Thread L. D. Pinney
This patch enables sysupgrade for the Bitmain Antminer S1 Signed-off-by: L. D. Pinney --- target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrad

[OpenWrt-Devel] [PATCH] [PATCH] x86: add kmod-acpi-button and kmod-button-hotplug to default packages

2015-06-19 Thread Stefan Hellermann
Since r40909 openwrt can automatically shutdown when you press the power button or try to shutdown a kvm virtual machine. When booting a recent CC-rc2 or trunk image, it doesn't work, as two kernel modules are missing. Add these two kernel modules to the default packages, so users don't need to in

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

2015-06-19 Thread Rafał Miłecki
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. Switching to PTY fixes this issue. Service prints to the "stan

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

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

2015-06-19 Thread Rafał Miłecki
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. We won't get anything from FD until the buffer >> gets filled fully or the service exits. This makes

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

2015-06-19 Thread Jo-Philipp Wich
Hi. > Do you have any other idea? Yes, we create a shared library which calls setbuf(stderr/out, NULL) in an __attribute__((constructor)) function, then specify this library in LD_PRELOAD when exec'ing stdio-relay enabled processes from procd. This is equivalent to the implementation used by the

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. We won't get anything from FD until the bu

Re: [OpenWrt-Devel] jffs2 CRC failed (many times after reboot) - Ralink MT7628

2015-06-19 Thread Baptiste Clenet
2015-06-17 13:09 GMT+02:00 Baptiste Clenet : > > 2015-06-15 10:08 GMT+02:00 Baptiste Clenet : > >> Hello, >> >> The first boot, after flashing a new image, runs fine. >> I edit my /etc/config/network configuration then reboot and I get >> those errors (every reboot): >> >> [8.13] jffs2: jf

[OpenWrt-Devel] [PATCH procd] service: start apps with LD_PRELOAD & lib disabling buffering

2015-06-19 Thread Rafał Miłecki
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. This adds a tiny libsetnbf.so that disables stdout buffering a

Re: [OpenWrt-Devel] [PATCH procd] service: start apps with LD_PRELOAD & lib disabling buffering

2015-06-19 Thread Paul Fertser
Hey Rafał, Rafał Miłecki writes: > + char ld_preload[64] = {}; /* Has to be big enough for all cases */ ... > + if (ld_preload[0]) > + strcat(ld_preload, ":"); > + strcat(ld_preload, "/lib/libpreload-seccomp.so"); I understand C is often like that