Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #30 #31

Merged
merged 2 commits into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```