debugging on board

Gabriel Tisan gabriel.tisan at gmail.com
Thu Apr 5 08:28:58 EDT 2012


So, the opcodes from the start of the file barebox.S until
__mmu_cache_flush(inclusive) including
reset & imx_nand_load_image make 1372 bytes, lower than 2K.

Regards,
Gabriel

On Thu, Apr 5, 2012 at 11:27 AM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> On Thu, Apr 05, 2012 at 09:06:30AM +0200, Gabriel Tisan wrote:
>> I use external boot mode from NAND. I choosed
>> CONFIG_NAND_IMX_BOOT_512_2K although I have a flash with 2k page size.
>
> Try 'make barebox.S' and have a look at the resulting barebox.S file.
> Everything including
>
> reset
> __mmu_cache_flush
> imx_nand_load_image
>
> must fit into the first 2k of memory. We currently do not catch this
> (though we could using a seperate linker section for this). If your
> lowlevel init code is too big then you can easily exceed this
> limitation.
>
> 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 |



More information about the barebox mailing list