Re: [U-Boot] [PATCH v3] imls: Add support to list images in NAND device

2012-12-17 Thread Vipin Kumar
On 12/18/2012 5:35 AM, Scott Wood wrote: On 12/17/2012 02:22:40 AM, Vipin Kumar wrote: On 12/14/2012 11:40 PM, Scott Wood wrote: On 12/14/2012 03:32:04 AM, Vipin Kumar wrote: + + switch (genimg_get_format(buffer)) { + case IMAGE_FORMAT_LEGACY: + header = (const image_header_t *)buffer; + len =

Re: [U-Boot] [PATCH v3] imls: Add support to list images in NAND device

2012-12-17 Thread Scott Wood
On 12/17/2012 02:22:40 AM, Vipin Kumar wrote: On 12/14/2012 11:40 PM, Scott Wood wrote: On 12/14/2012 03:32:04 AM, Vipin Kumar wrote: + + switch (genimg_get_format(buffer)) { + case IMAGE_FORMAT_LEGACY: + header = (const

Re: [U-Boot] [PATCH v3] imls: Add support to list images in NAND device

2012-12-14 Thread Scott Wood
On 12/14/2012 03:32:04 AM, Vipin Kumar wrote: + + switch (genimg_get_format(buffer)) { + case IMAGE_FORMAT_LEGACY: + header = (const image_header_t *)buffer; + len = image_get_image_size(header

Re: [U-Boot] [PATCH v3] imls: Add support to list images in NAND device

2012-12-14 Thread Vipin Kumar
+ + switch (genimg_get_format(buffer)) { + case IMAGE_FORMAT_LEGACY: + header = (const image_header_t *)buffer; + len = image_get_image_size(header); + + ret = nand

Re: [U-Boot] [PATCH v3] imls: Add support to list images in NAND device

2012-12-14 Thread Vipin Kumar
On 12/14/2012 3:29 AM, Scott Wood wrote: On 12/13/2012 04:38:18 AM, Vipin Kumar wrote: + for (off = 0; off < nand->size; off += nand->erasesize) { + const image_header_t *header; + int ret; + + if (nand_block_isbad(nand, off)) + continue; + + len = sizeof(buffer); + + ret = nand_read(nand, off,

Re: [U-Boot] [PATCH v3] imls: Add support to list images in NAND device

2012-12-13 Thread Scott Wood
On 12/13/2012 04:38:18 AM, Vipin Kumar wrote: + for (off = 0; off < nand->size; off += nand->erasesize) { + const image_header_t *header; + int ret; + + if (nand_block_isbad(nand, off)) + continue;

[U-Boot] [PATCH v3] imls: Add support to list images in NAND device

2012-12-13 Thread Vipin Kumar
This patch adds support to list images in NAND flash through imls Signed-off-by: Vipin Kumar --- README | 3 +- common/cmd_bootm.c | 166 - 2 files changed, 167 insertions(+), 2 deletions(-) diff --git a/README b/README index 207