litex-hub / linux-on-litex-vexriscv

Linux on LiteX-VexRiscv
BSD 2-Clause "Simplified" License
574 stars 174 forks source link

Notes on loading vexriscv linux to acorn_cle_215 over pcie #249

Closed sajattack closed 2 years ago

sajattack commented 3 years ago

As requested:

There's probably a few other mods I had to make that I'll update this with later, just wanted to get something down for you.

AEW2015 commented 3 years ago

Here is some python software I wrote for my acorn builds (non-litex). Some sample code to read the XADC temp and to use the ICAP WBStar command to boot from a different address in flash. https://github.com/byuccl/fiate/tree/main/host_sw

enjoy-digital commented 2 years ago

Thanks @sajattack, @AEW2015,

when building the acorn design with: ./make.py --board=acorn_pcie --build

The UART can now be directly used with the LitePCIe driver:

cd kernel
sudo ./init.sh
insmod liteuart.ko
litex_term /dev/ttyLXU0

The upload speed can be up to 600KB/s when enabling 256-bytes payload transfer in litex_term (Not yet integrated but tested in https://github.com/enjoy-digital/litex/issues/1105).