Re: [OpenWrt-Devel] Factory startup issues since mount_root / libfstools improvements in Chaos Calmer

2017-03-29 Thread Rafał Miłecki
On 03/29/2017 11:53 AM, Smith, Pieter wrote: My apologies. I am not able to get mutt working with our corporate infrastructure. I hope it arrives unmangled as an attachment. If not, I'll use my personal mail. This would be acceptable for me to pick patch sent as attachment, but you really need

Re: [OpenWrt-Devel] Factory startup issues since mount_root / libfstools improvements in Chaos Calmer

2017-03-29 Thread Rafał Miłecki
On 03/28/2017 03:26 PM, Smith, Pieter wrote: The refactoring in ba019965 eliminated an unneeded call to volume_find() when done() calls jffs2_switch(). Unfortunately the refactoring did not take into account that volume_identify() has side-effects with the mtd driver implementation and a second c

Re: [OpenWrt-Devel] Factory startup issues since mount_root / libfstools improvements in Chaos Calmer

2017-03-28 Thread Rafał Miłecki
On 28 March 2017 at 15:26, Smith, Pieter wrote: > I need your help in confirming a bug that I suspect can be traced back to a > patch you authored / merged. This is what I am observing: > > Commit ba01996534d15dc725a2dcc56a59fbfb24b58787 in > git://git.openwrt.org/project/fstools.git seems to have

[OpenWrt-Devel] [PATCH packages] lighttpd: update to 1.4.42

2016-10-25 Thread Rafał Miłecki
From: Rafał Miłecki This release fixes bugs introduced in 1.4.40 and 1.4.41. Signed-off-by: Rafał Miłecki --- Hi Michael, Since we use the same version in for-15.05 branch, could you backport this patch there as well, please? --- net/lighttpd/Makefile | 4 ++-- 1 file changed, 2 insertions

Re: [OpenWrt-Devel] [PATCH] CVE-2016-5195 backport to linux-3.18.36 for Chaos Calmer

2016-10-22 Thread Rafał Miłecki
On 21 October 2016 at 16:43, revelstone wrote: > Here is a backport for Chaos Calmer This isn't much useful for the commit message. > of commit > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619]19be0eaffa3ac7d8eb6784ad9bdbc7d67

Re: [OpenWrt-Devel] [PATCH packages] pptpd: run service in foreground for procd compatibility

2016-09-27 Thread Rafał Miłecki
On 28 September 2016 at 00:37, Luka Perkov wrote: > On Mon, Sep 26, 2016 at 07:59:30AM +0200, Rafał Miłecki wrote: >> From: Rafał Miłecki >> >> To have service working nicely with procd it should be running in the >> foreground. Otherwise it's not possible

[OpenWrt-Devel] [PATCH packages] pptpd: run service in foreground for procd compatibility

2016-09-25 Thread Rafał Miłecki
From: Rafał Miłecki To have service working nicely with procd it should be running in the foreground. Otherwise it's not possible to e.g. stop it with the init.d script. Luckily for us pptpd has a simple switch that allows it. Signed-off-by: Rafał Miłecki Fixes: 15e7f611afb ("pptp

Re: [OpenWrt-Devel] How to check if its the first boot ever?

2016-07-13 Thread Rafał Miłecki
On 13 July 2016 at 22:27, Ronaldo Afonso wrote: > More specifically, my scripts at "/etc/uci-defaults" need to know if they > are being executed by flashing over a "router original firmware" > (factory.bin) or a previews OpenWrt firmware (sysupgrade.bin). What about using something like /etc/co

[OpenWrt-Devel] [GIT PULL] brcmfmac update in mac80211

2016-07-08 Thread Rafał Miłecki
getting them into a pull request and there it is. This updates brcmfmac to the state it can be finally used with BCM4366. All patches are backports coming from the wireless-drivers-next. Rafał Miłecki (5): mac80211: brcmfmac: fix

Re: [OpenWrt-Devel] Response to LEDE proposal/queries/mail?

2016-06-08 Thread Rafał Miłecki
On 8 June 2016 at 11:12, Zoltan HERPAI wrote: > Daniel Golle wrote: >> Which exact goal are you referring to? Imho a 'split' never happened, >> everybody kept contributing to both projects. > > Let me argue with that: > > 2016-06-07: 08:59 Changeset [49379] by nbd > treewide: fix replace nbd@… wit

Re: [OpenWrt-Devel] OpenWrt / LEDE

2016-05-25 Thread Rafał Miłecki
On 25 May 2016 at 10:09, mbm wrote: > The hackers email address represents the primary point of contact for > OpenWrt, particularly in regards to donations. Following the surprise LEDE > announcement, forwarding rules for @openwrt.org email addresses were > disabled. This was done to mitigate furt

Re: [OpenWrt-Devel] OpenWrt / LEDE

2016-05-24 Thread Rafał Miłecki
On 24 May 2016 at 22:31, Hauke Mehrtens wrote: > As it looks like the IRC meeting will not happen, because not so big > interest by the people not already involved in LEDE and problems finding > a time, lets discuss on the mailing list like suggested by Jow. > > Currently it looks like only Luka i

[OpenWrt-Devel] [PATCH] mtd: imagetag: fix compilation with changed mtd_fixtrx call

