From: Fabio Estevam Date: Fri, 15 Jan 2010 04:19:18 -0800 (PST) Subject: [U-Boot] [PATCH V2 1/9] mkimage: Add Freescale imx Boot Image support (imximage) In-Reply-To: <20100115094053.k60x1um4g04w88ow@192.168.0.11> Message-ID: <822809.94856.qm@web51005.mail.re2.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefano, ... > > I think that the BOOT_FROM command can be removed, > right? > > No, we can't if the processor boots from OneNand device. > According to? > the manual, Yes, it is still the same binary, but just needs a different offset. > ? the offset must be set to 0x100 instead of 0x400. > > > > > We can flash the same binary on a SD or NAND flash. > > Correct,but there is still the OneNand case. BTW, I don't see the following offset defines used anywhere in the code: +#define FLASH_OFFSET_STANDARD 0x400 +#define FLASH_OFFSET_NAND FLASH_OFFSET_STANDARD +#define FLASH_OFFSET_SD FLASH_OFFSET_STANDARD +#define FLASH_OFFSET_SPI FLASH_OFFSET_STANDARD +#define FLASH_OFFSET_ONENAND 0x100 Regards, Fabio Estevam