LiteX installation Issue
RIDER-LU opened this issue · 2 comments
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:
- riscv64-unknown-elf
- riscv32-unknown-elf
- riscv64-elf
- riscv32-elf
- riscv-none-embed
- riscv64-linux
- riscv64-linux-gnu-gcc
- riscv-sifive-elf
- riscv64-none-elf
Regards,
Rider-lu
==========================================================================
- Install Python 3.6+ and FPGA vendor's development tools and/or Verilator.
- 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.
- Install a RISC-V toolchain (Only if you want to test/create a SoC with a CPU):
$ ./litex_setup.py gcc -> Done
- Build the target of your board...: > Skip
Go to litex-boards/litex_boards/targets and execute the target you want to build. -
- ... 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!!!
The version of ubuntu is 20.04.
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,