SJA1105Q cannot forward packages from the rgmii interface of cpu to rtl8211F phy rgmii

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SJA1105Q cannot forward packages from the rgmii interface of cpu to rtl8211F phy rgmii

1,894 Views
pengfeng
Contributor II

sja1105_schematic.png

 

MIIMode.png

sja1105q_2024-01-24_14_45_54.log attached file is the log file when power up

if l take out sja1105, connect soc rgmii interface to phy rtl8211f directly,  the network is ok.

so l think the problem caused by the config file of switch.

1.  my question is how can l know the work status of sja1105

2,  l check pin with oscilloscope,  TX_CTL and RX_CTL of port0 have signal, but  TX_CTL  and RX_CTL  of port1 have no signal,

3, RX_CLK and TX_CLK of all port is ok.

 

kernel dts is as follows

                

&ethernet2 {
               phy-handle = <&eth_phy0>;
               phy-mode = "rgmii-id";
               status = "okay";
               mdio2: mdio@4 {
                             compatible = "snps,dwmac-mdio";
                             #address-cells = <1>;
                             #size-cells = <0>;

                            eth_phy0: ethernet-phy@4 {
                                           reg = < 0x4 >;
                                           max-speed = <0x64>;
                              };
                             eth_phy1: ethernet-phy@5 {
                                          reg = < 0x5 >;
                              };
                             eth_phy3: ethernet-phy@2 {
                                         reg = < 0x2 >;
                                         max-speed = <0x64>;
                               };
                              eth_phy4: ethernet-phy@1 {
                                        reg = < 0x1 >;
                                        max-speed = <0x64>;
                               };
              };
 };

 

&spi7 {
               status = "okay";
               num-cs = <1>;
               enable_dma = <1>;
               dmas = <&dmac4 X9_DMA_SLV_ID_SPI8_TX>, <&dmac4 X9_DMA_SLV_ID_SPI8_RX>;
               dma-names = "tx", "rx";
               sja1105p@0 {
                                  compatible = "nxp,sja1105p-switch";
                                  firmware_name = "sja1105p-1_cfg.bin"; // optional
                                  spi-max-frequency = <1000000>;
                                  spi-cpha;
                                  reg = <0>;
                                  rst-gpios=<&port4d 26 GPIO_ACTIVE_HIGH>;
                                  status = "okay";
                                  port-0 {
                                             is-host = <0x1>;
                                             null-phy = <0x1>;
                                             phy-ref = < 0 >;
                                             logical-port-num = < 0 >;
                                             rx-delay = < 810 >;
                                             tx-delay = < 810 >;
                                   };
                                   port-1 {
                                             is-host = <0x0>;
                                             null-phy = <0x0>;
                                             phy-ref = < &eth_phy0 >;
                                             logical-port-num = < 1 >;
                                    };
                                   port-2 {
                                             is-host = <0x0>;
                                             null-phy = <0x0>;
                                             phy-ref = < &eth_phy1 >;
                                             logical-port-num = < 2 >;
                                     };
                                    port-3 {
                                             is-host = <0x0>;
                                             null-phy = <0x0>;
                                             phy-ref = < &eth_phy3 >;
                                             logical-port-num = < 3 >;
                                     };
                                     port-4 {
                                             is-host = <0x0>;
                                             null-phy = <0x0>;
                                             phy-ref = < &eth_phy4 >;
                                             logical-port-num = < 4 >;
                                     };
                  };
 };

Tags (1)
0 Kudos
Reply
11 Replies

1,770 Views
abdullahzafar
NXP Employee
NXP Employee

Hi Pengfeng, 

Thankyou for the detailed description. 

As the first step, It would be really great if you could share your python script with me 

to see if everything was configured correctly.

BR, 
Abdullah 

0 Kudos
Reply

1,754 Views
pengfeng
Contributor II

Hi Abdullah .

      happy to see u.  l changed my kernel dts file as follows,  cfg_applicationBoard.py is in attached file,  all the clock is 125M,include  TXC and RXC in port0.  port1 , port2.   but TXC and RXC in port3 and port4 is 25M. cuz the max-speed max-speed = <0x64> .

     all the ports is rgmii,  when l config eth0 up,   l ping 192.168.1.1, 

     l find  ENET1_RGMII_TX_CTL in soc is high level output voltage, but  ENET1_RGMII_RX_CTL is low level voltage, so soc do have data send to sja1105q but sja1105q have no data send to soc. 

     also l find  TXCTL  in phy is low level , but  RXCTL/PHYAD2 is high level, so there is data send to sja1105q from phy , but no data send to phy from sja1105q
 

      

    

      

&ethernet2 {
                 phy-mode = "rgmii-id";
                 status = "okay";
                 fixed-link {
                             speed = <1000>; 
                             full-duplex;
                 };
                 mdio {
                            compatible = "snps,dwmac-mdio";
                            #address-cells = <1>;
                            #size-cells = <0>;
                            eth_phy1: ethernet-phy@4 {
                                                   reg = < 0x4 >;
                              };
                            eth_phy2: ethernet-phy@5 {
                                                  reg = < 0x5 >;
                              };
                             eth_phy3: ethernet-phy@2 {
                                                 reg = < 0x2 >;
                                                 max-speed = <0x64>;
                              };
                             eth_phy4: ethernet-phy@1 {
                                                reg = < 0x1 >;
                                                max-speed = <0x64>;
                               };
                  };
};

