Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: minux on July 22, 2020, 05:52:29 AM

Title: [Solved] Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 05:52:29 AM
Hello friends!

As title said.I have installed the corresponding TCE, such as Firmware -iwlwifi.TCZ, Firewire-5.4.3-Tinycore64.TCZ, Firewire-5.4.3-Tinycore64.TCZ, Wire-5.4.3-Tinycore64.TCZ, Wl-Modules-5.4.3-Tinycore64.TCZ,Wifi.TCZ and added these to onboot.lst.

When I execute wifi.sh, it printout the "Devices not found".  At the same time, I found that usr/local/sbin/iw, iwconfig... cannot executed m(using root),  it report "the xxxfiie not found"...

I'm using tinycoreX86 and everything is fine!
WIFI: Intel Link 5100
CPU: Intel P8700

Sorry!My English is not good! I beg for your understanding! Thank you for your help!
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Juanito on July 22, 2020, 06:03:26 AM
First you need to confirm what wifi hardware you have using the "lspci"  command from the pciutils extension.

Assuming you have intel wifi hardware, you need to reboot without any firmware or wifi extensions "onboot" and then use the following commands:
Code: [Select]
$ tce-load -i firmware-iwlwifi wifi
$ sudo wifi.sh

If things do not work, copy and paste the results of this command:
Code: [Select]
$ dmesg | tail -20
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 06:19:25 AM
emem...if installed Core only(text based install), how to install pciutils extension? (No Ethernet).
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 06:24:00 AM
First you need to confirm what wifi hardware you have using the "lspci"  command from the pciutils extension.

I'm using tinycoreX86 and everything is fine!
WIFI: Intel Link 5100
CPU: Intel P8700
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Juanito on July 22, 2020, 06:59:28 AM
I'm a little confused - are you using CorePlus or CorePure64?

When you say "I'm using tinycoreX86 and everything is fine", do you mean wifi is working now?
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 07:26:07 AM
I'm a little confused - are you using CorePlus or CorePure64?
I'm using corepure64 now.
tc32 is ok, but cp64 is no.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Rich on July 22, 2020, 07:30:46 AM
Hi Juanito
I've read the original post about a dozen times. Here are my observations:
... As title said.I have installed the corresponding TCE, such as Firmware -iwlwifi.TCZ, Firewire-5.4.3-Tinycore64.TCZ, Firewire-5.4.3-Tinycore64.TCZ, Wire-5.4.3-Tinycore64.TCZ, Wl-Modules-5.4.3-Tinycore64.TCZ,Wifi.TCZ ...
I don't recall  firewire  being included in the ISOs which leads me to believe the OP is manually downloading extensions.

Quote
... and added these to onboot.lst. ...
It's on persistent storage.

Quote
... At the same time, I found that usr/local/sbin/iw, iwconfig... cannot executed m(using root),  it report "the xxxfiie not found"...
I'm not sure what to make of this.

Quote
... I'm using tinycoreX86 and everything is fine!
WIFI: Intel Link 5100
CPU: Intel P8700 ...
He did succeed in a 32 bit install.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 07:52:15 AM
I don't recall  firewire  being included in the ISOs which leads me to believe the OP is manually downloading extensions.
These *.tcz above  what I downloaded from tinycorecore32
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 07:54:37 AM
He did succeed in a 32 bit install.
Wifi can work properly on CorePlus32, but not on corepure64.
But I'm using corepure64 now, so I want wifi to be ok, too.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Juanito on July 22, 2020, 07:59:50 AM
You need these extensions for CorePure64

firmware-iwlwifi.tcz wifi.tcz wpa_supplicant-dbus.tcz libnl.tcz dbus.tcz expat2.tcz elogind.tcz acl.tcz attr.tcz libcap.tcz openssl-1.1.1.tcz readline.tcz ncursesw.tcz wireless_tools.tcz wireless-5.4.3-tinycore64.tcz libiw.tcz

For each extension download *tcz, *tcz.dep (where it exists) and *tcz.md5.txt
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 08:07:01 AM
You need these extensions for CorePure64

firmware-iwlwifi.tcz wifi.tcz wpa_supplicant-dbus.tcz libnl.tcz dbus.tcz expat2.tcz elogind.tcz acl.tcz attr.tcz libcap.tcz openssl-1.1.1.tcz readline.tcz ncursesw.tcz wireless_tools.tcz wireless-5.4.3-tinycore64.tcz libiw.tcz

For each extension download *tcz, *tcz.dep (where it exists) and *tcz.md5.txt

