Tool/software: Linux
I'd like to incorporate a memory test command in to U-Boot to support some testing of our system, which uses an AM5728 processor and 4 GB of DDR RAM. U-Boot has been built to recognize the entire memory range and the bdinfo command prints the following:
=> bdinfo
arch_number = 0x00000000
boot_params = 0x80000100
DRAM bank = 0x00000000
-> start = 0x80000000
-> size = 0x7F000000
DRAM bank = 0x00000001
-> start = 0x00000000
-> size = 0x80000000
baudrate = 115200 bps
TLB addr = 0xFEFF0000
relocaddr = 0xFEF4A000
reloc off = 0x7E74A000
irq_sp = 0xFDF25640
sp start = 0xFDF25630
I've been able to successfully use the built-in mtest command as well as my own custom U-Boot command to test memory starting at 0x8000 0000 (up to a point about 1MB below sp start, to account for stack growth). This address range only covers about 2GB, or half my memory. The bdinfo dump implies that the other bank starts at location zero but trying to access this with the mtest command causes a crash.
How can I access the other half to test from U-Boot? Either from the U-Boot command prompt's built in commands or through code in my own custom command?