-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry pi 5 sometimes won't connect to LAN. #1922
Comments
Really no idea? I know of multiple cases with this problem. |
Are you saying the network installer is somehow breaking the lan connection when Linux boots? |
Yes. I managed to catch this error. I turned on the RPI5 and entered the installer using the shift key. I wanted to download and install the OS. The installer informed me that I was not connected to the network. However, the LAN connector was connected, the LEDs indicated traffic. It was possible to ping the RPI5 from the router. This status is also transferred to the running Linux. After booting Linux, the RPI5 receives an IP address, but cannot ping the router gateway. However, the router can ping the RPI5. The error can be fixed either by disconnecting and connecting the LAN connector or by disabling and enabling the network through Network Manager. |
Sorry, still confused. You were in the network installer you weren't getting an IP address. How did you then boot Linux? |
I have a Raspberry pi 5 with SSD. I have Raspbian installed on the SSD and it boots. I wanted to try another OS using the installer (holding the shift key during the boot process) and online installation. At this step, the mentioned failure occurred: no network connection. EDIT: |
Right so it's not a problem "caused" by the network installer. Obviously I'm not seeing this problem. Can you post the output of "ip addr" before and after it works?
Why do you think that? Could it not be an interoperability problem with your router? |
I published the outputs here: #6420 |
I assume you actually mean an NVMe disk. Once you're connected you could use the imager on the OS to flash a blank SD card with an image. It would be interesting to know if you only have the problem when booting from this NVMe. Your ethernet adapter seems to have a funny name. How did you setup this disk? Your ethernet adapter seems to have renamed itself end0 which might have some bearing on the problem? |
I also have a problem with booting from the SD card. I don't think the problem is in the OS, but before the OS boots. When I get to the Network installer (shift key when turning on the RPI), no OS is booted yet and the network is sometimes unavailable. |
The network installer that gets downloaded IS a linux image that's booted onto your device. |
Below I attach the output when the error occurs. It's from a fresh OS install. `ip a dmesg | grep eth0 ip link show eth0 ip neigh lspci | grep Ethernet ping from router to RPI: |
It's as if your router isn't responding to arp. Does the arp command show anything interesting? |
ARP did not show anything interesting. Maybe the problem is the insufficient shutdown of RPI5. I installed the RPI5 in a Pironman 5 box (https://www.sunfounder.com/products/pironman-5-nvme-m-2-ssd-pcie-mini-pc-case-for-raspberry-pi-5). It is still under standby voltage even after shutdown. Maybe the network doesn't "shut down enough" and stays in an indeterminate state. I notice the problem more on reboot than when turning on the RPI5 itself. Edit: |
Does it behave better if you remove the static IP address from the router? I can't really imagine why it would make a difference but it might be worth a try. |
I tried running things, but the result was the same. I let the IP address be assigned via DHCP without filtering by MAC address, assigning the IP address depending on the MAC address, I set a static IP address on the RPI5. It did not solve the problem. As I wrote, the problem must be somewhere at the firmware level, or I have faulty hardware. |
I wouldn't rule it out but I doubt it's a firmware problem.
I didn't quite follow all this. Are you still using a static IP address or not? If not, is the DHCP server the router or another machine? Can you run the following two commands and post the output just for my curiosity?
|
sudo vcgencmd otp_dump | grep "5[1-2]:" Returns: 0000000012345678 It doesn't know if you wanted an output when the network connection is faulty. The output provided is from a problem-free network connection. |
I started RPI5, pressed SHIFT. RPI loaded Network installer and then lost network connection. Could not use Network installer. Replugging the network cable solved the problem.
Losing LAN connection happens very randomly - about once in 7 to 10 boots.
If I continue to boot linux in a bad state, then it is not possible to ping the router from the RPI, but it is possible to ping the RPI from the router.
I originally suspected the Linux driver (#6420), but the error occurs before it even boots.
Device (s)
Raspberry Pi 5
System
cat /etc/rpi-issue
Raspberry Pi reference 2024-03-15
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, f19ee211ddafcae300827f953d143de92a5c6624, stage2
vcgencmd version
2024/10/10 00:36:47
Copyright (c) 2012 Broadcom
version 0e63dd5e (release) (embedded)
uname -a
Linux raspi5 6.6.44-v8+ raspberrypi/linux#1789 SMP PREEMPT Mon Aug 5 15:22:52 BST 2024 aarch64 GNU/Linux
The text was updated successfully, but these errors were encountered: