Hi
I try to get the interfaces swp0-swp3 to run. I use the following software
root@LS1028ARDB-Ubuntu:~# uname -a
Linux LS1028ARDB-Ubuntu 5.4.3-rt1 #1 SMP PREEMPT_RT Wed May 27 07:13:13 CEST 2020 aarch64 aarch64 aarch64 GNU/Linux
The following release was used to build the os:
OpenIL-v1.8-202005
I try to setup the switch interfaces as described in LSDKUG_Rev19.09 Figure 211. The output of the given script is:
setup_bridge.sh setup_eno0.sh setup_switch.sh
root@LS1028ARDB-Ubuntu:~# ./setup_switch.sh
RTNETLINK answers: Network is down
RTNETLINK answers: Network is down
RTNETLINK answers: Network is down
RTNETLINK answers: Network is down
ls: cannot access '/sys/bus/pci/devices/0000:00:00.6/net/': No such file or directory
Not enough information: "dev" argument is required.
Also i can not bring the interfaces up manually (eno0 works fine dhc and everything works!)
I suspect a driver problem, however it seem the felix driver is there:
root@LS1028ARDB-Ubuntu:~# dmesg | grep "felix"
[ 2.966984] mscc_felix 0000:00:00.5: Adding to iommu group 1
[ 2.967221] mscc_felix 0000:00:00.5: Failed to register DSA switch: -517
[ 3.467052] mscc_felix 0000:00:00.5: Found PCS at internal MDIO address 0
[ 3.467337] mscc_felix 0000:00:00.5: Found PCS at internal MDIO address 1
[ 3.467610] mscc_felix 0000:00:00.5: Found PCS at internal MDIO address 2
[ 3.467882] mscc_felix 0000:00:00.5: Found PCS at internal MDIO address 3
[ 3.728010] mscc_felix 0000:00:00.5 swp0 (uninitialized): PHY [0000:00:00.3:10] driver [Microsemi GE VSC8514 SyncE]
[ 3.967994] mscc_felix 0000:00:00.5 swp1 (uninitialized): PHY [0000:00:00.3:11] driver [Microsemi GE VSC8514 SyncE]
[ 4.207994] mscc_felix 0000:00:00.5 swp2 (uninitialized): PHY [0000:00:00.3:12] driver [Microsemi GE VSC8514 SyncE]
[ 4.455995] mscc_felix 0000:00:00.5 swp3 (uninitialized): PHY [0000:00:00.3:13] driver [Microsemi GE VSC8514 SyncE]
[ 4.456423] mscc_felix 0000:00:00.5: configuring for fixed/internal link mode
[ 4.456447] mscc_felix 0000:00:00.5: Link is Up - 2.5Gbps/Full - flow control off
root@LS1028ARDB-Ubuntu:~#
Any Ideas how to bring up the switch interfaces?
Hello zing@zhaw.ch,
I am facing a similar issue. Can you please share setup_bridge.sh, setup_eno0.sh and setup_switch.sh files?
Regards,
Sameer
Please refer to the attached script and the following test procedure.
root@ls1028ardb:~# bash +x enetc_switch_cpu_port_without_bridge_dsa.sh
[ 79.858412] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[ 79.869942] fsl_enetc 0000:00:00.2 eno2: Link is Up - 1Gbps/Full - flow control off
[ 79.875622] 8021q: adding VLAN 0 to HW filter on device eno2
[ 79.883568] IPv6: ADDRCONF(NETDEV_CHANGE): eno2: link becomes ready
[ 79.890333] mscc_felix 0000:00:00.5 swp0: configuring for inband/qsgmii link mode
[ 79.898883] 8021q: adding VLAN 0 to HW filter on device swp0
[ 79.907080] mscc_felix 0000:00:00.5 swp1: configuring for inband/qsgmii link mode
[ 79.915531] 8021q: adding VLAN 0 to HW filter on device swp1
[ 79.923639] mscc_felix 0000:00:00.5 swp2: configuring for inband/qsgmii link mode
[ 79.932112] 8021q: adding VLAN 0 to HW filter on device swp2
[ 79.940204] mscc_felix 0000:00:00.5 swp3: configuring for inband/qsgmii link mode
[ 79.948625] 8021q: adding VLAN 0 to HW filter on device swp3
root@ls1028ardb:~# echo $?
0
root@ls1028ardb:~# ifconfig swp0 down
root@ls1028ardb:~# echo $?
0
root@ls1028ardb:~# ifconfig swp0 100.1.1.29 netmask 255.255.255.0
[ 90.042476] mscc_felix 0000:00:00.5 swp0: configuring for inband/qsgmii link mode
[ 90.050569] 8021q: adding VLAN 0 to HW filter on device swp0
root@ls1028ardb:~# echo $?
0
root@ls1028ardb:~# [ 93.131335] mscc_felix 0000:00:00.5 swp0: Link is Up - 1Gbps/Full - flow control off
[ 93.139218] IPv6: ADDRCONF(NETDEV_CHANGE): swp0: link becomes ready
ifconfig swp0 up
root@ls1028ardb:~# echo $?
0
root@ls1028ardb:~# ping -c 5 -s 1 100.1.1.1
PING 100.1.1.1 (100.1.1.1) 1(29) bytes of data.
9 bytes from 100.1.1.1: icmp_seq=1 ttl=64
9 bytes from 100.1.1.1: icmp_seq=2 ttl=64
9 bytes from 100.1.1.1: icmp_seq=3 ttl=64
9 bytes from 100.1.1.1: icmp_seq=4 ttl=64
9 bytes from 100.1.1.1: icmp_seq=5 ttl=64
--- 100.1.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4081ms
Hi Sir, I am using LS1028A board,
how can I print the debug message as follows when using 'ifconfig' :
root@ls1028ardb:~# ifconfig swp0 100.1.1.29 netmask 255.255.255.0
[ 90.042476] mscc_felix 0000:00:00.5 swp0: configuring for inband/qsgmii link mode
[ 90.050569] 8021q: adding VLAN 0 to HW filter on device swp0
Thanks for your response and adjusted script! Interfaces are now up and I can use them.