Score:1

How can I enable ftdi_sio on Ubuntu server 21.10 on Raspberry Pi (ARM64)?

br flag

I'm trying to get a USB serial device working. I can see the device using 'lsusb' but it never appears in '/dev'. From what I understand there's this "extra" kernel package that I downloaded which contains ftdi_sio.ko which will make the device visible in /dev.

I tried to install the module in the kernel with 'insmod /lib/modules/5.13.0-20-generic/kernel/drivers/usb/serial/ftdi_sio.ko'. However, when I try this I get the error ERROR: could not insert module ftdi_sio.ko: Invalid module format.

I think this is because my actual kernel is in /lib/modules/5.13.0-1009-raspi/kernel/drivers/usb... But there's not much in there, and I have no clue how to find, download and install the correct "extra" package that will work.

The documentation that comes with the serial USB device mentions the need to patch the kernel, but that seems like too much work to get it to recognize a serial USB device which it already sees. Not to mention that this is way beyond my skill level.

Appreciate any help.

Score:1
my flag

I'm experiencing the exact same issue, and so is Rumancz on the Raspberry Pi forums.

Edit: As OP @Gordeon_Lee points out below—and as I discovered from Bug #1947723 on Ubuntu's linux-raspi package Launchpad—the solution was to simply run sudo apt install linux-modules-extra-raspi (or if you're not using a Raspberry Pi: sudo apt install linux-modules-extra-$(uname -r)). Additionally, I have confirmed the fix (in the above link) in the latest -proposed 5.13.0-1011-raspi kernel image, so this should be resolved when the 5.13.0-1011-raspi kernel image is released, without having to even do that.

Thanks for your help, Gordon!

Cheers, Jonathan

br flag
I resolved the problem. When you read the documentation for the USB serial device you get the impression that you need those FTDI drivers. However, in my case, I only needed the USB Serial device to work. By default those 'extra' kernel drivers are not included, so you have to do a: 'sudo apt install linux-modules-extra-$(uname -r)' after you reboot, you'll see the USB Serial device is loaded if you do a: 'sudo dmesg | grep FTDI', and I tested it and it works. Maybe the FTDI driver that they supply will give additional features, but I only needed the RS-485 to work.
de flag
I currently run Ubuntu server 21.10 64-bit Linux ubuntu 5.13.0-1013-raspi #15-Ubuntu SMP PREEMPT Fri Jan 7 23:16:57 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux I had to run that command to make my raspberry pi recognize a conbee 2 usb stick. Stick was registered as plugged in but i could connect it to homeassistant. Yes i know different problem. But this answer helped ^^
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.