Wifi and Wired network stopped working all together

This forum is for discussion about general software issues.

Wifi and Wired network stopped working all together

Postby Scott10 » Fri Sep 24, 2021 9:01 pm

Well, it was working yesterday normally. Then now I turned on the computer and it wouldn't find any network at all. Tried using cable connection, does not work as well.

Then I tried to turn on wired connections manually and it just closes the network menu, as if it's crashing. Tried to find an answer, but couldn't.

Installed ElementaryOS because it looked like easy to use and clean, but I'm a newbie programmer and newbie in linux as well.
Scott10
 
Posts: 1
Joined: Fri Sep 24, 2021 8:54 pm

Can't connect to network after update & v8 image no work.

Postby 4rt » Mon Nov 01, 2021 5:27 am

On a fresh install on a raspberry pi 4b 4gb and CM4 8 gb using v8 aarch64 I can boot and it automatically connects to network however I run only the following 3 commands (to setup pacman and then update) and then reboot and I can no longer connect to network.
pacman-key --init
pacman-key --populate archlinuxarm
pacman -Syu
reboot

ip addr:
$this->bbcode_second_pass_code('', '1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever')

I don't think I had this issue a week ago.

Somewhat related issue:
The v8 image/tar/package for rpi doesn't work, in order to use v8 i'm using the following method to get 64bit (consists of copying firmware files from v7 package to the generic aarch64 package and then making Image kernel8.img so the rpi can boot it):
$this->bbcode_second_pass_code('', '
mkdir v7
wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-4-latest.tar.gz
bsdtar -xpf ArchLinuxARM-rpi-4-latest.tar.gz -C v7
wget http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
mkfs.vfat /dev/sdb1
mkfs.ext4 /dev/sdb2
mount /dev/sdb1 boot
mount /dev/sdb2 root
bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C root
sync
mv root/boot/* boot
cp -r v7/boot/bootcode.bin v7/boot/start4x.elf v7/boot/start4.elf v7/boot/start4cd.elf v7/boot/fixup4x.dat v7/boot/fixup4.dat v7/boot/fixup4cd.dat v7/boot/bcm2711-rpi-cm4.dtb v7/boot/bcm2711-rpi-4-b.dtb v7/boot/overlays boot
mv boot/Image boot/kernel8.img
echo $'dtoverlay=vc4-kms-v3d\ndtoverlay=miniuart-bt\nenable_uart=1\ninitramfs initramfs-linux.img followkernel' > boot/config.txt
echo $'root=/dev/mmcblk0p2 rw rootwait console=serial0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=serial0,115200' > boot/cmdline.txt
umount boot root
')

I've also noticed that using/downloading firmware files directly from the raspberry pi firmware releases github to create a boot image from the generic v8 tar package doesn't work too well, it boots and I can SSH however there is no HDMI output, I just get stuck on the rainbow screen, however I can SSH and or serial login so I resort to the above method.

Am I the only one with this issue? I feel like I am, does anyone know why I may be having this/these issues?
4rt
 
Posts: 14
Joined: Mon Oct 18, 2021 3:39 am

Re: Can't connect to network after update & v8 image no work

Postby graysky » Mon Nov 01, 2021 10:56 am

MOD NOTE: merged topics

I assume wired network? Which link LEDs for the NIC are active when it boots? What output is shown for systemctl status systemd-networkd? What about networkctl? You are not giving any data for people to see to help you.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Wifi and Wired network stopped working all together

Postby 4rt » Mon Nov 01, 2021 4:07 pm

Sorry, I wasn't really sure what additional information I should provide. Anyway, yes, wired network both green and orange LED's on the NIC are solid during and after boot, no blinking what so ever (this is after the update).

systemd-networkd
$this->bbcode_second_pass_code('', '
* systemd-networkd.service - Network Configuration
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled;>
Active: active (running) since Fri 2021-10-29 16:07:01 UTC; 2 days ago
TriggeredBy: * systemd-networkd.socket
Docs: man:systemd-networkd.service(8)
Main PID: 305 (systemd-network)
Status: "Processing requests..."
Tasks: 1 (limit: 4220)
Memory: 2.6M
CPU: 94ms
CGroup: /system.slice/systemd-networkd.service
`-305 /usr/lib/systemd/systemd-networkd

Oct 29 16:07:00 alarm systemd[1]: Starting Network Configuration...
Oct 29 16:07:01 alarm systemd-networkd[305]: lo: Link UP
Oct 29 16:07:01 alarm systemd-networkd[305]: lo: Gained carrier
Oct 29 16:07:01 alarm systemd-networkd[305]: Enumeration completed
Oct 29 16:07:01 alarm systemd[1]: Started Network Configuration.
')

networkctl didn't work however netctl did
$this->bbcode_second_pass_code('', '
* netctl.service - (Re)store the netctl profile state
Loaded: loaded (/usr/lib/systemd/system/netctl.service; disabled; vendor p>
Active: inactive (dead)
Docs: man:netctl.special(7)
')

so I noticed this issue because I was trying to learn ansible and it was driving me crazy because I would set my system up through a playbook and it seemed like everything was working fine but then I would reboot and no network connection, I thought I was doing something wrong however when I broke the playbook out into individual commands I noticed the issue happened after updating. During system setup I tried to setup a static ip using netctl, using the following:

/etc/netctl/eth0
$this->bbcode_second_pass_code('', '
Description=`Static IP'
Interface=eth0
Connection=ethernet
IP=static
Address=('192.168.1.227/24')
Gateway='192.168.1.1'
DNS=('192.168.1.1')
')

netctl enable eth0
systemctl stop dhcpcd
systemctl disable dhcpcd

but when I reboot I still have this issue.
I also tried doing this (setup static IP via netctl) after the update and reboot but no luck.

I also tried to setup static IP using systemd-networkd using ansible however not manually which is what I will try next when I get the chance.
4rt
 
Posts: 14
Joined: Mon Oct 18, 2021 3:39 am

Re: Wifi and Wired network stopped working all together

Postby graysky » Mon Nov 01, 2021 4:47 pm

Don't mess with netctl, just use systemd-networkd: https://wiki.archlinux.org/title/System ... _static_IP

Works fine here.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Wifi and Wired network stopped working all together

Postby 4rt » Mon Nov 01, 2021 6:46 pm

So I tried networkd with no luck, it looks like after update my interfaces aren't even being recognized, for instance on fresh install:

resolvectl status
$this->bbcode_second_pass_code('', '
Global
Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: uplink
Fallback DNS Servers: 1.1.1.1 9.9.9.10 8.8.8.8 2606:4700:4700::1111 2620:fe::10 2001:4860:4860::8888

Link 2 (eth0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.1.1
DNS Servers: 192.168.1.1

Link 3 (wlan0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
')
networkctl list
$this->bbcode_second_pass_code('', '
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether routable configured
3 wlan0 wlan off unmanaged

3 links listed.
')
netstat -i
$this->bbcode_second_pass_code('', '
Kernel Interface table
Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 163 0 60 0 83 0 0 0 BMRU
lo 65536 0 0 0 0 0 0 0 0 LRU
')

after update (pacman -Syu)

resolvectl status
$this->bbcode_second_pass_code('', '
Global
Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Fallback DNS Servers: 1.1.1.1 9.9.9.10 8.8.8.8 2606:4700:4700::1111 2620:fe::10
2001:4860:4860::8888
')
networkctl list
$this->bbcode_second_pass_code('', '
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged

1 links listed.
')
netstat -i
$this->bbcode_second_pass_code('', '
Kernel Interface table
Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
lo 65536 0 0 0 0 0 0 0 0 LRU
')

I tried to set networkd up by making the following file:
/etc/systemd/network/wired.network
$this->bbcode_second_pass_code('', '
[Match]
Name=eth0

[Network]
Address=192.168.1.227/24
Gateway=192.168.1.1
DNS=192.168.1.1
')
I noticed there was also /etc/systemd/network/en.network and /etc/systemd/network/eth.network and they had configs for a wired network interface as well, and I figured this may cause issues because they define the same interface so I renamed them just in case

Then I ran :
# systemctl start systemd-networkd.service
# systemctl enable systemd-networkd.service
# systemctl stop netctl
# systemctl disable netctl

and because documentation says you need to configuure systemd-resolved if uyou have a DNS entry I ran
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
as the files already existed I didnt need to create it I just ran ithe command to create the symlink as documentation recommends .

I tried this both before and after update and reboot but have had no luck.

So I have no idea why but I have tried this on different rpi4b's and CM4s as well as use different SD cards so it can't be hardware, is there something that may be subtle that i missed on documentation and that's causing me these issues? I mean I can't even get the default v8 package to boot I have to manually go and create my own and I don't see anyone else on the forum complaining about this, so it just feels like I'm missing something obvious or doing something wrong.
4rt
 
Posts: 14
Joined: Mon Oct 18, 2021 3:39 am

Re: Wifi and Wired network stopped working all together

Postby 4rt » Mon Nov 01, 2021 9:22 pm

Soo I don't have an interface defined(?) in /sys/class/net so I tried to copy /sys/class/eth0 into home directory before the update and then copy it back over to /sys/class/net after update and reboot but I just get :

cp: cannot create directory '/sys/class/net/eth0': Operation not permitted

soooo, any ideas on how I can overcome this?

Edit: I'm going off of this https://wiki.archlinux.org/title/Network_configuration/Ethernet#Device_driver so I'll report back soon

The issue is I don't get any output from : lspci -v ... but that wouldn't work anyway would it because the network PHY isn't part of the pci interface on a rpi is it?

ifconfig eth0 up returns : eth0: ERROR while getting interface flags: No such device

Why would an update cause this to happen? Can anyone point me in a direction as to what is changing to cause this? Maybe avoid updating a certain package or something?
Last edited by 4rt on Mon Nov 01, 2021 9:52 pm, edited 1 time in total.
4rt
 
Posts: 14
Joined: Mon Oct 18, 2021 3:39 am

Re: Wifi and Wired network stopped working all together

Postby armuseru » Mon Nov 01, 2021 9:42 pm

If the update caused the problem, you can rollback one package at a time, relboot and check the changes. Of course, unless this is a fresh installation and the package cache has not been cleared.
ls -l -c /var/cache/pacman/pkg | less
Navigate by date, use arrow keys and q to quit. Package could be rolled back by
sudo pacman -U /var/cache/pacman/pkg/pkg_name

sudo dmesg | grep net
(or sdio, spi, i2c, WLAN...) may help to find device
Last edited by armuseru on Mon Nov 01, 2021 10:02 pm, edited 1 time in total.
armuseru
 
Posts: 34
Joined: Sat Jan 09, 2021 9:36 am

Re: Wifi and Wired network stopped working all together

Postby 4rt » Mon Nov 01, 2021 9:55 pm

Yea, it is a fresh install, but it should still work because there's a connection before I run pacman -Syu so the originals should still be there right? Any idea which package specifically is causing this?

It's also kinda hard to navigate menus and logs because this is headless and I'm using serial to communicate with it at the moment. I mean it's not impossible but it's not SSH either.

I guess I'll just check one package at a time in that case because I'm updating everything at once, or rather there 54 packages that are updating.
4rt
 
Posts: 14
Joined: Mon Oct 18, 2021 3:39 am

Re: Wifi and Wired network stopped working all together

Postby armuseru » Mon Nov 01, 2021 10:19 pm

Well, I guess it could be the kernel.
For fresh installation, I may suggest to updating not all packages at once.
pacman -Syu but press n, then pacman -S with list of selected packages
armuseru
 
Posts: 34
Joined: Sat Jan 09, 2021 9:36 am

Next

Return to General

Who is online

Users browsing this forum: No registered users and 9 guests