&spi7 {
              status = "okay";
              num-cs = <1>;
              enable_dma = <1>;
              dmas = <&dmac4 X9_DMA_SLV_ID_SPI8_TX>, <&dmac4 X9_DMA_SLV_ID_SPI8_RX>;
              dma-names = "tx", "rx";
              sja1105p@0 {
                             compatible = "nxp,sja1105p-switch";
                              firmware_name = "sja1105p-1_cfg.bin"; // optional
                              spi-max-frequency = <1000000>;
                              spi-cpha;
                              reg = <0>;
                              rst-gpios=<&port4d 26 GPIO_ACTIVE_HIGH>;
                              status = "okay";

                              port-0 {
                                      is-host = <0x1>;
                                      null-phy = <0x1>;
                                      phy-ref = < 0 >;
                                      logical-port-num = < 0 >;
                                      rx-delay = < 810 >;
                                      tx-delay = < 810 >;
                               };

                               port-1 {
                                      is-host = <0x0>;
                                      null-phy = <0x0>;
                                      phy-ref = < &eth_phy1 >;
                                      logical-port-num = < 1 >;
                                };

                                port-2 {
                                          is-host = <0x0>;
                                          null-phy = <0x0>;
                                          phy-ref = < &eth_phy2 >;
                                          logical-port-num = < 2 >;
                                };

                                port-3 {
                                        is-host = <0x0>;
                                        null-phy = <0x0>;
                                        phy-ref = < &eth_phy3 >;
                                        logical-port-num = < 3 >;
                                };

                               port-4 {
                                        is-host = <0x0>;
                                        null-phy = <0x0>;
                                        phy-ref = < &eth_phy4 >;
                                        logical-port-num = < 4 >;
                               };
                  };
};

Tags (1)
0 Kudos
Reply

1,758 Views
pengfeng
Contributor II

Hi Abdullah .

        great to see you,  cfg_applicationBoard.py is  as follows

         

import os
from ethsw.configuration import *
from ethsw.tables_sja1105pqrs import *

NO_CBS_BLOCKS = 16
NO_ETH_PORTS = 5
NO_PRIORITIES = 8

c = Configuration()

#############################################################################
# General Parameters
#############################################################################

general_parameters = make_table_by_layout(general_parameters_table_layout, layoutid_map)
c.append(general_parameters)
general_parameters.append({
"VLLUPFORMAT": 0,
"MIRR_PTACU": 1,
"SWITCHID": 0,
"HOSTPRIO": 5,
"MAC_FLTRES[0]": 0x0180C200000E,
"MAC_FLTRES[1]": 0x0180C2000003,
"MAC_FLT[0]": 0xFFFFFF0000FF,
"MAC_FLT[1]": 0xFFFFFF0000FF,
"INCL_SRCPT[0]": 1,
"INCL_SRCPT[1]": 1,
"SEND_META[0]": 1,
"SEND_META[1]": 0,
# "CASC_PORT": 6,
"CASC_PORT": 7,
"MIRR_PORT": 6,
"HOST_PORT": 0,
"VIMARKER": 0xFFFFFFFF,
"VIMASK": 0xFFFFFFFF,
"TPID": 0x88A8,
"IGNORE2STF": 0,
"TPID2": 0x8100,
"QUEUE_TS": 0,
"EGRMIRRVID": 0,
"EGRMIRRPCP": 0,
"EGRMIRRDEI": 0,
"REPLAY_PORT": 7
})

#############################################################################
# MAC Configuration Table
#############################################################################

SPEED_HOST = 0 # speed set by host during run-time
SPEED_1GBPS = 1
SPEED_100MBPS = 2
SPEED_10MBPS = 3

speed = [SPEED_1GBPS, SPEED_100MBPS, SPEED_100MBPS, SPEED_100MBPS, SPEED_100MBPS]
speed_Mbps = [10 ** (4 - x) for x in speed]

default_vlan = 0xFFF # Default VLAN ID on all ports for untagged frames

queue_enable = [1, 1, 1, 1, 1, 1, 1, 1]
prio_queue0 = [0, 63]
prio_queue1 = [64, 127]
prio_queue2 = [128, 191]
prio_queue3 = [192, 255]
prio_queue4 = [256, 319]
prio_queue5 = [320, 383]
prio_queue6 = [384, 447]
prio_queue7 = [448, 511]

mac_configuration_table = make_table_by_layout(mac_configuration_table_layout, layoutid_map)
c.append(mac_configuration_table)

for i in range(NO_ETH_PORTS):
mac_configuration_table.append({
"INGMIRRDEI": 0,
"INGMIRRPCP": 0,
"INGMIRRVID": 0,
"MIRRCETAG": 0,
"MIRRCIE": 0,
"INGRESS": 1,
"EGRESS": 1,
"DYN_LEARN": 1,
"DRPNONA664": 0,
"EGR_MIRR": 0,
"ING_MIRR": 0,
"VLANID": default_vlan,
"VLANPRIO": 0,
"MAXAGE": 255,
"TP_DELOUT": 0,
"TP_DELIN": 0,
"SPEED": speed[i],
"IFG": 0,
"ENABLED[0]": queue_enable[0], # enable the queue
"BASE[0]": prio_queue0[0], # start
"TOP[0]": prio_queue0[1], # set the size of the queue to maximum size
"ENABLED[1]": queue_enable[1],
"BASE[1]": prio_queue1[0],
"TOP[1]": prio_queue1[1],
"ENABLED[2]": queue_enable[2],
"BASE[2]": prio_queue2[0],
"TOP[2]": prio_queue2[1],
"ENABLED[3]": queue_enable[3],
"BASE[3]": prio_queue3[0],
"TOP[3]": prio_queue3[1],
"ENABLED[4]": queue_enable[4],
"BASE[4]": prio_queue4[0],
"TOP[4]": prio_queue4[1],
"ENABLED[5]": queue_enable[5],
"BASE[5]": prio_queue5[0],
"TOP[5]": prio_queue5[1],
"ENABLED[6]": queue_enable[6],
"BASE[6]": prio_queue6[0],
"TOP[6]": prio_queue6[1],
"ENABLED[7]": queue_enable[7],
"BASE[7]": prio_queue7[0],
"TOP[7]": prio_queue7[1]})

#############################################################################
# Credit-Based Shaping Table
#############################################################################

# bandwidth given in Mbit/s
# Example configuration for 4 shapers in port 0
# shapers = [
# {"bandwidth": 0.5, "prio": 7, "port": 0},
# {"bandwidth": 5, "prio": 6, "port": 0},
# {"bandwidth": 10, "prio": 5, "port": 0},
# {"bandwidth": 20, "prio": 4, "port": 0}]
shapers = []

if len(shapers) > 0:
credit_based_shaping_table = make_table_by_layout(credit_based_shaping_table_layout, layoutid_map)
c.append(credit_based_shaping_table)

assert len(shapers) <= NO_CBS_BLOCKS, "No of shapers configured exceeds %d" % (
NO_CBS_BLOCKS)

