Add bootrom support

This commit is contained in:
2024-07-08 17:37:46 +02:00
parent 66ec07a0cb
commit 5f90528b51
8 changed files with 25 additions and 5 deletions

View File

@@ -37,11 +37,14 @@ function setup_meep()
# Setup mappings
# Delta between where we load in the dma device and RAM
local delta_addr=-0x60000000
local delta_addr=-0x5ffe0000
# See https://gitlab.bsc.es/hwdesign/fpga/integration-lab/fpga-tools/-/blob/6a63bcea6d1d59df3c7d62311aa4935efd54d3a3/boot_riscv/boot_sa.sh#L36-40
export FPGACTL_BOOTLOADER_ADDR=$((0x80000000+$delta_addr))
export FPGACTL_KERNEL_ADDR=$((0x84000000+$delta_addr))
export FPGACTL_INITRD_ADDR=$((0x8c300000+$delta_addr))
export FPGACTL_ROOTFS_ADDR=$((0x100000000+$delta_addr))
export FPGACTL_BOOTROM_ADDR=$((0x00000100))
}
hostname=$(hostname)