From b7e37133886fc752ed35b9ef25fc29ac0cf7d5b0 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 7 May 2019 11:59:28 +0200 Subject: [PATCH] bios/boot/ update linux memory mapping --- litex/soc/software/bios/boot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index 6ff682db..39b8e02e 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -267,14 +267,14 @@ void netboot(void) return; } - tftp_dst_addr = MAIN_RAM_BASE + 0x02000000; + tftp_dst_addr = MAIN_RAM_BASE + 0x00800000; size = tftp_get_v(ip, tftp_port, "rootfs.cpio", (void *)tftp_dst_addr); if(size <= 0) { printf("No rootfs.cpio found\n"); return; } - tftp_dst_addr = MAIN_RAM_BASE + 0x03000000; + tftp_dst_addr = MAIN_RAM_BASE + 0x01000000; size = tftp_get_v(ip, tftp_port, "rv32.dtb", (void *)tftp_dst_addr); if(size <= 0) { printf("No rv32.dtb found\n"); @@ -314,10 +314,10 @@ void flashboot(void) memcpy((void *)MAIN_RAM_BASE + 0x00000000, (void *)0x50400000, 0x400000); printf("Loading rootfs.cpio from flash...\n"); - memcpy((void *)MAIN_RAM_BASE + 0x02000000, (void *)0x50800000, 0x700000); + memcpy((void *)MAIN_RAM_BASE + 0x00800000, (void *)0x50800000, 0x700000); printf("Loading rv32.dtb from flash...\n"); - memcpy((void *)MAIN_RAM_BASE + 0x03000000, (void *)0x50f00000, 0x001000); + memcpy((void *)MAIN_RAM_BASE + 0x01000000, (void *)0x50f00000, 0x001000); printf("Loading emulator.bin from flash...\n"); memcpy((void *)EMULATOR_RAM_BASE + 0x00000000, (void *)0x50f80000, 0x004000); -- 2.30.2