Closed Kimplul closed 4 months ago
The long-term solution to this (and similar) issues will be to update the litex/tools/litex_json2dts_linux.py
script to automatically generate the appropriate .dts
file, and optionally call dtc
on it and even more optionally build the resulting .dtb
file into the bios blob included with the bitstream (or at least make it easyly available for loading into RAM as part of the sdcard/tftp/etc boot process).
At this time, the included .dts
files are merely examples you can use to build upon to address your specific needs.
On Mon, Sep 19, 2022 at 05:46:00AM -0700, Kimplul wrote:
Hi, apparently the UART in the simulator is placed at address 0x12003000 instead of 0x12002800 when run with --with-sdram --sdram-init boot.bin [...] Should the README be updated with the sdram flags (and sim.dts be modified) or am I doing something wrong here?
The actual placement of MMIO registers will inevitably change as the LiteX source code evolves, so hard-coded values will be subject to bit-rot and will need to be updated manually over time.
The long term solution is be to generate a .dts (and .dtb) file
automatically during build (see litex/tools/litex_json2dts*.py
for the current state of that effort).
closing, please re-open if anything remains still un-addressed.
Hi, apparently the UART in the simulator is placed at address
0x12003000
instead of0x12002800
when run with--with-sdram --sdram-init boot.bin
, copied from here. I'm not too familiar with the simulator, but there's nomain-ram
in my simulator, and if I try to add some with--integrated-main-ram-size
I get the following error:Should the README be updated with the
sdram
flags (andsim.dts
be modified) or am I doing something wrong here?Here's my whole command line: