Project

General

Profile

Installation

The most preferable OS for QEMU for RISC-V installation is Linux.
To compile the QEMU the following Linux packages should be installed first: glib-2.22, pixman-dev, flex, bison, pkg-config.

There are two ways to install QEMU for RISC-V: from source tarball or from Git repository.

Install from source archive

To install QEMU for RISC-V on Linux host do the following:

  1. Get source tarball from here.
  2. Unpack the archive to the directory you want.
  3. Enter the directory and do the following commands:
    ./configure --target-list=riscv64-softmmu
    make
    sudo make install
    

Install from Git repository

To install QEMU for RISC-V on Linux host do the following:

  1. Clone the project Git repository with the following command (it is supposed that you want to keep the source code in the qemu-riscv.git directory):
    git clone https://forge.ispras.ru/git/qemu-riscv.git qemu-riscv.git
    
  2. Enter the qemu-armv8 project directory and switch to the branch that contains all the project enhancements:
    git checkout -b ispras.edition origin/ispras.edition
    
  3. Do the following commands:
    ./configure --target-list=riscv64-softmmu
    make
    sudo make install