Re: Way to clear nand bad block table

2012-07-26 Thread Marc Reilly
Hi Juergen, Thanks for your ideas. I managed to clear the BBT, it was a bit of a hack... the saga is below for anyone who runs into similar problem. On Thursday, July 26, 2012 11:27:48 AM Juergen Beisert wrote: > The flash blocks which contains the "bad block table" are protected by > the "bad

Barebox crashes when the first console should stop

2012-07-26 Thread Juergen Beisert
Environemnt: a system with a generic serial console and OTG capability. The generic serial console comes up when the system starts. After that I add the USB console with: usbmode device usbserial -a cs1.active=ioe After these commands both consoles are working as expected. But then I want to disa

Re: [PATCHv2] defaultenv-2: Add bootargs for booting from disk

2012-07-26 Thread Sascha Hauer
On Wed, Jul 25, 2012 at 04:42:05PM +0200, Teresa Gámez wrote: > Add support in defaultenv-2 for booting from disk (SD-Card, USB-Stick). > > Signed-off-by: Teresa Gámez Applied, thanks Sascha > --- > Fixed since v1: > - spell fix > - added return value on failure > > defaultenv-

Re: [PATCH] i2c: fix printf format specifier

2012-07-26 Thread Sascha Hauer
On Wed, Jul 25, 2012 at 11:05:14AM +0200, Uwe Kleine-König wrote: > Use %u instead of %d for an u32 variable > > Signed-off-by: Uwe Kleine-König Applied, thanks Sascha > --- > drivers/i2c/i2c.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/i2c/i2c.

Re: [PATCH RFC] arm/imx: provide command to add ram device with autodetected size

2012-07-26 Thread Juergen Beisert
Uwe Kleine-König wrote: > The amount of available ram is determined by the ESDCTL register, so > better don't hardcode the value. > > This commit provides a command that can be used instead of > arm_add_mem_device and convertes pcm043 (on which this patch was tested) > to it. > > Signed-off-by: Uwe

[PATCH RFC] arm/imx: provide command to add ram device with autodetected size

2012-07-26 Thread Uwe Kleine-König
The amount of available ram is determined by the ESDCTL register, so better don't hardcode the value. This commit provides a command that can be used instead of arm_add_mem_device and convertes pcm043 (on which this patch was tested) to it. Signed-off-by: Uwe Kleine-König --- Hello, maybe bette

Re: Way to clear nand bad block table

2012-07-26 Thread Juergen Beisert
HI Marc, Marc Reilly wrote: > Is there a way to clear the nand bad block table? > > I'm not sure what happened, but I was playing around with barebox init and > didn't register the nand device - then when I booted the kernel there were > a stack of UBI errors. > I assume this also did something to

Way to clear nand bad block table

2012-07-26 Thread Marc Reilly
Hi, Is there a way to clear the nand bad block table? I'm not sure what happened, but I was playing around with barebox init and didn't register the nand device - then when I booted the kernel there were a stack of UBI errors. I assume this also did something to the bbt as subsequent barebox sta