Raspberry PI Zero W

Low cost and low power but still have Linux makes the Raspberry PI Zero W attractive.

Note

W stands for WLAN there is also a version without WLAN. Since WLAN is the only network connection it might be vital.

It can be setup using the rpi-imager to have username, password and if boot time is not of concern connectivity to the WLAN.

Note

https://learn.sparkfun.com/tutorials/getting-started-with-the-raspberry-pi-zero-wireless/allIt is 32bit and significant less powerful than the top Raspberry models. So be patient on the first boot to have it done its first setup and to connect to the WLAN. Using a HDMI mini (fortunately not micro) adapter allows connecting a monitor to observer what is going on.

Zero Hardware Specialties

The micro USB connector located in the middle is USB On-The-Go (USB OTG). Using a USB OTG cable, Keyboards, Mouse or USB hub can be connected.

The micro USB connector on the edge is the power in connection.

Pin 1 of the GPIO header is located close to the SDcard connector (row closer to the SDcard)

There are also two 2pin headers that could be soldered. The TV provides a video signal and the RUN can be connected to a reset button.

Boot time optimization

It is nice to setup WLAN connectivity right at the rpi-imager when preparing a SDcard. However this goes into /etc/netplan/*.yaml and not into /etc/NetworkManager/system-connections

During boot NetworkManager is however able to talk to netplan and create a system-connection on the fly. However the on the fly takes up to 1 minute.

To avoid this do not setup WLAN in rpi-imager.

If already done, move /etc/netplan/*.yaml to a save location outside /etc/netplan

sudo netplan apply to make it aware

Then sudo nmtui and create the WLAN connection. /etc/NetworkManager/system-connections/ should have now a file with the WLAN configuration

Analyze Networkmanager Boot

systemd-analyze blame or systemd-analyze critical-chain will show why it takes so long to boot

NetworkManager might be blamed.

journalctl -b -u NetworkManager --no-pager will show details including time.

If there is a mysterious almost 1 minute wait, get more debugging information add to /etc/NetworkManager/NetworkManager.conf

[logging]
level=DEBUG
domains=ALL

Linurs startpage