[BUG] readline history

2014-08-28 Thread Teresa Gamez
Hello Sascha, I noticed a bug on the latest master. When no history is present and I hit the arrow up key, I get: unable to handle NULL pointer dereference at address 0x0001 pc : [9fe243ba]lr : [9fe268cf] sp : 99d0 ip : 0016 fp : 0002 r10: 0001 r9 : 9fe549dc r8 :

Re: [BUG] readline history

2014-08-28 Thread Alexander Aring
On Thu, Aug 28, 2014 at 09:50:05AM +0200, Teresa Gamez wrote: Hello Sascha, I noticed a bug on the latest master. When no history is present and I hit the arrow up key, I get: unable to handle NULL pointer dereference at address 0x0001 pc : [9fe243ba]lr : [9fe268cf] sp : 99d0

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

2014-08-28 Thread basti
This adds support for MTD in RAM devices (like FRAM or MRAM). Signed-off-by: Sebastian Block ba...@linux-source.de --- drivers/mtd/devices/Kconfig |6 ++ drivers/mtd/devices/Makefile |1 + drivers/mtd/devices/mtdram.c | 132 ++ 3 files

Re: [BUG] readline history

2014-08-28 Thread Alexander Aring
Hi, the issues is that hist_prev or hist_next runs: list_entry(history_current-next, struct history, list); on an empty list with no entries and history-line is a dangling pointer. because the list head don't include a char *line and on an empty list the attributes are prev == next. I hacked a

Re: [BUG] readline history

2014-08-28 Thread Alexander Aring
Hi, another possible solution which less of runtime decisions. diff --git a/lib/readline.c b/lib/readline.c index b70bca8..f9cfa4b 100644 --- a/lib/readline.c +++ b/lib/readline.c @@ -28,7 +28,9 @@ struct history { struct list_head list; }; -static LIST_HEAD(history_list); +static

[PATCH] ubi: add setting devnum to ubiattach

2014-08-28 Thread Michael Grzeschik
Sometimes we need to have a defined devicenumber for the ubi partitions. This patch adds the option to ubiattach. Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de --- commands/ubi.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/commands/ubi.c

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

2014-08-28 Thread Alexander Aring
Hi Sebastian, On Thu, Aug 28, 2014 at 10:59:51AM +0200, ba...@linux-source.de wrote: This adds support for MTD in RAM devices (like FRAM or MRAM). Signed-off-by: Sebastian Block ba...@linux-source.de for what do you need something like this? If for testing I thought about to porting

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

2014-08-28 Thread Alexander Aring
On Thu, Aug 28, 2014 at 10:59:51AM +0200, ba...@linux-source.de wrote: This adds support for MTD in RAM devices (like FRAM or MRAM). ah, non volatile memory. Okay. :-) - Alex ___ barebox mailing list barebox@lists.infradead.org