Re: [U-Boot] [PATCH v5 4/5] mtdparts: add new sub-command spread

2010-08-31 Thread Ben Gardiner
On Mon, Aug 30, 2010 at 5:01 PM, Scott Wood scottw...@freescale.com wrote: On Mon, 30 Aug 2010 13:38:59 -0400 Ben Gardiner bengardi...@nanometrics.ca wrote: +static void spread_partition(struct mtd_info *mtd, struct part_info *part, +                          uint64_t *next_offset) +{ +    

[U-Boot] [PATCH v5 4/5] mtdparts: add new sub-command spread

2010-08-30 Thread Ben Gardiner
This patch introduces the 'spread' sub-command of the mtdparts command. This command will modify the existing mtdparts variable by increasing the size of the partitions such that 1) each partition's net size is at least as large as the size specified in the mtdparts variable and 2) each partition

Re: [U-Boot] [PATCH v5 4/5] mtdparts: add new sub-command spread

2010-08-30 Thread Scott Wood
On Mon, 30 Aug 2010 13:38:59 -0400 Ben Gardiner bengardi...@nanometrics.ca wrote: +static void spread_partition(struct mtd_info *mtd, struct part_info *part, + uint64_t *next_offset) +{ + uint64_t net_size, padding_size = 0; + int truncated; + +

Re: [U-Boot] [PATCH v5 4/5] mtdparts: add new sub-command spread

2010-08-30 Thread Scott Wood
On Mon, 30 Aug 2010 16:01:05 -0500 Scott Wood scottw...@freescale.com wrote: On Mon, 30 Aug 2010 13:38:59 -0400 Ben Gardiner bengardi...@nanometrics.ca wrote: + if (!truncated) { + mtd_get_len_incl_bad(mtd, part-offset + net_size, +