-
Notifications
You must be signed in to change notification settings - Fork 27
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 during the boot (risc-pk/bbl) on F1 (AWS) #5
Comments
It seems that ubuntu.exe is not linked properly with libfesvr.so. load_elf and memif_t are both defined in riscv-fesvr. Try "ldd ubuntu.exe" to see if any .so is missing. Besides, have you run build-fesvr.sh successfully on F1 before you do "make exe" on F1? Or is it because libfesvr.so is not in your $LD_LIBRARY_PATH? Sourcing setup.sh should have added it to $LD_LIBRARY_PATH. |
I followed the steps. Here is the output on 'ldd ubuntu.exe',
on flashing F1, and running 'ubuntu.exe', I see a different error now.
|
According to the outputs, things fail when we try to call the load_elf function in riscv-fesvr to parse the boot-rom elf file rom_core_1. The specific failure point is when load_elf function tries to mmap file rom_core_1 (riscv-fesvr/fesvr/elfloader.cc line 26). You can add a line to print out errno to see the cause of the mmap failure, and then decide how to fix the issue. Also make sure you are following the steps in readme to use all the submodules in this repo (e.g., riscv gcc, pk, etc.) to compile things. The official riscv-tools codebase evolves too fast, and some more up-to-date commits may not work with our setup. |
Hi @sizhuo-zhang,
I see the following error when I boot F1 with (riscv-pk/bbl and rom_core_1). Have you experienced this before?
Any pointers would be greatly helpful.
Thanks!
The text was updated successfully, but these errors were encountered: