Skip to content
Peter-van-Tol edited this page May 21, 2022 · 3 revisions

The installation of the driver is independent from the configuration. In order to install the driver, a modified version of halcompile is created. The script halcompile is a Python-script which creates and executes the required MakeFiles. Because the driver required json-c, an extra flag had to be added.

Pre-requisites

First, install the json-c library:

sudo apt-get update
sudo apt install libjson-c-dev

Next, locate the halcompile script and replace it with the modified version. The modified version of halcompile can be found in the root of this repository.

whereis halcompile
sudo cp <path/of/modified/version/halcompile.py> </whereis/path/halcompile>

NOTE: When the file halcompile cannot be found, make sure you have linuxcnc-dev installed, i.e. sudo apt-get install linuxcnc-dev.

Installing the driver

When above pre-requisites are met, the LiteX-CNC can be build and installed using the modified halcompile:

cd <folder/with/driver/source>
sudo halcompile --install litexcnc.c litexcnc_eth.c litexcnc_debug.c 
Clone this wiki locally