From ad168a695d61d631c84b637e8f0508658eb8ae8d Mon Sep 17 00:00:00 2001 From: Urmil Parikh Date: Sun, 22 Jan 2023 12:01:22 +0530 Subject: [PATCH 1/2] Fix for #30 --- ch34x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, From a69a454c38eb430bb7d3284ef6890320a3db1187 Mon Sep 17 00:00:00 2001 From: Urmil Parikh Date: Sun, 22 Jan 2023 12:08:51 +0530 Subject: [PATCH 2/2] Create ubuntu.md --- ubuntu.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ubuntu.md 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 +```