Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed May 28, 2024
1 parent 36a87c6 commit 1700bcc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source/VexiiRiscv/Soc/litex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,23 @@ That linux.dts will miss the CLINT definition (used by opensbi), so you need to
};
Then you can convert the linux.dts into linux.dtb via :

.. code:: shell
dtc -O dtb -o build/linux.dtb build/linux.dts
To run debian, you would need to change the dts boot device to your block device, aswell as removing the initrd from the dts. You can find more information about how to setup the debian images on https://github.com/SpinalHDL/NaxSoftware/tree/main/debian_litex

But note that for opensbi, use instead the following (official upstream opensbi using the generic platform):
But note that for opensbi, use instead the following (official upstream opensbi using the generic platform, which will also contains the dtb):

.. code:: shell
git clone https://github.com/riscv-software-src/opensbi.git
cd opensbi
make CROSS_COMPILE=riscv-none-embed- \
PLATFORM=generic \
FW_FDT_PATH=../linux.dtb \
FW_FDT_PATH=../build/linux.dtb \
FW_JUMP_ADDR=0x41000000 \
FW_JUMP_FDT_ADDR=0x46000000
Expand Down

0 comments on commit 1700bcc

Please sign in to comment.