Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: mnemonic76 on June 20, 2019, 05:20:52 PM

Title: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 20, 2019, 05:20:52 PM
I have downloaded TinyCorePlus to a USB stick and can succesfully boot to any of the flavors I choose from the boot menu.

I have connected to a wired lan in order to figure out the wireless networking, which as the subject would indicate

I have booted into the base FLWM option then loaded the following:
pci-utils, ntpclient, dillo,firmware-ralinkwifi,wifi.tcz

This is the full output of dmesg after booting (and connecting a usb mouse)

https://pastebin.com/3uvVY7CU

Here's output of lspci:
Code: [Select]
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler [Radeon HD 6310]
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)
00:15.2 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB900 PCI to PCI bridge (PCIE port 2)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 7
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05)
06:00.0 Network controller: Ralink corp. RT5390R 802.11bgn PCIe Wireless Network Adapter
07:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)

Here is the output of sudo wifi.sh:
Code: [Select]
sudo wifi.sh
No wifi devices found!

and here is iwconfig:
Code: [Select]
iwconfig
eth0      no wireless extensions.

ip_vti0   no wireless extensions.

lo        no wireless extensions.

tunl0     no wireless extensions.

dummy0    no wireless extensions.


What is next?

Thanks,
mnemonic76
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: coreplayer2 on June 20, 2019, 11:43:27 PM
Hi  mnemonic76

Please post the output of dmesg | tail -50  after attempting to connect

Code: [Select]
tc@box:~$ dmesg | tail -50
The device is most likely supported by the rt2800pci module and ralinkwifi firmware, but first lets see the dmesg output


Please note that the output is easier to read when enclosed with [ code ] tags
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 21, 2019, 12:20:56 AM
Hi coreplayer2
I didn't see any mention of the wireless adapter in the pastebin link that mnemonic76 posted. I did notice this entry:
Code: [Select]
input: HP Wireless hotkeys as /devices/virtual/input/input12I wonder if the wireless adapter is disabled, possibly in the BIOS.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: coreplayer2 on June 21, 2019, 03:39:05 AM
Hi Rich
Honestly I missed the pastebin link


Sent from my iPhone using Tapatalk
Title: HP-2000 Ralink RT5390R Wireless Adapter
Post by: coreplayer2 on June 21, 2019, 03:56:53 AM
Rich,  Having looked at the link I also noticed the CDE bootcode on a USB installation !!  Maybe that’s expected if booting from the iso directly.  I didn’t read it that way though


You’re right there does not appear to be any mention of the WiFi adapter in dmesg
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 21, 2019, 08:14:44 AM
Thanks for the help guys.
So I checked BIOS and didn't find anything related to disabling wireless, however this keyboard has an F12 key with a wifi symbol and a smal LED indicator on it. I suspect tinycore knows nothing about the key... i pressed it, presed fn+F12, alt+fn+F12 etc... did nothing. if I run sudo rfkill list all it returns nothing...

So in the above response from coreplayer2 : "Please post the output of dmesg | tail -50  after attempting to connect"

I am guessing you mean after running sudo wifi.sh?

BTW, I INSTALLED to another USB instead of a live USB, that was so much easier than I thought! TinyCore is so cool... just wish my hardware was easier! -I digress.

So, since I changed to a INSTALLED usb (using tc-install) with a persistent /tc I am reposting the entirety of dmesg prior to running any commands:

Here is the pastebin:
https://pastebin.com/m38NisV3

Then, finally what you requested:
Code: [Select]
tc@box:~$ sudo wifi.sh
No wifi devices found!

then:
Code: [Select]
tc@box:~$ dmesg | tail -50
usb-storage 1-1:1.0: USB Mass Storage device detected
scsi host3: usb-storage 1-1:1.0
input: HP Wireless hotkeys as /devices/virtual/input/input12
input: PC Speaker as /devices/platform/pcspkr/input/input13
libphy: r8169: probed
r8169 0000:02:00.0 eth0: RTL8105e, c8:cb:b8:ae:15:71, XID 40a00000, IRQ 25
wmi_bus wmi_bus-PNP0C14:00: WQBJ data block query control method not found
usb 3-2: new low-speed USB device number 2 using ohci-pci
ACPI: Video Device [VGA] (multi-head: yes  rom: no  post: no)
random: fast init done
ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
ACPI: AC Adapter [AC] (on-line)
battery: ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
battery: ACPI: Battery Slot [BAT0] (battery present)
acpi device:00: registered as cooling_device3
input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input14
input: PixArt Dell MS116 USB Optical Mouse as /devices/pci0000:00/0000:00:12.0/usb3/3-2/3-2:1.0/0003:413C:301A.0001/input/input15
hid-generic 0003:413C:301A.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt Dell MS116 USB Optical Mouse] on usb-0000:00:12.0-2/input0
psmouse serio4: synaptics: queried max coordinates: x [..5634], y [..4598]
psmouse serio4: synaptics: Touchpad model: 1, fw: 7.5, id: 0x1e0b1, caps: 0xd00073/0x240000/0xa0400/0x0, board id: 1680, fw id: 706145
input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio4/input/input11
scsi 3:0:0:0: Direct-Access     ClickSha DISK 2.0         8.07 PQ: 0 ANSI: 4
sd 3:0:0:0: Attached scsi generic sg1 type 0
sd 3:0:0:0: [sda] 3993600 512-byte logical blocks: (2.04 GB/1.90 GiB)
sd 3:0:0:0: [sda] Write Protect is off
sd 3:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 3:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 3:0:0:0: [sda] Attached SCSI removable disk
hp_wmi: query 0xd returned error 0x5
input: HP WMI hotkeys as /devices/virtual/input/input16
loop: module loaded
zram0: detected capacity change from 0 to 177225728
random: mkswap: uninitialized urandom read (16 bytes read)
Adding 173068k swap on /dev/zram0.  Priority:-2 extents:1 across:173068k SSFS
squashfs: version 4.0 (2009/01/31) Phillip Lougher
EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
random: crng init done
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
platform regulatory.0: Falling back to syfs fallback for: regulatory.db
cfg80211: failed to load regulatory.db
wl: loading out-of-tree module taints kernel.
wl: module license 'Mixed/Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
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)
Generic PHY r8169-200:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-200:00, irq=IGNORE)
r8169 0000:02:00.0 eth0: Link is Down
r8169 0000:02:00.0 eth0: Link is Up - 100Mbps/Full - flow control off

Thanks for helping. please let me know what to try next....

mnemonic76

    [EDIT]: Added code tags.  Rich
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 21, 2019, 08:56:22 AM
This means your hardware is searching for firmware:
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)
..that firmware is in the firmware-rtl_nic extension, but I think it is only for wired network hardware.

In any case it will not hurt to try it - before loading any other extensions.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 21, 2019, 09:35:06 AM
Ok, so I saw that too... however I am connected via the wired connection.. I think the next lines that say eth0 up or whatever proves that...

So when you say "In any case it will not hurt to try it - before loading any other extensions." I dont know what you mean exactly...

I am not a power user, and I am really confused by the kernel modules and firmware stuff... I have been playing around with Linux for many years, but have never really understood some of the fundamentals of how the kernel interacts with the hardware. I have learned a little about filesystems and higher level stuff, but am a total newbie with the hardware stuff....

So out of desparation I tested a couple other USB distros I had lying around. Xubuntu 16.04.3 and Lubuntu 16.04..

I am writing this post from Lubuntu live USB. This is the result of uname -r:

lubuntu@lubuntu:~$ uname -r
4.8.0-36-generic

And the wifi is seeing APs and the F12 key seems to work... would there be any value in me posting outputs from this distro?

Thanks,

mnemonic76
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 21, 2019, 10:48:39 AM
Hi mnemonic76
... would there be any value in me posting outputs from this distro? ...
Yes there would. The  dmesg  result would be useful. Also, the result of this command:
Code: [Select]
lsmod
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 21, 2019, 10:57:13 AM
The following is from the live USB Lubuntu 16.04.2 installation I am running on the HP-2000:

Output of dmesg:

https://pastebin.com/xkkDwEqU

Output of lsmod:

Code: [Select]
Module                  Size  Used by
arc4                   16384  2
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
snd_hda_codec_idt      53248  1
snd_hda_codec_generic    69632  1 snd_hda_codec_idt
snd_hda_intel          32768  1
mac80211              679936  3 rt2800lib,rt2x00pci,rt2x00lib
snd_hda_codec         118784  3 snd_hda_intel,snd_hda_codec_idt,snd_hda_codec_generic
snd_hda_core           69632  4 snd_hda_intel,snd_hda_codec,snd_hda_codec_idt,snd_hda_codec_generic
kvm                   520192  0
snd_hwdep              16384  1 snd_hda_codec
snd_pcm                94208  3 snd_hda_intel,snd_hda_codec,snd_hda_core
uvcvideo               77824  0
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
videobuf2_vmalloc      16384  1 uvcvideo
cfg80211              512000  2 rt2x00lib,mac80211
snd_rawmidi            28672  1 snd_seq_midi
videobuf2_memops       16384  1 videobuf2_vmalloc
irqbypass              16384  1 kvm
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_core         40960  2 uvcvideo,videobuf2_v4l2
snd_seq                57344  2 snd_seq_midi_event,snd_seq_midi
joydev                 20480  0
input_leds             16384  0
videodev              159744  3 uvcvideo,videobuf2_core,videobuf2_v4l2
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
serio_raw              16384  0
snd_timer              32768  2 snd_seq,snd_pcm
mac_hid                16384  0
media                  36864  2 uvcvideo,videodev
rtsx_pci_ms            20480  0
memstick               16384  1 rtsx_pci_ms
k10temp                16384  0
eeprom_93cx6           16384  1 rt2800pci
snd                    69632  12 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_hda_codec_idt,snd_timer,snd_rawmidi,snd_hda_codec_generic,snd_seq_device,snd_pcm
soundcore              16384  1 snd
shpchp                 32768  0
i2c_piix4              20480  0
zram                   24576  1
autofs4                40960  2
aufs                  212992  2417
nls_iso8859_1          16384  1
dm_mirror              24576  0
dm_region_hash         20480  1 dm_mirror
dm_log                 20480  2 dm_mirror,dm_region_hash
radeon               1470464  4
hid_generic            16384  0
i2c_algo_bit           16384  1 radeon
usbhid                 49152  0
uas                    20480  0
ttm                    94208  1 radeon
hid                    98304  2 hid_generic,usbhid
usb_storage            57344  2 uas
drm_kms_helper        151552  1 radeon
rtsx_pci_sdmmc         24576  0
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
drm                   311296  7 radeon,ttm,drm_kms_helper
r8169                  77824  0
ahci                   36864  0
rtsx_pci               53248  2 rtsx_pci_sdmmc,rtsx_pci_ms
mii                    16384  1 r8169
libahci                32768  1 ahci
psmouse               122880  0


Thanks,
mnemonic76

    [EDIT]: Added code tags.  Rich
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 21, 2019, 11:04:08 AM
Hi mnemonic76
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 21, 2019, 11:14:53 AM
Hi mnemonic76
Code: [Select]
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
snd_hda_codec_idt      53248  1
snd_hda_codec_generic    69632  1 snd_hda_codec_idt
snd_hda_intel          32768  1
mac80211              679936  3 rt2800lib,rt2x00pci,rt2x00lib
The  mac80211  module is looking for those  rt2.....  named modules. Try installing  wireless-4.19.10-tinycore.tcz.

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 21, 2019, 11:21:15 AM
Hi mnemonic76
The  dmesg  link shows  rt2860.bin  being loaded which is provided by  firmware-ralinkwifi.tcz,  so install that too.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 21, 2019, 12:56:41 PM
First of all, thanks for the tip on the code tag... I am on dillo when I am in tinycore and the forum interface is super basic... so here goes...

I used the App browser and selected the firmware-ralinkwifi.tcz and wireless-4.19.10-tinycore.tcz extentions set for "OnBoot" that seemed to work for the Dillo extention... here is what I get:

Code: [Select]
tc@box:~$ dmesg


https://pastebin.com/EBxXWfW8
 (https://pastebin.com/EBxXWfW8)
and:

Code: [Select]
tc@box:~$ lsmod
Module                  Size  Used by    Tainted: P 
cpufreq_userspace      12288  0
cpufreq_conservative    12288  0
cpufreq_powersave      12288  0
wl                   6033408  0
cfg80211              167936  1 wl
squashfs               28672 43
zstd_decompress        53248  1 squashfs
xxhash                 16384  1 zstd_decompress
loop                   20480 86
rtsx_pci_sdmmc         16384  0
hp_wmi                 12288  0
mmc_core               65536  1 rtsx_pci_sdmmc
sparse_keymap          12288  1 hp_wmi
rtsx_pci_ms            12288  0
wmi_bmof               12288  0
memstick               12288  1 rtsx_pci_ms
video                  28672  0
backlight              12288  1 video
serio_raw              12288  0
pcspkr                 12288  0
wmi                    16384  2 hp_wmi,wmi_bmof
ac                     12288  0
battery                16384  0
hp_wireless            12288  0
r8169                  49152  0
rtsx_pci               28672  2 rtsx_pci_sdmmc,rtsx_pci_ms
acpi_cpufreq           12288  0

and finally:

Code: [Select]
tc@box:~$ sudo wifi.sh
No wifi devices found!

Thanks,
mnemonic76
Title: HP-2000 Ralink RT5390R Wireless Adapter
Post by: coreplayer2 on June 21, 2019, 01:00:16 PM
What is a concern for me is why isn’t the wireless* extension being loaded as it’s a dep of  WiFi.tcz

Also, it’s better to load the firmware extension before the wifi and all it’s dependencies. This way the driver will find it’s firmware. 

BTW,  “F12” key is often used as a Wifi hardware switch

When enabling the wifi hardware using F12 the best place to observe results is dmesg



Sent from my iPhone using Tapatalk
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: coreplayer2 on June 21, 2019, 01:14:42 PM
...
Code: [Select]
tc@box:~$ lsmod
Module                  Size  Used by    Tainted: P 
cpufreq_userspace      12288  0
cpufreq_conservative    12288  0
cpufreq_powersave      12288  0
wl                   6033408  0
cfg80211              167936  1 wl
squashfs               28672 43
zstd_decompress        53248  1 squashfs
xxhash                 16384  1 zstd_decompress
loop                   20480 86
rtsx_pci_sdmmc         16384  0
hp_wmi                 12288  0
mmc_core               65536  1 rtsx_pci_sdmmc
sparse_keymap          12288  1 hp_wmi
rtsx_pci_ms            12288  0
wmi_bmof               12288  0
memstick               12288  1 rtsx_pci_ms
video                  28672  0
backlight              12288  1 video
serio_raw              12288  0
pcspkr                 12288  0
wmi                    16384  2 hp_wmi,wmi_bmof
ac                     12288  0
battery                16384  0
hp_wireless            12288  0
r8169                  49152  0
rtsx_pci               28672  2 rtsx_pci_sdmmc,rtsx_pci_ms
acpi_cpufreq           12288  0

Here’s a misfit, i keep noticing “wl” module being loaded which is the wrong wifi module.  I realize this may be Bluetooth related but still something not right here..

Maybe you could post the contents of onboot.lst ?


Sent from my iPhone using Tapatalk
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 21, 2019, 01:18:09 PM
When troubleshooting it is better not to set any extensions "onboot", then:

* load the relevent wifi firmware extension(s)
* load the wifi extension
* switch wifi on with the f12 key
* check dmesg
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 21, 2019, 01:33:38 PM
Hi mnemonic76
I noticed this in your last  dmesg  post:
Code: [Select]
Kernel command line: BOOT_IMAGE=/boot/vmlinuz quiet  tce=sda1 waitusb=5:UUID="7bfa788c-cd5b-4ec7-9da0-123d192e6d6d" tce=UUID="7bfa788c-cd5b-4ec7-9da0-123d192e6d6d"  initrd=/boot/core.gz
Remove the  tce=sda1  entry from your bootloaders config file. I don't know if it's causing a problem but it certainly does not
belong there.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 21, 2019, 07:21:41 PM
Coreplayer: that machine is at my office. Will try that Monday.

Juanito: I can do that except the F12 key LED does nit change states when I push it like in Lubuntu... It stays amber.

Rich: when I installed to USB I put the tce=sda1 option in for persistence... How does tinycore know where to look?
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 21, 2019, 08:48:25 PM
Hi mnemonic76
... Rich: when I installed to USB I put the tce=sda1 option in for persistence... How does tinycore know where to look?
This part of it tells it where to look:
Code: [Select]
tce=UUID="7bfa788c-cd5b-4ec7-9da0-123d192e6d6d"It says that the  tce  directory will be found by the disks  UUID  which is  "7bfa788c-cd5b-4ec7-9da0-123d192e6d6d".  UUID is
unique to that disk. Due to the asynchronous nature of device detection there is no guarantee  sda1  will always be assigned
to the same device when multiple disks are involved.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Pats on June 21, 2019, 10:07:25 PM
Though it is easy to use WiFi in TC, but for those who are setting up RaLink adapter for the first time and experienced to setup wifi thru TC or linux , here is the simple way thru Windoz :

1) Dnload Coreplus and YUMI software to a Windoz dire.  Put USB stick or Pendrive in USB port
2) start YUMI .. Follow the instructions. A YUMI tutorial is already available on YUMI site. Coreplus will be installed on USB stick.
 3) Adjust PCs or laptops BIOS setting to boot from USB.
