WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: HP-2000 Ralink RT5390R Wireless Adapter  (Read 1971 times)

Offline mnemonic76

  • WikiUser
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #30 on: June 26, 2019, 10:01:55 AM »
It would be better for troubleshooting to have only the following in onboot.lst:

Xvesa
flwm
wbar
aterm

Once booted and in the gui, then:
Code: [Select]
$ tce-load -i firmware-ralinkwifi
$ tce-load -i wifi
$ dmesg | tail -20

..and paste the dmesg results

Ok, here's onboot.lst:

Code: [Select]
Xvesa.tcz
aterm.tcz
wbar.tcz
flwm_topside.tcz

Then:

Code: [Select]
tc@box:~$ tce-load -i firmware-ralinkwifi
firmware-ralinkwifi.tcz: OK
tc@box:~$ tce-load -i wifi
wireless-4.19.10-tinycore.tcz: OK
libiw.tcz: OK
wireless_tools.tcz: OK
ncursesw.tcz: OK
readline.tcz: OK
openssl.tcz: OK
libnl.tcz: OK
wpa_supplicant.tcz: OK
wifi.tcz: OK
tc@box:~$ ^C
tc@box:~$ dmesg | tail -20 > dmesg-tail.txt
tc@box:~$ sudo wifi.sh
No wifi devices found!
See attatchment dmesg-tail.txt

Thanks,
mnemonic76
« Last Edit: June 26, 2019, 10:05:30 AM by mnemonic76 »
Thanks,

mnemonic76

Offline mnemonic76

  • WikiUser
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #31 on: June 26, 2019, 10:05:52 AM »
See also dmesg-6-26.txt for the whole thing.
Thanks,

mnemonic76

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10944
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #32 on: June 26, 2019, 10:32:11 AM »
This shows that the kernel is trying and failing to load the wired connection firmware (in firmware-rtl_nic):
Code: [Select]
r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8105e-1.fw failed with error -2
r8169 0000:02:00.0: Falling back to syfs fallback for: rtl_nic/rtl8105e-1.fw
r8169 0000:02:00.0 eth0: unable to load firmware patch rtl_nic/rtl8105e-1.fw (-11)
..but there is no equivalent for the wifi connection firmware.

If you do the same thing and then load the rfkill extension, does "rfkill list" show anything?
« Last Edit: June 26, 2019, 10:38:32 AM by Juanito »

Offline mnemonic76

  • WikiUser
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #33 on: June 26, 2019, 11:44:03 AM »
rfkill list returns nothing.

Thanks,
mnemonic76
Thanks,

mnemonic76

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 6722
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #34 on: June 26, 2019, 11:54:11 AM »
Hi Juanito
Just another thought. In  dmesg  the only references to the wireless adapter are:
Code: [Select]
pci 0000:06:00.0: [1814:539b] type 00 class 0x028000
pci 0000:06:00.0: reg 0x10: [mem 0xf0200000-0xf020ffff]
suggesting that the device is detected but never recognized. Maybe there's a  depmod  command needed?

@mnemonic76
What does this command return:
Code: [Select]
grep -i v00001814 /lib/modules/4.19.10-tinycore/modules.alias

Offline mnemonic76

  • WikiUser
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #35 on: June 26, 2019, 12:10:25 PM »
To be precise, I rebooted with the minimal extention list suggested above then:
Code: [Select]
tc@box:~$ tce-load -i firmware-ralinkwifi
firmware-ralinkwifi.tcz: OK
tc@box:~$ tce-load -i wifi
wireless-4.19.10-tinycore.tcz: OK
libiw.tcz: OK
wireless_tools.tcz: OK
ncursesw.tcz: OK
readline.tcz: OK
openssl.tcz: OK
libnl.tcz: OK
wpa_supplicant.tcz: OK
wifi.tcz: OK
tc@box:~$ grep -i v00001814 /lib/modules/4.19.10-tinycore/modules.alias
alias pci:v00001814d00000301sv*sd*bc*sc*i* rt61pci
alias pci:v00001814d00000302sv*sd*bc*sc*i* rt61pci
alias pci:v00001814d00000401sv*sd*bc*sc*i* rt61pci
alias pci:v00001814d00000601sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00000681sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00000701sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00000781sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00003090sv*sd*bc*sc*i* rt2800pci

