From f597d8644e7b5642457368038ebbff414bdc38ed Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 11 Apr 2022 15:29:06 +0100 Subject: [PATCH] sigh dump memory *at* address, not address itself also disable HAS_DRAM check so that copying to BRAM is also fine --- coldboot/coldboot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index 67cb1ee..b3454cb 100644 --- a/coldboot/coldboot.c +++ b/coldboot/coldboot.c @@ -160,7 +160,8 @@ static unsigned long copy_flash(unsigned int offset) puts("Dump DRAM\r\n"); for (i = 0; i < 64; i++) { - uart_writeuint32(ehdr.e_entry+(i*4)); + uart_writeuint32(readl(ehdr.e_entry+(i*4))); + puts(" "); if ((i & 7) == 7) puts("\r\n"); } puts("\r\n"); @@ -477,9 +478,8 @@ int main(void) { #endif puts("done\n"); - // memcpy from SPI Flash to SDRAM then boot + // memcpy from SPI Flash then boot if ((ftr & SYS_REG_INFO_HAS_SPI_FLASH) && - (ftr & SYS_REG_INFO_HAS_DRAM) && (failcnt == 0)) { // identify ELF, copy if present, and get the start address -- 2.30.2