for shaper in shapers:
idle_slope = shaper[
"bandwidth"] / 8.0 * 10 ** 6 # conversion from Mbit/s to byte/s
rate = speed_Mbps[
shaper["port"]] / 8.0 * 10 ** 6 # rate at the port in byte/s
send_slope = rate - idle_slope
credit_based_shaping_table.append({
"IDLE_SLOPE": long(idle_slope),
"SEND_SLOPE": long(send_slope),
"CREDIT_HI": 0x6FFFFFFF,
"CREDIT_LO": 0x6FFFFFFF,
"CBS_PRIO": shaper["prio"],
"CBS_PORT": shaper["port"]})
print(idle_slope)

#############################################################################
# VLAN Lookup Table
#############################################################################

vlan_lookup_table = make_table_by_layout(vlan_lookup_table_layout, layoutid_map)
c.append(vlan_lookup_table)

# Default VLAN
vlan_lookup_table.append({
"VING_MIRR": 0,
"VEGR_MIRR": 0,
"VMEMB_PORT": 0x1F, # All ports are member of the VLAN
"VLAN_BC": 0x1F, # Broadcast domain for the VLAN
"TAG_PORT": 0x00, # Egress frames are untagged
"VLANID": default_vlan})

# Enable VLANs 0 to 15
for i in range(16):
vlan_lookup_table.append({
"VING_MIRR": 0,
"VEGR_MIRR": 0,
"VMEMB_PORT": 0x1F, # all ports are member
"VLAN_BC": 0x1F, # Broadcast domain
"TAG_PORT": 0x1F, # Egress frames are tagged
"VLANID": i})

#############################################################################
# L2 Lookup Parameters Table
#############################################################################

l2_lookup_parameters_table = make_table_by_layout(l2_lookup_parameters_table_layout, layoutid_map)
c.append(l2_lookup_parameters_table)

l2_lookup_parameters_table.append({
"LEARN_ONCE": 0,
"OWR_DYN": 0,
"USE_STATIC": 0,
"NO_MGMT_LEARN": 1,
"NO_ENF_HOSTPRT": 0,
"DRPNOLEARN": 0,
"START_DYNSPC": 0,
"MAXAGE": 0,
"MAXADDRP[0]": 1024,
"MAXADDRP[1]": 1024,
"MAXADDRP[2]": 1024,
"MAXADDRP[3]": 1024,
"MAXADDRP[4]": 1024,
"DRPUNI": 0,
"DRPMC": 0,
"DRPBC": 0})

#############################################################################
# L2 Address Lookup Table
#############################################################################

l2_address_lookup_table = make_table_by_layout(l2_address_lookup_table_layout, layoutid_map)
c.append(l2_address_lookup_table)

l2_address_lookup_table.append(
{
"INDEX": 0,
"ENFPORT": 0,
"DESTPORTS": 1 << 0,
"MACADDR": 0x001094000001,
"VLANID": 555,
"IOTAG": 0,
"MASK_MACADDR": 0xFFFFFFFFFFFF,
"MASK_VLANID": 0xFFF,
"MASK_IOTAG": 0x1,
"RETAG": 0,
"MIRR": 0,
"TAKETS": 0,
"MIRRVLAN": 0,
"TSREG": 0}
)

#############################################################################
# L2 Policing Table
#############################################################################

l2_policing_table = make_table_by_layout(l2_policing_table_layout, layoutid_map)
c.append(l2_policing_table)

# In this example, every port/priority is assigned a dedicated policer.
# By use of SHARINDX, multiple ports/priorities can be mapped to a single policer.

# defines the ratio of available bandwidth that is admitted for a prio/port combination in %
# a value of 100 means that no policing is performed
ratio = [[100, 100, 100, 100, 100, 100, 100, 100], # Port 0 - no policing
[100, 100, 100, 100, 100, 100, 100, 100], # Port 1 - no policing
[100, 100, 100, 100, 100, 100, 100, 100], # Port 2 - no policing
[100, 100, 100, 100, 100, 100, 100, 100], # Port 3 - no policing
[100, 100, 100, 100, 100, 100, 100, 100]] # Port 4 - no policing

for port in range(NO_ETH_PORTS):
for prio in range(NO_PRIORITIES):
l2_policing_table.append({
"SHARINDX": port * NO_PRIORITIES + prio, # individual policing block for each priority
"SMAX": 10 * 1526, # Maximum burst as 10 maximum sized, double tagged frames
"RATE": long(speed_Mbps[port] * ratio[port][prio] / 100.0 * 1000 / 15.625), # Unit: [15.625 kbps]
"MAXLEN": 1526,
"PARTITION": prio}) # memory is partitioned towards the priorities

# Broadcast Storm Prevention
# Defines the ratio of available bandwidth that is admitted for a port
# ratio = [port 0, port 1, ..., port 4]
ratio = [100, 100, 100, 100, 100] # All ports admit up to 100% broadcast traffic

for port in range(5):
l2_policing_table.append({
"SHARINDX": 40 + port, # individual policing block for each priority
"SMAX": 10 * 1526, # Maximum burst as 10 maximum sized, double tagged frames
"RATE": long(speed_Mbps[port] * ratio[port] / 100.0 * 1000 / 15.625), # Unit: [15.625 kbps]
"MAXLEN": 1526,
"PARTITION": 0}) # memory is partitioned towards the priorities

############################################################################
# L2 Forwarding Table
#############################################################################

l2_forwarding_table = make_table_by_layout(l2_forwarding_table_layout, layoutid_map)
c.append(l2_forwarding_table)

# retain the priority of the frames at ingress
for i in range(NO_ETH_PORTS):
if (i == general_parameters.entries[0]["HOST_PORT"]):
reachable_ports = 0x1F # host port is reachable by itself, needed for hybrid AVB implementation with endpoint and bridge stack on a single host
else:
reachable_ports = 0x1F & ~(1 << i)
broadcast_domain = 0x1F & ~(1 << i)
default_route = 0x1F & ~(1 << i)

# Priority regeneration
priority_map = [0,1,2,3,4,5,6,7] # No PCP modification

