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

2015-04-08 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 13 + 1 file changed, 13 insertions(+) diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index

[OpenWrt-Devel] [PATCH][RFT ar71xx] procd: get rid of /tmp/sysupgrade-nand-path magic

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

[OpenWrt-Devel] [PATCH 1/2] base-files: add support for platform_pre_upgrade function

2015-04-08 Thread Rafał Miłecki
of sysupgrade_pre_upgrade exit). This may be a bit misleading. Proposed solution adds a new function that will allow platform.sh trigger NAND sysupgrade consciously. This will also allow cleaning nand_do_platform_check limiting it to just checking the image. Signed-off-by: Rafał Miłecki zaj...@gmail.com

[OpenWrt-Devel] [PATCH V4] b53: define registers available and needed on BCM5301X

2015-04-06 Thread Rafał Miłecki
They are also present on some BCM63xx switches. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V4: Fix description of B53_GMII_PORT_OVERRIDE_CTRL Use GMII_PO_* Fix description of B53_BRCM_HDR --- .../generic/files/drivers/net/phy/b53/b53_regs.h | 33 ++ 1 file

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

2015-04-06 Thread Rafał Miłecki
On 6 April 2015 at 08:32, Alex Henrie alexhenri...@gmail.com wrote: 2015-04-04 17:01 GMT-06:00 Rafał Miłecki zaj...@gmail.com: I got serial working, unfortunately I discovered many problems with wireless card support. 1) ssb believes there isn't cardbus 2) ssb can't detect PCI is working

Re: [OpenWrt-Devel] [PATCH V3] b53: define registers available and needed on BCM5301X

2015-04-06 Thread Rafał Miłecki
On 30 March 2015 at 22:43, Jonas Gorski j...@openwrt.org wrote: On Wed, Mar 18, 2015 at 8:48 PM, Rafał Miłecki zaj...@gmail.com wrote: They are also present on some BCM63xx switches. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- .../generic/files/drivers/net/phy/b53/b53_regs.h | 32

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

2015-04-04 Thread Rafał Miłecki
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-inc.org. I just got it today, thanks! I disassembled it, it's

Re: [OpenWrt-Devel] [PATCH 3/6] bcm53xx: update sprom from nvram to handle rev 11

2015-04-02 Thread Rafał Miłecki
Hi Ian, On 10 March 2015 at 04:30, Ian Kent ra...@themaw.net wrote: Add new sprom revision 11 variables to the nvram - sprom reader. Signed-off-by: Ian Kent ra...@themaw.net There are few problems with bcm53xx's SPROM and I've few comments to your patch. bcm53xx's SPROM driver is modified

Re: [OpenWrt-Devel] [PATCH 4/6] bcm53xx: increase nvram allocation size to 64k

2015-04-02 Thread Rafał Miłecki
On 10 March 2015 at 04:30, Ian Kent ra...@themaw.net wrote: The R8000 nvram is larger than 32k, increase nvram allocation to 64k to accomadate. I handled this by sending nvram.c patch for mainline: http://patchwork.linux-mips.org/patch/9651/ And backporting all changes to bcm53xx:

Re: [OpenWrt-Devel] [PATCH 3/6] bcm53xx: update sprom from nvram to handle rev 11

2015-04-02 Thread Rafał Miłecki
On 2 April 2015 at 11:03, Ian Kent ra...@themaw.net wrote: On Thu, 2015-04-02 at 10:22 +0200, Rafał Miłecki wrote: Other than that, current way of handling revisions is quite messy, I guess you noticed it by yourself. I started reworking, see: http://patchwork.linux-mips.org/patch/9659/ Again

Re: [OpenWrt-Devel] [PATCH 4/6] bcm53xx: increase nvram allocation size to 64k

2015-04-02 Thread Rafał Miłecki
On 2 April 2015 at 11:57, Ian Kent ra...@themaw.net wrote: On Thu, 2015-04-02 at 17:47 +0800, Ian Kent wrote: On Thu, 2015-04-02 at 09:45 +0200, Rafał Miłecki wrote: On 10 March 2015 at 04:30, Ian Kent ra...@themaw.net wrote: The R8000 nvram is larger than 32k, increase nvram allocation

Re: [OpenWrt-Devel] [PATCH 3/6] bcm53xx: update sprom from nvram to handle rev 11

2015-04-02 Thread Rafał Miłecki
On 10 March 2015 at 04:30, Ian Kent ra...@themaw.net wrote: +@@ -93,6 +113,9 @@ struct ssb_sprom { + u16 boardflags2_lo; /* Board flags (bits 32-47) */ + u16 boardflags2_hi; /* Board flags (bits 48-63) */ + /* TODO store board flags in a single u64 */ ++ /*

Re: [OpenWrt-Devel] reply: System halted on bcm4708 series board when booting openwrt trunk(kernel 3.14)

2015-03-31 Thread Rafał Miłecki
Please STOP sending HTML e-mails. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] [PATCH RFC] brcm47xx: image: use standard KERNEL_IMAGE to avoid warnings

2015-03-30 Thread Rafał Miłecki
vmlinux.lzma FOO-kernel.bin which is redundant on brcm47xx where we never modify kernel image. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- With this fix using new image building system adds another overhead because 99% of devices should share both: kernel (vmlinux.lzma) and TRX. I'm wondering

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

2015-03-30 Thread Rafał Miłecki
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-inc.org. I just got it today, thanks! I disassembled it, it's really a PCMCIA wireless card, nice :) Quite an unique device! I

Re: [OpenWrt-Devel] [PATCH 1/2] ralink: add FireWRT power button

2015-03-21 Thread Rafał Miłecki
On 21 March 2015 at 06:06, wengbj fl.serv...@t-firefly.com wrote: Signed-off-by: wengbj fl.serv...@t-firefly.com --- target/linux/ramips/dts/FIREWRT.dts |5 + 1 file changed, 5 insertions(+) diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts

Re: [OpenWrt-Devel] [PATCH 1/2] ralink: add FireWRT power button

2015-03-21 Thread Rafał Miłecki
On 21 March 2015 at 23:18, John Crispin blo...@openwrt.org wrote: On 21/03/2015 23:15, Rafał Miłecki wrote: On 21 March 2015 at 06:06, wengbj fl.serv...@t-firefly.com wrote: Signed-off-by: wengbj fl.serv...@t-firefly.com --- target/linux/ramips/dts/FIREWRT.dts |5 + 1 file changed

Re: [OpenWrt-Devel] [PATCH] b53: fix overriding port 8 state (if it is connected to CPU)

2015-03-18 Thread Rafał Miłecki
On 18 March 2015 at 11:28, Jonas Gorski j...@openwrt.org wrote: On Wed, Mar 18, 2015 at 10:02 AM, Rafał Miłecki zaj...@gmail.com wrote: Signed-off-by: Rafał Miłecki zaj...@gmail.com --- .../generic/files/drivers/net/phy/b53/b53_common.c | 23 +- .../generic/files

[OpenWrt-Devel] [PATCH] b53: fix overriding port 8 state (if it is connected to CPU)

2015-03-18 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- .../generic/files/drivers/net/phy/b53/b53_common.c | 23 +- .../generic/files/drivers/net/phy/b53/b53_regs.h | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/target/linux/generic/files/drivers/net/phy

[OpenWrt-Devel] [PATCH V2] b53: define registers available and needed on BCM5301X

2015-03-18 Thread Rafał Miłecki
They are also present on some BCM63xx switches. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- .../generic/files/drivers/net/phy/b53/b53_regs.h | 27 ++ 1 file changed, 27 insertions(+) diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_regs.h b/target

[OpenWrt-Devel] [PATCH] b53: reverse duplex bit meaning for IMP state override register

2015-03-18 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- When reading bcmrobo.c code for BCM5301X I've noticed that it uses REG_CTRL_MIIPO (0x0e) with a following comment: /* default(1 1) DUPLX_MODE: * Full Duplex */ So I guess our bit definition may be reversed. Can someone verify this? --- target

[OpenWrt-Devel] [PATCH] b53: define registers available and needed on BCM5301X

2015-03-18 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- .../generic/files/drivers/net/phy/b53/b53_regs.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_regs.h b/target/linux/generic/files/drivers/net/phy/b53/b53_regs.h

[OpenWrt-Devel] [PATCH V3] b53: define registers available and needed on BCM5301X

2015-03-18 Thread Rafał Miłecki
They are also present on some BCM63xx switches. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- .../generic/files/drivers/net/phy/b53/b53_regs.h | 32 ++ 1 file changed, 32 insertions(+) diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_regs.h b/target

Re: [OpenWrt-Devel] [PATCH] kernel: Support kernel options required by systemd

2015-03-15 Thread Rafał Miłecki
On 14 March 2015 at 00:35, Jeff Waugh j...@bethesignal.org wrote: (John: This patch takes into account r44765, but moves the FHANDLE config stanza to a more understandable position in the file.) If you want to put some comments in your patch, place them below the ---. This way they won't be

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

2015-03-13 Thread Rafał Miłecki
On 13 March 2015 at 07:38, Alex Henrie alexhenri...@gmail.com wrote: I have a spare Linksys WRT300N V1, and according to the wiki, OpenWrt does not yet fully support it: http://wiki.openwrt.org/toh/linksys/wrt300n1 http://wiki.openwrt.org/toh/linksys/wrt300n I would be happy to mail this

Re: [OpenWrt-Devel] System halted on bcm4708 series board when booting openwrt trunk (kernel 3.14)

2015-03-10 Thread Rafał Miłecki
On 10 March 2015 at 04:43, Tymon banglang.hu...@foxmail.com wrote: my cpu is BCM958522ER which is the same series with 4708 as well, 32MB ###boot log: (I updated the xxx-squashfs.trx to the flash) Hit any key to stop autoboot: 0 Checking TRX Image at addr 1e20 ... Uncompressing ...

Re: [OpenWrt-Devel] [PATCH 0/6] bcm53xx: changes for R8000 so far

2015-03-10 Thread Rafał Miłecki
On 10 March 2015 at 12:29, Jonas Gorski j...@openwrt.org wrote: On Tue, Mar 10, 2015 at 4:30 AM, Ian Kent ra...@themaw.net wrote: [OpenWrt-Devel] [PATCH 0/6] bcm53xx: changes for R8000 so far Ah, this is supposed to be the V2. Please version your patchsets when resubmitting, i.e. this would

Re: [OpenWrt-Devel] [PATCH][RFT] mpc52xx: switch kernel to 3.18

2015-03-10 Thread Rafał Miłecki
On 1 March 2015 at 00:05, Rafał Miłecki zaj...@gmail.com wrote: Signed-off-by: Rafał Miłecki zaj...@gmail.com --- Gabor: I can see you were bumping mpc52xx kernel in the past. Could you try 3.18? Ping? ___ openwrt-devel mailing list openwrt-devel

Re: [OpenWrt-Devel] [PATCH 0/6] bcm53xx - changes for R8000 so far

2015-03-09 Thread Rafał Miłecki
On 9 March 2015 at 10:08, Ian Kent ra...@themaw.net wrote: Here are some changes done while working to get the R8000 working. Some are straight forward while some require review. Thanks :) One request: please use bcm53xx: prefix, as it's what we do since always. I'll try to reply to all

