This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: GPMC U-Boot Configuration to access memory

Part Number: AM5728

Tool/software:

Hi TI Forum,

I'm currently working on adding additional RAM to an AM5728 device and facing challenges with modifying the TI AM57xx-EVM-09_02_00_133 SDK to ensure the RAM functions correctly.

Here's what I've attempted so far with U-Boot:

 

diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 7d7a88509a..57f02f17f5 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -98,7 +98,8 @@ const struct omap_sysinfo sysinfo = {
};

static const struct dmm_lisa_map_regs beagle_x15_lisa_regs = {
-  .dmm_lisa_map_3 = 0x80740300,
+  .dmm_lisa_map_2 = 0x80740300,
+  .dmm_lisa_map_3 = 0xFF020100,
  .is_ma_present  = 0x1
};

@@ -964,6 +965,7 @@ bool am571x_idk_needs_lcd(void)
int board_init(void)
{
  gpmc_init();
+  printf("CONFIG_SYS_SDRAM_BASE= %d: \n", CONFIG_SYS_SDRAM_BASE);
  gd->bd->bi_boot_params = (CFG_SYS_SDRAM_BASE + 0x100);

  return 0;
@@ -1047,6 +1049,14 @@ static int device_okay(const char *path)
}
#endif

+void dram_init_banksize(void) {
+  gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+  gd->bd->bi_dram[0].size = get_effective_memsize();
+  gd->bd->bi_dram[1].start = 0x200000000;
+  gd->bd->bi_dram[1].size = 0x100000000 - CONFIG_MAX_MEM_MAPPED;
+
+}
+
int board_late_init(void)
{
  setup_board_eeprom_env();
diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h
index 42565e4aae..c7432f2b16 100644
--- a/include/configs/am57xx_evm.h
+++ b/include/configs/am57xx_evm.h
@@ -57,4 +57,12 @@
/*Added support for ZEISS FPGA*/
#define CONFIG_ZEISS_FPGA

+#define CONFIG_VERY_BIG_RAM
+#define CONFIG_PHYS_64BIT
+
+#define CONFIG_MAX_MEM_MAPPED 0x80000000;
+
+#define CONFIG_SYS_MEMTEST_START 0x80000000
+#define CONFIG_SYS_MEMTEST_EN
+
#endif /* __CONFIG_AM57XX_EVM_H */

Upon booting, the system freezes, and the last message displayed is:

 

U-Boot 2023.04-dirty (Oct 01 2025 - 16:41:17 -0700)

CPU  : DRA752-GP ES2.0
Model: TI AM5728 BeagleBoard-X15
Board: UNKNOWN(BeagleBoard X15?) REV UNKNOWN
DRAM:  2 GiB (effective 4 GiB)

 

I would greatly appreciate any recommendations on how I can enhance my modifications to U-Boot or obtain debug prints that could assist in successfully booting my system. Without my changes to the TI AM57xx-EVM-09_02_00_133 SDK the system boots fine.

 

Thank you for your support!