l2_forwarding_table.append({
"FL_DOMAIN" : default_route,
"BC_DOMAIN" : broadcast_domain,
"REACH_PORT" : reachable_ports,
"VLAN_PMAP[0]" : priority_map[0],
"VLAN_PMAP[1]" : priority_map[1],
"VLAN_PMAP[2]" : priority_map[2],
"VLAN_PMAP[3]" : priority_map[3],
"VLAN_PMAP[4]" : priority_map[4],
"VLAN_PMAP[5]" : priority_map[5],
"VLAN_PMAP[6]" : priority_map[6],
"VLAN_PMAP[7]" : priority_map[7]})

# Output PCP to queue mapping
# map priority i to queue i on all ports
for i in range(NO_PRIORITIES):
l2_forwarding_table.append({
"VLAN_PMAP[0]" : i,
"VLAN_PMAP[1]" : i,
"VLAN_PMAP[2]" : i,
"VLAN_PMAP[3]" : i,
"VLAN_PMAP[4]" : i})

#############################################################################
# L2 Forwarding Parameters Table
#############################################################################

l2_forwarding_parameters_table = make_table_by_layout(l2_forwarding_parameters_table_layout, layoutid_map)
c.append(l2_forwarding_parameters_table)

l2_forwarding_parameters_table.append({
"MAX_DYNP" : 0,
"PART_SPC[7]" : 100,
"PART_SPC[6]" : 100,
"PART_SPC[5]" : 100,
"PART_SPC[4]" : 100,
"PART_SPC[3]" : 100,
"PART_SPC[2]" : 100,
"PART_SPC[1]" : 100,
"PART_SPC[0]" : 210}
)

assert sum([l2_forwarding_parameters_table.entries[0]["PART_SPC[%d]" % i] for i in range(8)]) <= 910, 'sum of paritions must not exceed 910 (if retagging used)'


#############################################################################
# AVB Parameters
#############################################################################

avb_parameters = make_table_by_layout(avb_parameters_table_layout, layoutid_map)
c.append(avb_parameters)

avb_parameters.append({
"SRCMETA" : 0x026037C0FFEE,
"DESTMETA" : 0x026037DECADE,
"CAS_MASTER": 1,
"L2CBS" : 0
})

#############################################################################
# MII Mode Control Parameters
#############################################################################

mii_mode_parameters = make_table_by_layout(mii_mode_parameters_table_layout, layoutid_map)
c.append(mii_mode_parameters)

MII = 0
RMII = 1
RGMII = 2
UNUSED = 3
SGMII = 3

PHY_MODE = 1
MAC_MODE = 0

mii_mode_parameters.append({
"xMII_MODE[0]": RGMII,
"PHY_MAC[0]": MAC_MODE, # not applicable for RGMII,
"xMII_MODE[1]": RGMII,
"PHY_MAC[1]": MAC_MODE,
"xMII_MODE[2]": RGMII,
"PHY_MAC[2]": MAC_MODE,
"xMII_MODE[3]": RGMII,
"PHY_MAC[3]": MAC_MODE,
"xMII_MODE[4]": RGMII,
"PHY_MAC[4]": MAC_MODE, # not applicable for RGMII,
})

 

#############################################################################
# Write out hex file
#############################################################################

filename = os.path.basename(__file__)
filename = filename.replace(".py", ".hex")

c.deviceid = 0xae00030e
c.to_hex("output/" + filename)

#############################################################################
# Executive Summary
#############################################################################

print "Number of bytes: %d" %(len(c.to_bytes()))
print "======================"

0 Kudos
Reply

1,735 Views
abdullahzafar
NXP Employee
NXP Employee

Hi, 

 

1) Do you know where the frames are lost? Are they lost on the RGMII link (MAC -> Port ) or in the switch or on the MII link (Port  -> Eth Phy)? This can be checked by looking at the drop and MII/CRC error counters of these ports. Are there problems between other combinations of link partners? E.g. can Port 0 or 1 exchange ping/packets with Port 2 and 3? The provided .py scripts do not show any configuration of CGU registers.

2) Could you measure the clock for the port and see if it is as per expectation? It would be nice if you could share the scope plots aswell. One possiblity of configuring CGU is to do it before hand and then download the static config, would be great if you could try that out. Please consult section 2.4 of the software user manual for more details. 

3)Without knowing where the frames are lost, we cannot debug the issue. So far I have two guesses: the CGU is not configured correctly. the frames are forwarded with VLAN ID = 0 (tagged) but the station connected to port 3 does not accept such frames.

 

BR,

Abdullah

0 Kudos
Reply

1,490 Views
pengfeng
Contributor II

hi Abdullah:

     1)   The provided .py scripts do not show any configuration of CGU registers, please check log file in attached files, there is log about CGU register as below

      registerAddress=00100016   registerValue=0b000800

      registerAddress=0010001c    registerValue=12000800

      do you think registerValue  is ok?   l think CGU is ok.

    2)  how to check and look at the drop and MII/CRC error counters of these ports, is there some registers record the number of frames received and thansimitted per port?

    

 

 

Tags (1)
0 Kudos
Reply

1,456 Views
abdullahzafar
NXP Employee
NXP Employee

Hi Pengfeng, 

On page 56 of the software user manual, you should find table 72 " Ethernet port status - MAC-level diagnostic counters (offset 0h)", try reading that out for the respective ports when there is a loss of frames. This should narrow down the issue. 

Secondly, In one of your comments, you mentioned that after initial flash, everything works as per expectations but after power reset, there is a loss of frame. To me that sounds like there is no valid configuration on the switch after the reset. Maybe you could try reading out valid config flag after power reset and see if the switch has a valid configuration after the reset. 

BR, 

Abdullah

0 Kudos
Reply

1,454 Views
pengfeng
Contributor II

HI Abdullah,

    happy to see you, when   l  ping 192.168.1.1, failed 

           then  cd  /sys/kernel/debug/sja1105p-0/ethernet 

           then   cat   mac-level .

         result as follows, so Is it a hardware problem or software problem? 

       mac_level_diagnostics1.png

       mac_level_diagnostics.png

0 Kudos
Reply

1,595 Views
pengfeng
Contributor II

