[PATCH v2] mtd: add mtdram device (which build mtd over ram area - useful for FRAM oder MRAM)

2014-09-06 Thread Sebastian Block
Change since v1 (Sascha, thanks for review): * use xzalloc instead of kzalloc and control check * correct help and names * fix coding style issue * remove verbose and unneeded messages This adds support for MTD in RAM devices (like FRAM or MRAM). Signed-off-by:

[PATCH] commands: add lodvar - load variable from file content

2014-09-06 Thread Sebastian Block
This adds a command to load a variable from file content. It is a work-a-round for var=$(cat file). Signed-off-by: Sebastian Block ba...@linux-source.de --- commands/Kconfig | 7 + commands/Makefile | 1 + commands/loadvar.c | 90 ++ 3

Re: [PATCH] commands: add lodvar - load variable from file content

2014-09-06 Thread Alexander Aring
Hi Sebastian, On Sat, Sep 06, 2014 at 02:25:08PM +0200, Sebastian Block wrote: This adds a command to load a variable from file content. It is a work-a-round for var=$(cat file). doesn't commands/readf.c do similar things? - Alex ___ barebox

Re: [PATCH] commands: add lodvar - load variable from file content

2014-09-06 Thread Sebastian Block
Hi Alex, On Sat, Sep 06, 2014 at 02:25:08PM +0200, Sebastian Block wrote: This adds a command to load a variable from file content. It is a work-a-round for var=$(cat file). doesn't commands/readf.c do similar things? you are right. Please forget this patch. Sebastian

Re: [PATCH] commands: add lodvar - load variable from file content

2014-09-06 Thread Alexander Aring
On Sat, Sep 06, 2014 at 03:03:07PM +0200, Sebastian Block wrote: Hi Alex, On Sat, Sep 06, 2014 at 02:25:08PM +0200, Sebastian Block wrote: This adds a command to load a variable from file content. It is a work-a-round for var=$(cat file). doesn't commands/readf.c do similar things?