sophgo / opensbi Goto Github PK
View Code? Open in Web Editor NEWThis project forked from riscv-software-src/opensbi
RISC-V Open Source Supervisor Binary Interface
License: Other
This project forked from riscv-software-src/opensbi
RISC-V Open Source Supervisor Binary Interface
License: Other
compile command: make PLATFORM=generic PLATFORM_RISCV_XLEN=64 CROSS_COMPILE=riscv64-linux-gnu-
error log is shown above:
/home/yangwang/official_opensbi/opensbi/lib/utils/reset/fdt_reset_sophgo_wdt.c: In function ‘mango_wdt_reset_init’:
/home/yangwang/official_opensbi/opensbi/lib/utils/reset/fdt_reset_sophgo_wdt.c:80:16: error: ‘noff’ may be used uninitialized in this function [be-uninitialized]
80 | return fdt_get_node_addr_size(fdt, noff, 0, addr, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/yangwang/official_opensbi/opensbi/lib/utils/reset/fdt_reset_sophgo_wdt.c:71:18: note: ‘noff’ was declared here
71 | int len, noff;
| ^~~~
when using
https://repo.tarsier-infra.isrc.ac.cn/openEuler-RISC-V/testing/2403LTS-test/v1/SG2042/openEuler-24.03-V1-xfce-sg2042-testing-uefi.img.zst , all cpu can come online
However, we replace fw_dynamic.bin , cpu6 failed to come online
1、git clone -b sg2042-master https://github.com/sophgo/opensbi.git
2、 cd opensbi
3、 make PLATFORM=generic PLATFORM_RISCV_XLEN=64 CROSS_COMPILE=riscv64-linux-gnu-
[ 0.273150] smp: Bringing up secondary CPUs ...
[ 0.302459] cpu1: Ratio of byte access time to unaligned word access is 5.97, unaligned accesses are fast
[ 0.334529] cpu2: Ratio of byte access time to unaligned word access is 5.85, unaligned accesses are fast
[ 0.366589] cpu3: Ratio of byte access time to unaligned word access is 5.87, unaligned accesses are fast
[ 0.398656] cpu4: Ratio of byte access time to unaligned word access is 5.97, unaligned accesses are fast
[ 0.430726] cpu5: Ratio of byte access time to unaligned word access is 5.85, unaligned accesses are fast
[ 1.456273] CPU6: failed to come online
[ 1.484877] cpu7: Ratio of byte access time to unaligned word access is 6.08, unaligned accesses are fast
[ 1.516942] cpu8: Ratio of byte access time to unaligned word access is 6.08, unaligned accesses are fast
[ 1.549006] cpu9: Ratio of byte access time to unaligned word access is 6.15, unaligned accesses are fast
[ 1.581071] cpu10: Ratio of byte access time to unaligned word access is 5.97, unaligned accesses are fast
[ 1.613141] cpu11: Ratio of byte access time to unaligned word access is 5.97, unaligned accesses are fast
......
sg2042-dmesg.txt
During working on sbi upstream, we find a werid crash issue, details as below:
With opensbi branch "issue-23" + linux branch "issue-23", system could not boot-up and error log see:
log-failed.txt
But with opensbi branch "milkv-pioneer-minmal" + linux branch "sophgo", system can boot up well.
We doubt the failure is related to the new opensbi, because opensbi branch "issue-23" is based on latest opensbi master (v1.3+), but opensbi branch "milkv-pioneer-minmal" is still based off v1.2.
This heavily blocks upstream work for sg2042. Need more help and input to help push it forward.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.