Re: [OpenWrt-Devel] [PATCH 1/6] bcm53xx - fixup early device id 8012

2015-03-09 Thread Rafał Miłecki
On 9 March 2015 at 10:08, Ian Kent ra...@themaw.net wrote: Looks like the BCM53012 has a similar problem to the BCM53011. Change looks OK, however I'd prefer you to simply modify existing patch 170-pcie2-bcma-add-new-PCIe2-driver-for-bcma.patch It still wasn't included/accepted mainline, so

Re: [OpenWrt-Devel] [PATCH 0/6] bcm53xx - changes for R8000 so far

2015-03-09 Thread Rafał Miłecki
On 9 March 2015 at 10:21, Rafał Miłecki zaj...@gmail.com wrote: On 9 March 2015 at 10:08, Ian Kent ra...@themaw.net wrote: Here are some changes done while working to get the R8000 working. Some are straight forward while some require review. Thanks :) One request: please use bcm53xx

Re: [OpenWrt-Devel] [PATCH 1/1] kernel: refined one of 514-yaffs-3.6-use-delayed-work-instead-of-write_super.patch

2015-03-01 Thread Rafał Miłecki
On 2 March 2015 at 06:11, ngc n...@ff.iij4u.or.jp wrote: Modified 514-yaffs-3.6-use-delayed-work-instead-of-write_super.patch which was included old trunk, to fit the current trunk kernel. This needs to support the behavior when yaffs_auto_checkpoint is set '2', in 3.6.x and later. I got

Re: [OpenWrt-Devel] [PATCH][RFT] adm5120: switch kernel to 3.18

2015-03-01 Thread Rafał Miłecki
On 1 March 2015 at 14:28, Jonas Gorski j...@openwrt.org wrote: On Sun, Mar 1, 2015 at 1:04 AM, Rafał Miłecki zaj...@gmail.com wrote: Depending on your definition of works, at least with a 16 MiB RAM device: It boots, but eventually OOM's: http://pastebin.com/5kR99CMG Adding the low_mem

Re: [OpenWrt-Devel] [PATCH 3/3] b53: create slave devices for ports

2015-02-28 Thread Rafał Miłecki
On 26 February 2015 at 19:24, Florian Fainelli f.faine...@gmail.com wrote: On 25/02/15 07:24, Alexandru Ardelean wrote: Feature implemented and tested on BCM53128. Slave devices logic copied from the Linux kernel from Marvell's DSA driver ( linux/net/dsa/ ). Also the logic for the Broadcom

[OpenWrt-Devel] [PATCH][RFT] omap: switch kernel to 3.18

2015-02-28 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- Hey guys, My previous request (posted half a year ago) was completely ignored: [PATCH][RFT] omap: switch kernel to 3.14 https://lists.openwrt.org/pipermail/openwrt-devel/2014-September/027845.html I'll really appreciate if someone can try

[OpenWrt-Devel] [PATCH][RFT] mpc52xx: switch kernel to 3.18

2015-02-28 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- Gabor: I can see you were bumping mpc52xx kernel in the past. Could you try 3.18? --- target/linux/mpc52xx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/mpc52xx/Makefile b/target/linux/mpc52xx/Makefile

[OpenWrt-Devel] [PATCH][RFT] ep93xx: switch kernel to 3.18

2015-02-28 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- target/linux/ep93xx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ep93xx/Makefile b/target/linux/ep93xx/Makefile index 7e7422b..3da7ca9 100644 --- a/target/linux/ep93xx/Makefile +++ b/target/linux/ep93xx

[OpenWrt-Devel] [PATCH][RFT] adm5120: switch kernel to 3.18

