Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help #2 #8

Closed
kmezynski opened this issue Apr 14, 2020 · 9 comments
Closed

Help #2 #8

kmezynski opened this issue Apr 14, 2020 · 9 comments
Assignees
Labels
question Further information is requested

Comments

@kmezynski
Copy link

kmezynski commented Apr 14, 2020

I got repetitive issue, while doing @rw1nkler LiteX - Zephyr setup from his repository: https://github.com/antmicro-labs/2d-gpu/wiki/LiteX---Zephyr-tutorial

I'm using Ubuntu 18.04, so far I've installed all the prerequisites up to section: Prepare basic bit-stream, where I got stuck at command ./arty.py --with-ethernet. No matter what I tried to do, the reuslt was the same error:

ModuleNotFoundError: No module named 'liteiclink'

All the repositories were installed to the directory /home/kamil/Git/<repository_name>

My ~/.bashrc file looks following:

export PATH="${PATH}:/tools/Xilinx/Vivado/2019.2/bin"

export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex"
export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex-zephyr-build/third-party/migen"
export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex-zephyr-build/third-party/litedram"
export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex-zephyr-build/third-party/liteeth"
export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex-zephyr-build/third-party/liteiclink"
export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex-zephyr-build/third-party/litejesd204b"
export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex-zephyr-build/third-party/litepcie"
export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex-zephyr-build/third-party/litesata"
export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex-zephyr-build/third-party/litescope"
export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex-zephyr-build/third-party/litesdcard"
export PYTHONPATH="${PYTHONPATH}:/home/kamil/Git/litex-zephyr-build/third-party/litevideo"

We couldn't solve this problem together for a few weeks, although I triple checked all the prerequisites and consulted with my friends whether they got the same issue. I'd be grateful for any kind of help.

@kmezynski kmezynski added the question Further information is requested label Apr 14, 2020
@rw1nkler
Copy link
Contributor

Have you tried my repository? https://github.com/rw1nkler/litex-zephyr-build
Or this is just coincidence of names? @kmezynski

@kgugala
Copy link
Contributor

kgugala commented Apr 14, 2020

@kmezynski I have updated the guide with installation of the missing packages. Basically run:

pip3 install git+https://github.com/enjoy-digital/liteiclink
pip3 install git+https://github.com/enjoy-digital/litex

before you start the build.

@kmezynski
Copy link
Author

@rw1nkler Yes of course, I've tried to run this command on both litex and repository of yours.

@kmezynski
Copy link
Author

@kgugala It helped in some way.. there's another problem with riscv toolchain:
OSError: Unable to find any of the cross compilation toolchains
I've installed RISC-V as it was described in section riscv toolchain. I've noticed, that after sudo make install I got make: Nothing to be done for 'install'.

@kgugala
Copy link
Contributor

kgugala commented Apr 15, 2020

@kmezynski you don't have the toolchain binaries in your PATH. Please add the the directory where you installed the toolchain to the PATH and it should work

@kmezynski
Copy link
Author

kmezynski commented Apr 15, 2020

@kgugala I've tried it before by adding repository to PATH in various combinations and it didn't work.
export PATH="${PATH}:/home/kamil/Git/riscv-gnu-toolchain

@rw1nkler
Copy link
Contributor

  1. You have to add the path to the directory containing the toolchain binary.
  2. If you are using my repo, the direnv can set all the environment variables for you. This is working, I'm using this repository on at least two different machines. Have you completed all the instructions from the README file? If you have problems with it we can organize the meeting.

@kmezynski
Copy link
Author

@rw1nkler Wow everything went so smooth now... probably I should have listened to your tip from Help 1 (issue #5), instead of installing everything manually.

@rw1nkler
Copy link
Contributor

rw1nkler commented Apr 16, 2020

Great! Seems like you almost did it manually, so now you should understand how this automated repo works. If you check your .envrc and .envrc.local you will find most of your manual work with paths and environment variables. (and their correct versions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants