Git Product home page Git Product logo

opensbi's Issues

compile error

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;
| ^~~~

cpu6 failed to come online [MILK-V SOPHGO Pioneer SG2042]

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

[UPSTREAM]: boot crash

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.