ls1028 switch doesn't work

cancel
Showing results for 
Search instead for 
Did you mean: 

ls1028 switch doesn't work

640 Views
afterdream
Contributor II

hi,

My ls1028 hardware sets the switch‘s four port as sgmii-2.5G,setting the serdes1 sgmii-2.5 by rcw=7777

2021-08-26_133029.png

but,running  the order “ifconfig -a”,I cannot find  swp0 swp1 swp2 swp3

and,the path /sys/bus/pci/devices/0000:00:00.5/net/  doesn't exit,not having swp0-3 also

That's why?

May I missed some other software configuration?

tks!

 

0 Kudos
3 Replies

610 Views
yipingwang
NXP TechSupport
NXP TechSupport

For Kernel configuration, please refer to the following.

CONFIG_MSCC_OCELOT_SWITCH=y

CONFIG_NET_DSA_MSCC_FELIX=y

CONFIG_FSL_ENETC_MDIO=y

For dts configuration, please refer to mscc_felix_ports device node definition in arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-7777.dts in Linux Kernel source code.

fragment@1 {
target = <&mscc_felix_ports>;
__overlay__ {
port@0 {
status = "okay";
phy-handle = <&slot1_sxgmii0>;
phy-mode = "2500base-x";
};

port@1 {
status = "okay";
phy-handle = <&slot1_sxgmii1>;
phy-mode = "2500base-x";
};

port@2 {
status = "okay";
phy-handle = <&slot1_sxgmii2>;
phy-mode = "2500base-x";
};

port@3 {
status = "okay";
phy-handle = <&slot1_sxgmii3>;
phy-mode = "2500base-x";
};
};
};

0 Kudos

594 Views
afterdream
Contributor II
hi,
几个问题请假一下:
 
(1)ls1028  enetc的port2 和 switch port4内部是mac2mac连接的,但是fsl-ls1028a.dtsi中,为什么使用的fixed link不一样呢?
 
afterdream_3-1630309703513.pngafterdream_4-1630309730913.png
 
(2)通过dmesg查看启动log,发现dsa交换机在注册的时候出错,难道enetc port2在连接switch port4存在问题,这个一般是什么问题?
[    3.319766] 000: fsl_enetc 0000:00:00.2 eth1: error -22 setting up slave phy
[    3.320131] 000: mscc_felix 0000:00:00.5: Failed to register DSA switch: -22
[    3.320488] 000: mscc_felix: probe of 0000:00:00.5 failed with error -22
 
(3)enetc port2接口模式需要设置吗
afterdream_5-1630309798135.png

 

 
0 Kudos

219 Views
xinliwang
Contributor III

我也遇到同样的问题,请问如何解决的?为什么会出现TTTT呢?

0 Kudos