Re: [PATCH 4/6] oftree: remove dump support

2014-05-20 Thread Alexander Aring
Hi Sascha, On Mon, May 19, 2014 at 10:59:42PM +0200, Sascha Hauer wrote: This can now be done with the of_dump command. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- commands/Kconfig | 2 -- commands/oftree.c | 42 +++--- 2 files changed, 3

Re: [PATCH 4/6] oftree: remove dump support

2014-05-20 Thread Alexander Aring
On Tue, May 20, 2014 at 10:01:01AM +0200, Alexander Aring wrote: Hi Sascha, On Mon, May 19, 2014 at 10:59:42PM +0200, Sascha Hauer wrote: This can now be done with the of_dump command. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- commands/Kconfig | 2 --

Re: [PATCH 4/6] oftree: remove dump support

2014-05-20 Thread Sascha Hauer
On Tue, May 20, 2014 at 10:03:08AM +0200, Alexander Aring wrote: On Tue, May 20, 2014 at 10:01:01AM +0200, Alexander Aring wrote: Hi Sascha, On Mon, May 19, 2014 at 10:59:42PM +0200, Sascha Hauer wrote: This can now be done with the of_dump command. Signed-off-by: Sascha Hauer

[PATCH] i2c: correct string format type

2014-05-20 Thread Alexander Aring
The parameter count is u16, otherwise we get: drivers/i2c/i2c.c:186:2: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 5 has type ‘int’ [-Wformat=] dev_dbg(client-dev, %s: %zu@%u -- %d\n, __func__, Signed-off-by: Alexander Aring alex.ar...@gmail.com --- drivers/i2c/i2c.c

Re: [PATCH 5/6] of: Drop devicetree merge support

2014-05-20 Thread Sebastian Hesselbarth
On 05/19/2014 10:59 PM, Sascha Hauer wrote: I assume I am the only person knowing that barebox is able to merge devicetrees. This feature seems broken for a while now since trying to merge devicetress results in: unflatten: too many end nodes Uhm, I know about it because I see it every time

[PATCH] commands: add 'findstr' to get string from file

2014-05-20 Thread Christoph Fritz
Command 'findstr' can be for example used to find the string MAC=1C:BA:8C:F3:82:BB in file /dev/eeprom0 to set the appropriate variable: $ findstr -o 4 -l 17 -t eth0.ethaddr MAC /dev/eeprom0 Usage: findstr [OPTIONS] STRING FILE Find string in file and print it -o offset set offset of string

Re: [PATCH] commands: add 'findstr' to get string from file

2014-05-20 Thread Alexander Aring
On Tue, May 20, 2014 at 07:27:55PM +0200, Christoph Fritz wrote: Command 'findstr' can be for example used to find the string MAC=1C:BA:8C:F3:82:BB in file /dev/eeprom0 to set the appropriate variable: $ findstr -o 4 -l 17 -t eth0.ethaddr MAC /dev/eeprom0 Usage: findstr [OPTIONS] STRING

Re: [PATCH] commands: add 'findstr' to get string from file

2014-05-20 Thread Christoph Fritz
Hi Alexander On Tue, 2014-05-20 at 20:08 +0200, Alexander Aring wrote: On Tue, May 20, 2014 at 07:27:55PM +0200, Christoph Fritz wrote: +config CMD_FINDSTR + tristate + default n not needed. Ok + while ((opt = getopt(argc, argv, o:l:t:)) 0) { + switch (opt) { +