From 92712a11bfc6b2e6e8555f120163d93cb36533c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Wed, 5 Jun 2024 11:39:17 +0200 Subject: [PATCH] fw: zeroise FW-RAM instead of RAM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modify the loop to zeroise the FW-RAM instead of the RAM. RAM is filled with random data at the start of main(). Changes firmware and bitstream digests. Signed-off-by: Joachim StroĢˆmbergson --- hw/application_fpga/application_fpga.bin.sha256 | 2 +- hw/application_fpga/firmware.bin.sha512 | 2 +- hw/application_fpga/fw/tk1/start.S | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/application_fpga/application_fpga.bin.sha256 b/hw/application_fpga/application_fpga.bin.sha256 index 6e97f7d..38da834 100644 --- a/hw/application_fpga/application_fpga.bin.sha256 +++ b/hw/application_fpga/application_fpga.bin.sha256 @@ -1 +1 @@ -621e2b838775564ce625bf6ce9def8b85a56f31768742ac05b6fb3a0b056ccc6 application_fpga.bin +c0da9e30042b87e0acbb01c9faf135b604f3f3b8cc1c7f7cc426d926bba785c1 application_fpga.bin diff --git a/hw/application_fpga/firmware.bin.sha512 b/hw/application_fpga/firmware.bin.sha512 index 69c9e8c..1763d72 100644 --- a/hw/application_fpga/firmware.bin.sha512 +++ b/hw/application_fpga/firmware.bin.sha512 @@ -1 +1 @@ -fdeda3316d3b27b21dfd7f626a87155c28fff6470173cc25e560d5e87f5ce6468146922a60e8ef31015769d67ccae519437975231d284a9a602c128d014f239c firmware.bin +d14bc9d8366505bc6f3312991d49ce7fe07d472fc936f4fabde4bf7d8775bde576268c79579d60f83e79de173a4217e00ecb1e04178db621cf9f332315485a73 firmware.bin diff --git a/hw/application_fpga/fw/tk1/start.S b/hw/application_fpga/fw/tk1/start.S index ba1e847..93a2fb0 100644 --- a/hw/application_fpga/fw/tk1/start.S +++ b/hw/application_fpga/fw/tk1/start.S @@ -38,9 +38,9 @@ _start: li x30,0 li x31,0 - /* Clear all RAM */ - li a0, 0x40000000 // TK1_RAM_BASE - li a1, 0x40020000 // TK1_RAM_BASE + TK1_RAM_SIZE + /* Clear FW_RAM */ + li a0, 0xd0000000 // TK1_MMIO_FW_RAM_BASE + li a1, 0xd0000800 // TK1_MMIO_FW_RAM_BASE + TK1_MMIO_FW_RAM_SIZE clear: sw zero, 0(a0) addi a0, a0, 4