Hi Abdullah

       1) l have measured the clock for the all the 5 ports (include rxc and txc), the clock is as per  expectation, l think all the clock       is ok

       2) hardware schematic diagram is in attached files, could you check it for me?

       3) let me tell you something, several times  i have only exchange packages between port0 and port1,sja1105q worked very               well,  i  can  ping 192.168.1.1 successfully, but if l reset the board,  l cannot  ping 192168.1.1 anymore.

       

0 Kudos
Reply

1,666 Views
pengfeng
Contributor II

HI, Abdullah

     1)  I don,t know how to check and look at the drop and MII/CRC error counters of these ports. l think this is the key.

          Port 0 or 1  cannot exchange ping/packets with Port 2 and 3 , like sja1105 is not work. if take out sja1105 from board, connect port0 to phy (rtl8211f)directly,  l  can ping 192.168.1.1,, and network is ok.

     2)  first step of my mission is  exhange packeges in port0 and port1 successfully,  but l have  measured all the clock for the           port0 ,port1 , port2, port3,  port4. 

        for port0:   txc and rxc in port0 is always 125m ,  scope plots is port0_txc.jpg in attached files.     

        for port1:   rxc in port1 is 2.5m, if connect RJ45 Plug into port1, rxc will change to 125m, TXC in port1 is alway 25m.

        for port2:  the same as port1

        for port3,port4.  txc and rxc is always 25m, cuz  phy YT8010A is 100m rgmii.

 

    3)   l think this project donnot need vlan

    4)    "Please consult section 2.4 of the software user manual for more details".  l can not find any detail content about  the static CGU config, only have a  Configuration Flow Figure, software user manual  is a file named  UM11040.pdf ?

    

0 Kudos
Reply

1,889 Views
pengfeng
Contributor II
log file while power up is as follows

