As shown in the block diagram, SOC1 SOC2 and MCU chips are connected to the switch by RGMII interface. SOC1 and SOC2 run the linux operating system, and MCU run the real-time OS. The switch driver is on the SOC1. SOC1 configure the switch(sja1105s)'s registers through spi interface. When the ECU is powered on, MCU initializes in a very short time, the SOC1 and SOC2 take about 10 seconds to up. The start time of SOC1 and SOC2 are the same.
First, the switch driver and mac driver are compiled into the linux kernel,sometimes the network is normal and SOC1 can ping to SOC2. Sometimes, the network is unnormal and SOC1 can't ping to SOC2. Later, the switch driver is compiled to the form ".ko".When load the switch driver by using “insmod” after SOC1 and SOC2 all uped, the network always worked and SOC1 can always ping to SOC2. Recently, there is a problem that the mac is reinitialized by system, and afer reinitialize SOC1 can not ping to SOC2 until rmmod switch drvier and insmod switch driver.