2016-05-10 Thread Rafał Miłecki
Function mtd_fixtrx was changed during trx improvements. Signed-off-by: Rafał Miłecki --- package/system/mtd/src/imagetag.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/system/mtd/src/imagetag.c b/package/system/mtd/src/imagetag.c index b850837..2ad2076

[OpenWrt-Devel] [PATCH] bcm53xx: drop Copyright header from two of my bash scripts

2016-05-09 Thread Rafał Miłecki
x27;t sign with OpenWrt(.org). Other than that I don't find these trivial scripts important enough to put info about *my* copyrights in a header so this patch just drops them completely. Signed-off-by: Rafał Miłecki --- target/linux/bcm53xx/base-files/etc/diag.sh | 1 - targe

[OpenWrt-Devel] [PATCH] mtd: add -c option for specifying amount of data to be used for checksum

2016-05-06 Thread Rafał Miłecki
much protection of flash data against corruption. This new option lets caller request calculating checksum over a bigger amount of data. It may be used e.g. to include whole kernel data for checksum and hopefully make bootloader go info failsafe mode if something goes wrong. Signed-off-by: Rafał Mi

Re: [OpenWrt-Devel] [PATCH v2 1/3] mount_root: implement overlay= boot option

2016-04-28 Thread Rafał Miłecki
On 28 April 2016 at 20:20, wrote: > From: Josua Mayer > > This change adds code to handle a new option on cmdline: overlay= > This is used to find the rootfs_data partition / disk when it has a > non-standard name or location. > > It takes either the device node name, or the full path to the dev

Re: [OpenWrt-Devel] [PATCH v2 1/3] mount_root: implement overlay= boot option

