lowlander / dmx_usb_module

Linux kernel module for Enttec Open DMX dongle
http://www.erwinrol.com/open-dmx-usb-linux-driver/
GNU General Public License v2.0
42 stars 16 forks source link

No /dev/dmx0 after installing the module #10

Closed Oldes closed 12 months ago

Oldes commented 12 months ago

Hi, I have this system installed on my RPi4B:

Linux rpi 6.1.0-rpi4-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05) aarch64 GNU/Linux

I need to control LED light connected with Enttec's Open DMX USB device.

I'm able to compile the module after installing kernel headers:

sudo apt install raspberrypi-kernel-headers

But when I install the compiled module using:

sudo insmod dmx_usb.ko

I don't have /dev/dmx0 as is expected in the dmx_usb_test. This is what I see, when I connect the device to my RPi:

oldes@rpi:~/git/dmx_usb_module $ ls -la /dev/serial/by-id
total 0
drwxr-xr-x 2 root root 60 Nov 10 07:17 .
drwxr-xr-x 4 root root 80 Nov 10 07:17 ..
lrwxrwxrwx 1 root root 13 Nov 10 07:17 usb-FTDI_FT232R_USB_UART_A10NH808-if00-port0 -> ../../ttyUSB0

Any idea, how to make the module working on my setup?

Oldes commented 12 months ago

I resolved it by removing ftdi_sio first...:

sudo rmmod ftdi_sio
sudo insmod dmx_usb.ko

When no other FTDI serial device is needed, ftdi_sio may be blacklists to prevent loading it again after reboot using:

echo "# ftdi_sio conflicts with dmx_usb module so blacklist it here to avoid automatic loading." > /etc/modprobe.d/blacklist-ftdi_sio.conf
echo "blacklist ftdi_sio" >> /etc/modprobe.d/blacklist-ftdi_sio.conf