Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: h2sammo on December 18, 2018, 07:17:10 PM

Title: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 18, 2018, 07:17:10 PM
This driver is supported by linux kernels 4.14 and above but my tinycore 9.0 install does not pull it properly. (same fatdog64 based kernel pulls it properly on the same machine)

i am not sure if i post in the correct location but can i get help enabling it so my networking card is operational? please keep in mind i dont have network on this HP laptop when i use tinycore so i cannot post command messages from terminal. i used the 100 mb coreplus 9.0 package.

thank you
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Rich on December 18, 2018, 07:41:55 PM
Hi h2sammo
Is it possible you are missing this firmware:
Code: [Select]
/usr/local/lib/firmware/rtlwifi/rtl8822befw.binwhich is provided by:
Code: [Select]
firmware-rtlwifi.tcz
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 18, 2018, 09:47:21 PM
I'm having trouble loading firmware-rtlwifi. I found it in the apps/ondemand maintenance menu and added it to the ondemand list. However, it doesn't show in apps/load locally list. (https://uploads.tapatalk-cdn.com/20181219/23e1c3cf697e83cb21f6721b72eac452.jpg)

Sent from my MHA-AL00 using Tapatalk

Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on December 18, 2018, 10:06:49 PM
You can check if the extension is already loaded with the following command:
Code: [Select]
$ tce-status -i | grep firmware
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 18, 2018, 10:20:50 PM
Firmware shows already loaded but module is not loaded. (https://uploads.tapatalk-cdn.com/20181219/3d4179c7055240330b8d3fd3769766e3.jpg)

Sent from my MHA-AL00 using Tapatalk

Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on December 18, 2018, 10:25:06 PM
Did you load the wifi extension (after the firmware extension) and check dmesg to see if the firmware was loaded?
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 18, 2018, 10:43:00 PM
I tried to load module r8822be with modprobe but it does not exist. There are no xxx.ko.gz files with that or similar name. I searched for it by name. Could you help me with instructions how to load extensions under tinycore architecture?

Sent from my MHA-AL00 using Tapatalk

Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on December 18, 2018, 10:49:58 PM
There's a module named rtl8821ae.ko.gz in the wireless-KERNEL extension - if that doesn't work you may need to compile the module.
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 18, 2018, 11:28:11 PM
I was able to load the kernel WiFi module on demand and loaded the rtl8821ae module with modprobe. However, lspci -k message still shows the wireless network card without a module. How do I compile and what module do I compile? Or what's the next step?

I get the following for from dmesg: direct firmware load for rtl_nic/rtl8168h-2.fw failed with error -2

I found several rtl8168x-y.fw files in rtl_nic firmware library. What is a xxx.fw file? Can I change that into a module and load it?

Sent from my MHA-AL00 using Tapatalk
(https://uploads.tapatalk-cdn.com/20181219/fc21b3e5fd934491afe491da1dd0701b.jpg)
(https://uploads.tapatalk-cdn.com/20181219/9f1c5d1c51d8f3310bbf4d8ca2614f54.jpg)
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on December 19, 2018, 12:24:35 AM
It looks like the rtl8822be driver was in staging (experimental) and might be enabled with:
Code: [Select]
CONFIG_RTL8XXXU_UNTESTED=y..but google should be able to help
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 19, 2018, 12:42:20 AM
Let me make sure I understand. Your suggestion is to modify kernel, set that driver to "y" and recompile kernel? Sorry, it's been a while since my Gentoo days.. I'll have to search how to do this if this is what you're suggesting.

How about current firmware error? Would that be an easier fix?

Sent from my MHA-AL00 using Tapatalk

Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on December 19, 2018, 01:41:19 AM
It seems that your firmware is present, the issue is the kernel driver, which will need to compiled from the tinycore kernel source.

See:
http://tinycorelinux.net/9.x/x86/release/src/kernel/

Edit: to enable the driver in "make menuconfig":

> Device Drivers > Staging drivers > <M>   Realtek RTL8822BE Wireless Network Adapter
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 19, 2018, 03:28:08 AM
I tried to play with make menuconfig but the make command was not found. How do I install it in this distro?

Sent from my MHA-AL00 using Tapatalk

Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on December 19, 2018, 03:31:12 AM
To compile the kernel:
Code: [Select]
tce-load -i compiletc perl5 bash bc ncursesw-dev
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: coreplayer2 on December 19, 2018, 03:45:05 AM
Hello
First,  it's better to use lspci -nnk to identify your device
Code: [Select]
lspci -nnk
next;  One way to resolve your missing driver is to build the staging kernel modules as previously suggested.  Alternatively, you can download the latest driver code and from the git source
https://github.com/lwfinger/rtlwifi_new   
Quote
It includes the following drivers:
rtl8192ce, rtl8192cu, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be, rtl8821ae, rtl8822be and rtl8723de.

***Note:  Do Not install or run Wifi.tcz, wireless-4.14.10-tinycore.tcz,or any firmware (firmware-rtlwifi.tcz) yet.
You'll need an Internet connection on the notebook, one way or another (Ethernet or a supported USB_WiFi) to download and run

Code: [Select]
tce-load -wil git.tcz
tce-load -wil compiletc.tcz
tce-load -wil linux-kernel-sources-env.tcz

linux-kernel-sources-env
cd /tmp
git clone https://github.com/lwfinger/rtlwifi_new
cd rtlwifi_new
make
sudo make install
sudo modprobe rtl8822be

tce-load -wil wifi.tcz
sudo wifi.sh


Firmware is included in the git package.  however if you eventually choose to use the firmware-rtlwifi extension know that
Code: [Select]
dmesg: direct firmware load for rtl*.fw failed with error -2 is not an issue..

Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 19, 2018, 04:26:28 AM
thank you for the very helpful reply. i get the following error at the make step (unfortunately i dont know how to copy/paste without mouse from the terminal used in tinycore): /lib/modules/4.14.10-tinycore/build: no such file or directory

i am in /tmp/rtlwifi_new folder
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on December 19, 2018, 04:44:37 AM
Code: [Select]
$ sudo ln -s /lib/modules/4.14.10-tinycore/build /path-to-source/linux-4.14.10
..note that you will also have to prepare the kernel source:
Code: [Select]
$ cd linux-4.14.10

$ make mrproper
$ cp config-4.14.10-tinycore .config
$ make oldconfig
$ make prepare
$ make modules_prepare

$ gunzip Module.symvers-4.14.10-tinycore.gz
$ cp Module.symvers-4.14.10-tinycore Module.symvers
$ make SUBDIRS=scripts/mod
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on December 19, 2018, 06:07:40 AM
wireless-rtl8822be-KERNEL posted - not tested
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 19, 2018, 02:54:35 PM
I am working on compiling the new rtl driver from git. I have submitted my problem with the make command in my previous post. Please help me pass that point.

 I think I am getting advise regarding two different routes to solving my problem and because I am not expert I can't tell the difference well between the two strategies. Please stick to my git approach first and let me untangle it.

Sent from my MHA-AL00 using Tapatalk

Title: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: coreplayer2 on December 19, 2018, 03:20:17 PM
wireless-rtl8822be-KERNEL posted - not tested
Juanito has already compiled the driver for the repo.  Simply install the firmware extension first then driver extension then WiFi extension, all to OnBoot.lst. Not OnDemand!! 
Then run Sudo WiFi.sh  or select the WiFi icon


Sent from my iPhone using Tapatalk
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 19, 2018, 04:41:39 PM
Thank you for clarifying. From your post:

1) Simply install the firmware extension (how?...)
2) then driver extension (how?...)
3) WiFi extension, (how?...)
4) all to OnBoot.lst (how?...)

Sent from my MHA-AL00 using Tapatalk

Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Rich on December 19, 2018, 07:14:14 PM
Hi h2sammo
I'm having trouble loading firmware-rtlwifi. I found it in the apps/ondemand maintenance menu and added it to the ondemand list. However, it doesn't show in apps/load locally list.
Go to the the  apps/ondemand maintenance menu  and click on  firmware-rtlwifi.  Then click on  Delete Item from list.

Now go to  apps/onboot maintenance menu  and click on  firmware-rtlwifi.  Then click on  Add Item.

Next go to  apps/cloud/browse.
In the  search  field enter  wireless  and hit enter. Select  wireless-rtl8822be-4.14.10-tinycore.tcz  and click go.
In the  search  field enter  wifi  and hit enter. Select  wifi.tcz  and click go.

Now open your  onboot.lst  file. You can find it under  /etc/sysconfig/tcedir.
Find the following 3 lines and move them to the top of the file in this order:
Code: [Select]
firmware-rtlwifi.tcz
wireless-rtl8822be-4.14.10-tinycore.tcz
wifi.tcz

Save the file and reboot the machine.
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on December 19, 2018, 09:08:40 PM
thank you!!!

network card recognized. wifi operational.
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on January 22, 2019, 10:16:20 PM
so, now that i upgraded to coreplus10, does this module need to be recompiled for the 4.19.10 kernel? when i boot from the coreplus 10 image i cannot get wifi.tcz to pickup any wireless connections around me
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on January 22, 2019, 11:00:29 PM
kernel modules need to be compiled for the specific kernel version in use
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on January 24, 2019, 07:16:43 PM
would you be so kind to compile for 10.0 as well? or give me instructions how to do it so i wont bug you in the future?
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on January 24, 2019, 10:08:12 PM
btw, from coreplus base install there is no wireless-4.19.10-tinycore.tcz extension available so wifi.tcz and ndiswrapper.tcz cannot load since they depend on it. Is there a way i can search for these extensions and download them with an internet browser instead of the apps app? Since i cannot connect to wifi when i boot core10. maybe i can search and download what I am missing when i boot core9.0 and cp the extensions into the ondemand folder in tce10.0.
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: coreplayer2 on January 25, 2019, 03:05:39 AM
btw, from coreplus base install there is no wireless-4.19.10-tinycore.tcz extension available so wifi.tcz and ndiswrapper.tcz cannot load since they depend on it.
The required extension should be available in the coreplus CD/ISO, no?

Quote
Is there a way i can search for these extensions and download them with an internet browser instead of the apps app? Since i cannot connect to wifi when i boot core10. maybe i can search and download what I am missing when i boot core9.0
Sure, directly using a browser from the download section of this website

or use wget command and the address from the above download section

Quote
cp the extensions into the ondemand folder in tce10.0.
Please NOTE:  extensions are installed into the “..tce/optional” directory not “ondemand”


Sent from my iPhone using Tapatalk
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on January 25, 2019, 03:10:59 AM
btw, from coreplus base install there is no wireless-4.19.10-tinycore.tcz extension available so wifi.tcz and ndiswrapper.tcz cannot load since they depend on it.

I just checked the CorePlus-10.0.iso and found /cde/optional/wireless-4.19.10-tinycore.tcz is present..
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Juanito on January 25, 2019, 04:50:46 AM
would you be so kind to compile for 10.0 as well? or give me instructions how to do it so i wont bug you in the future?

The instructions are already in this thread...

wireless-rtl8822be-4.19.10-tinycore posted
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: h2sammo on January 25, 2019, 06:26:05 PM
so, im doing something wrong then. i used the latest CorePlus.iso . I do not see these apps in the CDE or the Boot folder. Where do i look?

Also, about the Downloads webpage. The extensions link takes me to a list of extensions, in text format. There is no way to download them.

please explain.

EDiT: i found the extension in CDE folder... i dont know why it hasnt been copied... i will correct
Title: Re: Realtek wifi network card module r8822be is not present/loaded CorePlus 9.0
Post by: Rich on January 25, 2019, 06:36:20 PM
Hi h2sammo
Quote
... Also, about the Downloads webpage. The extensions link takes me to a list of extensions, in text format. There is no way to download them. ...
That's because in general you should be using the  Apps  utility to download and install extensions. If you really need to
download via a browser, you can do it like this:
Code: [Select]
http://tinycorelinux.net/10.x/x86/tcz/wireless-4.19.10-tinycore.tcz