2015-02-28 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- Gabor: I can see you were working on adm5120 in the past. Could you test this patch? --- target/linux/adm5120/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/adm5120/Makefile b/target/linux/adm5120

Re: [OpenWrt-Devel] [PATCH] generic: several linux-4.0 fixes

2015-02-24 Thread Rafał Miłecki
On 24 February 2015 at 16:29, Álvaro Fernández Rojas nolt...@gmail.com wrote: diff --git a/include/kernel.mk b/include/kernel.mk index e21d53a..18cb133 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -52,7 +52,11 @@ else LINUX_SOURCE:=linux-$(LINUX_VERSION).tar.xz

Re: [OpenWrt-Devel] [PATCH] generic: several linux-4.0 fixes

2015-02-24 Thread Rafał Miłecki
On 24 February 2015 at 16:29, Álvaro Fernández Rojas nolt...@gmail.com wrote: --- a/target/linux/generic/files/drivers/net/phy/swconfig.c +++ b/target/linux/generic/files/drivers/net/phy/swconfig.c @@ -396,7 +396,12 @@ swconfig_dump_attr(struct swconfig_callback *cb, void *arg)

[OpenWrt-Devel] [PATCH] kernel.mk: handle major version dynamically

2015-02-23 Thread Rafał Miłecki
We can't simply hardcode v3.x directory name. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- include/kernel.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/kernel.mk b/include/kernel.mk index e21d53a..eb3e07a 100644 --- a/include/kernel.mk +++ b/include

Re: [OpenWrt-Devel] [PATCH RFT] kernel: mtdsplit_uimage: debug buf/header sizes

2015-02-12 Thread Rafał Miłecki
On 12 February 2015 at 21:04, John Crispin blo...@openwrt.org wrote: [0.564000] Creating 4 MTD partitions on spi32766.0: [0.568000] 0x-0x0001 : uboot [0.572000] 0x0001-0x0002 : uboot-env [0.58] 0x0002-0x0003 : calibration

[OpenWrt-Devel] [PATCH RFT] kernel: mtdsplit_uimage: debug buf/header sizes

2015-02-12 Thread Rafał Miłecki
--- John can you give it a try, please? --- .../generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c

[OpenWrt-Devel] Request for testing mtdsplit_uimage

2015-02-11 Thread Rafał Miłecki
As you could notice I've improved mtdsplit_uimage a bit: https://dev.openwrt.org/changeset/44412/ https://dev.openwrt.org/changeset/44413/ https://dev.openwrt.org/changeset/44414/ https://dev.openwrt.org/changeset/44415/ This should add support for Edimax devices, but... could also break

Re: [OpenWrt-Devel] [PATCH v1 0/7] Add custom TRX header option

2015-02-10 Thread Rafał Miłecki
On 9 February 2015 at 21:52, Florian Fainelli flor...@openwrt.org wrote: On 09/02/15 08:29, Will Sheppard wrote: Patchset to essentially add custom TRX header to all firmware produced. This is most useful for the Belkin routers from my experience. I'm not how other trx based firmwares modify

Re: [OpenWrt-Devel] [PATCH 3/3] sunxi: add support for Linux 3.19

2015-02-10 Thread Rafał Miłecki
On 10 February 2015 at 15:09, Daniel Golle dan...@makrotopia.org wrote: simple-framebuffer now works on the A20. I'm really not sure about other developers opinion (will be happy to hear it), but I guess you could try to generate a patch using git and git format-patch -C That would allow

Re: [OpenWrt-Devel] [PATCH 1/3] kernel: 3.19 was released

2015-02-10 Thread Rafał Miłecki
kernel: 3.19 was released So what? Commit message is supposed to describe the change, not what has happened. -- Rafał ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Re: [OpenWrt-Devel] [PATCH 2/3] kernel: fix patches for 3.19

2015-02-10 Thread Rafał Miłecki
On 10 February 2015 at 15:06, Daniel Golle dan...@makrotopia.org wrote: 130, 771 and 772 were merged upstream. 304 had to be refreshed to apply on the new sources. Nack. This should be part of the previous patch. With current split of your patches this one (2/3) fixes a kind of regression your

Re: [OpenWrt-Devel] cmake.mk: ignores package CFLAGS

2015-02-01 Thread Rafał Miłecki
On 9 January 2015 at 10:51, Rafał Miłecki zaj...@gmail.com wrote: If you look at include/cmake.mk you will notice followiing: -DCMAKE_BUILD_TYPE=Release It means that CMake uses CMAKE_C_FLAGS_RELEASE I've created package and tested it using two variants: 1) TARGET_CFLAGS=-DFOO

[OpenWrt-Devel] [PATCH V2 libubox] uloop: ignore SIGPIPE by default

2015-01-26 Thread Rafał Miłecki
Most app don't want to crash because of unhandled SIGPIPE. It could happen is such trivial situations like writing to socket. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Replace signal call with sigaction --- uloop.c | 23 +++ 1 file changed, 23 insertions(+) diff

