-
Notifications
You must be signed in to change notification settings - Fork 22
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
Installation Documentation Update for Debian 12 & Python 3.11 with venv. #53
Comments
Great to hear that you are willing to try Litex-CNC. The setup I currently work with is indeed the 5A-75E, but for my Raspberry Pi based setup I'm switching to the 5A-75B in combination with a hat and running on SPI. Issues installing driver Most likely you require privileges to modify the contents of your LinuxCNC installation, so sudo -E env PATH=$PATH litexcnc install_driver This is an issue with the documentation. I can see this command is in the repo, however it is not listed (yet) at the documentation. Could you let me know whether this resolves your issue concerning the driver? Issue concerning installing Litex |
'too name a few' suggests you experience more issues, can you also list your other issues here ? |
For litexcnc install_toolchain --help gives
For your system the correct command for installing the toolchain will be:
With the upcoming release (working on it), you don't necessarily have to provide NOTE |
Version 1.0.3 has been released. You can install it with: pip3 install -U litexcnc[cli] Let me know whether it works, then I will close this issue. For more support on drafting your configuration for the card, you can always ask in the discussions. |
Hi Peter. Sweet, the toolchain installs with the given options, thanks for highlighting this for us. However the LiteX dependency still fails with the following errors: $ litexcnc install_litex $ litexcnc install_litex --user The workaround is to install it manually, for now, however I have no idea if this is the way you anticipated it and/or want to document it: $ mkdir LiteX |
Regardless of what appears as a successful dependencies install, it is still impossible to build a bin file. See steps and error below: $ git clone https://github.com/Peter-van-Tol/LiteX-CNC.git raise ValueError("Field Note: I've edited the examples/5a-75e.json and added at the top: "board_type": "5A-75E v7.1", for index in range(len(kwargs['modules'])): And so I'm completely lost. Certainly not working at my end obviously because my abilities as a user and knowledge doesn't help me too much. I'll see if I can find time to browse through those 60'ish pages of the linuxcnc forum and see if I can find hints as to what's going on. In a meantime if you know what's happening I'd love to hear what I'm doing wrong. I appreciate the help and support so far. Too kind already. |
Quick update: Peter, I've managed to build a *.json example taken from member "deroj" on the forum. And that's good news! However not so much for new 'users' (aka non-linux experts like myself). As a suggestion, I certainly see additional details to be put into the documentation "installation" section. And of course updating the /examples/ with some that works to prevent any confusions as to why nothing works. Apart from that, I am super excited about your project! One of the coolest out there I had the chance to take on, and so I'd like to pass my gratitude for what you've done for us. Top notch!! I look forward getting these buffers desoldered and in/out signals scoped (not really haha). All good fun nonetheless, thank you Peter. |
The examples in the repo are not up-to-date, however those in the documentation are. I will remove the examples from the repo (except one or two) and make sure they work. For a full list of configurations, see the examples section. For the |
The examples have been resolved. For the litexcnc install_litex --directory ~ Which installs it in your |
I've improved the documentation. Could you check whether you would have found the information you needed to install the driver, Litex, and toolchain when looking at the latest documentation? |
Hi Peter, don't know what to say... a simple thank you ain't enough to express how grateful I am for your support, let alone this cool project you've impressively facilitate for the community. The Documentation was already beyond amazing, just needed a 'linux illiterates' tweak, which you've kindly done I've seen! Cheers man 👍😎 Below are my notes for an ootb Debian 12 & Python 3.11 having Linuxcnc 2.9. Following those lines will get you a bit file in less than 10min zero complaints/perms/fuss/sweat. $ sudo apt install python3-pip python3.11-venv $ pip3 install -U litexcnc[cli] # To force OSS-Cad-Suite PATH, a reboot is required: $ source /home/cnc/LiteX-CNC/bin/activate # Change board_type in 5a-75e_simple.json from "5A-75E v8.0" -to- "5A-75E v6.0" # Test build: # Ping Test 192.168.0.50. Download bit file with openFPGAloader: Success! |
Cool! I will add this as a tutorial! |
(ColorLight) cnc@debian-i7:~/ColorLight/LiteX-CNC$ halrun F'ing EPIC!! Let's play this. Thanks, Peter. Happy for you to close this. I'll catch you in the Discussion Section or forum when I'll struggle (lol) to get the hal & ini sorted. Aiming for a closed loop (3 glass scales + 2 ABZ encoders) for a 4-axis mill. |
Hi Peter. I like your project quite a lot and getting ready to get familiar and give it a try. Hopefully this can retire my 4 years old LPT card and so I've put a 5A-75E V.8.0 (like yours?), a FT232H programmer and a dozen SN74LVC245A buffers on order.
Challenge I'm facing now is installing LiteX-CNC's dependencies/toolchain ect. Debian 12 and Python 3.11 (pip3) forces a virtual environment and this creates a whole lot of impediments at the permission & user levels. Practically impossible to install anything without failures. e.g. Driver perms fails (sudo does not work), LiteX throws an error (--user does not work), to name a few.
Can I recommend for this to be investigated at your end (I'm nowhere a linux expert!) and documentation updated to support this environment?
Let me know if you need any trace logs etc. Happy to help despite my limited abilities and knowledge.
Thanks. Alex.
The text was updated successfully, but these errors were encountered: