WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to get wifi working on Raspberry Pi Zero 2 W ?  (Read 1596 times)

Offline xdemy

  • Newbie
  • *
  • Posts: 7
How to get wifi working on Raspberry Pi Zero 2 W ?
« 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  :-\

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1249
Re: How to get wifi working on Raspberry Pi Zero 2 W ?
« Reply #1 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
« Last Edit: December 26, 2023, 09:58:53 AM by Paul_123 »

Offline gadget42

  • Hero Member
  • *****
  • Posts: 806
Re: How to get wifi working on Raspberry Pi Zero 2 W ?
« Reply #2 on: December 26, 2023, 10:03:11 AM »
« Last Edit: December 26, 2023, 10:10:01 AM by gadget42 »
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11658
Re: How to get wifi working on Raspberry Pi Zero 2 W ?
« Reply #3 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.

Offline xdemy

  • Newbie
  • *
  • Posts: 7
Re: How to get wifi working on Raspberry Pi Zero 2 W ?
« Reply #4 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  :)