[ 7.352681] sja1105pqrs spi1.0: =====5555===Loading SJA1105P SPI driver
[ 7.359337] sja1105pqrs spi1.0: Probing switch number 0
[ 7.364592] sja1105pqrs spi1.0: SJA1105P SPI Clock set to 12000000Hz, bits per word set to 8
[ 7.373062] sja1105pqrs spi1.0: Found a matching DT entry (type 0)
[ 7.379263] sja1105pqrs spi1.0: [Roy_test ] sja1105p_probe 712
[ 7.385214] sja1105pqrs spi1.0: =========register_spi_callback==================
[ 7.392623] sja1105pqrs spi1.0: [Roy_test ] sja1105p_probe 719
[ 7.398556] sja1105pqrs spi1.0: Firmware name "sja1105p-1_cfg.bin" found
[ 7.405269] sja1105pqrs spi1.0: Properties of port 0 found
[ 7.410764] sja1105pqrs spi1.0: port-0 logical-port-num=0
[ 7.416176] sja1105pqrs spi1.0: port-0 is-host=1
[ 7.420799] sja1105pqrs spi1.0: port-0 null-phy=1 (phy_not_mac=1)
[ 7.426899] sja1105pqrs spi1.0: Properties of port 1 found
[ 7.432391] sja1105pqrs spi1.0: port-1 logical-port-num=1
[ 7.437794] sja1105pqrs spi1.0: port-1 is-host=0
[ 7.442417] sja1105pqrs spi1.0: port-1 null-phy=0 (phy_not_mac=0)
[ 7.448519] sja1105pqrs spi1.0: Properties of port 2 found
[ 7.454011] sja1105pqrs spi1.0: port-2 logical-port-num=2
[ 7.459415] sja1105pqrs spi1.0: port-2 is-host=0
[ 7.464040] sja1105pqrs spi1.0: port-2 null-phy=0 (phy_not_mac=0)
[ 7.470140] sja1105pqrs spi1.0: Properties of port 3 found
[ 7.475631] sja1105pqrs spi1.0: port-3 logical-port-num=3
[ 7.481038] sja1105pqrs spi1.0: port-3 is-host=0
[ 7.485686] sja1105pqrs spi1.0: port-3 null-phy=0 (phy_not_mac=0)
[ 7.491788] sja1105pqrs spi1.0: Properties of port 4 found
[ 7.497282] sja1105pqrs spi1.0: port-4 logical-port-num=4
[ 7.502687] sja1105pqrs spi1.0: port-4 is-host=0
[ 7.507309] sja1105pqrs spi1.0: port-4 null-phy=0 (phy_not_mac=0)
[ 7.513410] sja1105pqrs spi1.0: [Roy_test ] sja1105p_probe 726
[ 7.519401] sja1105pqrs spi1.0: Detected Device ID ae00030e ()
[ 7.525245] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81004400}{81004400}{440081}=========
[ 7.534733] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{440081}========
[ 7.542569] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 7.550444] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 7.557720] sja1105pqrs spi1.0: SJA1105P switch preparing to load sja1105p-1_cfg.bin
[ 7.566288] sja1105pqrs spi1.0: SJA1105P switch firmware request succeeded
[ 7.573230] sja1105pqrs spi1.0: REG_PORT_STATUS(0): speed=2 phyMode=1 xmiiMode=3
[ 7.580683] sja1105pqrs spi1.0: REG_PORT_STATUS(1): speed=2 phyMode=1 xmiiMode=3
[ 7.588133] sja1105pqrs spi1.0: REG_PORT_STATUS(2): speed=2 phyMode=1 xmiiMode=3
[ 7.595589] sja1105pqrs spi1.0: REG_PORT_STATUS(3): speed=2 phyMode=1 xmiiMode=3
[ 7.603040] sja1105pqrs spi1.0: REG_PORT_STATUS(4): speed=2 phyMode=1 xmiiMode=3
[ 7.610447] sja1105pqrs spi1.0: Config 1st word=ae00030e
[ 7.615769] sja1105pqrs spi1.0: Config Block Id=0x5 size=5 CRC=9a1ca02b offset=1 total_size=9
[ 7.624301] sja1105pqrs spi1.0: Config Block Id=0x6 size=90 CRC=4ed2c50f offset=10 total_size=103
[ 7.633183] sja1105pqrs spi1.0: Config Block Id=0x7 size=34 CRC=dd3964cc offset=104 total_size=141
[ 7.642149] sja1105pqrs spi1.0: Config Block Id=0x8 size=26 CRC=6af62353 offset=142 total_size=171
[ 7.651117] sja1105pqrs spi1.0: Config Block Id=0x9 size=40 CRC=db43ac9 offset=172 total_size=215
[ 7.659995] sja1105pqrs spi1.0: Config Block Id=0xd size=4 CRC=12d08c8f offset=216 total_size=223
[ 7.668881] sja1105pqrs spi1.0: Config Block Id=0xe size=3 CRC=c8a7cee6 offset=224 total_size=230
[ 7.677760] sja1105pqrs spi1.0: Config Block Id=0x10 size=4 CRC=8aa0dfbc offset=231 total_size=238
[ 7.686745] sja1105pqrs spi1.0: Config Block Id=0x11 size=11 CRC=efa3e65a offset=239 total_size=253
[ 7.695801] sja1105pqrs spi1.0: Config Block Id=0x4e size=1 CRC=3a5d5e24 offset=254 total_size=258
[ 7.704766] sja1105pqrs spi1.0: Config Block Id=0x0 size=0 CRC=4d37fb9f offset=259 total_size=262
[ 7.713645] sja1105pqrs spi1.0: Final Block
[ 7.717833] sja1105pqrs spi1.0: Looking for AVB parameters
[ 7.723326] sja1105pqrs spi1.0: Got dev=ffff80003c3d0000 name= eth0
[ 7.729602] sja1105pqrs spi1.0: Registered management port DST MAC address=f0:0d:98:80:b7:b2
[ 7.738046] sja1105pqrs spi1.0: Registered management port SRC MAC address=00:00:00:80:fb:3f
[ 7.746491] sja1105pqrs spi1.0: swap_required 0 nb_words 262 dev_addr 00020000
[ 7.753719] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200000}{80200000}{2080}=========
[ 7.763033] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{2080}========
[ 7.770694] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 7.778630] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 7.785863] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200180}{80200180}{80012080}=========
[ 7.795525] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{80012080}========
[ 7.803533] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 7.811465] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 7.818697] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200300}{80200300}{32080}=========
[ 7.828099] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{32080}========
[ 7.835847] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 7.843778] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 7.851013] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200480}{80200480}{80042080}=========
[ 7.860676] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{80042080}========
[ 7.868688] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 7.876619] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 7.883854] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200600}{80200600}{62080}=========
[ 7.893264] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{62080}========
[ 7.901015] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 7.908946] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 7.916181] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200780}{80200780}{80072080}=========
[ 7.925840] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{80072080}========
[ 7.933851] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 7.941782] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 7.949017] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200900}{80200900}{92080}=========
[ 7.958417] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{92080}========
[ 7.966167] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 7.974097] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 7.981332] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200a80}{80200a80}{800a2080}=========
[ 7.990991] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{800a2080}========
[ 7.999002] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.006933] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.014167] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200c00}{80200c00}{c2080}=========
[ 8.023566] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{c2080}========
[ 8.031316] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.039248] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.046482] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200d80}{80200d80}{800d2080}=========
[ 8.056143] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{800d2080}========
[ 8.064154] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.072085] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.079338] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80200f00}{80200f00}{f2080}=========
[ 8.088739] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{f2080}========
[ 8.096500] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.104428] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.111782] sja1105pqrs spi1.0: REG_PORT_STATUS(0): speed=2 phyMode=0 xmiiMode=2
[ 8.119233] sja1105pqrs spi1.0: REG_PORT_STATUS(1): speed=1 phyMode=0 xmiiMode=2
[ 8.126680] sja1105pqrs spi1.0: REG_PORT_STATUS(2): speed=1 phyMode=0 xmiiMode=2
[ 8.134130] sja1105pqrs spi1.0: REG_PORT_STATUS(3): speed=1 phyMode=0 xmiiMode=2
[ 8.141591] sja1105pqrs spi1.0: REG_PORT_STATUS(4): speed=1 phyMode=0 xmiiMode=2
[ 8.149000] sja1105pqrs spi1.0: SJA1105P (number 0) successfully configured!
[ 8.156060] sja1105pqrs spi1.0: physical-port-0: logical-port-0, switch-0
[ 8.162856] sja1105pqrs spi1.0: physical-port-1: logical-port-1, switch-0
[ 8.169650] sja1105pqrs spi1.0: physical-port-2: logical-port-2, switch-0
[ 8.176443] sja1105pqrs spi1.0: physical-port-3: logical-port-3, switch-0
[ 8.183238] sja1105pqrs spi1.0: physical-port-4: logical-port-4, switch-0
[ 8.190068] sja1105pqrs spi1.0: 1 of 1 devices probed, final initialization
[ 8.197041] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80000460}{80000460}{60040080}=========
[ 8.206700] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{60040080}========
[ 8.214710] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.222583] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.230240] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={80080070}{80080070}{70000880}=========
[ 8.239904] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{70000880}========
[ 8.247917] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.255788] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.263256] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81008000}{81008000}{800081}=========
[ 8.272751] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{800081}========
[ 8.280589] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.288460] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.295695] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={810000b0}{810000b0}{b0000081}=========
[ 8.305366] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{b0000081}========
[ 8.313379] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.321250] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.328486] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81000160}{81000160}{60010081}=========
[ 8.338146] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{60010081}========
[ 8.346156] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.354027] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.361344] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81008020}{81008020}{20800081}=========
[ 8.371009] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{20800081}========
[ 8.379025] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.386896] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.394131] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={810000c0}{810000c0}{c0000081}=========
[ 8.403792] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{c0000081}========
[ 8.411810] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.419683] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.426919] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={810001c0}{810001c0}{c0010081}=========
[ 8.436584] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{c0010081}========
[ 8.444596] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.452468] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.459781] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81008040}{81008040}{40800081}=========
[ 8.469448] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{40800081}========
[ 8.477460] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.485331] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.492563] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={810000d0}{810000d0}{d0000081}=========
[ 8.502226] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{d0000081}========
[ 8.510245] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.518120] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.525352] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81000220}{81000220}{20020081}=========
[ 8.535014] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{20020081}========
[ 8.543023] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.550895] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.558211] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81008060}{81008060}{60800081}=========
[ 8.567877] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{60800081}========
[ 8.575887] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.583759] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.590992] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={810000e0}{810000e0}{e0000081}=========
[ 8.600654] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{e0000081}========
[ 8.608664] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.616537] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.623770] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81000280}{81000280}{80020081}=========
[ 8.633436] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{80020081}========
[ 8.641445] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.649318] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.656631] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81008080}{81008080}{80800081}=========
[ 8.666298] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{80800081}========
[ 8.674307] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.682180] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.689413] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={810000f0}{810000f0}{f0000081}=========
[ 8.699075] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{f0000081}========
[ 8.707084] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.714967] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.722199] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={810002e0}{810002e0}{e0020081}=========
[ 8.731862] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{e0020081}========
[ 8.739871] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.747744] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.755019] sja1105pqrs spi1.0: Port 0: Configuring rx-delay to 810
[ 8.761342] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81008100}{81008100}{810081}=========
[ 8.770831] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{810081}========
[ 8.778669] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.786541] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.793818] sja1105pqrs spi1.0: Port 0: Configuring tx-delay to 810
[ 8.800137] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write===={81008100}{81008100}{810081}=========
[ 8.809627] sja1105pqrs spi1.0: =====__sja1105p_cfg_block_write======{810081}========
[ 8.817466] sja1105pqrs spi1.0: =========__sja1105p_cfg_block_write==================
[ 8.825337] sja1105pqrs spi1.0: =========sja1105p_spi_write===================
[ 8.832573] sja1105pqrs spi1.0: 1 switch initialized successfully!
[ 8.838790] sja1105pqrs spi1.0 SJA1105P_p0* (uninitialized): Port 0 does not have a (valid) phandle to an ethernet phy
[ 8.849497] sja1105pqrs spi1.0 SJA1105P_p0* (uninitialized): No phydev found for SJA1105P_p0*
[ 8.858316] sja1105pqrs spi1.0 SJA1105P_p0*: Change link status of [SJA1105P_p0*] to: up
[ 8.866463] sja1105pqrs spi1.0 SJA1105P_p0*: registered netdevice: [SJA1105P_p0*]
[ 8.874087] ==============port{1}=================
[ 8.947269] ===================rtl8211f_config_init=========
[ 8.953360] ==rtl8211f_config_init==2222==RTL8211F_TX_DELAY====
[ 8.959720] sja1105pqrs spi1.0 SJA1105P_p1 (uninitialized): connected phy [4] (state: [9], link [1]) to port [1], attached_dev [SJA1105P_p1]
[ 8.972633] sja1105pqrs spi1.0 SJA1105P_p1: Change link status of [SJA1105P_p1] to: down
[ 8.980778] sja1105pqrs spi1.0 SJA1105P_p1: registered netdevice: [SJA1105P_p1]
[ 8.988229] ==============port{2}=================
[ 9.063269] ===================rtl8211f_config_init=========
[ 9.069384] ==rtl8211f_config_init==2222==RTL8211F_TX_DELAY====
[ 9.075743] sja1105pqrs spi1.0 SJA1105P_p2 (uninitialized): connected phy [5] (state: [9], link [1]) to port [2], attached_dev [SJA1105P_p2]
[ 9.088629] sja1105pqrs spi1.0 SJA1105P_p2: Change link status of [SJA1105P_p2] to: down
[ 9.096775] sja1105pqrs spi1.0 SJA1105P_p2: registered netdevice: [SJA1105P_p2]
[ 9.104227] ==============port{3}=================
[ 9.109030] ============yt8010_soft_reset==============
[ 9.114265] ===============ytphy_soft_reset========
[ 9.119375] ============yt8010_soft_reset========end======
[ 9.125090] sja1105pqrs spi1.0 SJA1105P_p3 (uninitialized): connected phy [2] (state: [9], link [1]) to port [3], attached_dev [SJA1105P_p3]
[ 9.137989] sja1105pqrs spi1.0 SJA1105P_p3: Change link status of [SJA1105P_p3] to: down
[ 9.146137] sja1105pqrs spi1.0 SJA1105P_p3: registered netdevice: [SJA1105P_p3]
[ 9.153589] ==============port{4}=================
[ 9.158391] ============yt8010_soft_reset==============
[ 9.163626] ===============ytphy_soft_reset========
[ 9.168726] ============yt8010_soft_reset========end======
[ 9.174440] sja1105pqrs spi1.0 SJA1105P_p4 (uninitialized): connected phy [1] (state: [9], link [1]) to port [4], attached_dev [SJA1105P_p4]
[ 9.187337] sja1105pqrs spi1.0 SJA1105P_p4: Change link status of [SJA1105P_p4] to: down
[ 9.195480] sja1105pqrs spi1.0 SJA1105P_p4: registered netdevice: [SJA1105P_p4]
[ 9.202806] sja1105pqrs spi1.0: =======================sja1105p_probe===end===========

