[SOLVED] USB-to-Serial adapter not shown in /dev anymore
Slackware - ARMThis forum is for the discussion of Slackware ARM.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On my RPi1 when Slackware ARM 14.1 and kernel 3.18.8 was installed, my USB-to-LAN adapter used to appear as /dev/ttyUSB0. But now, with Slackware ARM 14.2 and kernel 4.4.20, when I plug in the adapter, no /dev/ttyUSB* is being shown anymore.
Any ideas how to fix that?
Could that behavior be related to the problem I described in my last tread?
Last edited by slacksam; 09-16-2016 at 05:18 AM.
Reason: Wrong title
@ferrari:
Thanks for your reply, but sorry, I made a mistake. It's not an USB-to-LAN adapter but an USB-to-Serial adapter. My bad.(Now I changed the thread title from USB-to-LAN to USB-to-Serial)
Doing a
Code:
/sbin/lspci -nnk
shows
Code:
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
Now I made a downgrade to kernel 3.18.8 and it's being shown as /dev/ttyUSB0 again.
Boot back into the 4.x kernel and run lsmod again and compare the differences - there will probably be a few differences module name may be obvious which is the one handling your device.
The chances are that the 4.x kernel was updated and some how the module has become de-selected, or maybe the module was abandoned and is no longer present in Linux.
The output of lsmod with kernel 4.4.20 is empty, so no modules are loaded.
Yes so that's your problem as it is in the other thread.
Are you sure that the Kernel modules package is installed?
Are there any modules at all in /lib/modules/4.xxx ?
~$ ls /var/log/packages/kernel-modules-*
/var/log/packages/kernel-modules-raspi-3.18.8-arm-1_02Mar15_fd
/var/log/packages/kernel-modules-sarpi-4.4.20-arm-1_slack14.2_fd0
~$ ls /var/log/packages/kernel-modules-*
/var/log/packages/kernel-modules-raspi-3.18.8-arm-1_02Mar15_fd
/var/log/packages/kernel-modules-sarpi-4.4.20-arm-1_slack14.2_fd0
I attached the output for
Code:
tree /lib/modules/4.4.20-arm/
in a text file:
So the modules are there.
Did you upgrade 14.1 to 14.2 or do a fresh installation? There was no upgrade path (unless you looked at the x86 version and figured it out) for 14.1 to 14.2, so I wonder if something broke along the way.
Can you try doing
Code:
modprobe usbserial
If that does not work, try
Code:
insmod /lib/modules/4.4.20-arm/< path to the usbserial module>
Did you upgrade 14.1 to 14.2 or do a fresh installation? There was no upgrade path (unless you looked at the x86 version and figured it out) for 14.1 to 14.2, so I wonder if something broke along the way.
I did both. First I did an upgrade from 14.1 to 14.2 without kernel upgrade and all worked fine. Then I did a kernel upgrade which broke the system (which I described in the other tread). Then I did an fresh install without LVM on another sd card (which is the installation I'm using in this thread).
Ok, now i see what's wrong:
Code:
~# modprobe usbserial
modprobe: FATAL: Module usbserial not found in directory /lib/modules/4.4.20+
Code:
~# depmod
depmod: ERROR: could not open directory /lib/modules/4.4.20+: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Code:
~# ls /var/log/packages/kernel*
/var/log/packages/kernel-firmware-20160628git-noarch-1
/var/log/packages/kernel-headers-4.4.14-arm-1
/var/log/packages/kernel-modules-raspi-3.18.8-arm-1_02Mar15_fd
/var/log/packages/kernel-modules-sarpi-4.4.20-arm-1_slack14.2_fd0
/var/log/packages/kernel_raspi-3.18.8-arm-1_02Mar15_fd
/var/log/packages/kernel_sarpi-4.4.20-arm-1_slack14.2_fd0
~# cd /lib/modules/
~# ln -s 4.4.20-arm `uname -r`
New installer image and packages for the RPi 1. Tested and double-tested. Modules are being loaded correctly and everything else seems to be working as expected. Using kernel 4.4.21 with the latest RPi boot firmware.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.