Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless Not Working [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pankaj13
n00b
n00b


Joined: 05 Sep 2019
Posts: 20

PostPosted: Sat Aug 22, 2020 9:24 pm    Post subject: Wireless Not Working [Solved] Reply with quote

Hi,

I am trying to connect a USB wireless adapter and here are few details:

Code:

localhost ~ # lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 064e:812e Suyin Corp.
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 003: ID 0a5c:21d7 Broadcom Corp. BCM43142 Bluetooth 4.0
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter --> this seems to the wireless adapter
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


But it does not show up in ifconfig -a
Code:

localhost ~ # ifconfig -a
enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.40.7  netmask 255.255.255.0  broadcast 192.168.40.255
        inet6 fe80::e285:4fd:e4f2:52d5  prefixlen 64  scopeid 0x20<link>
        ether 74:86:7a:0c:d7:33  txqueuelen 1000  (Ethernet)
        RX packets 10697  bytes 690017 (673.8 KiB)
        RX errors 0  dropped 24  overruns 0  frame 0
        TX packets 1791  bytes 587365 (573.5 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

sit0: flags=128<NOARP>  mtu 1480
        sit  txqueuelen 1000  (IPv6-in-IPv4)
        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


I have compiled both RA Link and MediaTrack drivers as "*" options into my kernel but not sure why modprobe does not show these modules.
Code:

localhost ~ # modprobe rt2870
modprobe: FATAL: Module rt2870 not found in directory /lib/modules/5.4.48-gentoo
localhost ~ # modprobe rt3070
modprobe: FATAL: Module rt3070 not found in directory /lib/modules/5.4.48-gentoo


Any suggestions where to start troubleshooting?


Last edited by pankaj13 on Sat Aug 22, 2020 11:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2633

PostPosted: Sat Aug 22, 2020 11:04 pm    Post subject: Reply with quote

Because you didn't build or install the modules. You built them into the kernel. That won't work because firmware has to be loaded first.

You need to set it the module as <m> Once you do that you will need to run make then make modules_install
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
halcon
Guru
Guru


Joined: 15 Dec 2019
Posts: 341

PostPosted: Sat Aug 22, 2020 11:04 pm    Post subject: Re: Wireless Not Working Reply with quote

Hi pankaj13,

pankaj13 wrote:
I have compiled both RA Link and MediaTrack drivers as "*" options into my kernel but not sure why modprobe does not show these modules.

modprobe shows only that was compiled as module, not that was compiled directly in kernel.

pankaj13 wrote:
Any suggestions where to start troubleshooting?

I see there are these topics: one and two. It could be useful. You could try to enable all CONFIG_RT2800USB_* (as modules) and check if you have the proper firmware.
Back to top
View user's profile Send private message
pankaj13
n00b
n00b


Joined: 05 Sep 2019
Posts: 20

PostPosted: Sat Aug 22, 2020 11:45 pm    Post subject: Reply with quote

@The Doctor and @halcon

Recompiling both drivers as modules worked like a charm.....thanks to both of you now I can claim some productivity in 2020 :D

Stay safe and keep helping newbies like me 8)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 16214

PostPosted: Sun Aug 23, 2020 4:36 pm    Post subject: Reply with quote

Wireless can work when built-in, but if you choose to build it into the kernel, you must also build into the kernel the required firmware, because a built-in driver will need the firmware before root is mounted, so having the firmware installed to the filesystem is insufficient. Making the driver a module is the easier choice, but it is not the only option. Now that you have it working, I suggest you not change anything. The benefits of making the driver a built-in are small, so unless you have a compelling reason (such as the desire to have zero modules and then remove the module loader support entirely), changing now is probably not worth the work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum