Slackware - ARM This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-16-2016, 03:24 AM
|
#1
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Rep:
|
USB-to-Serial adapter not shown in /dev anymore
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
|
|
|
09-16-2016, 04:24 AM
|
#2
|
LQ Guru
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,016
|
I would expect a USB-to-LAN device to associated with a network device node (as opposed to a /dev/ttyUSB* device node).
Check with
If nothing, check kernel module loaded (if any) for the device concerned
|
|
|
09-16-2016, 05:17 AM
|
#3
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Original Poster
Rep:
|
@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
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.
Last edited by slacksam; 09-16-2016 at 05:20 AM.
|
|
|
09-16-2016, 07:48 AM
|
#4
|
Slackware Contributor
Registered: Apr 2008
Distribution: Slackware
Posts: 1,710
|
Do
Code:
lsmod | sort > /tmp/lsmod-3.18
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.
|
|
|
09-16-2016, 09:13 AM
|
#5
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Original Poster
Rep:
|
@drmozes:
Thanks for your advice.
Here's the result:
Code:
~# diff -u lsmod-3.18.8 lsmod-4.4.20
--- lsmod-3.18.8 2016-09-16 16:09:05.795193000 +0200
+++ lsmod-4.4.20 2016-09-16 16:12:04.254979000 +0200
@@ -1,12 +1 @@
Module Size Used by
-bcm2708_dmaengine 7505 0
-evdev 9944 0
-fuse 83009 1
-ipv6 326818 10
-led_class 4070 1 leds_gpio
-leds_gpio 3507 0
-pl2303 8650 0
-uio 8660 1 uio_pdrv_genirq
-uio_pdrv_genirq 3202 0
-usbserial 27436 1 pl2303
-virt_dma 2313 1 bcm2708_dmaengine
[edit] The output of lsmod with kernel 4.4.20 is empty, so no modules are loaded.
Last edited by slacksam; 09-16-2016 at 09:18 AM.
|
|
|
09-16-2016, 09:39 AM
|
#6
|
Slackware Contributor
Registered: Apr 2008
Distribution: Slackware
Posts: 1,710
|
Quote:
Originally Posted by slacksam
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 ?
|
|
|
09-16-2016, 09:52 AM
|
#7
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Original Poster
Rep:
|
Code:
~$ 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:
Last edited by slacksam; 09-16-2016 at 09:55 AM.
|
|
|
09-16-2016, 10:17 AM
|
#8
|
Slackware Contributor
Registered: Apr 2008
Distribution: Slackware
Posts: 1,710
|
Quote:
Originally Posted by slacksam
Code:
~$ 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
If that does not work, try
Code:
insmod /lib/modules/4.4.20-arm/< path to the usbserial module>
Last edited by drmozes; 09-16-2016 at 11:56 AM.
|
|
1 members found this post helpful.
|
09-16-2016, 10:58 AM
|
#9
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Try running depmod.
|
|
1 members found this post helpful.
|
09-16-2016, 01:15 PM
|
#10
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Original Poster
Rep:
|
Quote:
Originally Posted by drmozes
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
Loading the module with
Code:
~# insmod /lib/modules/4.4.20-arm/kernel/drivers/usb/serial/usbserial.ko
worked without an error.
Code:
~# uname -r
4.4.20+
Looks like a bug in the kernel config.
The packages were from http://rpi.fatdog.eu/index.php?p=rpi1get142.
[edit] For now I fixed it by doing
Code:
~# cd /lib/modules/
~# ln -s 4.4.20-arm `uname -r`
Last edited by slacksam; 09-17-2016 at 12:02 AM.
|
|
|
09-20-2016, 02:45 AM
|
#11
|
SARPi Maintainer
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,071
|
Quote:
Originally Posted by slacksam
|
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.
http://sarpi.fatdog.eu/index.php?p=rpi1get142
Let me know if you find any more problems.
|
|
1 members found this post helpful.
|
09-20-2016, 08:25 AM
|
#12
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Original Poster
Rep:
|
@Exaga: Works. Thanks!
|
|
|
All times are GMT -5. The time now is 12:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|