Hi Wolfgang,

Wolfgang Denk wrote:
>> @@ -359,6 +361,11 @@ static int part_validate_nor(struct mtdids *id, struct 
>> part_info *part)
>>  
>>      end_offset = part->offset + part->size;
>>      for (i = 0; i < flash->sector_count; i++) {
>> +            if (i) {
>> +                    sector_size = flash->start[i] - flash->start[i-1];
>> +                    if (part->sector_size < sector_size)
>> +                            part->sector_size = sector_size;
>> +            }
>>     
>
> What about the size of the last sector?
>   

Well, you are right, I've lost last sector... I'll fix this.

Regards, Ilya.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to