WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: RT5370 USB wi-fi adapter not working  (Read 8078 times)

Offline cochon

  • Newbie
  • *
  • Posts: 16
Re: RT5370 USB wi-fi adapter not working
« Reply #15 on: September 23, 2017, 10:44:07 AM »
That makes sense, but are you booting with the RT5370 plugged in from cold, or 'plugging in the adapter' after boot?

If the USB dongle is connected at boot what is the output of:

Code: [Select]
dmesg | grep rt2
The previous dmesg output you posted was for 'grep rtl' which will filter lines relevant to your LAN ports but not those appropriate for the RT5370

What output (or errors) do you get if you run:

Code: [Select]
sudo wifi.sh
from a terminal shell?




Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11631
Re: RT5370 USB wi-fi adapter not working
« Reply #16 on: September 23, 2017, 11:28:21 AM »
Hi bonbob
Code: [Select]
dmesg | tail 20
tail: can't open '20': No such file or directory
tail: no files
That should have been:
Code: [Select]
dmesg | tail -n20

Offline cochon

  • Newbie
  • *
  • Posts: 16
Re: RT5370 USB wi-fi adapter not working
« Reply #17 on: September 23, 2017, 02:55:41 PM »
Well, bonbob, I owe you an apology.

I've just installed TCL 8.2 (x86) on an old Dell desktop and swapped my RT5370 over from the Raspberry Pi. And indeed I cannot get the dongle to work either, no sign of any firmware or driver activity in dmesg, whereas it works fine under piCore. Like you I can see the dongle in lsusb but it's inactive and has no drivers loaded. I have firmware-ralinkwifi and wifi extensions in onboot.lst and see them mounted.

It's not a solution to your problem, but at least I can confirm that one seems to exist.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: RT5370 USB wi-fi adapter not working
« Reply #18 on: September 23, 2017, 06:30:31 PM »
Hi bonbob
Code: [Select]
dmesg | tail 20
tail: can't open '20': No such file or directory
tail: no files
That should have been:
Code: [Select]
dmesg | tail -n20
Oooops sorry I hate that when I forget to add the syntax

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: RT5370 USB wi-fi adapter not working
« Reply #19 on: September 23, 2017, 06:33:07 PM »
Well, bonbob, I owe you an apology.

I've just installed TCL 8.2 (x86) on an old Dell desktop and swapped my RT5370 over from the Raspberry Pi. And indeed I cannot get the dongle to work either, no sign of any firmware or driver activity in dmesg, whereas it works fine under piCore. Like you I can see the dongle in lsusb but it's inactive and has no drivers loaded. I have firmware-ralinkwifi and wifi extensions in onboot.lst and see them mounted.

It's not a solution to your problem, but at least I can confirm that one seems to exist.

I too thought the driver was available as part of the rt2800 series.  OK so a proprietary driver is available from https://www.mediatek.com/products/broadbandWifi/rt5370  which will need compiling.

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: RT5370 USB wi-fi adapter not working
« Reply #20 on: September 23, 2017, 07:31:27 PM »
I always used RT5370 USB wi-fi adapters on *piCore* because they always worked. But about a year ago the wheels fell off and I can't remember exactly what the problem was, either a new improved (bad) driver or they changed from wext to nl80211 driver.

Anyway check /etc/sysconfig/wifi-wpadrv has "nl80211,wext" in it not just "wext".

I am not sure if this applies to TCL?

regards
Greg



Offline bonbob

  • Jr. Member
  • **
  • Posts: 99
Re: RT5370 USB wi-fi adapter not working
« Reply #21 on: September 24, 2017, 04:19:10 PM »
Maybe guru of TCL can help me with driver compilation. I get only:
Code: [Select]
make[1]: *** /lib/modules/4.8.17-tinycore64/build: No such file or directory.  Stop. ::)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: RT5370 USB wi-fi adapter not working
« Reply #22 on: September 24, 2017, 06:55:21 PM »
Maybe guru of TCL can help me with driver compilation. I get only:
Code: [Select]
make[1]: *** /lib/modules/4.8.17-tinycore64/build: No such file or directory.  Stop. ::)
You need the kernel sources.

And since the busybox update I have yet to submit the updated linux-kernel-sources-env.tcz extension,  standby I'll get you the updated script

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: RT5370 USB wi-fi adapter not working
« Reply #23 on: September 25, 2017, 02:53:17 AM »
Latest script to prepare linux sources available here, extension will be uploaded asap

http://forum.tinycorelinux.net/index.php/topic,15680.msg133922.html#msg133922

Offline bonbob

  • Jr. Member
  • **
  • Posts: 99
Re: RT5370 USB wi-fi adapter not working
« Reply #24 on: October 01, 2017, 09:58:16 AM »
Something wrong anyway

Code: [Select]
make -C /home/tc/RT2/os/linux -f Makefile.6 install
make[1]: Entering directory '/home/tc/RT2/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /home/tc/RT2/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/4.8.17-tinycore64/kernel/drivers/net/wireless/
install -m 644 -c rt5572sta.ko /lib/modules/4.8.17-tinycore64/kernel/drivers/net/wireless/
install: can't stat 'rt5572sta.ko': No such file or directory
make[1]: *** [Makefile.6:537: install] Error 1
make[1]: Leaving directory '/home/tc/RT2/os/linux'
make: *** [Makefile:482: install] Error 2

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: RT5370 USB wi-fi adapter not working
« Reply #25 on: October 01, 2017, 01:09:37 PM »
Dis you try this after copying the module into the fs:
Code: [Select]
$ sudo depmod -a