chipsalliance / rocket-chip

Rocket Chip Generator
Other
3.28k stars 1.14k forks source link

Device tree generation #64

Closed wsong83 closed 8 years ago

wsong83 commented 8 years ago

I see there is an automatic device tree generation in the current Rocket-chip generator. Can I somehow get a dts file from it instead a dtb file? I am trying to catch up with the latest development. Is the generated dtb file utilized in emulator/vsim/FPGA? Also is the current RISC-V Linux kernel reads this file?

Thanks!

zhemao commented 8 years ago

The generated dtb file is put into a ROM. Our intention is that the machine-mode software will read the dtb ROM to gather data about what peripherals are available. There shouldn't be any need to ship .dtb or .dts files along with the kernel.

wsong83 commented 8 years ago

I see. Thanks for the clarification. Just think an automatic generated dts might help debug but I can read the Chisel device tree to figure out.

aswaterman commented 8 years ago

It will be a moot point when we release the platform spec, as the new config string is human readable so can just be printed to console. In other words, I agree it is helpful for debugging ;-)

On Wednesday, March 2, 2016, Wei Song notifications@github.com wrote:

I see. Thanks for the clarification. Just think an automatic generated dts might help debug but I can read the Chisel device tree to figure out.

— Reply to this email directly or view it on GitHub https://github.com/ucb-bar/rocket-chip/issues/64#issuecomment-191301834.

palmer-dabbelt commented 8 years ago

@aswaterman I see your not-device-tree thing getting printed in my Rocket Chip builds, so I'm closing this.