Communication between Dom0 and device connected to SJA1110 on s32g

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

Communication between Dom0 and device connected to SJA1110 on s32g

492 Views
girkulkarni
Contributor I

I have connected a device to sja1110 switch on nxp s32g and got the ip for the device . Now I need to communicate over ethernet from DOM0 / DomU to device using SJA1110 Switch. I am able to ping the switch ip from device , but not able to ping from Dom0 / DomU . 

 

Also I need to share the internet from GMAC0 port to SJA1110 Switch Ports , so that other devices connected to SJA1110 switch can access internet 

 

Let me know , as I am stuck here . I have tried all the examples given in ethernet enablement guide related to SJA1110 switch

0 Kudos
3 Replies

445 Views
andrei_cherechesu
NXP Employee
NXP Employee

Hello, Girish,

 

Can you please provide more details regarding:

  • what BSP version you're using
  • a full log including the commands you ran to configure the networking over Xen

 

Regards,

Andrei Cherechesu

0 Kudos

417 Views
girkulkarni
Contributor I

Hi Andrei,

 

 The linux BSP which I am using is 33.0 and using Goldvip 1.5 Image provided by NXP.

I ran the below commands in U-boot  from ethernet enablement guide to enable the SJA1110 Ports ,

 

setenv hwconfig "pcie0:mode=rc,clock=ext;pcie1:mode=sgmii,clock=ext,fmhz=125,xpcs_mode=both"
setenv pfeng_mode enable,sgmii,sgmii,rgmii
saveenv
reset

 

 

Below are the logs of SJA1110 switch during boot, SJA1110 Firmware has been flashed ,

[ 4.766549] sja1110 spi5.1: Successfully configured!
[ 4.766600] sja1110 spi5.0: [sja1110_post_probe_upload_worker] Trying to initialize uC
[ 4.782953] sja1110 spi5.0: [sja1110_init_hw] loaded fw 'sja1110_uc.bin'
[ 4.782972] sja1110 spi5.0: [sja1110_pre_uc_upload] Found firmware of size 320312
[ 4.783115] sja1110 spi5.0: [sja1110_pre_uc_upload] firmware appears to be valid
[ 4.783190] sja1110 spi5.0: [sja1110_pre_uc_upload] µC not ready for download (Status=0x31)
[ 4.783471] sja1110 spi5.0: Uploading firmware...
[ 5.912053] sja1110 spi5.0: Upload successfully verified!
[ 5.938436] pfeng 46000000.pfe pfe0: configuring for fixed/sgmii link mode
[ 5.938791] pfeng 46000000.pfe pfe0: Link is Up - 1Gbps/Full - flow control off
[ 6.012975] pfeng 46000000.pfe: HIF1 started
[ 6.015651] pfeng 46000000.pfe pfe1: PHY [stmmac-0:08] driver [Aquantia AQR113c] (irq=POLL)
[ 6.015673] pfeng 46000000.pfe pfe1: configuring for phy/sgmii link mode
[ 6.015705] phy-s32gen1-serdes 44180000.serdes: Speed not supported
[ 6.099616] pfeng 46000000.pfe: HIF2 started
[ 6.164600] pfeng 46000000.pfe pfe2: PHY [PFEng Ethernet MDIO.2:04] driver [Micrel KSZ9031 Gigabit PHY] (irq=POLL)
[ 6.164622] pfeng 46000000.pfe pfe2: configuring for phy/rgmii-id link mode

0 Kudos

402 Views
gmocanu
NXP Employee
NXP Employee

Hello, Girish,


One option would be to use the PFE0 interface that is connected to the SJA1110 switch to expose the traffic to/from the switch in the Dom0 VM. For example, if you are using the 192.168.0.x/24 subnet for the devices connected to the SJA1110 switch, assign an IP from this range to the pfe0 interface and try to ping the other devices.

If you intend to share the traffic in any unprivileged domain (i.e., v2xdomu), you will have to create a bridge in the same manner as xenbr0 is currently used, but you'll have to add the pfe0 physical interface to it. More details on how to create such a bridge / network setup can be found in the Linux BSP User Manual, under Networking in DomUs chapter.

Regards,
George

0 Kudos