<font size=2 face="sans-serif">here it is:</font>
<br>
<br><font size=2 face="sans-serif">struct imx_flash_header_v2 __flash_header_section
flash_header =</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif"> .header.tag
= IVT_HEADER_TAG,</font>
<br><font size=2 face="sans-serif"> .header.length
= cpu_to_be16(32),</font>
<br><font size=2 face="sans-serif"> .header.version
= IVT_VERSION,</font>
<br>
<br><font size=2 face="sans-serif"> .entry
= APP_DEST + 0x1000,</font>
<br><font size=2 face="sans-serif"> .dcd_ptr
= APP_DEST + 0x400 + offsetof(struct imx_flash_header_v2,
dcd),</font>
<br><font size=2 face="sans-serif"> .boot_data_ptr
= APP_DEST + 0x400 + offsetof(struct imx_flash_header_v2,
boot_data),</font>
<br><font size=2 face="sans-serif"> .self
= APP_DEST + 0x400,</font>
<br>
<br><font size=2 face="sans-serif"> .boot_data.start
= APP_DEST,</font>
<br><font size=2 face="sans-serif"> .boot_data.size
= 0x40000,</font>
<br>
<br><font size=2 face="sans-serif"> .dcd.header.tag
= DCD_HEADER_TAG,</font>
<br><font size=2 face="sans-serif"> .dcd.header.length =
cpu_to_be16(sizeof(struct imx_dcd) + sizeof(dcd_entry)),</font>
<br><font size=2 face="sans-serif"> .dcd.header.version =
DCD_VERSION,</font>
<br>
<br><font size=2 face="sans-serif"> .dcd.command.tag
= DCD_COMMAND_WRITE_TAG,</font>
<br><font size=2 face="sans-serif"> .dcd.command.length =
cpu_to_be16(sizeof(struct imx_dcd_command) + sizeof(dcd_entry)),</font>
<br><font size=2 face="sans-serif"> .dcd.command.param =
DCD_COMMAND_WRITE_PARAM,</font>
<br><font size=2 face="sans-serif">};</font>
<br>
<br>
<br><font size=2 face="sans-serif">there is another struct:</font>
<br>
<br><font size=2 face="sans-serif">struct imx_fcb_header __flash_header_fcb
fcb_entry =</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif"> .fcb_marker = 0x20424346,</font>
<br><font size=2 face="sans-serif"> .fcb_version = 0x01,</font>
<br><font size=2 face="sans-serif"> .st_pg_prm = 0x0,</font>
<br><font size=2 face="sans-serif"> .st_pg_sec = 0x0,</font>
<br><font size=2 face="sans-serif"> .reserved3[0] = 0x6b,</font>
<br><font size=2 face="sans-serif"> .reserved3[1] = 0x6b,</font>
<br><font size=2 face="sans-serif"> .st_pg_dbbt = 0x0,</font>
<br><font size=2 face="sans-serif"> .bbm_off_main = 0x0,</font>
<br><font size=2 face="sans-serif"> .bi_swap = 0x0,</font>
<br><font size=2 face="sans-serif"> .bbm_off_spare = 0x0,</font>
<br><font size=2 face="sans-serif">};</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:
</font><font size=1 face="sans-serif">Sascha Hauer <s.hauer@pengutronix.de></font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:
</font><font size=1 face="sans-serif">christian.buettner@rafi.de,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Kopie:
</font><font size=1 face="sans-serif">barebox@lists.infradead.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:
</font><font size=1 face="sans-serif">16.07.2012 11:21</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:
</font><font size=1 face="sans-serif">Re: Antwort:
Re: barebox image size</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On Mon, Jul 16, 2012 at 11:15:24AM +0200, christian.buettner@rafi.de
wrote:<br>
> <br>
> imx_nand_load_image() is never used in my imx53 board init code..
is this <br>
> the fault?<br>
> <br>
<br>
On i.MX53 there might be a similar issue. You probably have something<br>
like this in your board:<br>
<br>
struct imx_flash_header_v2 __flash_header_section flash_header = {<br>
.header.tag
=
IVT_HEADER_TAG,<br>
.header.length
= cpu_to_be16(32),<br>
.header.version
= IVT_VERSION,<br>
<br>
.entry
= APP_DEST + 0x1000,<br>
.dcd_ptr
=
APP_DEST + 0x400 + offsetof(struct imx_flash_header_v2, dcd),<br>
.boot_data_ptr
= APP_DEST + 0x400 + offsetof(struct imx_flash_header_v2,
boot_data),<br>
.self
= APP_DEST + 0x400,<br>
<br>
.boot_data.start
= APP_DEST,<br>
.boot_data.size
= DCD_BAREBOX_SIZE,<br>
<br>
.boot_data.size is the interesting field. What do you have here?<br>
<br>
Sascha<br>
<br>
-- <br>
Pengutronix e.K.
|
|<br>
Industrial Linux Solutions
| </font></tt><a href=http://www.pengutronix.de/><tt><font size=2>http://www.pengutronix.de/</font></tt></a><tt><font size=2>
|<br>
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0
|<br>
Amtsgericht Hildesheim, HRA 2686 | Fax:
+49-5121-206917-5555 |<br>
</font></tt>
<br>