[OpenWrt-Devel] [PATCH V3 libubox] uloop: ignore SIGPIPE by default

2015-01-26 Thread Rafał Miłecki
Most app don't want to crash because of unhandled SIGPIPE. It could happen is such trivial situations like writing to socket. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Replace signal call with sigaction V3: Don't duplicate the code --- uloop.c | 24 1 file

[OpenWrt-Devel] [PATCH libubox] uloop: ignore SIGPIPE by default

2015-01-26 Thread Rafał Miłecki
Most app don't want to crash because of unhandled SIGPIPE. It could happen is such trivial situations like writing to socket. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- uloop.c | 17 + 1 file changed, 17 insertions(+) diff --git a/uloop.c b/uloop.c index 9a77ce4..7d11bbc

Re: [OpenWrt-Devel] How to enable EARLY_PRINTK by default on ARM target?

2015-01-25 Thread Rafał Miłecki
On 25 January 2015 at 21:08, Florian Fainelli flor...@openwrt.org wrote: Le 14/01/2015 22:54, Rafał Miłecki a écrit : I wanted bcm53xx kernels to be compiled with EARLY_PRINTK by default. This is safe, we enable earlyprintk using bootargs on tested devices only. So I have config option

[OpenWrt-Devel] [PATCH uclient] allow sending requests with DELETE method

2015-01-22 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- uclient-http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uclient-http.c b/uclient-http.c index 9f9fac9..eb69702 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -41,6 +41,7 @@ enum request_type { REQ_HEAD, REQ_POST

[OpenWrt-Devel] [PATCH uclient] use const for char buffer in uclient_write

2015-01-21 Thread Rafał Miłecki
We are not supposed to modify it and ustream accepts const already. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- uclient-backend.h | 2 +- uclient-http.c| 2 +- uclient.c | 2 +- uclient.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/uclient

[OpenWrt-Devel] uclient libubox: handling SIGPIPE / EPIPE

2015-01-21 Thread Rafał Miłecki
I'm trying to use uclient to monitor my home network servers querying http://ip/status . So far I was using bash + curl, but I'm trying to learn libubox now. So today I accidentally queried some unknown machine (random IP) and my app crashed. What has happened: 1) When I first called

Re: [OpenWrt-Devel] [PATCH] package-ipkg.mk: allow to install CC packages on older versions

2015-01-21 Thread Rafał Miłecki
On 21 January 2015 at 10:36, Christian Schoenebeck christian.schoeneb...@gmail.com wrote: Why to block users from using updated packages like ca-certificates, privoxy or updated luci-apps Because we: 1) Don't want help users breaking their installations if they upgrade wrong package 2) Don't

[OpenWrt-Devel] [PATCH V2 uclient] support for connection timeout

2015-01-16 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Add uclient_set_timeout Stop timer after receiving data Start timer after fetching data by uclient user --- uclient-fetch.c | 4 uclient-http.c | 12 ++-- uclient.c | 36

[OpenWrt-Devel] [PATCH V3 uclient] support for connection timeout

2015-01-16 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Add uclient_set_timeout Stop timer after receiving data Start timer after fetching data by uclient user V3: Fix missing braces in __uclient_notify_read, thanks John! --- uclient-fetch.c | 4 uclient-http.c | 13

[OpenWrt-Devel] [PATCH uclient] support for connection timeout

2015-01-15 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- uclient-fetch.c | 4 uclient.c | 25 - uclient.h | 4 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/uclient-fetch.c b/uclient-fetch.c index 22f15c6..0617a02 100644 --- a/uclient

[OpenWrt-Devel] [PATCH libubox 2/2] usock: set socket flags right after creating it

2015-01-15 Thread Rafał Miłecki
Otherwise some flags like USOCK_NONBLOCK wouldn't work as expected (O_NONBLOCK affects connect behavior). Signed-off-by: Rafał Miłecki zaj...@gmail.com --- usock.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/usock.c b/usock.c index 39909c1..7bde620 100644

[OpenWrt-Devel] [PATCH libubox 1/2] usock: add helper waiting for socket to be ready

