litex-hub / linux-on-litex-vexriscv

Linux on LiteX-VexRiscv
BSD 2-Clause "Simplified" License
551 stars 174 forks source link

README recipes don't work #340

Open vuokko opened 1 year ago

vuokko commented 1 year ago

My plan was quickly build RV32 for linux, test different cache features, and study how to write a board for Arria 10 board.

Without any good knowledge of the process, I just copy pasted commands happily on a fresh Ubuntu 20.04 VM

First of all GCC needed compression feature. I believe gcc should come from Sifive which would support the default instruction set features.

Second big question was what is sbt command. And last thing was that I got stuck java exception of missing class.

Could someone repeat this experiment, take notes and update the README ?

Dolu1990 commented 1 year ago

Hi,

Which procedure exactly did you followed ? (arguments and so one, so we can test exactly the same as you)

vuokko commented 1 year ago

I followed the README.md by starting with Prerequisites Then I continued to Installing LiteX and Installing a RISC-V toolchain

I added those bin directories to my $PATH

Then I tried to build something with various tries ./make.py --board=arty --toolchain=symbiflow --build ./make.py --board=arty --build ./make.py --board=arty

and other boards just to prove that I have some kind of working system.

I also needed the --with-rvc or something like that to enable compression because otherwise gcc wouldn't work.

Most of the time I was just trying to figure out what I'm missing and trying stupid things for example to get the environment to build the missing java classes. ClassNotFoundException in sbt runMain stage.

Dolu1990 commented 1 year ago

So you installed the gcc toolchain using : https://github.com/litex-hub/linux-on-litex-vexriscv#-installing-a-risc-v-toolchain ?

It may be due to it being used as RV32IMA. I know that some toolchaine implement RV32IM + RV32IMAC, but not RV32IMA.

Can you share me the logs you have when you have the ClassNotFoundException ?

TeOSobrino commented 2 months ago

Hi, just wanted to add on this matter, sbt is not listed in the dependencies. Despite it being quite an obvious fix, as you will be prompted with some error message alike "sbt not found in: /bin/sbt", this project is so tidy, that adding this at the dependencies would be a nice minor improvement, as it is possible to simulate a litex SoC without it, but not linux on litex.

Dolu1990 commented 2 months ago

Added sbt stuff to the readme ^^ Thanks