-
Notifications
You must be signed in to change notification settings - Fork 538
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
No output while running demo.bin on Litex SoC with Rocket CPU hardware(Xilinx AC701 board) after Liftoff! #1168
Comments
Removing |
- Adjust memory model to fix `relocation truncated` errors - Make isr.c shared between BIOS and demo to resolve dep on `plic_init` Based on: enjoy-digital#1168
While this does work it also breaks some other stuff. |
Thanks @developandplay, we can now probably close this issue. @Aravindh-Swaminathan: If you still have troubles, please re-open. |
Hi @developandplay ,
From this we can say riscv-gnu-toolchain might not be the issue. Kindly advise. Thanks. |
Did you compile both the BIOS and the demo application code with the new toolchain? |
@developandplay Yes! I did compile both BIOS and demo application using latest toolchain only since I did not want to leave anything to chance. Still did not work . However, I will try that once again and post back here if there is any change. |
Hi @developandplay ,
|
Just checked again myself. Sorry, I guess I was the one using a @enjoy-digital Could removing |
Hi @developandplay , |
Generation of bit stream.
litex-boards/litex_boards/targets/xilinx_ac701.py --build --cpu-type rocket --cpu-variant linux4 --sys-clk-freq 50e6 --with-ethernet
--> Bitstream generated successfully
--> BIOS running on Hardware successfully. All test cases passed including SDRAM.
Generation of demo.bin (baremetal)
litex_bare_metal_demo --build-path=./
Issues faced
Resolved the above error by adding the following flag here, after line number: 120
flags += "-mcmodel=medany"
The above error was resolved by replacing the isr.c file from https://github.com/enjoy-digital/litex/blob/master/litex/soc/software/bios/ to https://github.com/enjoy-digital/litex/blob/master/litex/soc/software/demo/
After the above 2 issues were resolved, demo.bin was generated.
Loading demo.bin via lxterm via serial port to AC701 hardware
sudo lxterm /dev/ttyUSB1 --kernel demo.bin --kernel-adr 0x80000000
Logs
After Liftoff, unable to get any output from demo.bin
Kindly help to look into this issue.
Note: The demo.bin works perfectly fine in the same hardware for vexriscv cpu. Issue is faced only while using rocket cpu.
Thanks in advance
The text was updated successfully, but these errors were encountered: