MacchiatoBIN - eth0: could not attach PHY

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

MacchiatoBIN - eth0: could not attach PHY

Postby Torxed » Tue May 04, 2021 8:07 pm

So I don't even know where to begin or if it's my incompetence getting in my way.
But whenever I try to do
Code: Select all
#ip link set dev eth0 up
I get:
Code: Select all
mvpp2 f4000000.ethernet eth0: could not attach PHY (-19)
RTNETLINK answers: No such device


The little documentation on this I could find points to an older kernel having an issue: https://bugzilla.kernel.org/show_bug.cgi?id=201563

But I'm running:
Code: Select all
Linux alarm 5.11.4-1-ARCH #1 SMP Sun Mar 7 23:46:10 UTC 2021 aarch64 GNU/Linux

And not the old 4.18 kernel mentioned in that threat from 2018. So I hope (and assume) that this is fixed in the latest kernel?

For what it's worth it's a MacchiatoBin Single Shot, and not the Double Shot.
Installed it today so running the latest mirror packages. Followed the installation instructions on https://archlinuxarm.org/platforms/armv ... cchiatobin and so far it's been working perfectly with the RJ45 connection, but the SFP+'s just refuse to get link or be told to be up. Strangely I don't get "no-carrier" even when I unplug the LC-connectors from the SFP+.. But since I don't have a reference I'm not sure that's an issue or a feature..

Any help would be appreciated! :)
Torxed
 
Posts: 6
Joined: Mon Aug 05, 2013 3:40 pm

Re: MacchiatoBIN - eth0: could not attach PHY

Postby Torxed » Tue May 04, 2021 8:56 pm

Seams to be related to the Single Shot board, as the default kernel ships with kernel configuration attempting to access the RJ45 chip which doesn't exist and it errors out in dmesg when trying to set certain parameters.

http://macchiatobin.net/forums/topic/ke ... la/page/4/

This thread explains the issue a bit, and it appears that the official Macchiato docs (http://wiki.macchiatobin.net/tiki-index ... e+-+Kernel) specify that these changes need to be made. And this is something that https://archlinuxarm.org/platforms/armv ... cchiatobin isn't particularly clear on.

I don't know how to contribute to the Arch ARM project, so I don't know how to submit a change for this.
Ideally there would be two installation instructions or kernels to download, or notes regarding the single-shot board and how to compile away the flags that causes the issue. But ideally having support for this "kernel" (more or less just one driver that needs to be compiled) would be great, so that pacman updates doesn't break manual changes over time.
Torxed
 
Posts: 6
Joined: Mon Aug 05, 2013 3:40 pm

Re: MacchiatoBIN - eth0: could not attach PHY

Postby Torxed » Tue May 04, 2021 9:24 pm

I spoke too soon.. The driver is already shipped with Arch Linux ARM, just not mentioned anywhere.
Code: Select all
/boot/dtbs/marvel/armada-8040-mcbin-singleshot.dtb

Should be renamed to:
Code: Select all
/boot/dtbs/marvel/armada-8040-mcbin.dtb

After that the Single Shot board works perfectly fine with the arch instructions in general.
Torxed
 
Posts: 6
Joined: Mon Aug 05, 2013 3:40 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 6 guests