2016-04-28 Thread Rafał Miłecki
On 28 April 2016 at 20:20, wrote: > @@ -33,6 +33,35 @@ start(int argc, char *argv[1]) > if (!getenv("PREINIT")) > return -1; > > + /* > +* Check cmdline for a hint about overlay device > +*/ > + if(!data) { > + FILE *fp; > +

Re: [OpenWrt-Devel] [PATCH 3/4] ar71xx: fix giving extra arguments to Build/mktplinkfw

2016-04-21 Thread Rafał Miłecki
On 21 April 2016 at 08:33, Matthias Schiffer wrote: > @@ -967,8 +968,8 @@ define Device/tl-wr2543-v1 > BOARDNAME := TL-WR2543N > DEVICE_PROFILE := TLWR2543 > TPLINK_HWID := 0x25430001 > -IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade "-v > 3.13.99" > -IMAGE/f

Re: [OpenWrt-Devel] [PATCH 2/4] tools: firmware-utils: add region code support to mktplinkfw

2016-04-21 Thread Rafał Miłecki
On 21 April 2016 at 08:33, Matthias Schiffer wrote: > @@ -324,6 +351,17 @@ static int check_options(void) > else > hw_rev = 1; > > + if (country) { > + region = find_region(country); > + if (region == (uint32_t)-1) { > +

Re: [OpenWrt-Devel] [PATCH] Add support for multiple RADIUS servers

2016-04-20 Thread Rafał Miłecki
On 20 April 2016 at 16:48, amine.ahd wrote: > Hostapd allows more than one RADIUS server to be added in case the main > server goes down. > This allows netifd to load a list of RADIUS servers from the wireless confid > file and add them to hostapd. > The format of the list in the config file is

[OpenWrt-Devel] [PATCH] b53: override ports 5 and 7 if using CPU port 8 on BCM5301x switch

2016-04-09 Thread Rafał Miłecki
These ports are also used in GMAC3 configuration, just for radios rather than physical Ethernet ports. Signed-off-by: Rafał Miłecki --- People interested in more details of GMAC3 configuration may take a look at bcmfwd.h from Broadcom's SDK. --- .../generic/files/drivers/net/ph

Re: [OpenWrt-Devel] [PATCH 0/8] [ipq806x] Add basic support for Linksys EA8500

2016-04-03 Thread Rafał Miłecki
Hi Adrian, First of all, please DON'T send your e-mails as HTML ones (text/html). On 1 April 2016 at 02:35, Adrian Panella wrote: > This patchset adds support for the Linksys AC2600 EA8500 router. You should use a proper prefix for all your patches. E.g. bootargs: Add mangled bootargs for ATAG

Re: [OpenWrt-Devel] [PATCH v3] brcmfmac: Add Raspberry Pi 3 support

2016-03-11 Thread Rafał Miłecki
On 11 March 2016 at 20:19, Álvaro Fernández Rojas wrote: > - Enable SDIO support on brcmfmac. > - Disable power managment for brcm2708 target. > > Signed-off-by: Álvaro Fernández Rojas > --- > v3: fix ifdef mistake > v2: use a proper patch prefix Reviewed-by: Rafał Mi

Re: [OpenWrt-Devel] [PATCH] brcmfmac: Add Raspberry Pi 3 support

2016-03-10 Thread Rafał Miłecki
On 10 March 2016 at 20:52, Álvaro Fernández Rojas wrote: > +@@ -2651,6 +2651,10 @@ brcmf_cfg80211_set_power_mgmt(struct wip > +* preference in cfg struct to apply this to > +* FW later while initializing the dongle > +*/ > ++#ifdef defined(CONFIG_BCM2708) || defined(CONFIG_

Re: [OpenWrt-Devel] [PATCH 2/2] brcmfmac: Add Raspberry Pi 3 support

2016-03-09 Thread Rafał Miłecki
On 9 March 2016 at 21:24, Álvaro Fernández Rojas wrote: > It's a temporary hack until power management issues are solved: > https://github.com/raspberrypi/linux/commit/66ae1b1750720a33e29792a177b1e696f4f005fb > I don't think it was submitted upstream. Please add it using other prefix than 3xx whi

Re: [OpenWrt-Devel] [PATCH 2/2] brcmfmac: Add Raspberry Pi 3 support

2016-03-09 Thread Rafał Miłecki
On 9 March 2016 at 20:32, Álvaro Fernández Rojas wrote: > diff --git > a/package/kernel/mac80211/patches/345-brcmfmac-Disable-power-management.patch > b/package/kernel/mac80211/patches/345-brcmfmac-Disable-power-management.patch > new file mode 100644 > index 000..091f175 > --- /dev/null > +

[OpenWrt-Devel] [PATCH RFC] brcm47xx: image: create common TRX images using new building system

2016-03-09 Thread Rafał Miłecki
Apart from using our new building system there are 2 more changes: 1) Limit amount of images So far we were generating all common images (standard one and two with no loader) for every SUBTARGET. This is not needed, as e.g. the only device requiring gzipped kernel is legacy Huawei E970. 2) Change

Re: [OpenWrt-Devel] [PATCH v3] bcm53xx: add support for Huawei WS880

2016-02-26 Thread Rafał Miłecki
On 2 December 2015 at 21:25, Hauke Mehrtens wrote: >> ++ >> ++leds { >> ++compatible = "gpio-leds"; >> ++ >> ++wlan { >> ++label = "bcm53xx:white:wlan"; >> ++gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; >> ++linux,

Re: [OpenWrt-Devel] [PATCH v3] bcm53xx: add support for Huawei WS880

2016-02-26 Thread Rafał Miłecki
Hi Sergey, Sorry for this late (!) reply, I totally missed this patch. On 2 December 2015 at 15:48, Sergey Shatunov wrote: > From: Prototik It doesn't really matter for our svn repo, but please don't try hiding your real name. > Changes since v2: > LED default state modified We usually put

Re: [OpenWrt-Devel] [PATCH] kernel: mtdsplit: support uimage with UBI

2016-02-23 Thread Rafał Miłecki
On 23 February 2016 at 10:20, YounJae Rho wrote: > This patch add uimage firmware split support for ubi. > > Signed-off-by: YounJae Rho Your patch is malformed, most likely due to your client breaking lines longer than 80 chars. It means patchwork wasn't able to detect your changes properly: htt

Re: [OpenWrt-Devel] [PATCH] [CC] oldpackages: fix mdk3 build issue

2016-02-18 Thread Rafał Miłecki
On 18 February 2016 at 11:38, Tomislav Požega wrote: > Create a patch that fixes an issue with mdk3 package that would break > build process when enabled with -Werror=format-security message. Closes > ticket https://dev.openwrt.org/ticket/20698 There isn't such thing as oldpackages repo for CC re

Re: [OpenWrt-Devel] downloads.openwrt.org NOT accessible!!!

2016-02-17 Thread Rafał Miłecki
On 13 February 2016 at 09:44, Jakub Jančo wrote: > I cant access to downloads.openwrt.org. https://forum.openwrt.org/viewtopic.php?id=62776 > OpenWrt's main hosting server (site, downloads, forum) is failing for last > few weeks. Its hard drivers need to be replaced and we're currently waiting

Re: [OpenWrt-Devel] [PATCH] udpxy: don't disable by default

2016-02-15 Thread Rafał Miłecki
On 14 February 2016 at 15:20, Nerijus Baliunas wrote: > On Sun, 14 Feb 2016 08:08:07 +0100 John Crispin wrote: > >> NAK, it is a general pattern of daemons to be installed in disabled >> state, to prevent a default config causing security or other issues. > > I understand it, but, for example, ig

[OpenWrt-Devel] [PATCH] mtd: fix Seama format after replacing EOF with sysupgrade data

2016-02-08 Thread Rafał Miłecki
Seama header has MD5 similarly to TRX and its CRC32. We need to update it after replacing anything in Seama entity content to make bootloader accept it. Signed-off-by: Rafał Miłecki --- package/system/mtd/src/mtd.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff

[OpenWrt-Devel] [PATCH] mtd: detect image format when writing

2016-02-03 Thread Rafał Miłecki
de which should run check depending on the detected format. This will also allow further improvements like fixing formats other than TRX after replacing JFFS2. Signed-off-by: Rafał Miłecki --- package/system/mtd/src/mtd.c | 57 +--- package/system/mtd

[OpenWrt-Devel] [PATCH 3/3] kernel: mtdsplit: support Seama entity with UBI

2016-01-29 Thread Rafał Miłecki
Some D-Link routers (e.g. DIR-885L) have NAND and use Seama format. It means OpenWrt will want to have UBI in Sseama entity and should be able to detect it. Signed-off-by: Rafał Miłecki --- target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h | 1 + .../linux/generic/files/drivers

[OpenWrt-Devel] [PATCH 2/3] kernel: mtdsplit: detect UBI partition when looking for rootfs

2016-01-29 Thread Rafał Miłecki
This allows mtdsplit parsers work with UBI which is very popular on NAND flases. Signed-off-by: Rafał Miłecki --- target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c | 6 ++ target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h | 1 + 2 files changed, 7 insertions(+) diff --git

[OpenWrt-Devel] [PATCH 1/3] kernel: mtdsplit: modify rootfs helpers to provide partition type

2016-01-29 Thread Rafał Miłecki
Our mtdsplit parsers may want to create partition with name choice based on partition file system (e.g. SquashFS vs. JFFS2). This patch allows passing extra argument pointing to variable that will be set properly. Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/mtd/mtdsplit

[OpenWrt-Devel] [PATCH 3/3] b53: support setting port link

2016-01-26 Thread Rafał Miłecki
When dealing with Broadcom hardware we can simply use swconfig's generic helper, we just need to do some validation of requested state. Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/net/phy/b53/b53_common.c | 31 ++ 1 file changed, 31 insertions(+) diff --

[OpenWrt-Devel] [PATCH 2/3] b53: provide PHY access to swconfig

2016-01-26 Thread Rafał Miłecki
Thanks to this swconfig can access port PHYs e.g. when setting port link state with a generic helper. Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/net/phy/b53/b53_common.c | 26 ++ .../generic/files/drivers/net/phy/b53/b53_mdio.c | 20

[OpenWrt-Devel] [PATCH 1/3] swconfig: add (PHY) generic helper setting port link

2016-01-26 Thread Rafał Miłecki
It's quite common for switches to have PHY per port so adding a generic helper setting link state will help many drivers. It just neede an API to access PHYs which this patch also adds. Signed-off-by: Rafał Miłecki --- .../linux/generic/files/drivers/net/phy/swconfig.c

[OpenWrt-Devel] [PATCH] kernel: mtdsplit: add missing digest field to Seama header

2016-01-24 Thread Rafał Miłecki
s 16B too low. Signed-off-by: Rafał Miłecki --- target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seama.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seama.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seama.c

[OpenWrt-Devel] [PATCH 2/2] b53: provide PHY access to swconfig

2016-01-21 Thread Rafał Miłecki
Thanks to this swconfig can access port PHYs and set link state using its generic implementation. Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/net/phy/b53/b53_common.c | 26 ++ .../generic/files/drivers/net/phy/b53/b53_mdio.c | 20

[OpenWrt-Devel] [PATCH 1/2] swconfig: implement (PHY) generic PORT_LINK setter

2016-01-21 Thread Rafał Miłecki
It's quite common for switches to have PHY per port so we may use a generic function for setting port link. We just need an API to access PHYs which this patch also adds. Signed-off-by: Rafał Miłecki --- .../linux/generic/files/drivers/net/phy/swconfig.c | 44 -- t

Re: [OpenWrt-Devel] Plans for CC 15.05.1 or DD 16.xx release?

2016-01-11 Thread Rafał Miłecki
On 12 January 2016 at 03:00, alzhao wrote: > May I know if the compile target for GL-AR150, GL-AR300, GL-Domino has been > backported to 15.05.1? They were submitted to trunk after CC1505. Hope they > have been back ported. OpenWrt is open source with public repo: https://git.openwrt.org/?p=15.05

Re: [OpenWrt-Devel] [PATCH] swconfig: support setting SWITCH_TYPE_LINK attributes

2016-01-11 Thread Rafał Miłecki
On 7 January 2016 at 07:53, Rafał Miłecki wrote: > On 30 December 2015 at 12:10, Rafał Miłecki wrote: >> Supported syntax is inspired by ethtool. Example usage: >> swconfig dev switch0 port 2 set link "duplex half speed 100 autoneg off" > > Any comments to this us

[OpenWrt-Devel] uci commit bumping amount of dentry active slab objects

2016-01-11 Thread Rafał Miłecki
I was looking at slabinfo and noticed something about uci. Executing "uci commit" increases amount of "dentry" active objects. # echo 2 > /proc/sys/vm/drop_caches # egrep "dentry|kmalloc-64" /proc/slabinfo dentry 559 2040136 301 : tunables 120 608 : sla kmalloc-64

Re: [OpenWrt-Devel] [PATCH] swconfig: support setting SWITCH_TYPE_LINK attributes

2016-01-06 Thread Rafał Miłecki
On 30 December 2015 at 12:10, Rafał Miłecki wrote: > Supported syntax is inspired by ethtool. Example usage: > swconfig dev switch0 port 2 set link "duplex half speed 100 autoneg off" Any comments to this usage/syntax? It doesn't look too nice (this long quoted string as a

[OpenWrt-Devel] [PATCH 2/2] b53: support setting port link state

2016-01-06 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/net/phy/b53/b53_common.c | 40 ++ 1 file changed, 40 insertions(+) diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c index 859d8d1

[OpenWrt-Devel] [PATCH 1/2] b53: add internal API for accessing PHY regs

2016-01-06 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/net/phy/b53/b53_mdio.c | 20 .../generic/files/drivers/net/phy/b53/b53_priv.h | 14 ++ .../generic/files/drivers/net/phy/b53/b53_srab.c | 15 +++ 3 files changed, 49 insertions

Re: [OpenWrt-Devel] [PATCH 1/1 v3] package/libs/libtool: rename to libltdl

2016-01-04 Thread Rafał Miłecki
On 4 January 2016 at 19:25, Heinrich Schuchardt wrote: > version 3 > In Makefile change PKG_BUILD_DIR only, thx Felix. > version 2 > Renaming must occur inside Makefile too. This doesn't have real meaning for repo history. > CC: Felix Fietkau > Signed-off-by: Heinrich Schuchard

Re: [OpenWrt-Devel] dev.openwrt.org not sending emails

2016-01-03 Thread Rafał Miłecki
On 30 December 2015 at 13:08, Nemesis wrote: > The ticket has been created, but an error occurred while sending > notifications: [Errno 111] Connection refused > > I also did not receive the confirmation mail with the token to activate > my trac account. Seems it's fixed now (2 days ago I believe

Re: [OpenWrt-Devel] [PATCH 2/2] swconfig: add API for setting port link speed

2015-12-31 Thread Rafał Miłecki
On 29 December 2015 at 14:02, Rafał Miłecki wrote: > @@ -595,6 +614,33 @@ swconfig_parse_ports(struct sk_buff *msg, struct nlattr > *head, > } > > static int > +swconfig_parse_link(struct sk_buff *msg, struct nlattr *nla, > + struct s

[OpenWrt-Devel] [PATCH] swconfig: support setting SWITCH_TYPE_LINK attributes

2015-12-30 Thread Rafał Miłecki
Supported syntax is inspired by ethtool. Example usage: swconfig dev switch0 port 2 set link "duplex half speed 100 autoneg off" Signed-off-by: Rafał Miłecki --- package/network/config/swconfig/src/swlib.c | 51 + 1 file changed, 51 insertions(+) di

[OpenWrt-Devel] [PATCH 2/2] swconfig: add API for setting port link speed

2015-12-29 Thread Rafał Miłecki
Some switches can force link speed for a port. Let's add API that will allow drivers to export this feature. Signed-off-by: Rafał Miłecki --- .../linux/generic/files/drivers/net/phy/swconfig.c | 63 +- target/linux/generic/files/include/linux/switch.h | 2 + 2

[OpenWrt-Devel] [PATCH 1/2] swconfig: support sending SWITCH_TYPE_LINK to kernel

2015-12-29 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki --- package/network/config/swconfig/src/swlib.c | 38 + 1 file changed, 38 insertions(+) diff --git a/package/network/config/swconfig/src/swlib.c b/package/network/config/swconfig/src/swlib.c index 908e0fb..7bcd8d2 100644 --- a/package

[OpenWrt-Devel] [PATCH 2/2] ledtrig-netdev: drop locking from timer callback function

2015-12-23 Thread Rafał Miłecki
We may just delete timer on every trigger update and then start it again if needed. This will let us avoid both: races and locking in frequently called timer callback. Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/leds/ledtrig-netdev.c| 24 -- 1 file changed

[OpenWrt-Devel] [PATCH 1/2] ledtrig-netdev: switch rwlock to spinlock

2015-12-23 Thread Rafał Miłecki
Read/write lock was adding useless complexity, there wasn't any real gain in case of this driver. Also switch to _bh variants to avoid deadlocks. Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/leds/ledtrig-netdev.c| 40 +++--- 1 file changed, 20 insertions(+

[OpenWrt-Devel] [PATCH V2 2/3] swconfig: support receiving SWITCH_TYPE_LINK from kernel

2015-12-21 Thread Rafał Miłecki
When using cli, print link state the same way kernel used to do it. This will allow kernel switching PORT_LINK from SWITCH_TYPE_STRING. Signed-off-by: Rafał Miłecki --- V2: * Rename SWLIB_LINK_FLAG_ enums * Update link_policy to match kernel changes (few u32 -> flag) --- package/network/con

[OpenWrt-Devel] [PATCH V2 1/3] swconfig: add SWITCH_TYPE_LINK and support sending link info to user space

2015-12-21 Thread Rafał Miłecki
ssing string and parting it in the kernel space. Signed-off-by: Rafał Miłecki --- V2: * Rename SWITCH_LINK_* enums * Use nla_put_flag for boolean values --- .../linux/generic/files/drivers/net/phy/swconfig.c | 56 ++ target/linux/generic/files/include/linux/switch.h

[OpenWrt-Devel] [PATCH V2 3/3] swconfig: switch kernel PORT_LINK support to SWITCH_TYPE_LINK

2015-12-21 Thread Rafał Miłecki
As explained earlier, using SWITCH_TYPE_LINK gives more flexibility, it doesn't require e.g. string parsing to read some data. Signed-off-by: Rafał Miłecki --- .../linux/generic/files/drivers/net/phy/swconfig.c | 51 ++ 1 file changed, 4 insertions(+), 47 deletions(-)

Re: [OpenWrt-Devel] [PATCH 2/3] swconfig: support receiving SWITCH_TYPE_LINK from kernel

2015-12-20 Thread Rafał Miłecki
On 20 December 2015 at 22:56, Florian Fainelli wrote: > Le 16 déc. 2015 09:21, "Rafał Miłecki" a écrit : >> >> When using cli, print link state the same way kernel used to do it. >> This will allow kernel switching PORT_LINK from SWITCH_TYPE_STRING. >

Re: [OpenWrt-Devel] [PATCH 1/3] swconfig: add SWITCH_TYPE_LINK and support sending link info to user space

2015-12-20 Thread Rafał Miłecki
On 20 December 2015 at 19:23, Stefan Rompf wrote: > On Mittwoch, 16. Dezember 2015 18:19:01 Rafał Miłecki wrote: > >> So far we were sending link data as a string. It got some drawbacks: >> 1) Didn't allow writing clean user space apps reading link state. It was >>

Re: [OpenWrt-Devel] Contributing to OpenWrt

2015-12-16 Thread Rafał Miłecki
On 17 December 2015 at 01:28, Mohammed Billoo wrote: > I'm interesting in contributing to OpenWrt by initially working on bug > fixes. However, it wasn't obvious from the Wiki what is the correct process > in asking to be assigned to work on a bug, testing a fix, and submitting the > fix for revie

[OpenWrt-Devel] [PATCH 3/3] swconfig: switch kernel PORT_LINK support to SWITCH_TYPE_LINK

2015-12-16 Thread Rafał Miłecki
As explained earlier, using SWITCH_TYPE_LINK gives more flexibility, it doesn't require e.g. string parsing to read some data. Signed-off-by: Rafał Miłecki --- .../linux/generic/files/drivers/net/phy/swconfig.c | 51 ++ 1 file changed, 4 insertions(+), 47 deletions(-)

[OpenWrt-Devel] [PATCH 2/3] swconfig: support receiving SWITCH_TYPE_LINK from kernel

2015-12-16 Thread Rafał Miłecki
When using cli, print link state the same way kernel used to do it. This will allow kernel switching PORT_LINK from SWITCH_TYPE_STRING. Signed-off-by: Rafał Miłecki --- package/network/config/swconfig/src/cli.c | 33 +++ package/network/config/swconfig/src/swlib.c | 42

[OpenWrt-Devel] [PATCH 1/3] swconfig: add SWITCH_TYPE_LINK and support sending link info to user space

2015-12-16 Thread Rafał Miłecki
ssing string and parting it in the kernel space. Signed-off-by: Rafał Miłecki --- .../linux/generic/files/drivers/net/phy/swconfig.c | 46 ++ target/linux/generic/files/include/linux/switch.h | 2 + .../generic/files/include/uapi/linux/switch.h | 16 3

Re: [OpenWrt-Devel] [PATCH][RFC] kernel: swconfig: add API for setting port link speed

2015-12-16 Thread Rafał Miłecki
On 13 December 2015 at 13:40, Stefan Rompf wrote: >> int (*get_port_link)(struct switch_dev *dev, int port, >>struct switch_port_link *link); >> + int (*set_port_link)(struct switch_dev *dev, int port, >> + enum switch_port_speed speed

[OpenWrt-Devel] [PATCH] kernel: swconfig: add API for setting port link speed

2015-12-12 Thread Rafał Miłecki
Some switches can force link speed for a port. Let's add API that will allow driver to export this feature. Signed-off-by: Rafał Miłecki --- Changes in V1 (from RFC): * Remove .set = NULL, * Update description --- .../linux/generic/files/drivers/net/phy/swconfig.c

Re: [OpenWrt-Devel] [PATCH][RFC] kernel: swconfig: add API for setting port link speed

2015-12-12 Thread Rafał Miłecki
On 12 December 2015 at 07:54, John Crispin wrote: > Hi Rafał, > > in addition to the comment i made last night, i found another possible > issue. see below. > > On 11/12/2015 14:48, Rafał Miłecki wrote: >> Some switches can force link speed for a port. Let's add API

[OpenWrt-Devel] [PATCH][RFC] kernel: swconfig: add API for setting port link speed

2015-12-11 Thread Rafał Miłecki
Some switches can force link speed for a port. Let's add API that will allow driver to export this feature. Signed-off-by: Rafał Miłecki --- .../linux/generic/files/drivers/net/phy/swconfig.c | 29 ++ target/linux/generic/files/include/linux/switch.h | 2 ++ 2

Re: [OpenWrt-Devel] [PATCH 2/2] kernel: add overlayfs stacking fix from upstream

2015-12-03 Thread Rafał Miłecki
On 30 November 2015 at 23:42, Roman Yeryomin wrote: > Overlayfs stacking was broken in 4.1.12 but now fixed in upstream branch. > Stacking allows experimenting with configurations without the need to > reset a device to factory config. > > (...) > +Cc: # v4.2+ Why it wasn't fixed in 4.1.x? --

Re: [OpenWrt-Devel] Fast build testing [Was: Git mirror with branches, tags and full history]

2015-11-30 Thread Rafał Miłecki
On 30 November 2015 at 22:58, Eric Schultz wrote: > I'm looking into working on improving the testing of builds through a > distributed, testing system for builds on actual hardware. I'd love to see > if there's overlap in our work and to see how we can work together. > > I'll be having a kickoff

Re: [OpenWrt-Devel] bcm5357 wireless support

2015-11-30 Thread Rafał Miłecki
On 30 November 2015 at 12:47, José Vázquez Fernández wrote: > I have a Linksys E1000 with a BCM5357 SoC but the wifi is not supported in > b43 nor brcmsmac, and > bcmdhd is not an option. Will it be supported in a future? Take a look at: https://wireless.wiki.kernel.org/en/users/drivers/b43/soc

Re: [OpenWrt-Devel] [PATCH v2] bcm53xx: add support for Huawei WS880

2015-11-30 Thread Rafał Miłecki
On 26 November 2015 at 18:10, Prototik wrote: > +@@ -0,0 +1,94 @@ > ++/* > ++ * Broadcom BCM470X / BCM5301X ARM platform code. > ++ * DTS for Huawei WS880 > ++ * > ++ * Copyright (C) 2015 Sergey Shatunov > ++ * > ++ * Licensed under the GNU/GPL. See COPYING for details. > ++ */ > ++ > ++/dts-v1/;

Re: [OpenWrt-Devel] [PATCH 2/2] [gre] multicast flag control

2015-11-19 Thread Rafał Miłecki
On 19 November 2015 at 20:51, Podolak, Nicholas wrote: > Original patchset was not applying correctly, let's try again. It's a bit useless message for the repo log. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org

Re: [OpenWrt-Devel] [PATCH 1/3] Added patch for GL-AR150 support

2015-11-15 Thread Rafał Miłecki
On 13 November 2015 at 08:14, alzhao wrote: > This is the patches for GL-AR150 router support. Tested on Trunk and it works. > Also grouped profiles of GL products to gli.mk Please use target-specific prefix for the commit message. In this case it should be: ar71xx: foo bar Make sure you sign of

[OpenWrt-Devel] [PATCH] libnl-tiny: include

2015-11-11 Thread Rafał Miłecki
handlers.h:133:19: warning: 'struct ucred' declared inside parameter list [enabled by default] Fix it by including where needed in libnl headers. Signed-off-by: Rafał Miłecki --- package/libs/libnl-tiny/src/include/linux/netlink.h| 1 + package/libs/libnl-tiny/src/include/netlink

[OpenWrt-Devel] [PATCH][RFC][RTF] procd: drop nand_upgrade_stage1 from sysupgrade_pre_upgrade hooks

2015-11-10 Thread Rafał Miłecki
Now we have all targets using platform_pre_upgrade (and calling nand_do_upgrade directly) we don't need nand_upgrade_stage1 to be in sysupgrade_pre_upgrade hooks anymore. Signed-off-by: Rafał Miłecki --- package/system/procd/files/nand.sh | 1 - 1 file changed, 1 deletion(-) diff --

Re: [OpenWrt-Devel] [PATCH] add scsi tape to kernel modules

2015-11-10 Thread Rafał Miłecki
On 10 November 2015 at 11:51, Giuseppe Magnotta wrote: > Hi, > > I would like to submit a patch to add the scsi tape to the kernel modules. > > For me it's useful because my openwrt device will manage also backup. > > This is against trunk (main devel tree) repository Replace this description wit

Re: [OpenWrt-Devel] [PATCH] ramips: reset m25p80 when shutdown

2015-11-08 Thread Rafał Miłecki
On 7 November 2015 at 21:42, Shonn Lu wrote: > Signed-off-by: Shonn Lu > --- > .../0064-reset-m25p80-when-shutdown.patch | 24 > ++ > 1 file changed, 24 insertions(+) > create mode 100644 > target/linux/ramips/patches-3.18/0064-reset-m25p80-when-shutdown.patch > >

Re: [OpenWrt-Devel] 回复: How to disable the Internal PA in the mt7620a ?

2015-11-04 Thread Rafał Miłecki
On 4 November 2015 at 09:40, Soulkey wrote: > Hello? Is there anyone get this email ? Kind of. Both your e-mails went to my spam folder. Also it's way nicer to send e-mails as text/plain, not HTML. ___ openwrt-devel mailing list openwrt-devel@lists.open

Re: [OpenWrt-Devel] Memory leak in ash with script using "local" incorrectly

2015-10-29 Thread Rafał Miłecki
On 29 October 2015 at 16:36, Ron Yorston wrote: > Bastian Bittorf wrote: >>i just tested v1.24.1 on OpenWrt[1] and there is *no* leak. > > I think this is due to > > <0a0acb5> 2015-04-18 [Denys Vlasenko] ash: fix handling of duplicate "local" > > which is included in 1.24 but not 1.23. This pat

Re: [OpenWrt-Devel] [PATCH] Add initial support for wdr7500v3

2015-10-27 Thread Rafał Miłecki
On 27 October 2015 at 22:43, Srdjan Rosic wrote: > Signed-off-by: Srdjan Rosic Please use a correct prefix for your patches, you can get an idea by looking at the log, e.g.: git log --one-line target/linux/ar71xx/ This should be something like: ar71xx: Add initial support for wdr7500v3 Not sur

[OpenWrt-Devel] [PATCH V3][iwinfo] nl80211: read TX power using NL80211_CMD_GET_INTERFACE

2015-09-28 Thread Rafał Miłecki
With the mac80211 commit d55d0d598e66 ("nl80211: put current TX power in interface info") it is possible now to get TX power using nl80211. As we don't really support any wext-only drivers it doesn't make sense to leave wext as a fallback. Signed-off-by: Rafał Miłecki --- V2:

[OpenWrt-Devel] [PATCH V2][iwinfo] nl80211: read TX power using NL80211_CMD_GET_INTERFACE

2015-09-27 Thread Rafał Miłecki
With the mac80211 commit d55d0d598e66 ("nl80211: put current TX power in interface info") it is possible now to get TX power using nl80211. Signed-off-by: Rafał Miłecki --- include/iwinfo/utils.h | 4 iwinfo_nl80211.c | 29 + 2 files c

Re: [OpenWrt-Devel] [PATCH][iwinfo] nl80211: read TX power using NL80211_CMD_GET_INTERFACE

2015-09-27 Thread Rafał Miłecki
On 27 September 2015 at 21:07, Felix Fietkau wrote: > On 2015-09-27 20:07, Rafał Miłecki wrote: >> With the mac80211 commit d55d0d598e66 ("nl80211: put current TX power in >> interface info") it is possible now to get TX power using nl80211. > We should pull tha

[OpenWrt-Devel] [PATCH][iwinfo] nl80211: read TX power using NL80211_CMD_GET_INTERFACE

2015-09-27 Thread Rafał Miłecki
With the mac80211 commit d55d0d598e66 ("nl80211: put current TX power in interface info") it is possible now to get TX power using nl80211. Signed-off-by: Rafał Miłecki --- include/iwinfo/utils.h | 4 iwinfo_nl80211.c | 29 + 2 files c

[OpenWrt-Devel] [PATCH] ar71xx: rename firmware for Chinese version of TL-WR941ND v6

2015-09-27 Thread Rafał Miłecki
: Rafał Miłecki --- target/linux/ar71xx/image/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index ca63129..b5fc396 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx

[OpenWrt-Devel] [PATCH] procd: make nand_do_platform_check check image only

2015-09-24 Thread Rafał Miłecki
Recently all targets have been updated to call nand_do_upgrade directly. It's not needed anymore to leave a magic /tmp/sysupgrade-nand-path mark during image check. Signed-off-by: Rafał Miłecki --- I'll wait a week or two before pushing it. Maybe it'll make someone test

Re: [OpenWrt-Devel] [PATCH 1/2] oxnas: drop some unused sysupgrade code

2015-09-21 Thread Rafał Miłecki
:16PM +0200, Rafał Miłecki wrote: >> First of all platform_do_upgrade_phase2 doesn't seem to be defined >> anywhere. Other than that platform_do_upgrade is not likely to be ever >> called. There is a call to nand_do_platform_check which triggers >> nand_upgrade_stage1 call

Re: [OpenWrt-Devel] [PATCH v2] lantiq: ARV7519RW22 fixes - fix flash register (only 1 flash) - power led is green - rename message leds to internet - add leds configuration - enable switch vlans

2015-09-19 Thread Rafał Miłecki
On 18 September 2015 at 21:21, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > Signed-off-by: José Vázquez Fernández Please work on some saner commit messages ;) If a commit needs more explanation, put it above Signed-off-by lines. __

[OpenWrt-Devel] [PATCH] hostapd: check for banned client on association event

2015-09-17 Thread Rafał Miłecki
When using FullMAC drivers (e.g. brcmfmac) we don't get mgmt frames so check for banned client in probe request handler won't ever be used. Since cfg80211 provides us info about STA associating let's put a check there. Signed-off-by: Rafał Miłecki --- .../hostapd/patches/600-ubu

[OpenWrt-Devel] [PATCH 2/2] oxnas: add platform_pre_upgrade for sysupgrade

2015-09-15 Thread Rafał Miłecki
tform code (platform_pre_upgrade) should trigger NAND specific upgrade path. This is what this patch implements. This follows all other targets making it finally possible to change nand_do_platform_check. Signed-off-by: Rafał Miłecki --- target/linux/oxnas/base-files/lib/upgrade/platform.sh | 4 ++

[OpenWrt-Devel] [PATCH 1/2] oxnas: drop some unused sysupgrade code

2015-09-15 Thread Rafał Miłecki
First of all platform_do_upgrade_phase2 doesn't seem to be defined anywhere. Other than that platform_do_upgrade is not likely to be ever called. There is a call to nand_do_platform_check which triggers nand_upgrade_stage1 call with "exit 0" in it. Signed-off-by: Rafał Miłecki --

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

2015-09-15 Thread Rafał Miłecki
tform code (platform_pre_upgrade) should trigger NAND specific upgrade path. This is what this patch implements. This follows ar71xx, lantiq and partially bcm53xx. Signed-off-by: Rafał Miłecki --- I'd like to push it in a month if I won't get any reply. --- target/linux/ipq806x/base-fi

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

2015-09-15 Thread Rafał Miłecki
tform code (platform_pre_upgrade) should trigger NAND specific upgrade path. This is what this patch implements. This follows ar71xx, lantiq and partially bcm53xx. Signed-off-by: Rafał Miłecki --- I'd like to push it in a month if I won't get any reply. --- target/linux/imx6/base-fi

Re: [OpenWrt-Devel] OpenWrt /etc/hotplug.d/button/00-wps

2015-09-15 Thread Rafał Miłecki
On 15 September 2015 at 09:17, John kerry wrote: > Please can anyone reply Is someone here your paid support with 1h response time? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt

Re: [OpenWrt-Devel] Chaos Calmer 15.05

2015-09-14 Thread Rafał Miłecki
On 11 September 2015 at 11:29, John Crispin wrote: > On 11/09/2015 11:27, Daniel Golle wrote: >> However, it seems like images for some boards got missing at least on >> lantiq and oxnas. > > ah indeed, i missed the IB images. will add them during the weekend They are available now, thanks John!

[OpenWrt-Devel] Target profiles: making "make" build every profile

2015-09-14 Thread Rafał Miłecki
Quick summary: Subtargets - used for building modified kernels Profiles - used for including specific software There are two ways of using profiles: 1) Changing some software for all devices Used when profile is used for all devices (no filtering, no per device profiles). This is used e.g. by brc

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