Hi,
I want to change memory map from default to 256M with DM814x board and EZSDK_5_05_01_04,
I use TMDXEVM8148 EVM and EZSDK_dm814x-evm_5_05_01_04.
I try to change memory map 256M as follows.
1. update LISA registers
($(EZSDK_ROOT)/board-support/u-boot-<REL-TAG>/arch/arm/include/asm/arch-ti81xx/ddr_defs_ti814x.h)
- Default Setting
#define PG2_1_DMM_LISA_MAP__2 0x0
#define PG2_1_DMM_LISA_MAP__3 0x80640300
- Modified(256M)
#define PG2_1_DMM_LISA_MAP__2 0x80440300
#define PG2_1_DMM_LISA_MAP__3 0xA0440300
2. Create U-Boot-MIN for NAND boot and U-Boot 2nd stage with ENV on NAND
$ cd $EZSDK/board-support/u-boot*
$ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean
$ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm ti8148_evm_min_nand
$ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm u-boot.ti
$ cp u-boot.min.nand /tftpboot
$ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean
$ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm ti8148_evm_config_nand
$ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm u-boot.ti
$ cp u-boot.bin /tftpboot
3. Flashing NAND from U-boot 2nd stage
TI8148_EVM# nand erase 0x0 0x20000
TI8148_EVM# tftp 0x81000000 u-boot.min.nand
TI8148_EVM# nandecc hw 2
TI8148_EVM# nand write.i 0x81000000 0x0 0x20000
TI8148_EVM# nand erase 0x20000 0x240000
TI8148_EVM# tftp 0x81000000 u-boot.bin
TI8148_EVM# nandecc hw 2
TI8148_EVM# nand write.i 0x81000000 0x20000 0x240000
4. Start with NAND boot mode
Switch S1, S1[12:1] ==> 000010010010
Switch SW2---->NAND ON
Boot log is as below.
===========================
U-Boot 2010.06 (Nov 14 2012 - 10:45:23)
TI8148-GP rev 2.1
ARM clk: 600MHz
DDR clk: 400MHz
DRAM: 2 GiB
NAND: HW ECC BCH8 Selected
256 MiB
Using default environment
The 2nd stage U-Boot will now be auto-loaded
Please do not interrupt the countdown till TI8148_EVM prompt if 2nd stage is already flas
hed
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x20000, size 0x40000
262144 bytes read: OK
## Starting application at 0x81000000 ...
U-Boot 2010.06 (Nov 14 2012 - 10:47:21)
TI8148-GP rev 2.1
ARM clk: 600MHz
DDR clk: 400MHz
I2C: ready
DRAM: 2 GiB
NAND: HW ECC BCH8 Selected
256 MiB
MMC: OMAP SD/MMC: 0
===========================
u-boot stop here.
Changing Memory Map 512M:
(http://processors.wiki.ti.com/index.php/EZSDK_Memory_Map#Changing_Memory_Map_For_512MB_DM814x_Board)
LISA registers settings
#define PG2_1_DMM_LISA_MAP__2 0x80540300
#define PG2_1_DMM_LISA_MAP__3 0xA0540300
It works well.
How can I change Memory map for 256M with EZSDK DM814x?