Here is my way....
Install Linux from official ISO
DEBIAN 10 - LINUXCNC 2.8.4 - ISO
Install packages:
sudo apt install python3-pip
sudo apt install git
pip3 install pydantic==1.10.5
pip3 install packaging==21.3
pip3 install ninja==1.11.1
pip3 install chardet==5.1.0
pip3 install meson==0.64.1
pip3 install requests==2.28.2
pip3 install yapps==2.2.0
pip3 install importlib-metadata
pip3 install -i
test.pypi.org/simple/
litexcnc[cli]==0.9.0a5
litexcnc install_litex --user
litexcnc install_toolchain --user
#edit or check .bashrc and .profile
# set PATH so it includes user's private bin and oss-cad-suite directories if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
# set PATH so it includes oss-cad-suite
if [ -d "/home/oj/oss-cad-suite/bin" ] ; then
PATH="/home/oj/oss-cad-suite/bin:$PATH"
fi
Install driver for LinuxCNC
litexcnc install_driver
this will compile the modules for linuxcnc. when you get the no permission error to copy the files to the linuxcnc folder you
will have to modify the file install_driver.py on line 19. found in ~/.local/lib/python3.7/site-packages/litexcnc/cli/
change 'halcompile.py --install' to 'halcompile.py --compile'
run 'litexcnc install_driver' again and it will compile the driver without copy them.
then copy the modules manually with sudo
open a terminal
cd .local/lib/python3.7/site-packages/litexcnc/driver/
sudo cp litexcnc.so /usr/lib/linuxcnc/modules
sudo cp litexcnc_eth.so /usr/lib/linuxcnc/modules
sudo cp pos2vel.so /usr/lib/linuxcnc/modules
create, or edit a JSON config file for your board. I used one of the examples and changed to my needs
litex-cnc.readthedocs.io/en/latest/examples/index.html
litexcnc build_firmware "<path-to-your-configuration.json>" --build