Re: [U-Boot] ubi part failing on NAND

2009-12-21 Thread Stefan Roese
On Friday 18 December 2009 16:07:40 Jeff Angielski wrote: > Stefan Roese wrote: > > On Friday 18 December 2009 13:35:26 hedwin wrote: > >> Jeff, what is the size of your allocateble memory. Had to increase it to > >> 4MB to get it working. > > > > I've got 1MByte for my test on Kilauea. This shoul

Re: [U-Boot] ubi part failing on NAND

2009-12-19 Thread hedwin
A bit on the reason why this amount of memory is needed. I had the same problem jeff mentions. After tracing where dlmalloc allocates its memory chunks I found out that it started allocating memory in code space. Overwritting code space eventually resultated in uboot crashing. Looking into dlmallo

Re: [U-Boot] ubi part failing on NAND

2009-12-18 Thread Jeff Angielski
Stefan Roese wrote: > On Friday 18 December 2009 13:35:26 hedwin wrote: >> Jeff, what is the size of your allocateble memory. Had to increase it to >> 4MB to get it working. > > I've got 1MByte for my test on Kilauea. This should be enough. There > is already a compile-time check in the UBI code:

Re: [U-Boot] ubi part failing on NAND

2009-12-18 Thread Jeff Angielski
hedwin wrote: > Jeff, what is the size of your allocateble memory. Had to increase it to 4MB > to get it working. #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) I'll try increasing it to see if that helps. > > On Fri, Dec 18, 2009 at 9:16 AM, Stefan Roese wrote: >> Jeff, >> >> On Thursd

Re: [U-Boot] ubi part failing on NAND

2009-12-18 Thread Stefan Roese
On Friday 18 December 2009 13:35:26 hedwin wrote: > Jeff, what is the size of your allocateble memory. Had to increase it to > 4MB to get it working. I've got 1MByte for my test on Kilauea. This should be enough. There is already a compile-time check in the UBI code: #if (CONFIG_SYS_MALLOC_LEN

Re: [U-Boot] ubi part failing on NAND

2009-12-18 Thread hedwin
Jeff, what is the size of your allocateble memory. Had to increase it to 4MB to get it working. On Fri, Dec 18, 2009 at 9:16 AM, Stefan Roese wrote: > Jeff, > > On Thursday 17 December 2009 22:09:03 Jeff Angielski wrote: >> The "ubi part" command is failing for me on my PowerPC 85xx board.  I am

Re: [U-Boot] ubi part failing on NAND

2009-12-18 Thread Stefan Roese
Jeff, On Thursday 17 December 2009 22:09:03 Jeff Angielski wrote: > The "ubi part" command is failing for me on my PowerPC 85xx board. I am > not trying to do anything special, just create the partitions and > volumes so that I can try writing an ubi.img. It spits out enough > information that i