LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-02-2021, 10:41 AM   #1
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Rep: Reputation: Disabled
Where are kernel modules set now?


I've got a RT5370 USB wifi and rt2800usb & rt2800lib modules are being loaded for it.

The modules are in but udev isn't setting it to a wlan


I suspect it's because rt2x00usb & rt2x00lib modules are what need to be loaded. Where do you set the modules to be loaded now?
 
Old 02-02-2021, 11:08 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Did you check dmesg (after inserting the usb card) and /sbin/ifconfig for infos?
 
Old 02-02-2021, 11:55 AM   #3
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
Yes.

dmesg shows it.

ifconfig doesn't show it.

lsusb shows it.

lsmod shows that modules are loaded.

udev 70-persistant doesn't show it.

Last edited by arfon; 02-02-2021 at 11:56 AM.
 
Old 02-02-2021, 12:22 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
ifconfig without -a switch does not show inactive interfaces.
 
Old 02-02-2021, 04:05 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
As Emerson stated, if the device is down (inactive), it won't show with ifconfig. You would need to run ifconfig -a to show all devices regardless of whether they're up/down.

Also, not all wireless devices will show up as wlanX. Sometimes they'll have funky device names. However, if the device is detected as wireless, iwconfig should show it and that it supports wireless regardless of whether the interface is up or down.
 
Old 02-02-2021, 04:26 PM   #6
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
Wlan0 is the built in wireless, I'm looking for the USB adapter.

Code:
ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.2.2.235  netmask 255.255.0.0  broadcast 10.2.255.255
        inet6 fe80::fd24:229f:b2d8:8839  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:f2:f2:fa  txqueuelen 1000  (Ethernet)
        RX packets 8900  bytes 565014 (551.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 213  bytes 36920 (36.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 8e:d9:86:9c:b5:dc  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Code:
iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short  long limit:2   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
Code:
iwconfig wlan1
wlan1     No such device
Code:
lsusb
Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code:
lsmod | grep rt
rt2800usb              28672  0
rt2800lib             122880  1 rt2800usb
rt2x00usb              24576  1 rt2800usb
rt2x00lib              61440  3 rt2800lib,rt2800usb,rt2x00usb
mac80211              811008  3 rt2800lib,rt2x00lib,rt2x00usb
crc_ccitt              16384  1 rt2800lib
cfg80211              782336  3 rt2x00lib,mac80211,brcmfmac

Last edited by arfon; 02-02-2021 at 04:32 PM.
 
Old 02-02-2021, 05:05 PM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Code:
$ /sbin/modinfo rt2800usb | grep 5370
alias:          usb:vF201p5370d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp5370d*dc*dsc*dp*ic*isc*ip*in*
$ /sbin/modinfo rt2x00usb | grep  5370
$
It seems rt2800usb is the correct module
Does dmesg show a firmware loading?
 
Old 02-02-2021, 05:25 PM   #8
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
Seems to be- "Loading firmware file 'rt2870.bin'"


Code:
[19589.104420] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
[19589.252084] usb 1-1.4: New USB device found, idVendor=148f, idProduct=5370, bcdDevice= 1.01
[19589.252103] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19589.252119] usb 1-1.4: Product: 802.11 n WLAN
[19589.252134] usb 1-1.4: Manufacturer: Ralink
[19589.252148] usb 1-1.4: SerialNumber: 1.0
[19589.354424] usb 1-1.4: reset high-speed USB device number 5 using dwc_otg
[19589.495237] ieee80211 phy2: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
[19589.524554] ieee80211 phy2: rt2x00_set_rf: Info - RF chipset 5370 detected
[19589.524926] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht'
[19589.699217] ieee80211 phy2: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[19589.699453] ieee80211 phy2: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36
 
1 members found this post helpful.
Old 02-02-2021, 05:34 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,808

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
So, wlan0 is available, however no address assigned....I assume that you have no configuration in place to get it associated with an AP? What is your exact issue now?

Code:
wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short  long limit:2   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
 
Old 02-02-2021, 05:36 PM   #10
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
My issue is that udev isn't 'seeing' the USB adapter (should be wlan1).
 
Old 02-02-2021, 05:56 PM   #11
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Could you show output with ' /usr/sbin/iw dev '
 
Old 02-02-2021, 05:57 PM   #12
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
OK, it is loading rt2800usb and firmware. What makes you think it should be wlan1, perhaps your other wireless device is defunct and your USB Ralink is wlan0.
 
Old 02-02-2021, 06:08 PM   #13
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,808

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
Originally Posted by arfon View Post
My issue is that udev isn't 'seeing' the USB adapter (should be wlan1).
Why do you think that?

This will show all network device nodes (active or otherwise)...
Code:
ip link
 
Old 02-02-2021, 06:14 PM   #14
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
If you are running -current maybe this is related to that?
 
Old 02-02-2021, 06:36 PM   #15
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
"What makes you think it should be wlan1, perhaps your other wireless device is defunct and your USB Ralink is wlan0."

Well, when I un-plugged the USB adapter wlan0 stayed and stayed the same.


Since I have been monkeying with it, that's now changed. Wlan0 now goes away when I remove the RT5370 and the built-in broadcom wifi adapter now isn't being detected...

Son-of-a....


All I want is:
wlan0 = built-in wifi
wlan1 = USB RT5370 wifi

Last edited by arfon; 02-02-2021 at 06:38 PM.
 
  


Reply



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
[SOLVED] Slackware 14.2 Install mkinitrd ERROR: No /lib/modules/4.4.14-smp kernel modules tree found for kernel " 4.4.14-smp" laxware Slackware 4 01-04-2019 12:40 PM
new kernel (2.4.22 up from 2.4.20-6) - missing modules - use old modules? Simon Bridge Linux - Software 1 02-04-2004 05:52 AM
Kernel modules: why are some kernel modules zipped? hampel Slackware 3 06-30-2003 06:33 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

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

All times are GMT -5. The time now is 03: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