Open marcmerlin opened 3 years ago
as a side note, ./litex_setup.py install is not hermetic, it needed sudo and installed a bunch of stuff in my system python. Not sure if that was the intent.
Hi @marcmerlin, I think that the problem here is that you did not source the conda environment, where prjxray-config
is located.
Another hint that this might be the case is that you required sudo to install litex, which should not happen if it was to be installed in the conda environment.
@acomodi thanks for the reply. there seems to be some include hell going on, I'm pretty sure I had conda included for the previous examples, but now I get this:
sauron:~/fpga/litex/litex-boards/litex_boards/targets$ export FPGA_FAM=xc7
sauron:~/fpga/litex/litex-boards/litex_boards/targets$ export PATH="$INSTALL_DIR/$FPGA_FAM/install/bin:$PATH";
sauron:~/fpga/litex/litex-boards/litex_boards/targets$ source "$INSTALL_DIR/$FPGA_FAM/conda/etc/profile.d/conda.sh"
sauron:~/fpga/litex/litex-boards/litex_boards/targets$ conda activate $FPGA_FAM
sauron:~/fpga/litex/litex-boards/litex_boards/targets$ export PATH="$INSTALL_DIR/$FPGA_FAM/install/bin:$PATH";^C
sauron:~/fpga/litex/litex-boards/litex_boards/targets$ ./digilent_arty.py --toolchain symbiflow --cpu-type vexriscv --build
Traceback (most recent call last):
File "./digilent_arty.py", line 13, in <module>
from migen import *
ModuleNotFoundError: No module named 'migen'
sauron:~/fpga/litex/litex-boards/litex_boards/targets$ type python3
python3 is /opt/symbiflow/xc7/conda/envs/xc7/bin/python3
which seems to say it's using the wrong python again
That said, I see you just removed the entire block I was having issues with https://github.com/SymbiFlow/symbiflow-examples/pull/111
So, should I just give up on this entire litex checkout that was out of tree and seemed a bit out of place (it wasn't clear why it was there, or how it plugged in with the next step)
So, can you confirm that 1) the entire block you just removed in https://github.com/SymbiFlow/symbiflow-examples/commit/dc44e93754f065adf9d851a1696efb3b2e117053 was a wild goose chase, and not necessary, so I can delete it all on my side and forget it ever happened? :)
2) clear up https://symbiflow-examples.readthedocs.io/en/latest/building-examples.html#linux-litex-demo a bit? I sure get it to build and install, and see litex on serial console, but of course, that doesn't include linux. Some basic steps on how to flash a pre-built working linux would be appreciated. I see that it could also be retrieved over tftp and I could get that working if needed, but that's more error prone, requires ethernet which I have but many don't have anymore, and somehow it seems much simpler to just flash a pre-built linux image if possible :)
Hi, I'm following the doc on https://symbiflow-examples.readthedocs.io/en/latest/building-examples.html and the first 2 examples work fine, but litetx is not as clear.
First "Linux LiteX demo" doesn't make it clear if I should be inside the symbiflow-examples git checkout to create all those things done by litex_setup, or elsewhere. I made a need litex directory. The build then fails with
I do have this, but it's not in my path:
Your code added this to my path: /opt/symbiflow/xc7/conda/condabin:/opt/symbiflow/xc7/install/bin
I had to do this: sauron:~/fpga/litex/litex-boards/litex_boards/targets$ export PATH="$PATH:$INSTALL_DIR/$FPGA_FAM/conda/envs/$FPGA_FAM/bin/"
but then: