[Macchiato] macchiatobin problem

alpha_one_x86 alpha_one_x86 at first-world.info
Thu Nov 1 14:20:33 GMT 2018


Dear Baruch Siach,

*Your patch worked, some body can push it in upstream?*

I remain blocked on:

ethtool -m eth3
Cannot get module EEPROM information: Operation not supported

[   22.265548] mvpp2 f4000000.ethernet eth3: configuring for
inband/2500base-x link mode
[   22.266897] IPv6: ADDRCONF(NETDEV_UP): eth3: link is not ready

I try do work:

https://www.fs.com/products/48929.html Cisco GLC-LH-SM-20 Compatible
1000BASE-LX/LH SFP 1310nm 20km DOM Transceiver Module

But failed, maybe not dynamically down to 1G.

Cheers,

On 11/01/18 07:23, Baruch Siach wrote:
> Hi Alpha,
>
> Please keep the Macchiato list on Cc
>
> alpha_one_x86 writes:
>>> If this is the case, what DT are you using? Note that mainline kernel 
>>> armada-8040-mcbin.dts is meant for the DoubleShot, which has 88x3310 PHYs on 
>>> eth0 and eth1 (marked U2 and U3 on the PCB). These PHYs are not assembled on 
>>> the SingleShot. Instead, both interfaces are directly connected to SFP cages. 
>>> So the error message (-19 == -ENODEV) is correct. You need to remove the PHYs 
>>> description from the DT for the SingleShot.
>> I have Single Shot. And for vanilla I use armada-8040-mcbin.dts/dtb
>> Can you indicate me how change the dts? (maybe send me a patch), I see
>> multiple eth0, eth1, ... ref.
> The ethX reference is quite confusing indeed. When you see cpX_ethY it
> refers to different Ethernet MAC instances on each CP. There are two
> CP110 (cp0 and cp1), each with three Ethernet MACs.
>
> For the Single Shot you can try the following completely untested patch
> against v4.19.
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
> index 56fa44860909..3da9b4cd78a4 100644
> --- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
> +++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
> @@ -227,22 +227,6 @@
>  	};
>  };
>  
> -&cp0_xmdio {
> -	status = "okay";
> -
> -	phy0: ethernet-phy at 0 {
> -		compatible = "ethernet-phy-ieee802.3-c45";
> -		reg = <0>;
> -		sfp = <&sfp_eth0>;
> -	};
> -
> -	phy8: ethernet-phy at 8 {
> -		compatible = "ethernet-phy-ieee802.3-c45";
> -		reg = <8>;
> -		sfp = <&sfp_eth1>;
> -	};
> -};
> -
>  &cp0_ethernet {
>  	status = "okay";
>  };
> @@ -250,10 +234,11 @@
>  &cp0_eth0 {
>  	status = "okay";
>  	/* Network PHY */
> -	phy = <&phy0>;
>  	phy-mode = "10gbase-kr";
>  	/* Generic PHY, providing serdes lanes */
>  	phys = <&cp0_comphy4 0>;
> +	managed = "in-band-status";
> +	sfp = <&sfp_eth0>;
>  };
>  
>  &cp0_sata0 {
> @@ -288,10 +273,11 @@
>  &cp1_eth0 {
>  	status = "okay";
>  	/* Network PHY */
> -	phy = <&phy8>;
>  	phy-mode = "10gbase-kr";
>  	/* Generic PHY, providing serdes lanes */
>  	phys = <&cp1_comphy4 0>;
> +	managed = "in-band-status";
> +	sfp = <&sfp_eth1>;
>  };
>  
>  &cp1_eth1 {
>
> Hope this helps,
> baruch
>

-- 
alpha_one_x86/BRULE Herman <alpha_one_x86 at first-world.info>
Main developer of Supercopier/Ultracopier/CatchChallenger, Esourcing and server management
IT, OS, technologies, research & development, security and business department

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einval.com/pipermail/macchiato/attachments/20181101/3a80c369/attachment.html>


More information about the Macchiato mailing list