[OpenWrt-Devel] Netgear R7000 tester needed (serial console recommended)

2015-08-08 Thread Rafał Miłecki
Hi, I'll copy my testing requests from OpenWrt forum post [0]: 2 weeks ago someone on IRC said he has a R7000 with serial console attached and he wants to try OpenWrt. He provided required info and then I added basic R7000 support: https://dev.openwrt.org/changeset/46363/ As it often

Re: [OpenWrt-Devel] [PATCH v2] busybox: lock: implement -n Fail rather than wait

2015-08-07 Thread Rafał Miłecki
On 7 August 2015 at 17:40, Alexander Couzens lyn...@fe80.eu wrote: lock -n is similiar to flock -n. If the lock was already taken, fail with exit code = 1 and write error message to stderr. example: if ! lock -n /tmp/foo ; then echo lock exits. else echo lock was free. But

Re: [OpenWrt-Devel] [PATCHv2 5/7] mac80211/linux-firmware: include firmware for brcmfmac-sdio

2015-08-03 Thread Rafał Miłecki
On 3 August 2015 at 22:59, Hauke Mehrtens ha...@hauke-m.de wrote: On 07/30/2015 06:34 PM, Rafał Miłecki wrote: On 30 July 2015 at 10:52, Daniel Golle dan...@makrotopia.org wrote: @@ -2000,6 +2000,50 @@ endef define KernelPackage/brcmfmac/install $(INSTALL_DIR) $(1)/lib/firmware/brcm

Re: [OpenWrt-Devel] [PATCH 6/6] bcm53xx: R8000 handle PEX8603 switch

2015-07-30 Thread Rafał Miłecki
On 15 July 2015 at 12:11, Ian Kent ra...@themaw.net wrote: On Tue, 2015-07-14 at 18:19 +0200, Rafał Miłecki wrote: On 28 June 2015 at 05:37, Ian Kent ra...@themaw.net wrote: Let me rework this using the bus number as you recommend. I'll repost my updated patch series once I've done

Re: [OpenWrt-Devel] [PATCH] brcm63xx: HG553 buttons support

2015-07-15 Thread Rafał Miłecki
On 15 July 2015 at 07:05, Cezary Jackiewicz cezary.jackiew...@gmail.com wrote: @@ -6,6 +6,25 @@ model = Huawei EchoLife HG553; compatible = huawei,hg553, brcm,bcm6358; + gpio-keys-polled { + compatible = gpio-keys-polled; + #address-cells =

Re: [OpenWrt-Devel] [PATCH V2] brcm63xx: HG553 buttons support

2015-07-15 Thread Rafał Miłecki
On 15 July 2015 at 18:34, Cezary Jackiewicz cezary.jackiew...@gmail.com wrote: This patch adds buttons support for Huawei EchoLife HG553. Changes: - add empty line... - change codes to hexadecimal You usually want to put version comments in the comments part. Having above won't make too much

[OpenWrt-Devel] [PATCH V2 ubox] log: allow filtering messages with a regexp pattern

2015-07-14 Thread Rafał Miłecki
This allows printing/streaming/writing messages matching a specified basic regular expression only. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Improve --help description of the new -e argument. --- log/logread.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions

Re: [OpenWrt-Devel] [PATCH] [brcm47xx] Belkin F7DXXXX (BCM47XX based) support for Linux 3.18

2015-07-14 Thread Rafał Miłecki
On 23 June 2015 at 16:16, Joseph East east...@gmail.com wrote: From d38c8c72b99908d3d9a39bd858d1c76e9864faac Mon Sep 17 00:00:00 2001 From: Joseph East east...@gmail.com Date: Wed, 10 Jun 2015 19:19:26 +0930 Subject: [PATCH] Belkin F7D (BCM47XX based) Support for Linux 3.18 Patchset

Re: [OpenWrt-Devel] [PATCH] [brcm47xx] Belkin F7DXXXX (BCM47XX based) support for Linux 3.18

2015-07-14 Thread Rafał Miłecki
On 23 June 2015 at 16:16, Joseph East east...@gmail.com wrote: From d38c8c72b99908d3d9a39bd858d1c76e9864faac Mon Sep 17 00:00:00 2001 From: Joseph East east...@gmail.com Date: Wed, 10 Jun 2015 19:19:26 +0930 Subject: [PATCH] Belkin F7D (BCM47XX based) Support for Linux 3.18 When sending

Re: [OpenWrt-Devel] [PATCH CC 0/5] ar71xx: backport of support for devolo dLAN devices

2015-07-14 Thread Rafał Miłecki
On 14 July 2015 at 16:05, Günther Kelleter guenther.kelle...@devolo.de wrote: This patch set is a backport of svn commits 46338..46342 from trunk to CC. It adds support for devolo devices: dLAN pro 500 Wireless+ dLAN pro 1200+ WiFi ac There is a nice 1-line script I got from Felix that easily

Re: [OpenWrt-Devel] [PATCH 6/6] bcm53xx: R8000 handle PEX8603 switch

2015-07-14 Thread Rafał Miłecki
On 28 June 2015 at 05:37, Ian Kent ra...@themaw.net wrote: Let me rework this using the bus number as you recommend. I'll repost my updated patch series once I've done that. Hi Ian, Is there any chance you'll find a moment for it anytime soon? It'd be awesome to get R8000 support for CC

Re: [OpenWrt-Devel] [PATCH 3/8] brcm2708: split target config into subtargets

2015-07-14 Thread Rafał Miłecki
On 14 July 2015 at 20:15, Álvaro Fernández Rojas nolt...@gmail.com wrote: Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com And some explanation *why*? I guess it may be obvious for you (and John?) but would be nice to include such info for other ppl :)

