Hello everybody!
I was able to connect my RPi 3B to wi-fi, but after reboot the connection is not restored. Does anybody know how to fix that?
What was tried:
1. ARM Manjaro Minimal 19.06 for RPi3B
Was able to connect, reconnect after reboot, but wasn't able to update even with instructions from here, thus dropped this version.
1.1. Option, which allowed to connect, but didn't keep connection after reboot:
wifi-menu
as suggested here. However, it returned the failed connection.
First, needed to disable the wi-fi via sudo ip link set dev wlan0 down
, then connect to network with wifi-menu
1.2. Option, which allowed to connect and keep connection after reconnect:
As suggested here and here
sudo -i
wpa_passphrase SSID PASS > /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
Than, create file /etc/systemd/network/00-wireless.network
with content:
[Match]
Name=wlan0
[Network]
DHCP=yes
After that, run:
rm /etc/resolv.conf
systemctl enable systemd-networkd
systemctl enable wpa_supplicant@wlan0.conf
systemctl enable systemd-resolved
systemctl start systemd-networkd
systemctl start systemd-resolved
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl start wpa_supplicant@wlan0.conf
reboot
And it worked fine up to the moment, when I needed to upgrade the system, since all mirror returned 404 error. Instructions from here didn't work - results in pacman-mirrors
error. On some other forum met the statement, that update is impossible, since pacman-mirrors
is far too old.
2) ARM Manjaro Minimal 19.12 for RPi4
Tried just for fun on RPi 3B. Surprisingly, it started, but has no wifi-menu
.
I repeated all actions as for previous version, but it gets problem at systemctl start wpa_supplicant@wlan0.conf
. It doesn't want to connect to WiFi. The systemctl status wpa_supplicant@wlan0.conf
demonstrates the dependency problem, but doesn't says what exctly.
I assumed it is a qproblem with the driver and was able to connect to wi-fi via sudo wpa_supplicant -B -Dnl80211 -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
. Then, it connects to wi-fi, but doesn't reconnect after reboot.
Attempted to update:
- connected RPi to the local Wi-Fi network
- downloaded the most recent pacman-mirrorlist to laptop
- connected to it via WinSCP and transferred fresh
pacman-mirrorlist
and installed it withsudo pacman -U ./pacman-mirrorlist*.tar.xz
andsudo pacman-mirrors -g
- after several trials (404 errors) I was able to run
sudo pacman -Syyuu
Extra update via sudo pacman -Syu linux-rpi4-mainline
didn't help too. Need manually run sudo wpa_supplicant -B -Dnl80211 -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
after each reboot.
Also, another issue: right after I connect to Wi-Fi with wpa_supplicant, it can't find any mirror if I run sudo pacman -Syyuu
. Returns the error error: failed retrieving file '*.db' from _somehost_ : Couldn't resolve host: _somehost_
.
The error disappears if I ping any site : ping -c 10 www.google.com
.
Is there a way to make this reconnect permanent and fix these issues?
P.S. Is there a plan to make a Manjaro ARM minimal 20.xx images for RPi for standalone download?