4) Reboot. If successful , TC boot menu will be available with diff flavours.
5) From menu options , Select Tinycore with WiFi and Firmware.
6) A nice TC screen with diff icons at bottom appears. Click on WiFi icon.
7) Wait a minute. A prompt will ask to select wifi from available numbered wifi networks. Select your network.
8) Then when prompted, Enter wifi passkey.

 If all is OK , you will get a working Wifi.

 ... Enjoy net or dnload install diff TC application from Apps . :)
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 22, 2019, 03:49:32 AM
Juanito: I can do that except the F12 key LED does nit change states when I push it like in Lubuntu... It stays amber.

It's worth trying anyway..
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 25, 2019, 02:16:48 PM
Here's onboot.lst

Code: [Select]
Xvesa.tcz
aterm.tcz
wbar.tcz
wl-modules-4.19.10-tinycore.tcz
iw.tcz
pci-utils.tcz
dillo.tcz
rfkill.tcz
ntpclient.tcz
flwm_topside.tcz

mnemonic76
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 25, 2019, 03:09:43 PM
Also, where can I remove the sda1 reference from the bootloader config file. I have searched the TinyCore docs and I am not finding it.

Thanks,

EDIT: I found it under
Code: [Select]
/mnt/sda1/boot/extlinux/extlinux.conf
Finally found it here: https://distro.ibiblio.org/tinycorelinux/install.html (https://distro.ibiblio.org/tinycorelinux/install.html)

Used vi to modify it.
Only after finding instructions here: https://support.plesk.com/hc/en-us/articles/360001084114-How-to-edit-file-using-vi-utility-on-Linux- (https://support.plesk.com/hc/en-us/articles/360001084114-How-to-edit-file-using-vi-utility-on-Linux-)
Title: HP-2000 Ralink RT5390R Wireless Adapter
Post by: coreplayer2 on June 25, 2019, 03:46:30 PM
Here's onboot.lst
...

Ok, to start..   
connect via Ethernet and download and install wifi.tcz extension using APPS or one of the commandline extension managers

then change your onboot.lst to this

Code: [Select]
Xvesa.tcz
aterm.tcz
wbar.tcz
pci-utils.tcz
dillo.tcz
flwm_topside.tcz
firmware-ralinkwifi.tcz
wifi.tcz

