Raspberry Pi Zero W / Pi 5: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 26: Line 26:
try toggling it off:
try toggling it off:
  <code>sudo iw wlan0 set power_save off</code>
  <code>sudo iw wlan0 set power_save off</code>
=== USB Gadget ===
https://medium.com/@michi.hammerl/setting-up-a-raspberry-pi-for-usb-gadget-mode-in-windows-11-7993ddf2f80e
You will need to install the RNDIS driver from https://github.com/dukelec/mbrush/tree/master/doc/win_driver for Windows 11
== Updating ==
After logging in, it will try to download from <nowiki>http://mirror.truenetwork.ru</nowiki>
After logging in, it will try to download from <nowiki>http://mirror.truenetwork.ru</nowiki>


So edit /etc/apt/sources.list and add
So edit /etc/apt/sources.list and add
(32 bit)


deb <nowiki>http://mirror.transip.net/raspbian/raspbian/</nowiki> bookworm main contrib non-free rpi
deb <nowiki>http://mirror.transip.net/raspbian/raspbian/</nowiki> bookworm main contrib non-free rpi
(64 bit)
deb [ arch=armhf ] <nowiki>http://mirror.transip.net/raspbian/raspbian/</nowiki> bookworm main contrib non-free rpi


remove everything from /var/cache/apt/
remove everything from /var/cache/apt/
Line 49: Line 62:
   raspi-config
   raspi-config
Is your friend
Is your friend
= Installing M2 with a Hat =
https://www.raspberrypi.com/news/using-m-2-hat-with-raspberry-pi-5/
Note - the ribbon is already connected to the hat but stuck on using sticky tape :)


= HW Trouble =
= HW Trouble =
Line 56: Line 74:


[https://www.raspberrypi.com/documentation/computers/configuration.html#firmware-warning-icons Firmware warnings]
[https://www.raspberrypi.com/documentation/computers/configuration.html#firmware-warning-icons Firmware warnings]
[https://forums.raspberrypi.com/viewtopic.php?t=58151 Is Your Pi Not Booting Sticky Thread]
Steps:
- Use a 64GB SD Card (Sandisk)
- With nothing in: the screen showing it can't find a boot device works fine
- Waited for a day
- Used Bookworm armhf (32bit) and arm64 (64bit) lite, bookworm full images
- bullseye arm64 image ends on screen saying it is not compatible with pi 5
- can't find any logs or journals in /mnt/var/log/ -R
- The only things connected to the Pi board are a micro HDMI adapter -> HDMI cable, the (official PI 5) Power adapter and the SD card - connect HDMI port 1
- The SD Card writer I have works fine for my Pi zero and Pi 2 (change SD card writer)

Latest revision as of 05:15, 6 September 2025

Rasbian Installation

Download the image from here if you want the minimal version (recommended for the Zero W) and flash it to an SD card, otherwise you can just use the flasher to download an image. You can set up the networking here

Headless installation

https://www.tomshardware.com/reviews/raspberry-pi-headless-setup-how-to,6028.html / https://thedatafrog.com/en/articles/raspberry-pi-zero-headless-install/ have some guides on headless installs, which is important for the Pi Zero W

Networking

Introduction to Remote Access

NB when flashing the standard raspberry pi OS and having set up everything, expect to wait a LONG time (1/2 an hour) before the wifi connects to the network properly. This is quite annoying in a headless install, but you should seethe green light next to the power port flashing. To enable USB in the standard OS you need to do stuff. The pwnagotchi image has done the stuff for you.

If for some reason the wifi doesn't work, you can create a wpa_supplicant.conf file manually in the root of the SD card

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=FI

network={
     ssid="Name Of My Network"
     psk="Network_Password"
     key_mgmt=WPA-PSK
}

Turn off wifi powersaving, which can lead to ping / ssh / network drops

You can try to check the state of power management:

sudo iw wlan0 get power_save

try toggling it off:

sudo iw wlan0 set power_save off

USB Gadget

https://medium.com/@michi.hammerl/setting-up-a-raspberry-pi-for-usb-gadget-mode-in-windows-11-7993ddf2f80e

You will need to install the RNDIS driver from https://github.com/dukelec/mbrush/tree/master/doc/win_driver for Windows 11

Updating

After logging in, it will try to download from http://mirror.truenetwork.ru

So edit /etc/apt/sources.list and add

(32 bit)

deb http://mirror.transip.net/raspbian/raspbian/ bookworm main contrib non-free rpi

(64 bit)

deb [ arch=armhf ] http://mirror.transip.net/raspbian/raspbian/ bookworm main contrib non-free rpi

remove everything from /var/cache/apt/

then apt-get update and apt-get upgrade

after this you will notice that a few packages have been held back from upgrading.

apt full-upgrade will fix this

after restart it will take a long time after the Pi connects to the wifi network before the ssh connection will work. Once you get a stead return from ping -t, then you can ssh in.

USB Ports

Note: the middle micro USB port (to the right of the HDMI port and left of the USB power port) is used for communication

General Configuration

  raspi-config

Is your friend

Installing M2 with a Hat

https://www.raspberrypi.com/news/using-m-2-hat-with-raspberry-pi-5/

Note - the ribbon is already connected to the hat but stuck on using sticky tape :)

HW Trouble

OK01 LED blinks 3 times - move the /boot/start.elf to a new name and rename it back / use a different SD card / reformat the SD card

LED Warning Flash Codes list

Firmware warnings

Is Your Pi Not Booting Sticky Thread

Steps:

- Use a 64GB SD Card (Sandisk)

- With nothing in: the screen showing it can't find a boot device works fine

- Waited for a day

- Used Bookworm armhf (32bit) and arm64 (64bit) lite, bookworm full images

- bullseye arm64 image ends on screen saying it is not compatible with pi 5

- can't find any logs or journals in /mnt/var/log/ -R

- The only things connected to the Pi board are a micro HDMI adapter -> HDMI cable, the (official PI 5) Power adapter and the SD card - connect HDMI port 1

- The SD Card writer I have works fine for my Pi zero and Pi 2 (change SD card writer)