2.8 KiB
title | date | showReadingTime | showWordCount | showPagination | showBreadcrumbs | feed_exclude | draft |
---|---|---|---|---|---|---|---|
Raspberry Pi | 2023-11-25T09:14:35+01:00 | false | false | false | true | true | true |
Raspberry Pi 4
4GB version, if that information is of any use.
No network after boot
Sometimes I make mistakes in my initial wpa_supplicant.conf
file (that I'd place on
the boot partition of the new Raspberry Pi SDcard). Recently my wpa_supplicant.conf
file was totally messed up (a bracket too much I think).
So there is a quick way to connect to a WiFi network with the use of nmcli
(NetworkManager).
$ sudo nmcli device wifi connect [ssid] password [password]
You can view networks with (no need for sudo):
$ nmcli device wifi list
Moving to testing (from bookworm)
Why would you want to do that in the first place? Well, most packages on debian stable are quite old -- hence the name stable.
If you need newer packages, you should consider moving to the testing
branch. I moved my Raspberry Pi 4 to testing because of the starship
prompt that I use on my computers -- it needed a newer version of the
rustc
package.
First of all, upgrade to the latest packages.
$ sudo apt update && sudo apt upgrade
Now change the release name (e.g. bookworm
) to testing
in /etc/apt/sources.list
:
deb http://deb.debian.org/debian testing main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security/ testing-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian testing-updates main contrib non-free non-free-firmware
Then update step by step.
$ sudo apt update
$ sudo apt upgrade
Restart services during package upgrades without asking?
Answer with Yes.
Finish the update:
$ sudo apt full-upgrade
$ sudo reboot
Raspberry Pi 3
Raspberry Pi 2
Raspberry Pi Pico W
Using MicroPython
https://micropython.org/download/RPI_PICO_W/
I did the dumb thing and made the boot.py
file break which led to an endless
loop showing me only the Error code and restarting...
I was able to stop the script by quickly pressing CTRL+D,
CTRL+C on the serial console but never was able to update the broken
file without it doing a soft-reboot which loads boot.py
again instantly...
After some research I was glad I found pico-nuke.
Boot into uf2 loading (pressing BOOTSEL while power on) and place the correct .uf
file (pico_nuke_pico_w-1.1.uf2
) on the mounted device.
On OpenBSD there is no response but you can see the filesystem unmounted/removed. Unplug the USB and plug it in again booting into uf2 loading, copying over the MicroPython uf2 file again.