LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 09-16-2016, 03:24 AM   #1
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Rep: Reputation: 38
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
 
Old 09-16-2016, 04:24 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,840

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
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
Code:
/sbin/ifconfig -a
If nothing, check kernel module loaded (if any) for the device concerned
Code:
/sbin/lspci -nnk
 
Old 09-16-2016, 05:17 AM   #3
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38
@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.

Last edited by slacksam; 09-16-2016 at 05:20 AM.
 
Old 09-16-2016, 07:48 AM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,551

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
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.
 
Old 09-16-2016, 09:13 AM   #5
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38
@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.
 
Old 09-16-2016, 09:39 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,551

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Quote:
Originally Posted by slacksam View Post
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 ?
 
Old 09-16-2016, 09:52 AM   #7
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38
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:
Attached Files
File Type: txt modules-4.4.20-tree.txt (92.0 KB, 50 views)

Last edited by slacksam; 09-16-2016 at 09:55 AM.
 
Old 09-16-2016, 10:17 AM   #8
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,551

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
Quote:
Originally Posted by slacksam View Post
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

Code:
modprobe usbserial
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.
Old 09-16-2016, 10:58 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Try running depmod.
 
1 members found this post helpful.
Old 09-16-2016, 01:15 PM   #10
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38
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.
 
Old 09-20-2016, 02:45 AM   #11
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by slacksam View Post
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`
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.
Old 09-20-2016, 08:25 AM   #12
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 211

Original Poster
Rep: Reputation: 38
Thumbs up

@Exaga: Works. Thanks!
 
  


Reply

Tags
arm-softfloat, device, devicemapper, slackware 14.2, usb



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb keyboard identified and events shown but key character not shown on the prompt flyxtop Linux - Software 0 11-30-2013 07:45 AM
USB mount point is not shown in /dev entry point garryhk Linux - Software 3 12-12-2012 05:28 PM
Fedora 9 Wireless USB adapter not working anymore. amisset Linux - Networking 1 11-27-2008 03:12 AM
Wireless USB LAN Adapter The Dog Monster Mandriva 1 04-01-2007 07:48 PM
USB Palm not shown in /dev - Debian etch moisvon Linux - Hardware 2 06-14-2006 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration