debugging on board

Sascha Hauer s.hauer at pengutronix.de
Thu Apr 5 05:27:38 EDT 2012


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