LitexCNC: firmware and driver for 5A-75B and 5A-75E

More
06 Jan 2024 20:32 #289997 by TOLP2
Please tell when it works and certainly tell when something is not working or not clear!

Please Log in or Create an account to join the conversation.

More
07 Jan 2024 08:00 #290061 by Ehsan_R
user@debian:~$ pip install litexcnc[cli]
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
 

Please Log in or Create an account to join the conversation.

More
07 Jan 2024 08:45 #290066 by rodw
The latest distros don't allow pip install unless you are running a python virtual environment.
 
The following user(s) said Thank You: Ehsan_R

Please Log in or Create an account to join the conversation.

More
07 Jan 2024 08:52 #290067 by Ehsan_R

Please Log in or Create an account to join the conversation.

More
07 Jan 2024 09:36 #290068 by tommylight
A stab in the dark but try this
sudo apt install python3-pip
OR
sudo apt install pip3
then
pip3 install litexcnc
The following user(s) said Thank You: TOLP2

Please Log in or Create an account to join the conversation.

More
07 Jan 2024 10:46 #290074 by TOLP2
When using the bookworm LinuxCNC 2.9 image, 5he script below works best. 
 
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install python3-pip python3-wheel python3-venv
python3 -m venv ~/.local --system-site-packages
~/.local/bin/pip install litexcnc[cli]
~/.local/bin/litexcnc install_toolchain --user -a arm64
sudo env "PATH=$PATH" ~/.local/bin/litexcnc install_driver
​​​​​​
 

Please Log in or Create an account to join the conversation.

More
07 Jan 2024 21:58 #290149 by TOLP2
I've added a section to the documentation on how to get LinuxCNC and install LitexCNC:
litex-cnc.readthedocs.io/en/latest/raspberrypi.html

It is still work in progress, as I have only covered the PREEMPT image from LinuxCNC and I also want to add support for RTAI (using Raspbian) and older version (2.8.2 on buster).

The main reason for covering the RTAI version is personal: I just don't like the GUI from Xfce, and do prefer the GUI provided by the Raspberry Pi foundation.

Please Log in or Create an account to join the conversation.

More
13 Jan 2024 15:34 #290559 by uba100
Good evening,

I have followed exactly these instructions
litex-cnc.readthedocs.io/en/latest/raspberrypi.html
to install and set up the image for my Raspberry pi4 on the SD card. Then I executed the commands for installing litexcnc one after the other and the installation seemed to run without errors. However, when I try to compile one of the examples of the JSON files, I get lots of error messages because several necessary files cannot be found. I was able to overcome a few of the error messages by pointing to the correct directories in my .bashrc, but the following errors were beyond my rudimentary Linux knowledge. Has anyone ever successfully created and flashed firmware using these instructions?

Kind regards
Uwe Bartheld

Translated with DeepL.com (free version)

Please Log in or Create an account to join the conversation.

More
14 Jan 2024 09:54 #290626 by TOLP2
Can you post the error files, so I have some guidance what is missing.

Please Log in or Create an account to join the conversation.

More
14 Jan 2024 14:07 #290643 by uba100
First I tried "litexcnc --help" as a test. I got the error message "litexcnc command not found". I then added the line: "export PATH=$PATH:~/.local/bin/" to my bashrc. Now "litexcnc--help" worked.
So I tried to compile one of the examples:
"itexcnc build_firmware "/home/cnc/Downloads/5a-75b_v8.0_i12o14p6s6e6.json" --build"
Unfortunately, this did not work :
".....
OSError: Unable to find Yosys/Nextpnr toolchain, please:
- Add Yosys/Nextpnr toolchain to your $PATH."
So I extended the line in my bashrc to:
export PATH=$PATH:~/.local/bin/:~/toolchain/oss-cad-suite/libexec/
Now I got the following error message in the output, among others:
".....
INFO:SoC:
yosys: error while loading shared libraries: libffi.so.7: cannot open shared object file: No such file or directory
...."
Now I have added the following line to my bashrc:
export LD_LIBRARY_PATH=~/toolchain/oss-cad-suite/lib/:$LD_LIBRARY_PATH

to explicitly refer to the "libffi.so.7" located in this directory.
Since then I only get the following messages:
/home/cnc/.local/bin/python3: /home/cnc/toolchain/oss-cad-suite/lib/libm.so.6: version `GLIBC_2.35' not found (required by /home/cnc/.local/bin/python3)
/home/cnc/.local/bin/python3: /home/cnc/toolchain/oss-cad-suite/lib/libc.so.6: version `GLIBC_2.33' not found (required by /home/cnc/.local/bin/python3)
/home/cnc/.local/bin/python3: /home/cnc/toolchain/oss-cad-suite/lib/libc.so.6: version `GLIBC_2.32' not found (required by /home/cnc/.local/bin/python3)
/home/cnc/.local/bin/python3: /home/cnc/toolchain/oss-cad-suite/lib/libc.so.6: version `GLIBC_2.34' not found (required by /home/cnc/.local/bin/python3)

Now Chat GBT doesn't know what to do :)
The following user(s) said Thank You: TOLP2

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.391 seconds
Powered by Kunena Forum