Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: xdemy on December 26, 2023, 09:43:00 AM

Title: How to get wifi working on Raspberry Pi Zero 2 W ?
Post by: xdemy on December 26, 2023, 09:43:00 AM
Hi,
I've been trying multiple ways for the last two weeks, and none worked.
The rpi zero have no ethernet port, so I've got to download required tcz files on windows and copy them to tce partition on SD

This is what I have managed to do:
- made a php script to download required tcz files with their dependencies from repository of given url
 -wifi.tcz
 -wireless_tools.tcz
 -firmware-rpi-wifi.tcz
 -firmware-rtlwifi.tcz
- install piCore on SD, extend tce partition, copy downloaded tcz files to this partition using ubuntu in virtualBox on windows 10

When I start piCore and run "tce-load -i wifi.tcz" the results are:
- on piCore 14 - loading fails at:
   "wireless-6.1.68-piCore-v8.tcz not found" (I wasn't able to find such file in the repository)
- on piCore 13.1 - loading fails at:
  "mount: mounting /dev/loop7 on /tmp/tcloop/wireless-5-10.77-piCore-v7 failed: Invalid argument"

Its there anyone able to help me with this? Its just a beginning of my project and getting wifi to work seemed pretty easy, but none of the tutorials I've found so far did work with my rpi,
and I dont understand what am I missing/doing wrong  :-\
Title: Re: How to get wifi working on Raspberry Pi Zero 2 W ?
Post by: Paul_123 on December 26, 2023, 09:56:41 AM
You installed the 64bit image for piCore64-14.1. You need to download the kernel modules for wireless from

http://www.tinycorelinux.net/14.x/aarch64/tcz/wireless-6.1.68-piCore-v8.tcz
Title: Re: How to get wifi working on Raspberry Pi Zero 2 W ?
Post by: gadget42 on December 26, 2023, 10:03:11 AM
other recent threads

https://forum.tinycorelinux.net/index.php/topic,25312.0.html

https://forum.tinycorelinux.net/index.php/topic,25949.0.html

20231226-0910am-cst-usa-modified: added a link
Title: Re: How to get wifi working on Raspberry Pi Zero 2 W ?
Post by: Rich on December 26, 2023, 10:08:07 AM
Hi xdemy
Welcome to the forum.

The first thing you have to do is download from the correct repository.
Run this command on piCore 14:
Code: [Select]
uname -rIf it returns  6.1.68-piCore
Use this repository:
http://tinycorelinux.net/14.x/armv6/tcz/

If it returns  6.1.68-piCore-v7
Use this repository:
http://tinycorelinux.net/14.x/armv7/tcz/

If it returns  6.1.68-piCore-v7l
Use this repository:
http://tinycorelinux.net/14.x/armv7l/tcz/

If it returns  6.1.68-piCore-v8
Use this repository:
http://tinycorelinux.net/14.x/aarch64/tcz/

You need to download the  .tcz , .md5.txt , and  .dep  file if it
exists for each extension.
Title: Re: How to get wifi working on Raspberry Pi Zero 2 W ?
Post by: xdemy on December 27, 2023, 12:02:30 PM
It works!!!   :D :D :D
Thank you so much guys!

Downloading files from the right repository was the key to have all the right files according to "uname -r" command.
There was still another error then, when I tried to run "sudo wifi.sh" :
 "No wifi devices found!"
but I fixed it with a recipe from other thread you supplied links to, by setting the following files in onboot.lst:
 wireless-5.10.77-piCore-v7.tcz
 firmware-rpi-wifi.tcz
 wifi.tcz

and those 3 were the only files I had to download with their dependencies, in this case I used 5.10.77-piCore-v7 (piCore 13.1).
I got my hope back thanks to your help  :)