Skip to content

Commit

Permalink
Merge pull request juliagoda#31 from klarsys/master
Browse files Browse the repository at this point in the history
Fix for juliagoda#30
  • Loading branch information
juliagoda authored Jan 23, 2023
2 parents 11d5856 + a69a454 commit e70c14c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ch34x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
35 changes: 35 additions & 0 deletions ubuntu.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit e70c14c

Please sign in to comment.