Ok.Do I need to reinstall the system before that? My corepure64 is installed via tc-install-GUI. Is this any different from using corepure64.ISO?
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Rich on July 22, 2020, 08:07:53 AM
Hi minux
These *.tcz above  what I downloaded from tinycorecore32
Yes, I forgot 64 bit kernel modules could be accessed from a 32 bit system. You then moved them to the tce directory where you
are installing the 64 bit version, right? 32 and 64 bit can not share a  tce  directory.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 08:11:30 AM
Hi minux
These *.tcz above  what I downloaded from tinycorecore32
32 and 64 bit can not share a  tce  directory.
em...What does that mean?
During the installation of corepure64, I chosed "/mnt/sdb4/tce/cde"(Since the default download path for apps) as "insall extension from TCE/CDE" directory
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Rich on July 22, 2020, 08:26:37 AM
Hi minux
It means if you want to install 32 and 64 bit on the same machine, you can either:
Install them on separate partitions.

Or:
Give the  tce  directories unique names, such as  tce32  and  tce64  for example.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 08:34:17 AM
Hi minux
It means if you want to install 32 and 64 bit on the same machine, you can either:
Install them on separate partitions.

Thank you for your second suggestion.
I installed corepure64 through coreplus. I don't need both, I just need one.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Sashank999 on July 22, 2020, 07:50:18 PM
Hi minux,

After reading your posts, I think I need to say you some things
1) You cannot use x86 tcz on x64.
2) There is no Corepureplus64 ISO that has wifi modules like the x86 Coreplus ISO.

To install the x64 bit TCL, do the below things (I have also assumed that you have a working x86 TCL) :
Inside the currently working x86 TCL, do
1) Get vmlinuz64 and corepure64.gz from here :
     http://repo.tinycorelinux.net/11.x/x86_64/release/distribution_files/
2) Make a folder "tce64" beside the folder of x86 tce in that partition.
3) Make folders "boot" and "optional" inside tce64
4) Place the vmlinuz64 and corepure64.gz inside boot
5) Follow this (a little modified from original) :
...
cd  into tce64/optional and download the script available here:
http://forum.tinycorelinux.net/index.php/topic,23034.0.html

Edit the script to change this:
Code: [Select]
# Tinycore version
TC="10.x"

# Processor architecture, current options are  x86  x86_64  armv6  armv7
ARCH="x86"

To this:
Code: [Select]
# Tinycore version
TC="11.x"

# Processor architecture, current options are  x86  x86_64  armv6  armv7
ARCH="x86_64"

The script assumes nothing about your system. Any extension name containing  KERNEL  or  5.4.3-tinycore  will not be found. You will need to run the script again for those extensions, for example:
Code: [Select]
./FetchExt.sh wireless-5.4.3-tinycore64to fetch the 64 bit version.

Replace wireless-5.4.3-tinycore64 with the extension names required. Note: Do not include the ".tcz" file  extension in FetchExt script.
...
6) Modify the bootloader to boot the vmlinuz64 as kernel and corepure64.gz as initrd.

After this, boot and you will have your x64 system setup. If desired, you can remove the x86 TCL folder.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 08:24:32 PM
First you need to confirm what wifi hardware you have using the "lspci"  command from the pciutils extension.

Assuming you have intel wifi hardware, you need to reboot without any firmware or wifi extensions "onboot" and then use the following commands:
Code: [Select]
$ tce-load -i firmware-iwlwifi wifi
$ sudo wifi.sh

executing result
firmware-iwlwifi is already installed!
wifi is already installed!

If things do not work, copy and paste the results of this command:
Code: [Select]
$ dmesg | tail -20

executing result
iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled
iwlwifi 0000:03:00.0: Detected Intel(R) WiFi Link 5100 AGN, REV=0x54
ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
usb 2-4: new high-speed USB device number 3 using ehci-pci
usb-storage 2-4:1.0: USB Mass Storage device detected
scsi host6: usb-storage 2-4:1.0
scsi 6:0:0:0: Direct-Access     Generic  Mass-Storage     1.11 PQ: 0 ANSI: 2
scsi 6:0:0:0: Attached scsi generic sg2 type 0
sd 6:0:0:0: [sdb] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 6:0:0:0: [sdb] No Caching mode page found
sd 6:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb4
sd 6:0:0:0: [sdb] Attached SCSI removable disk
FAT-fs (sdb4): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Sashank999 on July 22, 2020, 08:44:39 PM
Sorry for asking this foolish question but, did you download the .dep and .md5.txt files along with the TCZs you downloaded ?
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 09:06:53 PM
Sorry for asking this foolish question but, did you download the .dep and .md5.txt files along with the TCZs you downloaded ?

Yeah! The are tces in following
acl.tcz
acl.tcz.dep
acl.tcz.md5.txt
attr.tcz
attr.tcz.md5.txt
dbus.tcz
dbus.tcz.dep
dbus.tcz.md5.txt
expat2.tcz
expat2.tcz.md5.txt
firmware-iwlwifi.tcz
firmware-iwlwifi.tcz.md5.txt
libcap.tcz
libcap.tcz.dep
libcap.tcz.md5.txt
libiw.tcz
libiw.tcz.md5.txt
libnl.tcz
libnl.tcz.md5.txt
libpci.tcz
libpci.tcz.md5.txt
libpciaccess.tcz
libpciaccess.tcz.md5.txt
ncursesw.tcz
ncursesw.tcz.md5.txt
openssl-1.1.1.tcz
openssl-1.1.1.tcz.md5.txt
pci-utils.tcz
pci-utils.tcz.dep
pci-utils.tcz.md5.txt
readline.tcz
readline.tcz.dep
readline.tcz.md5.txt
tces.txt
wifi.tcz
wifi.tcz.dep
wifi.tcz.md5.txt
wireless-5.4.3-tinycore.tcz
wireless-5.4.3-tinycore.tcz.md5.txt
wireless-5.4.3-tinycore64.tcz
wireless_tools.tcz
wireless_tools.tcz.dep
wireless_tools.tcz.md5.txt
wpa_supplicant-dbus.tcz
wpa_supplicant-dbus.tcz.dep
wpa_supplicant-dbus.tcz.md5.txt
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Sashank999 on July 22, 2020, 09:16:12 PM
You don't have elogind. It is a dep of dbus which is a dep of wpa_supplicant-dbus which is a dep of wifi.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 09:28:32 PM
You don't have elogind. It is a dep of dbus which is a dep of wpa_supplicant-dbus which is a dep of wifi.

Sorry, I didn't find the elogind in  repo, could you tell me where to get it?Thank you!
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Sashank999 on July 22, 2020, 09:31:38 PM
http://repo.tinycorelinux.net/11.x/x86_64/tcz/elogind.tcz
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 10:06:43 PM
http://repo.tinycorelinux.net/11.x/x86_64/tcz/elogind.tcz
After do following
Code: [Select]
tce-load -i /mnt/sda1/tce/optional/*.tcz(elogind.tcz)
sudo wifi.sh
executing result =>> No wifi devices found

Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 10:34:00 PM
1) You cannot use x86 tcz on x64.
Is Corepure64 only compatible with x86_64/Xx-tinycore64.TCz?
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Juanito on July 22, 2020, 10:36:23 PM
CorePlus is 32-bit - extensions located at: http://tinycorelinux.net/11.x/x86/tcz/
CorePure64 is 64-bit - extensions located at: http://tinycorelinux.net/11.x/x86_64/tcz/

You cannot mix extensions between the two.

executing result
firmware-iwlwifi is already installed!
wifi is already installed!
This means that you did not follow the instructions to remove firmware and wifi extensions from "onboot"

Quote
Code: [Select]
iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
...
If the firmware-iwlwifi extension is not loaded before the wifi extension, wifi will not work - we cannot help troubleshoot unless you follow the instructions.

To repeat:

Remove all firmware, wifi, wireless, etc extensions from onboot.lst
Reboot
Load firmware-iwlwifi and then load wifi
"sudo wifi.sh"
"dmesg | tail -20"
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 11:33:50 PM
CorePlus is 32-bit - extensions located at: http://tinycorelinux.net/11.x/x86/tcz/
CorePure64 is 64-bit - extensions located at: http://tinycorelinux.net/11.x/x86_64/tcz/

You cannot mix extensions between the two.

But how should I download the corresponding Corepure extension from Apps of my coreplus?

Due to my onboot.lst doesn't have anything, I manually loaded the extension with the following command every time.
tce-load -i
Code: [Select]
/mnt/sda1/tce/optional/*.tcz
Am I doing this right?
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 22, 2020, 11:42:13 PM
You cannot mix extensions between the two.
You mean to say, I should all the extension from http://tinycorelinux.net/11.x/x86/tcz/ Download, not from http://tinycorelinux.net/11.x/x86_64/tcz/, right? I wonder if that's the case, then how can I download extensions correctly on coreplus and install them correctly on corepure64?
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Juanito on July 22, 2020, 11:44:25 PM
If you want to use CorePlus to download apps for CorePure64, you cannot use "tce-load".

Use these commands:
Code: [Select]
$ mkdir /tmp/extensions64
$ cd /tmp/extensions64
$ wget http://tinycorelinux.net/11.x/x86_64/tcz/wifi.tcz
$ wget http://tinycorelinux.net/11.x/x86_64/tcz/wifi.tcz.dep
$ wget http://tinycorelinux.net/11.x/x86_64/tcz/wifi.tcz.md5.txt
..and repeat the wget commands for all the extensions you need.

Once done, you can copy all of the files in /tmp/extensions64 to permanent storage so that, once you have booted CorePure64, you can copy them into the tce/optional folder that you will use for CorePure64 - it cannot be the same tce/optional folder you use for CorePure.

You should never use the wildcard "*" in the tce-load command.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: Sashank999 on July 23, 2020, 12:22:34 AM
Or else you could do the way mentioned in the top most post of this page with the help of FetchExt script which also manages deps recursively.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 23, 2020, 01:49:49 AM
CorePlus is 32....
Thank you more than what I can say. Thank you.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 23, 2020, 01:51:51 AM
Or else you could ....
Thank you for your help.
Title: Re: Wifi on TinyCore64 is not working properly
Post by: minux on July 23, 2020, 01:54:23 AM
Hi minux...
Thank you too,too.