Boot logs for debugging S32G399A-RDB3

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

Boot logs for debugging S32G399A-RDB3

Jump to solution
463 Views
GuilhermeS32G3
Contributor III

Dear NXP fellows,

 

I am currently debugging our custom design board based on the S32G399A-RDB3 model.

For some reason, the PFE0 interface (connected through SGMII to the SerDes and the SJA1110 switch is not working as expected).

I would like to compare some configurations.

So, if possible, using the BSP41.0 and the default configuration (out-of-the box) for all the components, can you provide me the boot log of the board?

Besides, can you run the following commands and provide me the output?

During U-Boot:
mii info
pri hwconfig
//After boot and root login:
ifconfig -a
dmesg | grep pfe0
dmesg | grep sja1110
ethtool pfe0
ethtool pfe1
ip link show pfe0 //Without any ethernet cable connected)
ip link show pfe0 //With Ethernet cable connected at port P2 or P3)
ifconfig pfe0 <IPv4 address>
ping <IPv4 address> //With Ethernet cable connected at port P2 or P3)

 

That would be a valuable resource for my investigation.


Thank you very much,

 

Best regards,

Guilherme

0 Kudos
Reply
1 Solution
428 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @GuilhermeS32G3 

You are welcome and thanks for your post.

All right, please find the attached log for your reference with BSP41 running on RDB3. Some comments below:

mii command seems work incorrect on the current BSP, the command will trigger the board to reset.

Ping test is not included in the log, but it works well from my side.

 

BR

Chenyin

View solution in original post

0 Kudos
Reply
5 Replies
390 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @GuilhermeS32G3

1. If by default no cable connected to the PFE0 interface(P2 or P4), the prints are as following:

pfe0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::204:9fff:febe:ef00 prefixlen 64 scopeid 0x20<link>
ether 00:04:9f:be:ef:00 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)

2. Regarding to the sja1110_switch.bin, yes, it is correct from your assumption.

For SJA1110 related images, they both are generated from the SJA1110 SDK, from S32G forum perspective, the only document related with this topic is the one you mentioned, for the information that beyond this document is not included in our supporting scope.

I do apologize.

 

BR

Chenyin

0 Kudos
Reply
389 Views
GuilhermeS32G3
Contributor III

Hello, @chenyin_h 

 

Ok, thank you very much for your feedback.

 

Best regards,

Guilherme

0 Kudos
Reply
429 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @GuilhermeS32G3 

You are welcome and thanks for your post.

All right, please find the attached log for your reference with BSP41 running on RDB3. Some comments below:

mii command seems work incorrect on the current BSP, the command will trigger the board to reset.

Ping test is not included in the log, but it works well from my side.

 

BR

Chenyin

0 Kudos
Reply
419 Views
GuilhermeS32G3
Contributor III

Hello @chenyin_h ,

 

Thank you for the log, it was certainly helpful.

Yes, I also have this issue with mii info resetting the board from my side. Actually it happens when I use the default configuration, but when I modify the device tree files, it doesn't happen.

 

From your ifconfig output:

pfe0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.192.209.48  netmask 255.255.255.0  broadcast 10.192.209.255
        inet6 fe80::204:9fff:febe:ef00  prefixlen 64  scopeid 0x20<link>
        ether 00:04:9f:be:ef:00  txqueuelen 1000  (Ethernet)
        RX packets 7  bytes 1454 (1.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 21  bytes 2248 (2.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0x46000000-46ffffff
  • Can you confirm that the proper behavior of pfe0 when configured as SGMII is to have non-zero RX packets and TX packets even when no ethernet cable is connected?

 

I also found that this behavior:

[    7.765177] sja1110 spi5.1: Could not get GPIO from device tree
[    7.765196] sja1110 spi5.1: [sja1110_post_probe_upload_worker] Trying to initialize switch
[    7.766772] sja1110 spi5.1: Direct firmware load for sja1110_switch.bin failed with error -2
[    7.766785] sja1110 spi5.1: request_firmware failed with -2
[    7.766790] sja1110 spi5.0: [sja1110_post_probe_upload_worker] Trying to initialize uC
[    7.766822] sja1110 spi5.0: Direct firmware load for sja1110_uc.bin failed with error -2
[    7.766828] sja1110 spi5.0: request_firmware failed with -2

Is due to the position of the J189 jumpers. In the default configuration it just loads the default firmware. When both sides are in state short, then it successfully reads the firmware files from lib/firmware/ folder, as described here.

Screenshot 2024-09-14 103430.png

 

But another question is: How can I get the file sja1110_switch.bin?

Following the Ethernet Enablement Guide, I am able to reconfigure the SJA1110 switch, but it only explains how to generate the flash_image.bin file that corresponds to sja1110_uc.bin. How about the other configuration file? How is it generated?

 

Thank you again,

 

Best regards,

Guilherme

0 Kudos
Reply
450 Views
GuilhermeS32G3
Contributor III

If it is not asking too much, could you please also include the output of the command mdio list from U-boot?

 

Thank you

0 Kudos
Reply