nxp-archive / openil

OpenIL is an open source project based on Buildroot and designed for embedded industrial solution.
Other
136 stars 55 forks source link

LS1028a: 802.1qbv test #103

Open crow1814 opened 2 years ago

crow1814 commented 2 years ago

Hi, I have built an image on an SD boot with nxp_ls1028ardb-64b_defconfig, however, I encountered some troubles. 1, Are there systemctl or linuxptp here like in ls1021a? 2, As described in OpenILUG-1.11, 'SWP0~SWP3 are not functional', Does this mean that the following steps must be performed after each boot?

ifconfig eno2 up
ip link add name switch type bridge
ip link set switch up
ip link set swp0 master switch && ip link set swp0 up
ip link set swp1 master switch && ip link set swp1 up
ip link set swp2 master switch && ip link set swp2 up
ip link set swp3 master switch && ip link set swp3 up

3,I modify the interface of 1G MAC1 on /etc/network/interface, and deployed Web UI on a host(ubuntu 18.04), however, the probed device IP is 169.xxx.xxx.xxx/16, and the qbvset is not effective.

 # The primary network interface
        auto eno0
        iface eno0 inet static
            address 192.168.1.100
            network 192.168.1.0
            netmask 255.255.255.0
            broadcast 192.168.1.255
            gateway 192.168.1.1

Then, I delete the eno0 interface and the Web UI can configure gate of the port. 4, I found that the qbvset via Web UI not contain handle xxx, such that what is the number of vlan id of PCP in talker? It didn't take effect on any vid frames. 5, I used the tc qdisc to configure port, the step is: ls1028a configuration:

ip link set dev switch type bridge vlan_filtering 1
bridge vlan add dev swp0 vid 256
bridge vlan add dev swp1 vid 256
ip link set dev switch down
ip link set dev switch up

qbv configuration:

tc qdisc add dev swp1 parent root handle 256 taprio \
num_tc 8 \
map 0 1 2 3 4 5 6 7 \
queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 \
base-time 0 \
sched-entry S c0 50000 \
sched-entry S a0 50000 \
flags 2 

I found that all traffic cannot pass through the switch。

liing0228 commented 2 years ago

@crow1814 , hi sir did you fix the porblem?