2015-01-15 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- usock.c | 30 ++ usock.h | 11 +++ 2 files changed, 41 insertions(+) diff --git a/usock.c b/usock.c index 04ed4ee..39909c1 100644 --- a/usock.c +++ b/usock.c @@ -117,3 +117,33 @@ int usock(int type, const char

[OpenWrt-Devel] [PATCH V2 libubox 1/2] usock: add helper waiting for socket to be ready

2015-01-15 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- V2: Use poll instead of select --- usock.c | 27 +++ usock.h | 11 +++ 2 files changed, 38 insertions(+) diff --git a/usock.c b/usock.c index 04ed4ee..5bdd3ff 100644 --- a/usock.c +++ b/usock.c @@ -20,6 +20,7

[OpenWrt-Devel] [PATCH uclient] http: wait for socket to be ready before using it

2015-01-15 Thread Rafał Miłecki
This is required as we use USOCK_NONBLOCK. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- uclient-http.c | 5 + uclient.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/uclient-http.c b/uclient-http.c index c25e52f..82bef8a 100644 --- a/uclient-http.c +++ b/uclient-http.c

Re: [OpenWrt-Devel] [PATCH uclient] http: wait for socket to be ready before using it

2015-01-15 Thread Rafał Miłecki
On 15 January 2015 at 13:17, Felix Fietkau n...@openwrt.org wrote: On 2015-01-15 12:50, Rafał Miłecki wrote: This is required as we use USOCK_NONBLOCK. Are you sure? Theoretically, ustream should already handle it properly. The first write fails if the socket is not connected yet, so ustream

[OpenWrt-Devel] How to enable EARLY_PRINTK by default on ARM target?

2015-01-14 Thread Rafał Miłecki
I wanted bcm53xx kernels to be compiled with EARLY_PRINTK by default. This is safe, we enable earlyprintk using bootargs on tested devices only. So I have config option enabled in default configs: grep EARLY_PRINTK target/linux/bcm53xx/config-3.1*

Re: [OpenWrt-Devel] [PATCH 3/9] kernel: Allow ubi autoattach to run on NOR flash

2015-01-14 Thread Rafał Miłecki
On 13 January 2015 at 16:56, Maxime Ripard maxime.rip...@free-electrons.com wrote: Some devices out there only have a NOR flash to store the rootfs on. While using UBI is arguable on this kind of NAND, this is something that should be supported. So why use UBI at all? Doesn't it make more

Re: [OpenWrt-Devel] pivot_overlay doesn't work anymore

2015-01-10 Thread Rafał Miłecki
On 10 January 2015 at 12:54, Gianluca Anzolin gianl...@sottospazio.it wrote: I just tried to install the latest CC trunk (r43901) on my netgear wndr4300, a router with NAND flash on that uses UBIFS. I noticed that I cannot use an external /overlay anymore: while I can mount the usb drive on

[OpenWrt-Devel] cmake.mk: ignores package CFLAGS

2015-01-09 Thread Rafał Miłecki
If you look at include/cmake.mk you will notice followiing: -DCMAKE_BUILD_TYPE=Release It means that CMake uses CMAKE_C_FLAGS_RELEASE I've created package and tested it using two variants: 1) TARGET_CFLAGS=-DFOO This is what I got: grep FOO build_dir/target-*/test/CMakeCache.txt

[OpenWrt-Devel] [PATCH] fstools: update to the latest git HEAD

2015-01-07 Thread Rafał Miłecki
This allows using UBIFS volume as overlay and adds support for Btrfs. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- package/system/fstools/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile index

[OpenWrt-Devel] netifd: network reload ignores country change

2014-12-29 Thread Rafał Miłecki
I got wrong country set and couldn't use channels 12/13. So I set: wireless.radio1.country=pl however calling /etc/init.d/network reload didn't do anything. It seems netifd doesn't notice country change. -- Rafał ___ openwrt-devel mailing list

Re: [OpenWrt-Devel] [PATCH] base-files: Use the same LED timing as before for preinit_regular.

2014-12-26 Thread Rafał Miłecki
On 25 December 2014 at 02:28, Vittorio G (VittGam) open...@vittgam.net wrote: Signed-off-by: Vittorio Gambaletta open...@vittgam.net diff --git a/package/base-files/files/lib/functions/leds.sh b/package/base-files/files/lib/functions/leds.sh index 4ac8145..d4d4512 100644 ---

Re: [OpenWrt-Devel] [PATCH] base-files: Use the same LED timing as before for preinit_regular.

2014-12-26 Thread Rafał Miłecki
On 26 December 2014 at 09:51, Rafał Miłecki zaj...@gmail.com wrote: On 25 December 2014 at 02:28, Vittorio G (VittGam) open...@vittgam.net wrote: Signed-off-by: Vittorio Gambaletta open...@vittgam.net diff --git a/package/base-files/files/lib/functions/leds.sh b/package/base-files/files

[OpenWrt-Devel] [PATCH fstools] libfstools: fix find_mount to return device path

2014-12-23 Thread Rafał Miłecki
So far we were returning mount point which doesn't make sense for a function that already takes mount point as an argument. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- libfstools/find.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libfstools/find.c b/libfstools

[OpenWrt-Devel] [PATCH fstools] libfstools: ubi: avoid crash in volume finding function

2014-12-23 Thread Rafał Miłecki
In case /sys/devices/virtual/ubi/ubi?/ubi?_?/name doesn't exist volname will be NULL and calling strlen for NULL isn't a good idea. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- libfstools/ubi.c | 4 1 file changed, 4 insertions(+) diff --git a/libfstools/ubi.c b/libfstools/ubi.c index

Re: [OpenWrt-Devel] Introducing fastpath - Kernel module for speeding up IP forwarding

2014-12-22 Thread Rafał Miłecki
On 22 December 2014 at 15:06, Tomer Eliyahu tomereliya...@gmail.com wrote: We are anxious to hear your thoughts/comments and will gladly share the code. So... can we get it? I guess we've just gained open source implementation of the hyper-secret Broadcom's CTF technology :P

Re: [OpenWrt-Devel] [PATCH RFC] brcm47xx: support for flashing CHK and CyberTAN images

2014-12-22 Thread Rafał Miłecki
On 15 December 2014 at 13:17, Rafał Miłecki zaj...@gmail.com wrote: This will allow simple sysupgrade-s including simpler reverting to the original firmware. I guess noone plans to NACK this? :) ___ openwrt-devel mailing list openwrt-devel