[ 10.032532] sja1105pqrs spi1.0 SJA1105P_p0*: Change link status of [SJA1105P_p0*] to: up
[ 10.040664] sja1105pqrs spi1.0 SJA1105P_p1: Change link status of [SJA1105P_p1] to: down

[ 10.050586] sja1105pqrs spi1.0 SJA1105P_p2: Change link status of [SJA1105P_p2] to: down
[ 10.058848] sja1105pqrs spi1.0 SJA1105P_p3: Change link status of [SJA1105P_p3] to: down
[ 10.066984] sja1105pqrs spi1.0 SJA1105P_p4: Change link status of [SJA1105P_p4] to: down
[ 10.092506] net eth0: PHY already attached
[ 10.096880] dwc-eth-dwmac 306a0000.eth eth0: ======Could not attach to PHY
[ 10.103776] dwc-eth-dwmac 306a0000.eth eth0: stmmac_open: Cannot attach to PHY (error: -19)
ip: SIOCSIFFLAGS: No such device
[ 10.125295] sja1105pqrs spi1.0 SJA1105P_p0*: Change link status of [SJA1105P_p0*] to: up
[ 10.133448] sja1105pqrs spi1.0 SJA1105P_p1: Change link status of [SJA1105P_p1] to: down
[ 10.141569] sja1105pqrs spi1.0 SJA1105P_p2: Change link status of [SJA1105P_p2] to: down
[ 10.143337] PVR_K: 2766: RGX Firmware image 'rgx.fw.24.56.208.505' loaded
[ 10.149419] PVR_K: 2766: Shader binary image 'rgx.sh.24.56.208.505' loaded
[ 10.163565] sja1105pqrs spi1.0 SJA1105P_p3: Change link status of [SJA1105P_p3] to: down
[ 10.171682] sja1105pqrs spi1.0 SJA1105P_p4: Change link status of [SJA1105P_p4] to: down
ip: can't find device 'rpm0'
ip: SIOCGIFFLAGS: No such device
[ 10.191688] sja1105pqrs spi1.0 SJA1105P_p0*: Change link status of [SJA1105P_p0*] to: up
[ 10.200342] sja1105pqrs spi1.0 SJA1105P_p1: Change link status of [SJA1105P_p1] to: down
[ 10.208525] sja1105pqrs spi1.0 SJA1105P_p2: Change link status of [SJA1105P_p2] to: down
[ 10.216703] sja1105pqrs spi1.0 SJA1105P_p3: Change link status of [SJA1105P_p3] to: down
[ 10.224939] sja1105pqrs spi1.0 SJA1105P_p4: Change link status of [SJA1105P_p4] to: down

