From: Luke Kenneth Casson Leighton Date: Mon, 11 Apr 2022 14:29:06 +0000 (+0100) Subject: sigh dump memory *at* address, not address itself X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f597d8644e7b5642457368038ebbff414bdc38ed;p=ls2.git sigh dump memory *at* address, not address itself also disable HAS_DRAM check so that copying to BRAM is also fine --- 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