[U-Boot] [PATCH v2] imximage: Remove overwriting of flash_offset

Stefano Babic sbabic at denx.de
Wed Mar 7 10:33:58 CET 2012


On 23/02/2012 09:50, Dirk Behme wrote:
> The flash header supports different flash offsets for different
> boot devices. E.g. parallel NOR or OneNAND use a different offset
> than FLASH_OFFSET_STANDARD (== 0x400).
> 
> The flash offset is correctly read from the configuration in
> parse_cfg_cmd(). But is then overwritten wrongly in set_imx_hdr_v1/2().
> 
> Fix this by removing this overwriting. Use the flash offset
> correctly read from the configuration, instead.
> 
> If there is no flash_offset read from the configuration file, i.e.
> the BOOT_FROM tag is missing, exit with an error message.
> 
> Signed-off-by: Dirk Behme <dirk.behme at de.bosch.com>
> CC: Jason Liu <liu.h.jason at gmail.com>
> CC: Stefano Babic <sbabic at denx.de>
> ---

Applied to u-boot-imx, thanks.

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
=====================================================================


More information about the U-Boot mailing list