-
Notifications
You must be signed in to change notification settings - Fork 174
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
Error: unrecognized opcode csrr s5,0xf14', extension
zicsr' required
#391
Comments
hmm maybe replacing https://github.com/litex-hub/linux-on-litex-vexriscv/blob/ea17e31537cdabe780cf5747cbe5b37ea09f717f/buildroot/configs/litex_vexriscv_defconfig#L25C1-L25C21 with BR2_GCC_VERSION_12_X=y ? Not sure |
It doesn't work. And I tried to add "March=rv32i_zicsr" somewhere for gcc but couldn't find a place to add it😅 |
This is related to : Bootloader (opensbi)BR2_TARGET_OPENSBI=y That opensbi branch seems to bo too outdated. |
Sorry, I don't know what I'm supposed to do now. Do I use "https://github.com/riscv-software-src/opensbi" in "litex_vexriscv_defconfig", or keep using "https://github.com/litex-hub/opensbi.git" and follow @trabucayre 's instruction? To enable RVC in config, I did the following:
Did I configure it in the correct way?
|
@trabucayre My bad, you are right ^^ the version is good. @phillippZZ I got things to compile with (didn't used RVC, i was on opensbi 1.4 on the generic platform, not the litex one, so it isn't 1 to 1 necessarly): make ... \
PLATFORM_RISCV_XLEN=32 \
PLATFORM_RISCV_ISA=rv32ima_zicsr_zifencei \
PLATFORM_RISCV_ABI=ilp32 \
... |
@Dolu1990 Thank you. Do I download opensbi 1.4 and compile it with something like:
Somehow I get:
Maybe there's something wrong with my riscv-none-embed-gcc. Also, should I modify litex_vexriscv_defconfig as the following:
UPDATES: After several attempts, I found that "sh XX.sh" works |
Don't use opensbi 1.4, as i proposed, it is for when you use the generic opensbi platform, which is the same as proposed on linux-on-litex-vexriscv. How did you made your program file ? |
I didn't use opensbi 1.4 or build the linux image. I simply compiled a project called IsolBench with "riscv64-unknown-linux-gnu-gcc" and moved it into the rootf.cpio. Then I simulated the linux with the files downloaded from "https://github.com/litex-hub/linux-on-litex-vexriscv/files/8331338/linux_2022_03_23.zip". Could you tell me how I can solve these issues? And IsolBench can be downloaded from "https://github.com/CSL-KU/IsolBench" |
Hi, everyone.
I tried to build a linux image with following commands:
Then I got a lot of errors due to "ziscr":
How can I solve this issue?
The text was updated successfully, but these errors were encountered: