Skip to content
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

Pi400 (pi4) keeps trying unplugged ethernet #36

Open
lawik opened this issue Oct 8, 2021 · 0 comments
Open

Pi400 (pi4) keeps trying unplugged ethernet #36

lawik opened this issue Oct 8, 2021 · 0 comments

Comments

@lawik
Copy link

lawik commented Oct 8, 2021

Describe the bug

Setting up a normal pi4 project from nerves.new I keep getting messages (both on a connected display, punching through whatever I'm doing) and in the logs:

13:36:59.861 [error] could not attach to PHY
13:36:59.867 [error] bcmgenet fd580000.ethernet eth0: failed to connect to PHY
13:36:59.888 [debug] ip:ip: SIOCSIFFLAGS: No such device
13:36:59.889 [error] Nonzero exit from ip, ["link", "set", "eth0", "up"]: 2

RingLogger gave me some more:

14:37:24.893 [info]  RouteManager: clear_route eth0
14:37:24.895 [warn]  RouteManager: set_connection_status to :disconnected on unknown ifname: eth0
14:37:24.906 [warn]  bcmgenet: Skipping UMAC reset
14:37:24.906 [error] could not attach to PHY
14:37:24.912 [error] bcmgenet fd580000.ethernet eth0: failed to connect to PHY
14:37:24.931 [debug] ip:ip: SIOCSIFFLAGS: No such device                            
14:37:24.932 [error] Nonzero exit from ip, ["link", "set", "eth0", "up"]: 2                           
14:37:24.932 [debug] VintageNet(eth0): :configuring -> done error: retrying after 30000 ms

To Reproduce

  • Set up a Nerves project for the pi4
  • Set it up for wifi
  • Burn firmware and put it in the Pi400
  • Logging

Or try this more involved repo: https://github.com/lawik/deck

Expected behavior
It should chill eventually :)

VintageNet Info

iex([email protected])4> VintageNet.info
VintageNet 0.11.1

All interfaces:       ["eth0", "lo", "wlan0"]
Available interfaces: ["wlan0"]

Interface eth0
  Type: VintageNetEthernet
  Present: true
  State: :retrying (8.2 s)
  Connection: :disconnected (0:03:08)
  Configuration:
    %{ipv4: %{method: :dhcp}, type: VintageNetEthernet}

Interface usb0
  Type: VintageNetDirect
  Present: false
  Configuration:
    %{type: VintageNetDirect}

Interface wlan0
  Type: VintageNetWiFi
  Present: true
  State: :configured (0:03:07)
  Connection: :internet (0:02:57)
  Addresses: 192.168.3.71/24, fe80::e65f:1ff:fe48:b03/64
  Configuration:

Environment

lawik@monolith:~/projects/deck$ mix nerves.env --info
==> nerves
==> deck
|nerves_bootstrap| Environment Package List

  Pkg:         nerves_system_br
  Vsn:         1.16.4
  Type:        system_platform
  BuildRunner: {nil, []}

  Pkg:         nerves_system_rpi4
  Vsn:         1.16.2
  Type:        system
  BuildRunner: {Nerves.Artifact.BuildRunners.Local, [make_args: ["source", "all"]]}

  Pkg:         nerves_toolchain_aarch64_nerves_linux_gnu
  Vsn:         1.4.3
  Type:        toolchain
  BuildRunner: {Nerves.Artifact.BuildRunners.Local, []}

  Pkg:         nerves_toolchain_ctng
  Vsn:         1.8.4
  Type:        toolchain_platform
  BuildRunner: {nil, []}

|nerves_bootstrap| Loadpaths Start

Nerves environment
  MIX_TARGET:   rpi4
  MIX_ENV:      dev

|nerves_bootstrap| Environment Variable List
  target:     rpi4
  toolchain:  /home/lawik/.nerves/artifacts/nerves_toolchain_aarch64_nerves_linux_gnu-linux_x86_64-1.4.3
  system:     /home/lawik/.nerves/artifacts/nerves_system_rpi4-portable-1.16.2
  app:        .

|nerves_bootstrap| Loadpaths End

Additional context

Frank's suspicions from Slack:

"VintageNet is really trying on that port. I think this is a bug. Wired Ethernet on other devices doesn't do that."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant