From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 07 Mar 2012 10:33:58 +0100 Subject: [U-Boot] [PATCH v2] imximage: Remove overwriting of flash_offset In-Reply-To: <1329987019-24379-1-git-send-email-dirk.behme@de.bosch.com> References: <1329987019-24379-1-git-send-email-dirk.behme@de.bosch.com> Message-ID: <4F572B86.9010109@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > CC: Jason Liu > CC: Stefano Babic > --- 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 =====================================================================