eugene-tarassov / vivado-risc-v

Xilinx Vivado block designs for FPGA RISC-V SoC running Debian Linux distro
850 stars 193 forks source link

Compilation of Bootrom.elf #150

Open L0stMyN4me opened 1 year ago

L0stMyN4me commented 1 year ago

We are using XSDB to debug a project, and bootrom.elf is used. Does it have to need the dtb file when compiling bootrom.elf? Can we delete it? If necessary, what is the role? We look forward to your reply,thank you!

eugene-tarassov commented 1 year ago

The Device Tree (dtb files) is used by u-boot and Linux. The tree is stored in FPGA (together with bootrom) and allows Linux to discover RISC-V configuration: number of cores, peripheral devices, interrupts, etc. When Linux boots, it reads this info at pre-defined address in ROM and setups all necessary drivers.