A RISC-V linux system for the ECP5 can be built with the FOSS toolchain using vexriscv and litex:
https://github.com/litex-hub/linux-on-litex-vexriscv
also, step by step using a different core (rocket): https://insights.sei.cmu.edu/sei_blog/2019/10/how-to-build-a...