NetBSD Problem Report #60193
From www@netbsd.org Thu Apr 16 06:46:53 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 13FE31A923E
for <gnats-bugs@gnats.NetBSD.org>; Thu, 16 Apr 2026 06:46:53 +0000 (UTC)
Message-Id: <20260416064651.EE3B01A923F@mollari.NetBSD.org>
Date: Thu, 16 Apr 2026 06:46:51 +0000 (UTC)
From: nia@pkgsrc.org
Reply-To: nia@pkgsrc.org
To: gnats-bugs@NetBSD.org
Subject: olimex a64 - no carrier with emac0 ethernet
X-Send-Pr-Version: www-1.0
X-From4GNATS: "nia@pkgsrc.org via gnats" <gnats-admin@NetBSD.org>
>Number: 60193
>Category: port-arm
>Synopsis: olimex a64 - no carrier with emac0 ethernet
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-arm-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 16 06:50:00 +0000 2026
>Last-Modified: Thu May 07 14:00:01 +0000 2026
>Originator: nia
>Release:
>Organization:
The NoNetBSD Foundation
>Environment:
NetBSD arm64 11.99.5 NetBSD 11.99.5 (GENERIC64) #0: Wed Apr 15 16:10:35 UTC 2026 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
The device is never able to get a carrier, but is fully functional on
Olimex's official Linux image.
Starting dhcpcd.
dhcpcd-10.3.1 starting
DUID 00:01:blah
emac0: waiting for carrier
emac0: carrier acquired
emac0: IAID aa:blah
emac0: adding address fe80::d7a0:425e:74e4:eb0e
emac0: carrier lost - roaming
timed out
$ ifconfig
emac0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities=0x3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
capabilities=0x3f00<UDP4CSUM_Rx,UDP4CSUM_Tx>
enabled=0
ec_capabilities=0x1<VLAN_MTU>
ec_enabled=0
address: 02:ba:xx:xx:xx:xx
media: Ethernet autoselect (none)
status: no carrier
inet6 fe80::d7a0:425e:74e4:eb0e%emac0/64 flags 0x8<DETACHED> scopeid 0x
[ 1.000004] emac0 at simplebus1: EMAC
[ 1.000004] emac0: Ethernet address 02:ba:xx:xx:xx:xx
[ 1.000004] emac0: interrupting on GIC irq 114
[ 1.000004] ukphy0 at emac0 phy 1: OUI 0x0010a1, model 0x0022, rev. 2
Full dmesg for the board: https://dmesgd.nycbug.org/dmesgd?do=view&id=8914
>How-To-Repeat:
try to wait for dhcpcd, leave disappointed
>Fix:
might be a problem with the device tree
as temporary solution, attach axe0 over USB
>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@netbsd.org
Cc: port-arm-maintainer@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-arm/60193: olimex a64 - no carrier with emac0 ethernet
Date: Fri, 17 Apr 2026 12:50:20 +0200
On Thu, Apr 16, 2026 at 06:50:01AM +0000, nia@pkgsrc.org via gnats wrote:
> NetBSD arm64 11.99.5 NetBSD 11.99.5 (GENERIC64) #0: Wed Apr 15 16:10:35 UTC 2026 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
> >Description:
> The device is never able to get a carrier, but is fully functional on
> Olimex's official Linux image.
>
> Starting dhcpcd.
> dhcpcd-10.3.1 starting
> DUID 00:01:blah
> emac0: waiting for carrier
> emac0: carrier acquired
> emac0: IAID aa:blah
> emac0: adding address fe80::d7a0:425e:74e4:eb0e
> emac0: carrier lost - roaming
> timed out
> $ ifconfig
> emac0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> capabilities=0x3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
> capabilities=0x3f00<UDP4CSUM_Rx,UDP4CSUM_Tx>
> enabled=0
> ec_capabilities=0x1<VLAN_MTU>
> ec_enabled=0
> address: 02:ba:xx:xx:xx:xx
> media: Ethernet autoselect (none)
> status: no carrier
> inet6 fe80::d7a0:425e:74e4:eb0e%emac0/64 flags 0x8<DETACHED> scopeid 0x
FWIW, I see the same issue with NetBSD 10.0.
At boot the media is properly detected, but bringing the interface up causes
it to loose the media:
# ifconfig
emac0: flags=0x8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
capabilities=0x3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
capabilities=0x3f00<UDP4CSUM_Rx,UDP4CSUM_Tx>
enabled=0
ec_capabilities=0x1<VLAN_MTU>
ec_enabled=0
address: 02:ba:a8:c8:fe:86
media: Ethernet autoselect (1000baseT full-duplex)
status: active
lo0: flags=0x8048<LOOPBACK,RUNNING,MULTICAST> mtu 33624
status: active
# ifconfig emac0 up
# ifconfig
emac0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities=0x3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
capabilities=0x3f00<UDP4CSUM_Rx,UDP4CSUM_Tx>
enabled=0
ec_capabilities=0x1<VLAN_MTU>
ec_enabled=0
address: 02:ba:a8:c8:fe:86
media: Ethernet autoselect (none)
status: no carrier
inet6 fe80::ba:a8ff:fec8:fe86%emac0/64 flags 0x8<DETACHED> scopeid 0x1
lo0: flags=0x8048<LOOPBACK,RUNNING,MULTICAST> mtu 33624
status: active
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60193 CVS commit: src/sys/dev/mii
Date: Tue, 21 Apr 2026 15:57:51 +0000
Module Name: src
Committed By: nia
Date: Tue Apr 21 15:57:51 UTC 2026
Modified Files:
src/sys/dev/mii: micphy.c
Log Message:
micphy: Apply errata workaround for KSZ9031
This fixes ethernet on an olimex a64 board, and should be pulled up
to -11, -10, -9...
Thanks jmcneill for pointing out the problem.
PR port-arm/60193: olimex a64 - no carrier with emac0 ethernet
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/mii/micphy.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60193 CVS commit: [netbsd-11] src/sys
Date: Thu, 7 May 2026 13:46:47 +0000
Module Name: src
Committed By: martin
Date: Thu May 7 13:46:47 UTC 2026
Modified Files:
src/sys/arch/evbarm/conf [netbsd-11]: GENERIC64
src/sys/dev/mii [netbsd-11]: micphy.c
Log Message:
Pull up following revision(s) (requested by nia in ticket #260):
sys/arch/evbarm/conf/GENERIC64: revision 1.232
sys/dev/mii/micphy.c: revision 1.16
sys/dev/mii/micphy.c: revision 1.17
Add micphy for Micrel KSZ[89]xxx PHY support
micphy: Apply errata workaround for KSZ9031
This fixes ethernet on an olimex a64 board.
Thanks jmcneill for pointing out the problem.
PR port-arm/60193: olimex a64 - no carrier with emac0 ethernet
micphy: Fill out mii_mpd_model in the sc struct.
The rest of the code expects this to be filled in and the driver
seems stable with this change (at least on my machine).
"ship it!" jmcneill@
To generate a diff of this commit:
cvs rdiff -u -r1.226.2.1 -r1.226.2.2 src/sys/arch/evbarm/conf/GENERIC64
cvs rdiff -u -r1.15 -r1.15.10.1 src/sys/dev/mii/micphy.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60193 CVS commit: [netbsd-10] src/sys
Date: Thu, 7 May 2026 13:55:44 +0000
Module Name: src
Committed By: martin
Date: Thu May 7 13:55:44 UTC 2026
Modified Files:
src/sys/arch/evbarm/conf [netbsd-10]: GENERIC64
src/sys/dev/mii [netbsd-10]: micphy.c
Log Message:
Pull up following revision(s) (requested by nia in ticket #1257):
sys/arch/evbarm/conf/GENERIC64: revision 1.232
sys/dev/mii/micphy.c: revision 1.16
sys/dev/mii/micphy.c: revision 1.17
Add micphy for Micrel KSZ[89]xxx PHY support
micphy: Apply errata workaround for KSZ9031
This fixes ethernet on an olimex a64 board.
Thanks jmcneill for pointing out the problem.
PR port-arm/60193: olimex a64 - no carrier with emac0 ethernet
micphy: Fill out mii_mpd_model in the sc struct.
The rest of the code expects this to be filled in and the driver
seems stable with this change (at least on my machine).
"ship it!" jmcneill@
To generate a diff of this commit:
cvs rdiff -u -r1.206.2.6 -r1.206.2.7 src/sys/arch/evbarm/conf/GENERIC64
cvs rdiff -u -r1.15 -r1.15.2.1 src/sys/dev/mii/micphy.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.