Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README recipes don't work #340

Open
vuokko opened this issue May 18, 2023 · 5 comments
Open

README recipes don't work #340

vuokko opened this issue May 18, 2023 · 5 comments

Comments

@vuokko
Copy link

vuokko commented May 18, 2023

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
Copy link
Contributor

Hi,

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

@vuokko
Copy link
Author

vuokko commented May 19, 2023

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
Copy link
Contributor

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
Copy link

TeOSobrino commented Apr 25, 2024

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
Copy link
Contributor

Added sbt stuff to the readme ^^
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants