WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Steps to connect a Pi Zero W to wifi  (Read 22566 times)

Offline njs

  • Newbie
  • *
  • Posts: 25
Re: Steps to connect a Pi Zero W to wifi
« Reply #15 on: September 28, 2017, 09:37:38 AM »
Here is onboot.lst as it stands after following process above

Code: [Select]
mc.tcz
openssh.tcz
firmware-rpi3-wireless
readline.tcz
libnl.tcz
wpa_supplicant.tcz
wireless-4.9.22-piCore.tcz
libiw.tcz
wireless_tools.tcz
wifi.tcz

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Steps to connect a Pi Zero W to wifi
« Reply #16 on: September 28, 2017, 10:24:15 AM »
You forgot the file name extension (.tcz) for the firmware entry.
Also you can remove a few as they are deps of  wifi.tcz .
Code: [Select]
mc.tcz
openssh.tcz
firmware-rpi3-wireless.tcz
readline.tcz
wifi.tcz
Download a copy and keep it handy: Core book ;)

Offline njs

  • Newbie
  • *
  • Posts: 25
Re: Steps to connect a Pi Zero W to wifi
« Reply #17 on: September 28, 2017, 10:40:29 PM »
Thanks, that worked!

Offline flyingchap

  • Newbie
  • *
  • Posts: 2
Re: Steps to connect a Pi Zero W to wifi
« Reply #18 on: August 07, 2019, 05:13:34 AM »
This is an excellent post and an excellent resource.   

Many thanks to you Rob and to the others who have expanded/ clarified the post.     

I'm just about to work on a PiZW and need rapid boot  ---  I'm sure you've saved me many hours.

Thanks and best regards



Offline flyingchap

  • Newbie
  • *
  • Posts: 2
Re: Steps to connect a Pi Zero W to wifi
« Reply #19 on: August 17, 2019, 09:43:59 AM »
Works Perfectly  (Aug 19,  Pi Zero W,  piCore 9.0.3).

MANY THANKS   DrRob for this excellent work  -  saved me hours,  no doubt.     Really appreciate people providing this class of advice. 

flyingchap
London

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 800
Re: Steps to connect a Pi Zero W to wifi
« Reply #20 on: August 17, 2019, 02:49:17 PM »
Hello

This would always be useful to know.....and to know that it will work across new upcoming TCL Rasp Pi versions not just Pi Core 9....

i did not see the exact minimal steps LIST .....committed to the wiki....... as the OP said he would do.....

http://wiki.tinycorelinux.net/wiki:start

It would be helpful to have the "exact correct  steps list" for connecting a Pi ZERO w to wi fi ....put into the wiki and (tested)

where is the "exact steps list" that works  (Tested)...?

thx

V

« Last Edit: August 17, 2019, 02:51:36 PM by vinceASPECT »

Offline DrRob

  • Jr. Member
  • **
  • Posts: 60
Re: Steps to connect a Pi Zero W to wifi
« Reply #21 on: August 26, 2019, 04:37:29 AM »
Hi,

Apologies, I've been off doing other things and forgot about putting this info in the wiki.  I'm about to reinstall piCore for a new project so will go through the steps again to check, and also see if I can figure out a method that doesn't involve mounting filesystems on another computer (I have an idea...).

I'm slightly puzzled that there doesn't seem to be a piCore section in the wiki?  Am I missing something?  Should I create one (if I can edit the wiki - last time I tried I couldn't).

Rob.

Offline DrRob

  • Jr. Member
  • **
  • Posts: 60
Re: Steps to connect a Pi Zero W to wifi
« Reply #22 on: August 26, 2019, 06:45:01 AM »
Here's the confirmed working set of steps, using the VFAT partition to transfer in the required files:
  • Download piCore-9.0.3.zip from http://tinycorelinux.net/9.x/armv6/releases/RPi/
  • Copy onto the SD card:
    • On a Macbook:
      • diskutil list
      • note which number disk is the SD card (3 in my case)
      • diskutil unmountdisk /dev/disk3
      • sudo dd bs=1m if=piCore-9.0.3.img of=/dev/rdisk3 conv=sync
  • mkdir required; cd required
  • for pkg in libiw libnl readline wifi wireless-4.9.22-piCore wireless_tools wpa_supplicant firmware-rpi3-wireless; do for f in $pkg.tcz{,.dep,.info,.list,.md5.txt,.tree,.zsync}; do wget http://ftp.nluug.nl/os/Linux/distr/tinycorelinux/9.x/armv6/tcz/$f; done; done
  • tar zcvf ../required.tar.gz *; cd ..
  • Copy required.tar.gz onto the VFAT partition of the SD card
    • On my Macbook:
      • cp required.tar.gz /Volumes/piCore/
  • Eject the SD card, remove from computer, insert into Pi Zero W
  • Connect via HDMI to a monitor, and a USB keyboard
  • Power on the Pi
  • At the command line:
    • Expand the second partition:
      • sudo fdisk -u /dev/mmcblk0
        • p
        • Note the StartLBA value for /dev/mmcblk0p2 (77824)
        • d
        • 2
        • n
        • p
        • 2
        • 77824
        • Enter to accept default value
        • w
      • sudo reboot
      • sudo resize2fs /dev/mmcblk0p2
    • Install files required for wifi:
      • mount /mnt/mmcblk0p1
      • cd /mnt/mmcblk0p2/tce/optional
      • tar zxvf /mnt/mmcblk0p1/required.tar.gz
      • rm /mnt/mmcblkp1/required.tar.gz
      • tce-load -i firmware-rpi3-wireless
      • tce-load -i wifi
      • echo "firmware-rpi3-wireless.tcz" >> ../onboot.lst
      • echo "wifi.tcz" >> ../onboot.lst
    • Connect to wifi and make it persistent:
      • sudo wifi.sh (and select an AP and enter password)
      • echo "wifi.sh -aw" >> /opt/bootlocal.sh
      • echo "/etc/wpa_supplicant.conf" >> /opt/.filetool.lst
    • filebool -b
    • sudo exitcheck.sh reboot
I'm not sure why tce-load -i doesn't add entries to onboot.lst automatically like it does when you have a network connection and can tce-load -wi...

Rob.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: Steps to connect a Pi Zero W to wifi
« Reply #23 on: August 26, 2019, 08:34:40 AM »
Hi DrRob
... I'm slightly puzzled that there doesn't seem to be a piCore section in the wiki?  Am I missing something?  Should I create one (if I can edit the wiki - last time I tried I couldn't).
You need to first login to the Wiki using the same  Name/Password  you use to login to this forum.  If you are looking to start a piCore
specific  "how to"  section, you should probably create a link that points to that here:
http://wiki.tinycorelinux.net/

Offline DrRob

  • Jr. Member
  • **
  • Posts: 60
Re: Steps to connect a Pi Zero W to wifi
« Reply #24 on: August 26, 2019, 10:29:55 AM »
OK, done, except I just added a section to the end of http://wiki.tinycorelinux.net/wiki:start rather than adding it to http://wiki.tinycorelinux.net/  There's not much on the latter page, so it didn't seem right to add it there.

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 800
Re: Steps to connect a Pi Zero W to wifi
« Reply #25 on: September 05, 2019, 06:58:05 PM »
Dr Rob,

thanks for adding the Steps to the wiki.....there are indeed quite a lot of steps and i wonder if anybody may put it into a TCZ app at some point?

Just a one click affair.

thx

Vin