Thanks,

mnemonic76

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 6722
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #36 on: June 26, 2019, 12:31:04 PM »
Hi mnemonic76
Code: [Select]
tc@box:~$ grep -i v00001814 /lib/modules/4.19.10-tinycore/modules.alias
alias pci:v00001814d00000301sv*sd*bc*sc*i* rt61pci
alias pci:v00001814d00000302sv*sd*bc*sc*i* rt61pci
alias pci:v00001814d00000401sv*sd*bc*sc*i* rt61pci
alias pci:v00001814d00000601sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00000681sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00000701sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00000781sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00003090sv*sd*bc*sc*i* rt2800pci

I don't see your device listed. I would have expected to see something similar to:
Code: [Select]
alias pci:v00001814d0000539bsv*sd*bc*sc*i* rt2800pci
Does the list change if you run:
Code: [Select]
sudo depmod

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10944
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #37 on: June 26, 2019, 12:38:16 PM »
If those two modules don’t appear in “lsmod”, you could try loading them with:
Code: [Select]
$ sudo modprobe rt61pci
$ sudo modprobe rt2800pci

..and check “lsmod” and “dmesg”

Offline mnemonic76

  • WikiUser
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #38 on: June 26, 2019, 12:43:51 PM »
After:

Code: [Select]
sudo depmod
then:

Code: [Select]
tc@box:~$ grep -i v00001814 /lib/modules/4.19.10-tinycore/modules.alias
alias pci:v00001814d00000301sv*sd*bc*sc*i* rt61pci
alias pci:v00001814d00000302sv*sd*bc*sc*i* rt61pci
alias pci:v00001814d00000401sv*sd*bc*sc*i* rt61pci
alias pci:v00001814d00000601sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00000681sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00000701sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00000781sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00003090sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00003091sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00003092sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00003390sv*sd*bc*sc*i* rt2800pci
alias pci:v00001814d00000201sv*sd*bc*sc*i* rt2500pci
alias pci:v00001814d00000101sv*sd*bc*sc*i* rt2400pci

I did not try any other commands afterwards... what do I look at now?

« Last Edit: June 26, 2019, 12:45:42 PM by mnemonic76 »
Thanks,

mnemonic76

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 6722
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #39 on: June 26, 2019, 12:51:16 PM »
Hi mnemonic76
... what do I look at now?

Do what Juanito suggested.

Offline mnemonic76

  • WikiUser
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #40 on: June 26, 2019, 12:56:24 PM »
Code: [Select]
tc@box:~$ sudo modprobe rt61pci
tc@box:~$ sudo modprobe rt2800pci
tc@box:~$ lsmod
Module                  Size  Used by    Not tainted
rt2800pci              12288  0
rt2800mmio             12288  1 rt2800pci
rt2800lib              73728  2 rt2800pci,rt2800mmio
rt61pci                20480  0
rt2x00mmio             12288  3 rt2800pci,rt2800mmio,rt61pci
rt2x00pci              12288  2 rt2800pci,rt61pci
rt2x00lib              28672  6 rt2800pci,rt2800mmio,rt2800lib,rt61pci,rt2x00mmio,rt2x00pci
mac80211              237568  3 rt2800lib,rt2x00pci,rt2x00lib
cfg80211              167936  2 rt2x00lib,mac80211
eeprom_93cx6           12288  2 rt2800pci,rt61pci
cpufreq_userspace      12288  0
cpufreq_conservative    12288  0
cpufreq_powersave      12288  0
squashfs               28672 35
zstd_decompress        53248  1 squashfs
xxhash                 16384  1 zstd_decompress
loop                   20480 70
rtsx_pci_ms            12288  0
rtsx_pci_sdmmc         16384  0
mmc_core               65536  1 rtsx_pci_sdmmc
memstick               12288  1 rtsx_pci_ms
hp_wmi                 12288  0
sparse_keymap          12288  1 hp_wmi
wmi_bmof               12288  0
video                  28672  0
backlight              12288  1 video
serio_raw              12288  0
pcspkr                 12288  0
battery                16384  0
acpi_cpufreq           12288  0
rtsx_pci               28672  2 rtsx_pci_ms,rtsx_pci_sdmmc
r8169                  49152  0
hp_wireless            12288  0
wmi                    16384  2 hp_wmi,wmi_bmof
ac                     12288  0