Re: [OpenWrt-Devel] NVRAM 32K

2015-07-13 Thread Rafał Miłecki
On 12 May 2015 at 10:25, Hante Meuleman meule...@broadcom.com wrote: The R8000 AP has more than 32K nvram memory. This was an issue for the userspace app nvram. This got fixed at some point, but then it was reverted:

[OpenWrt-Devel] [PATCH ubox] log: allow filtering messages with a regexp pattern

2015-07-12 Thread Rafał Miłecki
This allows printing/streaming/writing messages matching a specified basic regular expression only. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- log/logread.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/log/logread.c b/log/logread.c index 6255408

Re: [OpenWrt-Devel] [PATCH] Add dts patch to enable RFKill and USB Power GPIO Control

2015-07-08 Thread Rafał Miłecki
On 8 July 2015 at 14:04, gwlim alphasp...@gmail.com wrote: --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts This patch doesn't add a patch, but simply modifies DTS files. Your patch subject is

Re: [OpenWrt-Devel] [PATCH] mpc85xx: Enable RFKill and USB Power GPIO Control for WDR4900v1

2015-07-08 Thread Rafał Miłecki
On 8 July 2015 at 17:00, gwlim alphasp...@gmail.com wrote: This patch adds the RFKill GPIO control switch and enables another GPIO to control power supply to USB Ports by emulating an LED GPIO for WDR4900v1. Signed-off-by: Guo Wei Lim alphasp...@gmail.com The patch format looks fine :) The

Re: [OpenWrt-Devel] [PATCH] swconfig: swlib.c: Fix another memleak

2015-07-08 Thread Rafał Miłecki
On 8 July 2015 at 08:21, Alexandru Ardelean ardeleana...@gmail.com wrote: From: Helmut Schaa h...@ocedo.com Missing Signed-off-by ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

Re: [OpenWrt-Devel] [PATCH] swconfig: Split libsw out of swconfig for reuse in other packages

2015-07-08 Thread Rafał Miłecki
On 8 July 2015 at 08:26, Alexandru Ardelean ardeleana...@gmail.com wrote: From: Helmut Schaa h...@ocedo.com Also a bit of an RFC. We use this patch internally. I believe the preferred way of marking patch a RFC is: git format-patch --subject-prefix=PATCH RFC (just for the future) This patch

[OpenWrt-Devel] [PATCH V3] service: if logging start app with LD_PRELOAD lib for line buffering

2015-07-06 Thread Rafał Miłecki
to line buffering and uses this lib for every logging-enabled service started by procd. We don't need any extra change for stderr as it's unbuffered by default. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Use strncat for safety Use line buffering instead of no buffering V3: Use

Re: [OpenWrt-Devel] [PATCH V2 procd] service: start apps with LD_PRELOAD lib for line buffering

2015-07-02 Thread Rafał Miłecki
On 20 June 2015 at 21:42, Rafał Miłecki zaj...@gmail.com 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

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

2015-06-30 Thread Rafał Miłecki
On 30 June 2015 at 08:37, younfan33 younfa...@hotmail.com wrote: From: Tom Deng 2579131...@qq.com Adding support for OYE-0001 Wireless Router. OYE-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.

Re: [OpenWrt-Devel] m25p80: change en25q64 to w25q128

2015-06-30 Thread Rafał Miłecki
On 30 June 2015 at 14:49, Baptiste Clenet bapcle...@gmail.com wrote: I assume that if the size of the binary is too big, OpenWRT doesn't create sysupgrade.bin file. I've seen that the en25q64 is the default flash memory for the Ralink MT7628 board. I'm using the w25q128 instead so I change

Re: [OpenWrt-Devel] [PATCH] linux:generic: mtd backport for Spansion S25FL164K

2015-06-29 Thread Rafał Miłecki
On 30 June 2015 at 01:38, L. D. Pinney ldpin...@gmail.com wrote: Please mark this one rejected... I'll do better next time. Thanks for your patience and guidance. Every new try should also include increased V (like version) number. So the *next* one should be: [PATCH V3] linux:generic: mtd

Re: [OpenWrt-Devel] [PATCH] linux:generic: mtd backport for Spansion S25FL164K

2015-06-29 Thread Rafał Miłecki
On 30 June 2015 at 01:38, L. D. Pinney ldpin...@gmail.com wrote: The space was removed because git apply complainedI'll ignore the complaint. In this case it's alright to have this complain, git just doesn't handle nicely patches adding patches :) Please mark this one rejected... I'll

Re: [OpenWrt-Devel] [PATCH] mtd: spi-nor: Add support for Spansion S25FL164K

2015-06-28 Thread Rafał Miłecki
On 29 June 2015 at 06:36, Rafał Miłecki zaj...@gmail.com wrote: On 29 June 2015 at 05:30, L. D. Pinney ldpin...@gmail.com wrote: It's an 8 MiB flash with 4 KiB erase sectors. Unfortunately this patch from Rafał Miłecki zajec5 at gmail.com hasn't been picked up. I don't pick/backport every