Re: [OpenWrt-Devel] 3.18 kernel timing? (Was Re: Moving to 3.17.x kernel?)

2014-12-20 Thread Rafał Miłecki
Don't top post. On 20 December 2014 at 18:58, Marc Nicholas m...@wimoto.com wrote: Well, there-in lies the problem: AR71xx doesn’t have any patches for 3.14 kernel right now. I’m trying to build it, though. You can be the one to add them. cp -R patches-3.14 patches-3.18 make

[OpenWrt-Devel] [PATCH fstools] support UBI blocks (volumes)

2014-12-17 Thread Rafał Miłecki
We already had ubifs idinfo, so only /dev/ubiN_M support was missing. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- block.c | 1 + libblkid-tiny/libblkid-tiny.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index bba68c2

[OpenWrt-Devel] [PATCH fstools] block: allow mounting UBIFS partition as extroot

2014-12-17 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- block.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index 68cfd5a..107ba64 100644 --- a/block.c +++ b/block.c @@ -598,6 +598,10 @@ static void check_filesystem(struct blkid_struct_probe *pr

[OpenWrt-Devel] [PATCH fstools] block: make sure /etc/ exists on the extroot

2014-12-17 Thread Rafał Miłecki
Otherwise opening .extroot-uuid could fail. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- block.c | 4 1 file changed, 4 insertions(+) diff --git a/block.c b/block.c index 107ba64..c29017d 100644 --- a/block.c +++ b/block.c @@ -911,6 +911,10 @@ static int check_extroot(char *path

[OpenWrt-Devel] Current state of extroot, how to use it, what about ubi(fs)

2014-12-16 Thread Rafał Miłecki
I've spent few hours today trying to understand extroot. I've failed :( Of course I was trying to use wiki pages: http://wiki.openwrt.org/doc/howto/extroot http://wiki.openwrt.org/doc/uci/fstab 1) Main question Is the following sentence true at all? The configuration of extroot is very simple

Re: [OpenWrt-Devel] Current state of extroot, how to use it, what about ubi(fs)

2014-12-16 Thread Rafał Miłecki
On 16 December 2014 at 16:30, Imre Kaloz ka...@openwrt.org wrote: On Tue, 16 Dec 2014 16:06:27 +0100, Gergely Kiss mail.g...@gmail.com wrote: On 16 December 2014 at 14:39, Flávio Silveira f...@terra.com.br wrote: On 16/12/2014 11:23, Gergely Kiss wrote: I'm not sure I understand what you

Re: [OpenWrt-Devel] Current state of extroot, how to use it, what about ubi(fs)

2014-12-16 Thread Rafał Miłecki
On 16 December 2014 at 16:06, Gergely Kiss mail.g...@gmail.com wrote: So, is this simply about mounting an additional UBIFS partition at boot time? If so, I believe the best solution would be to extend the functionality of fstab with a simple (shell) script, as suggested in the fstab wiki:

Re: [OpenWrt-Devel] [PATCH] add preinit_regular diag.sh set_state argument

2014-12-15 Thread Rafał Miłecki
On 14 December 2014 at 23:00, Rafał Miłecki zaj...@gmail.com wrote: This new argument is used right after starting regular preinit (which happens if failsafe wasn't triggered). The main purpose of preinit argument is to indicate that failsafe can be triggered, however we were missing a way

[OpenWrt-Devel] [PATCH RFC] brcm47xx: support for flashing CHK and CyberTAN images

2014-12-15 Thread Rafał Miłecki
This will allow simple sysupgrade-s including simpler reverting to the original firmware. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- .../brcm47xx/base-files/lib/upgrade/platform.sh| 33 ++ 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/target/linux

Re: [OpenWrt-Devel] rootfs_data on separated flash

2014-12-15 Thread Rafał Miłecki
On 15 December 2014 at 06:29, John Crispin blo...@openwrt.org wrote: On 14/12/2014 21:37, Rafał Miłecki wrote: 1) I've modified DT to create ubi MTD partition on NAND 2) Wrote a simple preinit_main script creating rootfs_data2 UBI volume 3) Modified fstools to prefer rootfs_data2 over

[OpenWrt-Devel] [PATCH fstools 1/2] libfstools: accept volume as argument in most calls

2014-12-14 Thread Rafał Miłecki
This optimizes code: drops unneeded calls to the volume_find and checks. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- libfstools/jffs2.c | 44 libfstools/libfstools.h | 8 +--- libfstools/overlay.c| 18 -- libfstools

[OpenWrt-Devel] [PATCH fstools 2/2] libfstools: drop removed functions from the header file

2014-12-14 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki zaj...@gmail.com --- libfstools/libfstools.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/libfstools/libfstools.h b/libfstools/libfstools.h index df7e48b..b03e432 100644 --- a/libfstools/libfstools.h +++ b/libfstools/libfstools.h @@ -41,10 +41,7 @@ extern int

Re: [OpenWrt-Devel] rootfs_data on separated flash

2014-12-14 Thread Rafał Miłecki
On 14 December 2014 at 19:55, John Crispin blo...@openwrt.org wrote: gregley sent a extroot ubi support patch. with this in place 2 scenarios are possible. 1) install rootfs on your spi and with a extroot default config that will copy the whole content over to the ubi. magic markers might be

[OpenWrt-Devel] [PATCH] add preinit_regular diag.sh set_state argument

2014-12-14 Thread Rafał Miłecki
it's clear when failsafe mode can be triggered. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- package/base-files/files/lib/functions/leds.sh | 4 package/base-files/files/lib/preinit/10_indicate_preinit | 6 +- package/base-files/files/lib/preinit

[OpenWrt-Devel] rootfs_data on separated flash

2014-12-13 Thread Rafał Miłecki
Hi, this partially a continuation of the Some standard partition name for extra user data? thread. Summary: 1) I have device with serial flash (16 MiB) and NAND flash (128 MiB). 2) Serial flash contains 2 partitions: bootloader and firmware. 3) Bootloader writes supplied image to the firmware

