Closed phillippZZ closed 1 month ago
The demo shows how to build bare metal code as a start. Does this work for you?
@AndrewD , Thank you! I believe bare metal code could work. But I can't find the source code of it. May I ask how I can modify and compile the source code? I guess loading the .bin file with litex_term won't be a problem.
hi, everyone. I'm trying to run a program to test the speed of reading/writing of L1, L2 cache and memory of naxriscv.
What I tried is to put the test program into the rootfs.cpio file downloaded from "https://github.com/litex-hub/linux-on-litex-vexriscv/files/8331338/linux_2022_03_23.zip", and then load all the files to the board with litex_term.
It didn't work well because when I use the following instructions to install riscv-gnu-toolchain, it fails.
I also tried a docker container with old version of riscv-gnu-toolchain, which could compile my program. But I got the following error when running the program on the linux system from "https://github.com/litex-hub/linux-on-litex-vexriscv/files/8331338/linux_2022_03_23.zip".
I think this is because the /lib32/libc.so.6 on the linux system has a incompatible version:
So, is there any solution to compiling my program in the correct way? Also, it would be okay to run my program in bare-metal environment. But I don't know how to use libraries like and in this scenario.