Re: [U-Boot] [U-Boot, U-boot, 1/2] common: cmd_nand: add nand ecclayout command

2014-06-20 Thread Ivan Khoronzhuk
On 06/20/2014 04:00 AM, Scott Wood wrote: On Fri, May 16, 2014 at 09:26:36PM +0300, Khoronzhuk, Ivan wrote: From: WingMan Kwok w-kw...@ti.com This commit adds a nand ecclayout command that allows the ecclayout of the current nand device to be changed during run time. This feature is useful

Re: [U-Boot] [U-Boot, U-boot, 1/2] common: cmd_nand: add nand ecclayout command

2014-06-20 Thread Jon Loeliger
--- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -462,6 +462,53 @@ static void adjust_size_for_badblocks(loff_t *size, + for (i = 0; i p-eccbytes; i++) { + if (i !(i % 9)) + printf(\n); + + printf(%2d , p-eccpos[i]); +

Re: [U-Boot] [U-Boot, U-boot, 1/2] common: cmd_nand: add nand ecclayout command

2014-06-20 Thread Scott Wood
On Fri, 2014-06-20 at 09:10 -0500, Jon Loeliger wrote: --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -462,6 +462,53 @@ static void adjust_size_for_badblocks(loff_t *size, + for (i = 0; i p-eccbytes; i++) { + if (i !(i % 9)) + printf(\n

Re: [U-Boot] [U-Boot, U-boot, 1/2] common: cmd_nand: add nand ecclayout command

2014-06-20 Thread Scott Wood
On Fri, 2014-06-20 at 16:29 +0300, Ivan Khoronzhuk wrote: On 06/20/2014 04:00 AM, Scott Wood wrote: On Fri, May 16, 2014 at 09:26:36PM +0300, Khoronzhuk, Ivan wrote: + } else { + printf(Setting current device + to

Re: [U-Boot] [U-Boot, U-boot, 1/2] common: cmd_nand: add nand ecclayout command

2014-06-20 Thread Ivan Khoronzhuk
On 06/20/2014 07:31 PM, Scott Wood wrote: On Fri, 2014-06-20 at 16:29 +0300, Ivan Khoronzhuk wrote: On 06/20/2014 04:00 AM, Scott Wood wrote: On Fri, May 16, 2014 at 09:26:36PM +0300, Khoronzhuk, Ivan wrote: + } else { + printf(Setting

Re: [U-Boot] [U-Boot, U-boot, 1/2] common: cmd_nand: add nand ecclayout command

2014-06-20 Thread Ivan Khoronzhuk
On 06/20/2014 07:03 PM, Scott Wood wrote: On Fri, 2014-06-20 at 09:10 -0500, Jon Loeliger wrote: --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -462,6 +462,53 @@ static void adjust_size_for_badblocks(loff_t *size, + for (i = 0; i p-eccbytes; i++) { + if (i !(i % 9)) +

Re: [U-Boot] [U-Boot, U-boot, 1/2] common: cmd_nand: add nand ecclayout command

2014-06-19 Thread Scott Wood
On Fri, May 16, 2014 at 09:26:36PM +0300, Khoronzhuk, Ivan wrote: From: WingMan Kwok w-kw...@ti.com This commit adds a nand ecclayout command that allows the ecclayout of the current nand device to be changed during run time. This feature is useful when using u-boot to write something to