Then reboot and select the wifi icon
Check dmesg for errors


Sent from my iPhone using Tapatalk
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: coreplayer2 on June 25, 2019, 03:55:39 PM
Also, where can I remove the sda1 reference from the bootloader config file. I have searched the TinyCore docs and I am not finding it.

Thanks,

EDIT: I found it under
Code: [Select]
/mnt/sda1/boot/extlinux/extlinux.conf ...

VI might be fun & challenging but if you have a graphical desktop  why not use graphic tools

Code: [Select]
sudo editor
Then using editors file > open menu
navigate to  /mnt/sdx1/boot/extlinux/extlinux.conf  for editing.

Please read the core book, I think you’ll find it quite interesting




Sent from my iPhone using Tapatalk
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: coreplayer2 on June 25, 2019, 04:09:28 PM
Sorry, I remembered we already figured out the firmware extension so I modified the onboot.lst accordingly

Good luck


Sent from my iPhone using Tapatalk
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 26, 2019, 11:22:39 AM
Here's onboot.lst
...

Ok, to start..   
connect via Ethernet and download and install wifi.tcz extension using APPS or one of the commandline extension managers

then change your onboot.lst to this

Code: [Select]
Xvesa.tcz
aterm.tcz
wbar.tcz
pci-utils.tcz
dillo.tcz
flwm_topside.tcz
firmware-ralinkwifi.tcz
wifi.tcz

Then reboot and select the wifi icon
Check dmesg for errors


Ok here goes:

Code: [Select]
Here's onboot.lst
Xvesa.tcz
aterm.tcz
wbar.tcz
flwm_topside.tcz
wl-modules-4.19.10-tinycore.tcz
iw.tcz
pci-utils.tcz
opera9.tcz
rfkill.tcz
wifi.tcz

Rebooted,

See attachment: dmesg.txt

Then clicked wifi icon, got a blank terminal window then it timed out and went away. So I did:
Code: [Select]
tc@box:~$ sudo wifi.sh
No wifi devices found!

I really want to make TInyCore work... I think there is still something to be learned by booting into Lubuntu since the hardware is made to work by Lubuntu somehow... I would be willing to do other experiments if you can think of them!

Thanks,
mnemonic76

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 26, 2019, 11:35:12 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
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 26, 2019, 11:57:02 AM
Hi mnemonic76
Ok here goes:

Code: [Select]
Here's onboot.lst
Xvesa.tcz
aterm.tcz
wbar.tcz
flwm_topside.tcz
wl-modules-4.19.10-tinycore.tcz
iw.tcz
pci-utils.tcz
opera9.tcz
rfkill.tcz
wifi.tcz
OK, I think I see the problem. Try getting rid of that  wl-modules-4.19.10-tinycore.tcz  entry from your onboot.lst  file. Those are
Broadcom drivers but I don't see any Broadcom hardware listed.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 26, 2019, 01:01:55 PM
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
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 26, 2019, 01:05:52 PM
See also dmesg-6-26.txt for the whole thing.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 26, 2019, 01:32:11 PM
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?
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 26, 2019, 02:44:03 PM
rfkill list returns nothing.

Thanks,
mnemonic76
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 26, 2019, 02:54:11 PM
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
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 26, 2019, 03: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

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 26, 2019, 03: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
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 26, 2019, 03: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”
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 26, 2019, 03: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?

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 26, 2019, 03:51:16 PM
Hi mnemonic76
... what do I look at now?

Do what Juanito suggested.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 26, 2019, 03: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
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: curaga on June 27, 2019, 03: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.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 27, 2019, 09: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

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 27, 2019, 09: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.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 27, 2019, 10: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,
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 27, 2019, 10:40:10 AM
Hi mnemonic76
I think you can update the configuration and recompile the modules, but I'm going to let one of the smart kids like Juanito or curaga
advise you on how that might be done.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 27, 2019, 10:53:18 AM
Also, this laptop has a 64 bit AMD E-300. Would there be any benefit to compiling the 64 bit TCL kernel?

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: curaga on June 27, 2019, 01:11:40 PM
Code: [Select]
config RT2800PCI_RT53XX
       bool "rt2800pci - Include support for rt53xx devices (EXPERIMENTAL)"
Yep, so it was one of the possibly unstable drivers and so not enabled. Juanito has posted good instructions in the past, but I don't have them at hand.

A 64-bit kernel's main advantage on 32-bit userspace is access to more RAM. If you have 4gb or less, there's not much point.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 27, 2019, 09:44:03 PM
 Well, what do you think Juanito? Is this link the information I need to recompile with that option on?