See attached dmesg.txt
Thanks,

mnemonic76

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10014
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #41 on: June 27, 2019, 12:02:09 AM »
It looks like your particular stick is not supported then. It may need a newer kernel, or only be available in the unstable/etc drivers.
The only barriers that can stop you are the ones you create yourself.

Offline mnemonic76

  • WikiUser
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #42 on: June 27, 2019, 06:20:51 AM »
So I went back and sifted through the output of dmesg and lsmod from the WORKING Lubuntu live USB... the WiFi device is a Ralink PCIe RT5390:

From lubuntu kernel 4.8.0-36-generic / UBUNTU 5.4.0-6 ubuntu~16.04.4
dmesg output
Code: [Select]
[   52.383986] rt2800pci 0000:06:00.0: PCI->APIC IRQ transform: INT A -> IRQ 17
[   52.384184] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 1502 detected
[   52.421391] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5390 detected
[   52.528106] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   52.660456] rt2800pci 0000:06:00.0 wlo1: renamed from wlan0
[   52.784282] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready
[   52.784448] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'
[   52.806315] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.34

lsmod:

Code: [Select]
Module                  Size  Used by
rt2800pci              16384  0
rt2800mmio             16384  1 rt2800pci
rt2800lib              90112  2 rt2800mmio,rt2800pci
rt2x00pci              16384  1 rt2800pci
rt2x00mmio             16384  2 rt2800mmio,rt2800pci
rt2x00lib              49152  5 rt2800lib,rt2x00pci,rt2800mmio,rt2x00mmio,rt2800pci
mac80211              679936  3 rt2800lib,rt2x00pci,rt2x00lib
cfg80211              512000  2 rt2x00lib,mac80211

Thanks,

mnemonic76

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 6722
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #43 on: June 27, 2019, 06:29:22 AM »
Hi curaga
It looks like your particular stick is not supported then. It may need a newer kernel, or only be available in the unstable/etc drivers.
Actually his device is supported. From the source file for the driver:
Code: [Select]
#ifdef CONFIG_RT2800PCI_RT53XX
{ PCI_DEVICE(0x1814, 0x5360) },
{ PCI_DEVICE(0x1814, 0x5362) },
{ PCI_DEVICE(0x1814, 0x5390) },
{ PCI_DEVICE(0x1814, 0x5392) },
{ PCI_DEVICE(0x1814, 0x539a) },
{ PCI_DEVICE(0x1814, 0x539b) },
{ PCI_DEVICE(0x1814, 0x539f) },
#endif
Found here:
https://github.com/torvalds/linux/blob/master/drivers/net/wireless/ralink/rt2x00/rt2800pci.c
His device (1814:539b) is listed. The kernel config contains this entry:
Code: [Select]
# CONFIG_RT2800PCI_RT53XX is not setFound here:
http://tinycorelinux.net/10.x/x86/release/src/kernel/config-4.19.10-tinycore
So support for his device is not compiled.

Offline mnemonic76

  • WikiUser
  • *
  • Posts: 35
Re: HP-2000 Ralink RT5390R Wireless Adapter
« Reply #44 on: June 27, 2019, 07:07:28 AM »
So is it the Tinycore kernel itself that is not compiled the way I need it to be? (again forgive me for my imprecise language)

I would be willing to compile a kernel if you can tell me how to do it.

Thanks,
Thanks,

mnemonic76