[ 11.388821] sja1105pqrs spi1.0 SJA1105P_p0*: Change link status of [SJA1105P_p0*] to: up
Starting blu[etooth: 11.397186] sja1105pqrs spi1.0 SJA1105P_p1: Change link status of [SJA1105P_p1] to: down
[ 11.406882] sja1105pqrs spi1.0 SJA1105P_p2: Change link status of [SJA1105P_p2] to: down
[ 11.415044] sja1105pqrs spi1.0 SJA1105P_p3: Change link status of [SJA1105P_p3] to: down
bluetoothd.
[ 11.425074] sja1105pqrs spi1.0 SJA1105P_p4: Change link status of [SJA1105P_p4] to: down
0 Kudos
Reply

1,883 Views
pengfeng
Contributor II
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~# ifconfig
[ 22.278177] sja1105pqrs spi1.0 SJA1105P_p0*: Change link status of [SJA1105P_p0*] to: up
[ 22.286351] sja1105pqrs spi1.0 SJA1105P_p2: Change link status of [SJA1105P_p2] to: down
[ 22.294804] sja1105pqrs spi1.0 SJA1105P_p1: Change link status of [SJA1105P_p1] to: down
[ 22.302949] sja1105pqrs spi1.0 SJA1105P_p3: Change link status of [SJA1105P_p3] to: down
[ 22.311466] sja1105pqrs spi1.0 SJA1105P_p4: Change link status of [SJA1105P_p4] to: down
SJA1105P_p0* Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:129 errors:0 dropped:0 overruns:0 frame:0
TX packets:129 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8152 (7.9 KiB) TX bytes:8152 (7.9 KiB)

root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~# ifconfig -a
[ 28.118887] sja1105pqrs spi1.0 SJA1105P_p0*: Change link status of [SJA1105P_p0*] to: up
[ 28.127033] sja1105pqrs spi1.0 SJA1105P_p2: Change link status of [SJA1105P_p2] to: down
[ 28.135247] sja1105pqrs spi1.0 SJA1105P_p1: Change link status of [SJA1105P_p1] to: down
[ 28.143392] sja1105pqrs spi1.0 SJA1105P_p3: Change link status of [SJA1105P_p3] to: down
[ 28.151655] sja1105pqrs spi1.0 SJA1105P_p4: Change link status of [SJA1105P_p4] to: down
SJA1105P_p0* Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

SJA1105P_p1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:4 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

SJA1105P_p2 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

SJA1105P_p3 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

SJA1105P_p4 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 82:29:7F:A9:96:18
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:32

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:191 errors:0 dropped:0 overruns:0 frame:0
TX packets:191 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12090 (11.8 KiB) TX bytes:12090 (11.8 KiB)

teql0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~# ifconfig eth0 up
[ 37.379272] ===================rtl8211f_config_init=========
[ 37.385379] ==rtl8211f_config_init=====RTL8211F_TX_DELAY====
[ 37.392118] RTL8211F_Gigabit_Ethernet stmmac-2:04: attached PHY driver [RTL8211F_Gigabit_Ethernet] (mii_bus:phy_addr=stmmac-2:04, irq=POLL)
[ 37.415792] dwmac4: Master AXI performs any burst length
[ 37.421553] dwc-eth-dwmac 306a0000.eth eth0: No Safety Features support found
[ 37.429287] dwc-eth-dwmac 306a0000.eth eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 37.438314] dwc-eth-dwmac 306a0000.eth eth0: registered PTP clock
[ 37.444901] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@x9m_ref:~# [ 40.523939] dwc-eth-dwmac 306a0000.eth eth0: Link is Up - 100Mbps/Full - flow control off
[ 40.532392] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~# ifconfig eth0 192.168.1.101 netmask 255.255.255.0
root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~# ifconfig
[ 54.776141] sja1105pqrs spi1.0 SJA1105P_p0*: Change link status of [SJA1105P_p0*] to: up
[ 54.784588] sja1105pqrs spi1.0 SJA1105P_p2: Change link status of [SJA1105P_p2] to: down
[ 54.792875] sja1105pqrs spi1.0 SJA1105P_p1: Change link status of [SJA1105P_p1] to: down
[ 54.801254] sja1105pqrs spi1.0 SJA1105P_p3: Change link status of [SJA1105P_p3] to: down
[ 54.809844] sja1105pqrs spi1.0 SJA1105P_p4: Change link status of [SJA1105P_p4] to: down
SJA1105P_p0* Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:149 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:44740 (43.6 KiB)

eth0 Link encap:Ethernet HWaddr 82:29:7F:A9:96:18
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::8029:7fff:fea9:9618/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:656 (656.0 B)
Interrupt:32

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:479 errors:0 dropped:0 overruns:0 frame:0
TX packets:479 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30489 (29.7 KiB) TX bytes:30489 (29.7 KiB)

root@x9m_ref:~#
root@x9m_ref:~#
root@x9m_ref:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
^C
--- 192.168.1.1 ping statistics ---
30 packets transmitted, 0 packets received, 100% packet loss
root@x9m_ref:~#
root@x9m_ref:~#
0 Kudos
Reply