Re: [OpenWrt-Devel] Can we have init call for diag.sh (set_state)?

2014-12-13 Thread Rafał Miłecki
On 11 December 2014 at 21:17, John Crispin blo...@openwrt.org wrote: On 11/12/2014 20:59, Rafał Miłecki wrote: Let me simplify booting process into following stages: 1) preinit (LED blinking with medium freq) 2) init (LED blinking with medium freq) 3) done (LED state on) The problem

[OpenWrt-Devel] [PATCH] kernel: mtdsplit_uimage: use more generic header verify function

2014-12-13 Thread Rafał Miłecki
Some devices have uImage headers after some extra headers (e.g. Edimax devices). To support such cases our verify callback function should be allowed to return header offset, not just a boolean value. Signed-off-by: Rafał Miłecki zaj...@gmail.com --- Hi Tomasz, I was looking at the patch you

[OpenWrt-Devel] Can we have init call for diag.sh (set_state)?

2014-12-11 Thread Rafał Miłecki
Let me simplify booting process into following stages: 1) preinit (LED blinking with medium freq) 2) init (LED blinking with medium freq) 3) done (LED state on) The problem is this duplicated medium freq and that diag.sh (set_state) has only two of above stages: 1) preinit 2) done So we can't

Re: [OpenWrt-Devel] Some standard partition name for extra user data?

2014-12-09 Thread Rafał Miłecki
On 7 December 2014 at 01:30, Rafał Miłecki zaj...@gmail.com wrote: I've bcm53xx device which has two usable flashes: 1) SPI serial flash for CFE + firmware + NVRAM 2) NAND flash for extra data Because of general design of OpenWrt firmware my image contains two partitions: kernel and rootfs

Re: [OpenWrt-Devel] [PATCH][RFC][bcm53xx] mtd: nand: bcm_nand: switch from cmdlinepart to ofpart

2014-12-07 Thread Rafał Miłecki
On 7 December 2014 at 16:08, Hauke Mehrtens ha...@hauke-m.de wrote: On 12/07/2014 01:18 AM, Rafał Miłecki wrote: bcm_nand uses (and depends on) OF, so there isn't much sense to use cmdlinepart Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/mtd/nand/bcm_nand.c | 7 +-- 1

Re: [OpenWrt-Devel] Some standard partition name for extra user data?

2014-12-07 Thread Rafał Miłecki
On 7 December 2014 at 16:11, John Crispin blo...@openwrt.org wrote: On 07/12/2014 16:05, Hauke Mehrtens wrote: On 12/07/2014 01:30 AM, Rafał Miłecki wrote: I've bcm53xx device which has two usable flashes: 1) SPI serial flash for CFE + firmware + NVRAM 2) NAND flash for extra data Because

Re: [OpenWrt-Devel] Some standard partition name for extra user data?

2014-12-07 Thread Rafał Miłecki
On 7 December 2014 at 16:22, John Crispin blo...@openwrt.org wrote: which board is this ? does the orig fw use the nand for data only ? Some not-yet-released hardware I got as a sample from USA. ___ openwrt-devel mailing list

[OpenWrt-Devel] [PATCH][RFC][bcm53xx] mtd: nand: bcm_nand: switch from cmdlinepart to ofpart

2014-12-06 Thread Rafał Miłecki
bcm_nand uses (and depends on) OF, so there isn't much sense to use cmdlinepart Signed-off-by: Rafał Miłecki zaj...@gmail.com --- drivers/mtd/nand/bcm_nand.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/bcm_nand.c b/drivers/mtd/nand/bcm_nand.c index

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