Coder Social home page Coder Social logo

制作bbl.bin失败 about xiangshan HOT 5 CLOSED

openxiangshan avatar openxiangshan commented on August 21, 2024
制作bbl.bin失败

from xiangshan.

Comments (5)

wakafa1 avatar wakafa1 commented on August 21, 2024

出错信息显示是 dtc 在编译设备树的时候产生了问题,但我这边无法复现。请运行一下 dtc -O dtb -I dts -o build/system.dtb dts/system.dts 看看是否仍然有同样的问题。另外,麻烦提供一下 dtc 的版本

from xiangshan.

zhuxuanlong avatar zhuxuanlong commented on August 21, 2024

root@zte-R5300-G4:/share/zhuxuanlong/XiangShan/riscv-pk# dtc -v
Version: DTC 1.4.0

root@zte-R5300-G4:/share/zhuxuanlong/XiangShan/riscv-pk# dtc -O dtb -I dts -o build/system.dtb dts/system.dts
Error: dts/platform.dtsi:1.1-9 syntax error
FATAL ERROR: Unable to parse input tree
root@zte-R5300-G4:/share/zhuxuanlong/XiangShan/riscv-pk#

from xiangshan.

zhuxuanlong avatar zhuxuanlong commented on August 21, 2024

root:/XiangShan/riscv-pk# cat dts/platform.dtsi
/dts-v1/;

/ {
L18: soc {
L2: clint@2000000 {
compatible = "riscv,clint0";
interrupts-extended = <&L4 3 &L4 7>;
reg = <0x0 0x38000000 0x0 0x10000>;
reg-names = "control";
clock-frequency-mhz = <500>;
};
L14: serial@60000000 {
compatible = "xilinx,uartlite";
//interrupt-parent = <&L1>;
interrupts = <3>;
reg = <0x0 0x40600000 0x0 0x1000>;
reg-names = "control";
};
sdhci: mmc {
compatible = "nemu-sdhost";
reg = <0x0 0x40002000 0x0 0x1000>;
};
};
chosen {
bootargs = "root=/dev/mmcblk0 rootfstype=ext4 ro rootwait earlycon";
};
L11: memory@100000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x2000000>;
};
};

from xiangshan.

wakafa1 avatar wakafa1 commented on August 21, 2024

怀疑是 dtc 的版本问题,请使用 1.5.0 版本的 dtc 试一下

from xiangshan.

zhuxuanlong avatar zhuxuanlong commented on August 21, 2024

dtc版本为1.5.0后就正常了。这块建议在代码中约束一下dtc版本依赖。

from xiangshan.

Related Issues (20)

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.