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