[U-Boot] [PATCH v3 7/8] imximage: Add MX53 boot image support

Stefano Babic
2010-12-31T09:55:25Z

On 12/31/2010 09:12 AM, Wolfgang Denk wrote:
> Dear Jason Liu,
>
> In message <AANLkTimcHbOvNNTW9EnqaFrp3WvW3epgB7S7cvtKs0vH@mail.gmail.com> you wrote:
>>
>>> Not change the mx51evk file. The code should take VERSION=1 as default,
>>> and we do not need to change the actual boards.
>>
>> Do you mean that if can't find the VERSION command in the cfg file, it
>> will be treated
>> as V1, right?
>
> No. You must not rely on variable setting from the config file. You
> must be able to recognize existing images by reading their headers
> without access to any specific board config.

Agree, but I think Jason is speaking here about the generation of the
imx image and not its detection. To make things clearer:

- to check the validity of an imximage file, mkimage must rely only on
the header, without any supplied configuration file, if any.

- to generate the imximage, I agree for compatibility reasons that the
default version should be V1. In other words, if the version is not
supplied in the file, the image is generated for an MX35/MX51 processor.

Best regards,
Stefano Babic

--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================