riscv-software-src / riscv-tools

RISC-V Tools (ISA Simulator and Tests)
1.13k stars 446 forks source link

LiteX installation Issue #321

Closed RIDER-LU closed 3 years ago

RIDER-LU commented 3 years ago

Hi,

I installed LiteX and Risc-V tool chain as below. (Installation Guide) After installation was completed, i executed "$ lxsim --cpu-type=vexriscv" But, I am seeing the error message below.

OSError: Unable to find any of the cross compilation toolchains:

Regards, Rider-lu

==========================================================================

  1. Install Python 3.6+ and FPGA vendor's development tools and/or Verilator.
  2. Install Migen/LiteX and the LiteX's cores:

$ wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py -> Done $ chmod +x litex_setup.py -> Done $ ./litex_setup.py init install --user (--user to install to user directory) -> Done

Later, if you need to update all repositories:

$ ./litex_setup.py update -> Skip

Note: On MacOS, make sure you have HomeBrew installed. Then do, brew install wget.

Note: On Windows, it's possible you'll have to set SHELL environment variable to SHELL=cmd.exe.
  1. Install a RISC-V toolchain (Only if you want to test/create a SoC with a CPU):

$ ./litex_setup.py gcc -> Done

  1. Build the target of your board...: > Skip

Go to litex-boards/litex_boards/targets and execute the target you want to build. -

  1. ... and/or install Verilator and test LiteX directly on your computer without any FPGA board

On Linux (Ubuntu):

$ sudo apt install libevent-dev libjson-c-dev verilator -> Done $ lxsim --cpu-type=vexriscv --> Error!!!

RIDER-LU commented 3 years ago

The version of ubuntu is 20.04.

RIDER-LU commented 3 years ago

I resolved the Error with adding "export PATH=$PATH:$my_home/Desktop/TOOL/LiteX/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14/bin"

Thanks,