Re: [OpenWrt-Devel] [PATCH] mtd: spi-nor: Add support for Spansion S25FL164K

2015-06-28 Thread Rafał Miłecki
On 29 June 2015 at 05:30, L. D. Pinney ldpin...@gmail.com wrote: It's an 8 MiB flash with 4 KiB erase sectors. Unfortunately this patch from Rafał Miłecki zajec5 at gmail.com hasn't been picked up. I don't pick/backport every (mtd) patch, so: 1) Please drop your complainings from the commit

Re: [OpenWrt-Devel] [PATCH] mtd: spi-nor: Add support for Spansion S25FL164K

2015-06-28 Thread Rafał Miłecki
On 29 June 2015 at 07:00, John Crispin blo...@openwrt.org wrote: On 29/06/2015 06:37, Rafał Miłecki wrote: On 29 June 2015 at 06:36, Rafał Miłecki zaj...@gmail.com wrote: On 29 June 2015 at 05:30, L. D. Pinney ldpin...@gmail.com wrote: It's an 8 MiB flash with 4 KiB erase sectors

Re: [OpenWrt-Devel] [PATCH] [brcm47xx] Belkin F7DXXXX (BCM47XX based) support for Linux 3.18

2015-06-23 Thread Rafał Miłecki
As Hauke noted, whole patch is white space damaged. Please re-send properly. @@ -184,7 +204,7 @@ mtd_fixtrx(const char *mtd, size_t offset) } trx = (struct trx_header *) (buf + offset); - if (trx-magic != STORE32_LE(0x30524448)) { + if (!is_trx_magic(trx-magic)) { Is dropping

Re: [OpenWrt-Devel] [PATCH 6/6] bcm53xx: R8000 handle PEX8603 switch

2015-06-22 Thread Rafał Miłecki
On 22 June 2015 at 10:10, Hauke Mehrtens ha...@hauke-m.de wrote: On 06/22/2015 02:51 AM, Ian Kent wrote: On Sun, 2015-06-21 at 19:19 +0200, Rafał Miłecki wrote: On 10 March 2015 at 04:30, Ian Kent ra...@themaw.net wrote: The Netgear R8000 has a PEX8603 connected to the BCM53012

Re: [OpenWrt-Devel] [PATCH 6/6] bcm53xx: R8000 handle PEX8603 switch

2015-06-21 Thread Rafał Miłecki
On 10 March 2015 at 04:30, Ian Kent ra...@themaw.net wrote: The Netgear R8000 has a PEX8603 connected to the BCM53012 and if it isn't configured during the bus scan the PCI layer goes crazy trying to configure phantom devices. This is kind of magic for me. Hauke: are you able to review this?

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

2015-06-20 Thread Rafał Miłecki
On 20 June 2015 at 13:56, Jo-Philipp Wich j...@openwrt.org wrote: i dont like this idea at all. calling ld-preload on every started app just seems wrong I was the one suggesting the idea since we needed a solution which does not require modification of downstream programs. We could restrict

[OpenWrt-Devel] [PATCH V2 procd] service: start apps with LD_PRELOAD lib for line buffering

2015-06-20 Thread Rafał Miłecki
buffering and uses this lib for every logging-enabled service started by procd. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Use strncat for safety Use line buffering instead of no buffering --- CMakeLists.txt | 7 +++ service/instance.c | 19 ++- service

[OpenWrt-Devel] otrx: musl (?) compiles it as for big endian arch on bcm53xx

2015-06-20 Thread Rafał Miłecki
When compiling otrx packages on bcm53xx the following condition is true: #if __BYTE_ORDER == __BIG_ENDIAN It results in not working otrx app. I suspect it's a regression since switching to musl. Any ideas? -- Rafał ___ openwrt-devel mailing list

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

2015-06-19 Thread Rafał Miłecki
and uses it for every service started by procd. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- CMakeLists.txt | 7 +++ service/instance.c | 12 +++- service/setnbf.c | 6 ++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 service/setnbf.c diff --git

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 yszhou4t...@gmail.com wrote: On 19 June 2015 at 19:34, Rafał Miłecki zaj...@gmail.com 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

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

2015-06-19 Thread Rafał Miłecki
to the standard stdout (no piping) but the messages go (line buffered) to the master FD anyway. It was successfully tested with all 4 variants of stdout and stderr ubus arguments. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- CMakeLists.txt | 2 +- service/instance.c | 35

Re: [OpenWrt-Devel] fixed a ubusd.c segment fault problem

2015-06-18 Thread Rafał Miłecki
oOn 18 June 2015 at 13:18, yangchao yangcha...@live.com wrote: hi gays : this is a patch for ubusd.c Please resend as a proper patch, using text/plain (not text/html), with a proper subject and commit message. See https://dev.openwrt.org/wiki/SubmittingPatches for details. -- Rafał

Re: [OpenWrt-Devel] [PATCH] brcm47xx: drop global description in favour of subtarget ones

2015-06-17 Thread Rafał Miłecki
On 28 May 2015 at 23:43, Rafał Miłecki zaj...@gmail.com wrote: On 28 May 2015 at 23:35, Michael Heimpold m...@heimpold.de wrote: Defining a description in this makefile prevents the subtarget Target/Description sections to appear in menuconfig's help for the subtargets. However, this also

Re: [OpenWrt-Devel] OpenWrt switches to musl by default

2015-06-15 Thread Rafał Miłecki
On 16 June 2015 at 01:31, Jonathan Bennett jbscienc...@gmail.com wrote: Just to clarify, this is only for trunk, not for the CC branch, correct? Read again: in OpenWrt trunk ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

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

2015-06-13 Thread Rafał Miłecki
On 13 June 2015 at 17:31, Arturo Rinaldi art...@doghunter.org wrote: Can i get the exact commit hash and description of the 15.05-rc2 please ? f5c2b51 ralink: add missing symbol -- Rafał ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

Re: [OpenWrt-Devel] [PATCH] b53 kernel memory corruption fix

2015-06-10 Thread Rafał Miłecki
On 9 June 2015 at 11:57, blmink blm...@mink.su wrote: Hi, We usually don't want hi and hello it commit messages ;) this patch fixes kernel memory corruption in b53 driver during device global reset, which causes kernel panic especially on 64bit platforms. There is sth wrong with patch

[OpenWrt-Devel] [PATCH V2 2/2] brcm47xx: extract TRX from image on the fly

2015-06-04 Thread Rafał Miłecki
Extracting TRX to separated file in /tmp/ requires extra RAM which may not be available on some chepaer devices. Instead of that lets pass a proper extracting command to the default_do_upgrade. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Add this patch to show why we need 1/2

[OpenWrt-Devel] [PATCH V2 1/2] base-files: default_do_upgrade: accept forward image extraction command

2015-06-04 Thread Rafał Miłecki
get_image allows passing 2nd argument that is used in a pipe for extracting firmware from a non-native format. By accepting such command in default_do_upgrade we allow platforms to use this helper for vendor specific images. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Slightly document

[OpenWrt-Devel] [PATCH] base-files: default_do_upgrade: accept forward image extraction command

2015-06-03 Thread Rafał Miłecki
get_image allows passing 2nd argument that is used in a pipe for extracting firmware from a non-native format. By accepting such command in default_do_upgrade we allow platforms to use this helper for vendor specific images. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- package/base-files

Re: [OpenWrt-Devel] [PATCH RFC] brcmfmac: register wiphy(s) during module_init

2015-06-01 Thread Rafał Miłecki
On 1 June 2015 at 00:08, Rafał Miłecki zaj...@gmail.com wrote: @@ -440,6 +441,7 @@ static void brcmf_fw_request_nvram_done(const struct firmware *fw, void *ctx) } fwctx-done(fwctx-dev, fwctx-code, nvram, nvram_length); + complete(fwctx-completion); kfree(fwctx

[OpenWrt-Devel] [PATCH RFC] brcmfmac: register wiphy(s) during module_init

2015-05-31 Thread Rafał Miłecki
This is needed by OpenWrt which expects all PHYs to be created after module loads successfully. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/net/wireless/brcm80211/brcmfmac/core.c | 1 + drivers/net/wireless/brcm80211/brcmfmac/firmware.c | 13 - 2 files changed, 13

[OpenWrt-Devel] [PATCH] mac80211: make netifd script create AP interface directly

2015-05-30 Thread Rafał Miłecki
wlan0-1 flags: No such device Signed-off-by: Rafał Miłecki zaj...@gmail.com --- package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211

Re: [OpenWrt-Devel] [PATCH] brcm47xx: drop global description in favour of subtarget ones

2015-05-28 Thread Rafał Miłecki
On 28 May 2015 at 23:35, Michael Heimpold m...@heimpold.de wrote: Defining a description in this makefile prevents the subtarget Target/Description sections to appear in menuconfig's help for the subtargets. However, this also removes the menuconfig's help text for the target itself, but I'm

Re: [OpenWrt-Devel] Looking for a Broadcom Asus tester(s)

2015-05-28 Thread Rafał Miłecki
On 28 May 2015 at 21:44, Rafał Miłecki zaj...@gmail.com wrote: On 28 May 2015 at 21:31, Michael Heimpold m...@heimpold.de wrote: I have a Asus WL-500gP V2 router and restored original Asus Firmware version 3.0.4.4. Then I tried openwrt-brcm47xx-generic-squashfs.trx, openwrt-brcm47xx-generic

Re: [OpenWrt-Devel] [PATCH 2/3] bcm53xx: add specific device profiles

2015-05-28 Thread Rafał Miłecki
On 28 May 2015 at 21:04, Álvaro Fernández Rojas nolt...@gmail.com wrote: Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com So will you extend your above explanation a bit? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

Re: [OpenWrt-Devel] Looking for a Broadcom Asus tester(s)

2015-05-28 Thread Rafał Miłecki
On 28 May 2015 at 21:44, Rafał Miłecki zaj...@gmail.com wrote: On 28 May 2015 at 21:31, Michael Heimpold m...@heimpold.de wrote: I have a Asus WL-500gP V2 router and restored original Asus Firmware version 3.0.4.4. Then I tried openwrt-brcm47xx-generic-squashfs.trx, openwrt-brcm47xx-generic

Re: [OpenWrt-Devel] Looking for a Broadcom Asus tester(s)

2015-05-28 Thread Rafał Miłecki
On 28 May 2015 at 21:31, Michael Heimpold m...@heimpold.de wrote: I have a Asus WL-500gP V2 router and restored original Asus Firmware version 3.0.4.4. Then I tried openwrt-brcm47xx-generic-squashfs.trx, openwrt-brcm47xx-generic-squashfs-gz.trx

[OpenWrt-Devel] Looking for a Broadcom Asus tester(s)

2015-05-27 Thread Rafał Miłecki
Hi, With few recent commits OpenWrt can now generate Asus-specific TRX files for brcm47xx and bcm53xx. The magic is about some extra data at the end of TRX (so the format differs a bit, even it using the same file extension and layout). My request for someone having Broadcom-based Asus devices

Re: [OpenWrt-Devel] Looking for a Broadcom Asus tester(s)

2015-05-27 Thread Rafał Miłecki
On 28 May 2015 at 07:42, Rafał Miłecki zaj...@gmail.com wrote: On 28 May 2015 at 07:33, Ian Kent ra...@themaw.net wrote: On Wed, 2015-05-27 at 22:32 +0200, Rafał Miłecki wrote: Hi, With few recent commits OpenWrt can now generate Asus-specific TRX files for brcm47xx and bcm53xx. The magic

Re: [OpenWrt-Devel] Looking for a Broadcom Asus tester(s)

2015-05-27 Thread Rafał Miłecki
On 28 May 2015 at 07:33, Ian Kent ra...@themaw.net wrote: On Wed, 2015-05-27 at 22:32 +0200, Rafał Miłecki wrote: Hi, With few recent commits OpenWrt can now generate Asus-specific TRX files for brcm47xx and bcm53xx. The magic is about some extra data at the end of TRX (so the format differs

Re: [OpenWrt-Devel] Snort upgrade from 2.9.7.2 - 2.9.7.3

2015-05-22 Thread Rafał Miłecki
On 22 May 2015 at 14:22, Derek Werthmuller thewerth...@gmail.com wrote: Relevant Makefile changes; New version seems to build fine. PKG_VERSION:=2.9.7.3 PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.snort.org/downloads/snort/

Re: [OpenWrt-Devel] [PATCH 3/6] bcm53xx: bcm_nand: add support for overriding partition probe through device tree

2015-05-18 Thread Rafał Miłecki
On 16 May 2015 at 12:53, Álvaro Fernández Rojas nolt...@gmail.com wrote: Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com So I'll give a nack to this one too. The feature you proposed is really nice, but should be implemented as some generic solution, see Hauke's recent patch:

Re: [OpenWrt-Devel] [PATCH 4/6] bcm53xx: bcm47xxpart: add support for parsing device tree partitions

2015-05-18 Thread Rafał Miłecki
On 16 May 2015 at 15:28, Rafał Miłecki zaj...@gmail.com wrote: On 16 May 2015 at 13:53, Álvaro Fernández Rojas nolt...@gmail.com wrote: This patch splits firmware partition based on TRX header, while ofpart won't be able to split firmware partition into kernel (linux) + rootfs. It's very

Re: [OpenWrt-Devel] [PATCH 4/6] bcm53xx: bcm47xxpart: add support for parsing device tree partitions

2015-05-18 Thread Rafał Miłecki
On 16 May 2015 at 12:53, Álvaro Fernández Rojas nolt...@gmail.com wrote: Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com After discussion in this topic, I'll give a nack to this patch. We should use different approach and we should probably focus on mainline Broadcom NAND driver. --

Re: [OpenWrt-Devel] [PATCH 5/6] bcm53xx: add ASUS RT-AC87U partitions

2015-05-18 Thread Rafał Miłecki
On 16 May 2015 at 12:53, Álvaro Fernández Rojas nolt...@gmail.com wrote: Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com With the previous patches nacked/rejected, it doesn't make sense to apply this one. I've commited workaround for RT-AC87U just to make it usable with the upcoming CC

Re: [OpenWrt-Devel] [PATCH] Vlan configuration, limit the used ports

2015-05-18 Thread Rafał Miłecki
On 18 May 2015 at 12:12, Hante Meuleman meule...@broadcom.com wrote: Tested a clean checkout this morning and booted it. It is booting, but no packets are received. At least the ifconfig shows no RX packets, could be that the packets miss the vlan tag. Can you see swconfig forcing port 8

Re: [OpenWrt-Devel] [PATCH 4/6] bcm53xx: bcm47xxpart: add support for parsing device tree partitions

2015-05-16 Thread Rafał Miłecki
On 16 May 2015 at 13:53, Álvaro Fernández Rojas nolt...@gmail.com wrote: This patch splits firmware partition based on TRX header, while ofpart won't be able to split firmware partition into kernel (linux) + rootfs. It's very similar to bcm63xx code, where bcmtag contains the information

Re: [OpenWrt-Devel] [PATCH 4/6] bcm53xx: bcm47xxpart: add support for parsing device tree partitions

2015-05-16 Thread Rafał Miłecki
On 16 May 2015 at 13:11, Hauke Mehrtens ha...@hauke-m.de wrote: On 05/16/2015 12:53 PM, Álvaro Fernández Rojas wrote: Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- ...-bcm47xxpart-parse-device-tree-partitions.patch | 156 + 1 file changed, 156

Re: [OpenWrt-Devel] [PATCH 6/6] bcm53xx: add ASUS RT-AC87U LEDs

2015-05-16 Thread Rafał Miłecki
On 16 May 2015 at 12:53, Álvaro Fernández Rojas nolt...@gmail.com wrote: Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com This patch is simple enough to upstream it (clean code doesn't depend on other stuff). Please send a patch to Florian linux-arm-kernel mailing list based on top of:

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-15 Thread Rafał Miłecki
On 15 May 2015 at 09:02, Arend van Spriel ar...@broadcom.com wrote: On 05/12/15 12:25, Hante Meuleman wrote: It is a bit more than just changing request_firmware_nowait into request_firmware. The worker in core.c needs to be removed. The function brcmf_pcie_setup needs to be updated as it

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-15 Thread Rafał Miłecki
On 12 May 2015 at 19:31, Rafał Miłecki zaj...@gmail.com wrote: On 12 May 2015 at 15:10, Hante Meuleman meule...@broadcom.com wrote: Added two functions to the bcm47xx_nvram module to get and release copies of the complete nvram contents. This can be used by for example brcmfmac to get complete

Re: [OpenWrt-Devel] [PATCH] Vlan configuration, limit the used ports

2015-05-13 Thread Rafał Miłecki
On 12 May 2015 at 10:16, Hante Meuleman meule...@broadcom.com wrote: Do not mimic the vlan configuration in some devices like R8000 as the configuration is to be used with SW accelerators not available in OpenWRT. It is not possible to use the switch with vlan port configuration 0 1 2 3 5 7

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-13 Thread Rafał Miłecki
On 13 May 2015 at 18:45, Felix Fietkau n...@openwrt.org wrote: On 2015-05-13 09:48, Hante Meuleman wrote: Initially I made the free an inline from header file, but it doesn't compile out of the box as it needs the definition for kfree and not all c files which include this header file had

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-12 Thread Rafał Miłecki
On 12 May 2015 at 15:10, Hante Meuleman meule...@broadcom.com wrote: Added two functions to the bcm47xx_nvram module to get and release copies of the complete nvram contents. This can be used by for example brcmfmac to get complete nvram contents which will after some parsing be sent to

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Rafał Miłecki
On 12 May 2015 at 10:35, Hante Meuleman meule...@broadcom.com wrote: The boot script gives 1 second for wifi modules to settle. For newer routers like R8000 which has three wifi devices which all need to be firmware downloaded, nvram downloaded and initialized this delay is getting very

Re: [OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

2015-05-12 Thread Rafał Miłecki
On 12 May 2015 at 11:33, Hante Meuleman meule...@broadcom.com wrote: Understood, what is wifi detect using as input? Do the netdevs have to be up? Where is the information that wifi app is reading coming from? What about just checking it by yourself? vim package/base-files/files/sbin/wifi vim

Re: [OpenWrt-Devel] [PATCH] bcm53xx: Add functions to get/release copies of nvram contents.

2015-05-12 Thread Rafał Miłecki
On 13 May 2015 at 03:49, Ian Kent ra...@themaw.net wrote: On Tue, 2015-05-12 at 19:31 +0200, Rafał Miłecki wrote: On 12 May 2015 at 15:10, Hante Meuleman meule...@broadcom.com wrote: Added two functions to the bcm47xx_nvram module to get and release copies of the complete nvram contents

Re: [OpenWrt-Devel] [PATCH RFC] base-files: switch reset button support to hotplug.d

2015-05-10 Thread Rafał Miłecki
On 10 May 2015 at 13:14, Felix Fietkau n...@openwrt.org wrote: On 2015-05-09 22:33, Rafał Miłecki wrote: For years now we have procd (with its hotplug support) and action JSON executing all scripts in /etc/hotplug.d/SUBSYSTEM/. Move reset button support to handle it the same way we handle

[OpenWrt-Devel] [PATCH] lantiq: add platform_pre_upgrade for sysupgrade

2015-05-10 Thread Rafał Miłecki
for changing nand_do_platform_check (it will be possible after preparing all other targets as well). Signed-off-by: Rafał Miłecki zaj...@gmail.com --- target/linux/lantiq/base-files/lib/upgrade/platform.sh | 11 +++ 1 file changed, 11 insertions(+) diff --git a/target/linux/lantiq/base

[OpenWrt-Devel] [PATCH V2] lantiq: add platform_pre_upgrade for sysupgrade

2015-05-10 Thread Rafał Miłecki
for changing nand_do_platform_check (it will be possible after preparing all other targets as well). Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Fix typo in commit message (implementation) Add only 1 empty line (instead of 2) in platform.sh --- target/linux/lantiq/base-files/lib

[OpenWrt-Devel] [PATCH RFC] base-files: switch reset button support to hotplug.d

2015-05-09 Thread Rafał Miłecki
For years now we have procd (with its hotplug support) and action JSON executing all scripts in /etc/hotplug.d/SUBSYSTEM/. Move reset button support to handle it the same way we handle other subsystems. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- package/base-files/files/etc/hotplug.d

[OpenWrt-Devel] [PATCH V2 procd] hotplug: support for interval commands

2015-05-09 Thread Rafał Miłecki
the button. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Use avl instead of flat list Use uloop_process: don't spawn multiple processes, monitor them --- plug/hotplug.c | 166 + 1 file changed, 166 insertions(+) diff --git a/plug

[OpenWrt-Devel] [PATCH procd] hotplug: support for interval commands

2015-05-07 Thread Rafał Miłecki
This allows executing code with a given interval. As every command, it can be triggered by any uevent. Intervals may be useful for counting elapsed time since some action. It allows e.g. indicating that button has been pressed for some time and can be already released. Signed-off-by: Rafał

Re: [OpenWrt-Devel] Fwd: Re: [PATCH 10/10] brcmfmac: Add support for multiple PCIE devices in nvram.

2015-04-29 Thread Rafał Miłecki
On 29 April 2015 at 12:51, Hante Meuleman meule...@broadcom.com wrote: Status report: spent lots of time trying to figure out how to use cpu port 8 and use vlan1ports 0 1 2 3 5 7 8t, and found that I got fooled by the way I tried to determine if it was working or not. To see if the switch

Re: [OpenWrt-Devel] [PATCH] ubox: CMake: fix json-c detection

2015-04-27 Thread Rafał Miłecki
On 27 April 2015 at 22:13, Yegor Yefremov yegorsli...@googlemail.com wrote: Use PKG_SEARCH_MODULE() to detect json-c library, otherwise the search fails, if both json-c and json are not present in pkg-config database. Just wanted to say thanks. I remember I got some problems with finding

Re: [OpenWrt-Devel] Fwd: Re: [PATCH 10/10] brcmfmac: Add support for multiple PCIE devices in nvram.

2015-04-24 Thread Rafał Miłecki
On 24 April 2015 at 10:18, Hante Meuleman meule...@broadcom.com wrote: Do you want the patch on top of target/linux/bcm53xx/patches-3.18/110-firmware-backport-NVRAM-driver.patch Or on top of the unpatched drivers/firmware/broadcom/bcm47xx_nvram.c Or on top of the kernel driver file where

Re: [OpenWrt-Devel] Fwd: Re: [PATCH 10/10] brcmfmac: Add support for multiple PCIE devices in nvram.

2015-04-24 Thread Rafał Miłecki
On 24 April 2015 at 12:03, Hante Meuleman meule...@broadcom.com wrote: Attached are the two patch files. They were generated from include/linux/bcm47xx_nvram.h and from drivers/firmware/broadcom/bcm47xx_nvram.c. I think your idea is correct, I was just thinking about bcm47xx_nvram copying

Re: [OpenWrt-Devel] Fwd: Re: [PATCH 10/10] brcmfmac: Add support for multiple PCIE devices in nvram.

2015-04-24 Thread Rafał Miłecki
On 23 April 2015 at 13:14, Hante Meuleman meule...@broadcom.com wrote: Attached are three files, one is from brcmfmac (firmware.c). This file is added to demo how brcmfmac will use a new function of bm47xx_nvram. The changes in this file are currently under internal review and the patch may

Re: [OpenWrt-Devel] [PATCH 10/10] brcmfmac: Add support for multiple PCIE devices in nvram.

2015-04-21 Thread Rafał Miłecki
On 20 April 2015 at 22:16, Arend van Spriel ar...@broadcom.com wrote: On 04/20/15 20:49, Rafał Miłecki wrote: On 20 April 2015 at 19:12, Arend van Sprielar...@broadcom.com wrote: On 04/20/15 13:26, Rafał Miłecki wrote: On 17 April 2015 at 10:50, Arend van Sprielar...@broadcom.com wrote

Re: [OpenWrt-Devel] [PATCH 10/10] brcmfmac: Add support for multiple PCIE devices in nvram.

2015-04-20 Thread Rafał Miłecki
On 17 April 2015 at 10:50, Arend van Spriel ar...@broadcom.com wrote: On 04/17/15 09:45, Rafał Miłecki wrote: Huh, why dropping linux-wireless (and top posting btw)? Please let everyone follow the discussion :) On 15 April 2015 at 21:20, Hante Meulemanmeule...@broadcom.com wrote: As I

Re: [OpenWrt-Devel] Fwd: Re: [PATCH 10/10] brcmfmac: Add support for multiple PCIE devices in nvram.

2015-04-20 Thread Rafał Miłecki
On 20 April 2015 at 13:50, Jonas Gorski j...@openwrt.org wrote: On Mon, Apr 20, 2015 at 1:29 PM, Rafał Miłecki zaj...@gmail.com wrote: On 20 April 2015 at 11:27, Arend van Spriel ar...@broadcom.com wrote: Following an nvram erase none of the neededkey, value pairs remain in nvram. So we

Re: [OpenWrt-Devel] Fwd: Re: [PATCH 10/10] brcmfmac: Add support for multiple PCIE devices in nvram.

2015-04-20 Thread Rafał Miłecki
On 20 April 2015 at 11:27, Arend van Spriel ar...@broadcom.com wrote: Following an nvram erase none of the neededkey, value pairs remain in nvram. So we probably can't use nvram in a reliable way to create the wireless configuration. So why do nvram erase? The assumption that it is not

Re: [OpenWrt-Devel] [PATCH 10/10] brcmfmac: Add support for multiple PCIE devices in nvram.

2015-04-20 Thread Rafał Miłecki
On 20 April 2015 at 19:12, Arend van Spriel ar...@broadcom.com wrote: On 04/20/15 13:26, Rafał Miłecki wrote: On 17 April 2015 at 10:50, Arend van Sprielar...@broadcom.com wrote: Another option is to add the parsing stuff in that nvram code and have an api to get the appropriate portion

Re: [OpenWrt-Devel] [PATCH] generic/4.0: Linux 4.0 was released on 2014-04-12

2015-04-20 Thread Rafał Miłecki
On 20 April 2015 at 17:24, Daniel Golle dan...@makrotopia.org wrote: Signed-off-by: Daniel Golle dan...@makrotopia.org Daniel, commit message should say what the patch does. Now what has happened in the world. ___ openwrt-devel mailing list

Re: [OpenWrt-Devel] [PATCH V2] b53: override CPU port state on BCM5301X with CPU port other than 8

2015-04-15 Thread Rafał Miłecki
On 15 April 2015 at 07:37, Ian Kent ra...@themaw.net wrote: On Sun, 2015-04-12 at 19:01 +0200, Rafał Miłecki wrote: Newer revisions (5+) of BCM53011 and probably all revs of BCM53012 require overriding CPU port to work. So far we were handling it only for CPU port 8, but some devices may use

[OpenWrt-Devel] [PATCH] b53: override CPU port state on BCM5301X with CPU port other than 8

2015-04-12 Thread Rafał Miłecki
revs 2 3. It was also confirmed to fix switch on some internal Broadcom board. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- .../linux/generic/files/drivers/net/phy/b53/b53_common.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/target/linux/generic/files/drivers/net

[OpenWrt-Devel] [PATCH V2] b53: override CPU port state on BCM5301X with CPU port other than 8

2015-04-12 Thread Rafał Miłecki
revs 2 3. It was also confirmed to fix switch on some internal Broadcom board. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Use new code branch to make (unused) port 8 branch reachable. --- .../generic/files/drivers/net/phy/b53/b53_common.c | 17 + 1 file changed, 17

Re: [OpenWrt-Devel] [PATCH] b53: override CPU port state on BCM5301X with CPU port other than 8

2015-04-12 Thread Rafał Miłecki
On 12 April 2015 at 18:16, Jonas Gorski j...@openwrt.org wrote: On Sun, Apr 12, 2015 at 6:03 PM, Rafał Miłecki zaj...@gmail.com wrote: Newer revisions (5+) of BCM53011 and probably all revs of BCM53012 require overriding CPU port to work. So far we were handling it only for CPU port 8

[OpenWrt-Devel] [PATCH V3 fstools 2/2] jffs2reset: use jffs2_mark if rootfs_data isn't mounted

2015-04-11 Thread Rafał Miłecki
will be a valid partition (possibly with data) but libblkid won't detect it. Also adjust message in jffs2_mark to make more sense when used together with jffs2_reset. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Update ulog messages. E.hg. the one in jffs2_mark shouldn't include

[OpenWrt-Devel] [PATCH V3 fstools 1/2] jffs2reset: avoid code duplication in jffs2_reset and jffs2_mark

2015-04-11 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V3: Update TODO comment to be more clear. --- jffs2reset.c | 56 +--- 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/jffs2reset.c b/jffs2reset.c index 1080883..778a97e 100644

Re: [OpenWrt-Devel] [PATCH] brcm47xx: explicitly select CPU_MIPS32_R2 and CPU_MIPSR2 for mips74k

2015-04-11 Thread Rafał Miłecki
On 5 April 2015 at 20:03, Nathan Hintz nlhi...@hotmail.com wrote: The mips74k subtarget of brcm47xx configures gcc to compile for mips32r2; however, the generated kernel config for 3.14 and later kernels ends up with CPU_MIPS32_R1 and CPU_MIPSR1 selected. The generated kernel config for the

[OpenWrt-Devel] [PATCH V2 fstools 1/2] jffs2reset: avoid code duplication in jffs2_reset and jffs2_mark

2015-04-10 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- jffs2reset.c | 52 +--- 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/jffs2reset.c b/jffs2reset.c index 1080883..d634386 100644 --- a/jffs2reset.c +++ b/jffs2reset.c @@ -39,26

[OpenWrt-Devel] [PATCH V2 fstools 2/2] jffs2reset: use jffs2_mark if rootfs_data isn't mounted

2015-04-10 Thread Rafał Miłecki
will be a valid partition (possibly with data) but libblkid won't detect it. Also adjust message in jffs2_mark to make more sense when used together with jffs2_reset. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- jffs2reset.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff

Re: [OpenWrt-Devel] I'd like to donate a Linksys WRT300N V1

2015-04-08 Thread Rafał Miłecki
On 5 April 2015 at 01:01, Rafał Miłecki zaj...@gmail.com wrote: On 30 March 2015 at 23:43, Rafał Miłecki zaj...@gmail.com wrote: On 17 March 2015 at 22:05, Alex Henrie alexhenri...@gmail.com wrote: I just mailed the router. When it arrives, please send confirmation to me and to treasu...@spi

[OpenWrt-Devel] [PATCH 2/2] procd: add helper for starting NAND sysupgrade

2015-04-08 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- package/system/procd/files/nand.sh | 9 + 1 file changed, 9 insertions(+) diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh index 7fb9343..0ed1b63 100644 --- a/package/system/procd/files/nand.sh +++ b

<    4   5   6   7   8   9   10   11   12   13   >