Development repository for RISC-V U-Boot on Microsemi FPGA
This repository contains the U-Boot created by Microsemi for RISC-V core on Smartfusion2 M2Sxxx devices. The Smartfusion2 M2S150 FPGA Advance Dev Kit is used for RISC-V U-Boot and the FPGA design available at RISCV-on-Microsemi-FPGA.
Get the RISC-V cross tool from riscv github and follow the README file for installation.
$ git clone --recursive https://github.com/riscv/riscv-gnu-toolchain
After clone of riscv-gnu-toolchain
$ cd riscv-gnu-toolchain
To build the 32-bit rv32 toolchain, use:
$./configure --prefix={Installation directory} --with-arch=rv32imac --with-abi=ilp32
$ make linux
$ git clone https://github.com/Microsemi-SoC-IP/RISC-V_U-Boot
$ cd RISC-V_U-Boot
-
Set the PATH
$ export PATH=$PATH:${installation directory}/bin
-
Create U-Boot configuration based on architecture defaults:
$ make riscv-m2sxxx_defconfig
-
Optionally edit the configuration via an ncurses interface:
$ make menuconfig
-
Build the U-Boot image:
$ make
The Softconsole available on RISCV-on-Microsemi-FPGA.
Follow the steps explained in Debug_setup_with_SC.docx
document available in u-boot root directory.