Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign uplinux: litex_liteuart: add liteuart driver #33
Conversation
This comment has been minimized.
This comment has been minimized.
|
Thanks @mateusz-holenko! Can you explain how you tested it? I just re-compiled the images and tried it with the simulator but it does not seem to be working. |
This comment has been minimized.
This comment has been minimized.
|
Sorry, that was just my computer that was a bit slow and logs messages appear a bit later than before, that's working fine, thanks! |
This comment has been minimized.
This comment has been minimized.
|
Thanks! FYI I've tested it on Arty board and in Renode. |
This comment has been minimized.
This comment has been minimized.
|
Good, do you have instructions on how to run it with Renode? I'd like to test it and add instructions to the README for it. |
This comment has been minimized.
This comment has been minimized.
|
Renode supports litex with vexriscv.linux platform. You can simulate it by starting Renode and typing in monitor:
This will, however, use pre-defined binaries from our server. If you want to use your own binaries, most probably from linux-on-litex-vexrsicv-prebuilt, you should clone the repo and execute the following commands in Renode monitor:
NOTE: You need to fix paths to match your setup. NOTE2: You need to have the newest Renode from github, as only in this commit I added the option to provide custom binaries to the script. If you use the older version of Renode, you must change the NOTE3: I noticed that the current version of DTB on linux-on-litex-vexrsicv-prebuilt is outdated. I created a PR fixing this: litex-hub/linux-on-litex-vexriscv-prebuilt#1. More information on Renode can be found in README and the documentation. |
This comment has been minimized.
This comment has been minimized.
|
@enjoy-digital There is also a tool which generates the Renode configuration from the LiteX CSV file @ https://github.com/litex-hub/litex-renode |
This comment has been minimized.
This comment has been minimized.
|
@mateusz-holenko Can you update the README for the litex-renode repo to include some usage instructions? |
This comment has been minimized.
This comment has been minimized.
|
@enjoy-digital - Oh FYI -- there is an example of the Linux.conf.au FPGA Miniconf tutorial using Renode + RISC-V (verse or1k and QEMU) avalible at https://github.com/timvideos/litex-buildenv/wiki/HowTo-LCA2018-FPGA-Miniconf-VexRiscv-Renode |
This comment has been minimized.
This comment has been minimized.
|
Thanks @mateusz-holenko, @mithro, i'll test that very soon. |
This comment has been minimized.
This comment has been minimized.
|
@mithro I'll update the README today. |
mateusz-holenko commentedJul 29, 2019
This adds LiteX UART (liteuart) driver and configures Linux to use this device as system console.