http://wiki.tinycorelinux.net/wiki:custom_kernel

 (http://wiki.tinycorelinux.net/wiki:custom_kernel)
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 27, 2019, 10:32:03 PM
Hi mnemonic76
Don't use that, it looks too old.

The basic steps appear to be shown here:
http://forum.tinycorelinux.net/index.php/topic,16534.msg98498.html#msg98498
and reply #17 in the same thread. You'll want:
http://tinycorelinux.net/10.x/x86/release/src/kernel/linux-4.19.10-patched.txz
and:
http://tinycorelinux.net/10.x/x86/release/src/kernel/config-4.19.10-tinycore
Change references of  3.8.13  to  4.19.10  and adjust the directory references to match where you downloaded the above files.
When you run  make menuconfig  you want to find  config RT2800PCI_RT53XX  and enable it.

If you get into trouble, ask questions.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 28, 2019, 07:52:24 AM
I got through the menuconfig, saved as .config then:

Code: [Select]
tc@box:~/kernel/linux-4.19.10$ make menuconfig
scripts/kconfig/mconf  Kconfig


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

tc@box:~/kernel/linux-4.19.10$ make modules
  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  UPD     include/config/kernel.release
  WRAP    arch/x86/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/x86/include/generated/uapi/asm/poll.h
  WRAP    arch/x86/include/generated/asm/dma-contiguous.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/export.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
  UPD     include/generated/uapi/linux/version.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  UPD     include/generated/bounds.h
/bin/sh: bc: not found
make[1]: *** [Kbuild:42: include/generated/timeconst.h] Error 127
make: *** [Makefile:1102: prepare0] Error 2
tc@box:~/kernel/linux-4.19.10$


just a 'make' command gets same Error 127message.

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 28, 2019, 07:55:31 AM
Load the bc extension
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 28, 2019, 08:00:47 AM
Alright... fingers are crossed it has progressed much further...
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 28, 2019, 10:39:17 AM
Wow! it is still going how long does a typical kernel build take? Is this a compile that is happening now?

What factors mainly affect how long it takes? Disk? Processor? RAM? all of the above?

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on June 28, 2019, 12:36:12 PM
Hi mnemonic76
I got through the menuconfig, saved as .config then: ...
After you executed  cd linux-4.19.10-patched  you did remember to download:
http://tinycorelinux.net/10.x/x86/release/src/kernel/config-4.19.10-tinycore
and then copy it to  .config :
Code: [Select]
cp ../config-4.19.10-tinycore ./.configprior to executing:
Code: [Select]
make menuconfig
Also note, executing  make mrproper  cleans up files prior to running any make command, including deleting  ,config.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 28, 2019, 12:43:35 PM
Yes, I did that. It is still running... What is it doing line by line?

Sent from my SM-G950U using Tapatalk

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: curaga on June 28, 2019, 12:52:30 PM
Distro kernels do take a long time to build. I'm on a reasonably powerful computer, 6 cores, and the kernels take 15+min IIRC. If you're on the E-300, which is relatively slow, several hours is expected.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 28, 2019, 01:22:52 PM
I am trying to understand exactly what I am doing here.

The command I executed was "make modules".

Was that the correct command or simply "make"

What is the difference? Also what is the difference between the generic linux kernel (available at kernel.org) and this (or any other) distribution's kernel?

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 28, 2019, 01:33:07 PM
Uh oh... I was just reading https://www.linux.com/learn/intro-to-linux/2018/4/how-compile-linux-kernel-0 (https://www.linux.com/learn/intro-to-linux/2018/4/how-compile-linux-kernel-0) and it says :
Quote
Do note: You will need at least 12GB of free space on your local drive to get through the kernel compilation process. So make sure you have enough space.

I am running off a small USB stick!

Am I screwed?
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 28, 2019, 02:55:31 PM
I think this is done... I dont know if I hit a key or something looks like some garbage was returned. How can I tell if it ws sucessful? What is the next step?

Code: [Select]
  CC      sound/usb/usx2y/snd-usb-usx2y.mod.o
  LD [M]  sound/usb/usx2y/snd-usb-usx2y.ko
  CC      sound/x86/snd-hdmi-lpe-audio.mod.o
  LD [M]  sound/x86/snd-hdmi-lpe-audio.ko
  CC      virt/lib/irqbypass.mod.o
  LD [M]  virt/lib/irqbypass.ko
tc@box:~/kernel/linux-4.19.10$ tc@box:~/kernel/linux-4.19.10/include/generated$
ls
sh: tc@box:~/kernel/linux-4.19.10/include/generated$: not found
tc@box:~/kernel/linux-4.19.10$ autoconf.h       timeconst.h.tmp  utsrelease.h
sh: autoconf.h: not found
tc@box:~/kernel/linux-4.19.10$ bounds.h         uapi/
sh: bounds.h: not found
tc@box:~/kernel/linux-4.19.10$ tc@box:~/kernel/linux-4.19.10/include/generated$
ls
sh: tc@box:~/kernel/linux-4.19.10/include/generated$: not found
tc@box:~/kernel/linux-4.19.10$ autoconf.h       timeconst.h.tmp  utsrelease.h
sh: autoconf.h: not found
tc@box:~/kernel/linux-4.19.10$ bounds.h         uapi/
sh: bounds.h: not found
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 28, 2019, 04:23:48 PM
Search for your driver in the compiled source and make an extension out of it.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: curaga on June 29, 2019, 03:56:26 AM
"make" = "make bzImage modules", it does more. Distro kernels have some patches, but regarding the compile speed it's that they enable so much stuff that a custom kernel won't.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 29, 2019, 12:04:13 PM
Ok, so when I ran the command "make modules" what is the difference between that command and just simply "make"

Also, once I find the module are the steps the same as the above referenced post (Juanito)?

Sent from my SM-G950U using Tapatalk

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 29, 2019, 12:43:39 PM
As already stated, make will compile both the kernel and the kernel modules whereas make modules will only compile the kernel modules and thus take half as long.

Once you have your module you can either add it to your local copy of wireless-KERNEL, or make a separate extension.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 29, 2019, 01:19:23 PM
Sorry I am such a noob. I just haven't done this stuff before and it has been years since I was regularly using linux at the cli. I have always been strongly attracted to the idea of making old PCs (and laptops) run like new again with Linux. I am hoping to use TCL as a learning tool for bieng more solid with Linux, and I appreciate the help and patience you all have shown. I also really appreciate the sense of community with this relatively small user base (compared to Debian or Ubuntu) and really belive in the philosophy behind this project... This is what got me interested in Linux in the first place back around 1998.


Thanks,
Mnemonic76

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 29, 2019, 01:39:21 PM
No problem - have you found your kernel module?
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on June 29, 2019, 03:00:37 PM
The laptop is sitting at my office. Won't be able to work on it until Monday am. I have another (older) laptop I am going to work on this weekend.

I will be sure to let you know on Monday what I run into.

Thanks,
Mnemonic76

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on June 30, 2019, 05:23:18 AM
Looking at this:
Code: [Select]
$ cat .config
...
CONFIG_RT2800PCI=m
CONFIG_RT2800PCI_RT33XX=y
# CONFIG_RT2800PCI_RT35XX is not set
CONFIG_RT2800PCI_RT53XX=y
..and this:
Code: [Select]
$ cat Kconfig:
...
config RT2800PCI_RT53XX
       bool "rt2800pci - Include support for rt53xx devices (EXPERIMENTAL)"
       default y
       ---help---
         This adds support for rt53xx wireless chipset family to the
         rt2800pci driver.
         Supported chips: RT5390CONFIG_WLAN_VENDOR_RALINK=y
..it looks like the rt5390 functionality is added to the rt2800pci driver rather than a separate rt5390pci driver being created.

From this:
Code: [Select]
$ modinfo rt2800pci.ko
...
depends:        rt2x00lib,rt2800lib,rt2800mmio,rt2x00mmio,rt2x00pci,eeprom_93cx6
..to be safe, it would be better to replace rt2800pci and all of the above drivers in your local copy of wireless-KERNEL.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on July 01, 2019, 09:41:37 AM
I have located:

home/tc/kernel/linux-4.19.10/drivers/net/wireless/ralink/rt2x00/rt2800pci.ko
/home/tc/kernel/linux-4.19.10/drivers/net/wireless/ralink/rt2x00/rt2800lib.ko
/home/tc/kernel/linux-4.19.10/drivers/net/wireless/ralink/rt2x00/rt2x00mmio.ko
/home/tc/kernel/linux-4.19.10/drivers/net/wireless/ralink/rt2x00/rt2800mmio.ko
/home/tc/kernel/linux-4.19.10/drivers/net/wireless/ralink/rt2x00/rt2x00pci.ko
/home/tc/kernel/linux-4.19.10/drivers/misc/eeprom/eeprom_93cx6.ko


What do I do with the .ko files?

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on July 01, 2019, 11:16:31 AM
Basically, you need to replace the files with the same name in the wireless-KERNEL extension to create your own personal extension.

First gzip and compress the files:
Code: [Select]
$ tce-load -i gzip advcomp
$ gzip /home/tc/kernel/linux-4.19.10/drivers/net/wireless/ralink/rt2x00/*.ko
$ advdef -z4 /home/tc/kernel/linux-4.19.10/drivers/net/wireless/ralink/rt2x00/*.ko.gz

Then, assuming wireless-KERNEL is already loaded, copy its contents to a temporary location:
Code: [Select]
$ mkdir /tmp/pkg
$ sudo cp -rp /tmp/tcloop/wireless-4.19.10-tinycore/usr /tmp/pkg

Then replace the files with your new ones and create a new extension:
Code: [Select]
$ tce-load -i squashfs-tools
$ sudo cp /home/tc/kernel/linux-4.19.10/drivers/net/wireless/ralink/rt2x00/*.ko.gz /tmp/pkg/usr/local/lib/modules/4.19.10-tinycore/kernel/drivers/net/wireless/ralink/rt2x00
$ cd /tmp
$ sudo mksquashfs pkg/ wireless-4.19.10-tinycore.tcz
$ sudo chown tc:staff wireless-4.19.10-tinycore.tcz
$ md5sum wireless-4.19.10-tinycore.tcz > wireless-4.19.10-tinycore.tcz.md5.txt

Finally copy the new extension to be used on the next reboot:
Code: [Select]
$ mkdir /mnt/sdb1/tce/optional/upgrade [adjust to suit your system]
$ cp /tmp/wireless-4.19.10-tinycore.tcz* /mnt/sdb1/tce/optional/upgrade

** keep eeprom_93cx6.ko in a safe place in case it is needed.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on July 01, 2019, 12:35:46 PM
Ok, did all the above.

Rebooted.

loaded the following: lspci, wireless-4.19.10-tinycore, wl-modules-4.19.10-tinycore, wifi

output of sudo wifi.sh

Code: [Select]
Found wifi device wlan0
Standby for scan of available networks...
wlan0     Interface doesn't support scanning : Network is down

Set to try a few times to obtain a lease.
Failed to connect.


Looks like progress...

Output of

Code: [Select]
tc@box:~$ sudo rfkill list
0: phy0: Wireless LAN
        Soft blocked: yes
        Hard blocked: no

Then:

Code: [Select]
tc@box:~$ sudo rfkill unblock wlan
tc@box:~$ sudo rfkill list
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no

then wifi.sh same result as above.

Then tried:

Code: [Select]
tc@box:~$ iwconfig
eth0      no wireless extensions.

ip_vti0   no wireless extensions.

lo        no wireless extensions.

tunl0     no wireless extensions.

dummy0    no wireless extensions.

wlan0     IEEE 802.11  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry short  long limit:2   RTS thr:off   Fragment thr:off
          Power Management:off

What is my next step?




Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on July 01, 2019, 12:38:12 PM
Ok, see attachment for dmesg and lsmod below:

Code: [Select]

tc@box:~$ lsmod
Module                  Size  Used by    Not tainted
rt2800pci              12288  0
rt2800mmio             12288  1 rt2800pci
rt2800lib              73728  2 rt2800pci,rt2800mmio
rt2x00mmio             12288  2 rt2800pci,rt2800mmio
rt2x00pci              12288  1 rt2800pci
rt2x00lib              28672  5 rt2800pci,rt2800mmio,rt2800lib,rt2x00mmio,rt2x00pci
mac80211              237568  3 rt2800lib,rt2x00pci,rt2x00lib
cfg80211              167936  2 rt2x00lib,mac80211
eeprom_93cx6           12288  1 rt2800pci
cpufreq_conservative    12288  0
cpufreq_userspace      12288  0
cpufreq_powersave      12288  0
squashfs               28672 37
zstd_decompress        53248  1 squashfs
xxhash                 16384  1 zstd_decompress
loop                   20480 74
rtsx_pci_sdmmc         16384  0
mmc_core               65536  1 rtsx_pci_sdmmc
hp_wmi                 12288  0
sparse_keymap          12288  1 hp_wmi
wmi_bmof               12288  0
rtsx_pci_ms            12288  0
memstick               12288  1 rtsx_pci_ms
video                  28672  0
backlight              12288  1 video
pcspkr                 12288  0
ac                     12288  0
wmi                    16384  2 hp_wmi,wmi_bmof
battery                16384  0
serio_raw              12288  0
rtsx_pci               28672  2 rtsx_pci_sdmmc,rtsx_pci_ms
hp_wireless            12288  0
r8169                  49152  0
acpi_cpufreq           12288  0
[/code[]
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on July 01, 2019, 12:49:45 PM
Now we're making progress, but you need to load the firmware first and do not load wl-modules-4.19.10-tinycore as this is for broadcom hardware.

Load, in this order:

firmware-ralinkwifi
wifi
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on July 01, 2019, 12:52:12 PM
Can I make those load OnBoot in that order?

Thanks,
Mnemonic76

Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Rich on July 01, 2019, 12:54:51 PM
Hi mnemonic76
Yes.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on July 01, 2019, 01:02:45 PM
Thanks, I found this post:

The key point of onboot.lst its not a list of programs to be executed in a shell like items on bootlocal.sh but to load .tcz extensions in the given order and their dependencies recursively.

I will try that after this laptop finally reboots... wow, it is trying to backup all the junk left over from compiling the kernel... on a slow USB stick!  :'(
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: Juanito on July 01, 2019, 02:03:41 PM
There was no need to save the compiled kernel source, it can be deleted.
Title: Re: HP-2000 Ralink RT5390R Wireless Adapter
Post by: mnemonic76 on July 01, 2019, 02:11:30 PM
Juanito... I did that... thanks.

Thanks to you all for helping figure this out!

I have certainly learned something, I am going to have to go back through all this to write up a HOWTO at least to help solidify the process in my mind. I have run into similar situations before, and I really want to be able to use the methods that you senior guys helped me with.

Ulitimately, I would like to learn how to troubleshoot hardware/firmware/driver issues like that in the future. As I said I love to work with old hardware and make it useful again.

Ultimately, I would like to make a laptop for the kids, wife, father, mother.. all older hardware running tinycore!

Thanks again guys.

POSTED WITH RALINK RT5390PCI WLAN ADAPTER!