diff --git a/ch34x.c b/ch34x.c index b640a73..dd08001 100644 --- a/ch34x.c +++ b/ch34x.c @@ -399,7 +399,7 @@ static int ch34x_get_baud_rate( unsigned int baud_rate, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) static void ch34x_set_termios( struct tty_struct *tty, - struct usb_serial_port *port, const struct ktermios *old_termios ) + struct usb_serial_port *port, struct ktermios *old_termios ) { #else static void ch34x_set_termios( struct usb_serial_port *port, diff --git a/ubuntu.md b/ubuntu.md new file mode 100644 index 0000000..6021f9f --- /dev/null +++ b/ubuntu.md @@ -0,0 +1,35 @@ +# Recipe for Ubuntu systems + +### Install dependencies: + +```bash +apt install linux-headers-$(uname -r) +``` + +### Build and load / unload + +```bash +make + +sudo make load + +ls /dev/ttyUSB* + +sudo make unload +``` + +### Troubleshooting + +If you see `usbfs: interface 0 claimed by ch34x while 'brltty' sets config #1` in `sudo demsg`: + +```bash +for f in /usr/lib/udev/rules.d/*brltty*.rules; do + sudo ln -s /dev/null "/etc/udev/rules.d/$(basename "$f")"; +done + +sudo udevadm control --reload-rules + +sudo systemctl mask brltty.path + +sudo dmesg +```