happycube / cxadc-linux3

CX2388x direct ADC capture driver, updated for Linux 3.x+ and 64-bit
81 stars 18 forks source link

dkms support and dynamic chardev creation #4

Closed ali1234 closed 4 years ago

ali1234 commented 4 years ago

This basically makes the module do everything automatically.

Unmanaged install:

sudo cp cxadc.rules /etc/udev/rules.d
sudo cp cxadc.conf /etc/modprobe.d
make && sudo make modules_install

After this step you need to reload configs. Easiest way to do this is just reboot. Now the module will be loaded and chardev will be created automatically after every reboot, with the correct permissions and options from cxadc.conf. The cx88 modules will also be blacklisted so they don't load automatically.

A DKMS configuration is also supplied which allows the module to be automatically rebuilt whenever the kernel is updated. This is a bit harder to set up manually, but would allow the module to be packaged in a PPA or similar (I haven't figured out exactly the correct way of doing this yet.)

I have not updated the README.

ali1234 commented 4 years ago

Also I haven't extensively tested this. It seems to work though...

ali1234 commented 4 years ago

Added systemd unit for network:

sudo cp cxadcnc.service /etc/systemd/system
sudo systemctl reenable cxadcnc
sudo systemctl start cxadcnc

Now you can read samples over the network eg:

netcat 127.0.0.1 4444 | hd