I am trying to port u-boot to our custom board based on i.MX27 SoC. For that purpose I am taking the code for i.mx27 litekit as start point. Currently I am figuring out what the memory map of my system would be if I have the following parameters:
In config.mk TEXT_BASE = 0xA3F00000 In my board config file: /* * Memory Info */ /* malloc() len */ #define CONFIG_SYS_MALLOC_LEN (0x10000 + 512 * 1024) /* reserved for initial data */ #define CONFIG_SYS_GBL_DATA_SIZE 128 /* memtest start address */ #define CONFIG_SYS_MEMTEST_START 0xA0000000 #define CONFIG_SYS_MEMTEST_END 0xA1000000 /* 16MB RAM test */ #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of DRAM */ #define CONFIG_STACKSIZE (256 * 1024) /* regular stack */ #define PHYS_SDRAM_1 0xA0000000 /* DDR Start */ #define PHYS_SDRAM_1_SIZE 0x04000000 /* DDR size 64MB */ According to the README file I think my memory map should be the following: 0xA000 0000 Exception Vector code [Start of RAM] : 0xA000 1FFF ---------------------------------------------------------------------- 0xA000 2000 Free for Application Use : : 0xA3E2 FF7B End of application memory ---------------------------------------------------------------------- 0xA3E2 FF7C Stack End (TEXT_BASE - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4 - CONFIG_STACKSIZE) : 0xA3E6 FF7C Monitor Stack (Growing downward) (TEXT_BASE - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4) ---------------------------------------------------------------------- 0xA3E6 FF80 Board Info Data and permanent copy of global data (TEXT_BASE - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE) : 0xA3E6 FFFF ---------------------------------------------------------------------- 0xA3E7 0000 Malloc Area (TEXT_BASE - CONFIG_SYS_MALLOC_LEN) : 0xA3EF FFFF ---------------------------------------------------------------------- 0xA3F0 0000 RAM Copy of Monitor Code (TEXT_BASE) ... eventually: LCD or video framebuffer ... eventually: pRAM (Protected RAM - unchanged by reset) 0xA3FF FFFF [End of RAM] Do you see some wrong point here? Thanks. -- Javier Martin Vista Silicon S.L. CDTUC - FASE C - Oficina S-345 Avda de los Castros s/n 39005- Santander. Cantabria. Spain +34 942 25 32 60 www.vista-silicon.com
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot