flexbuilder lsdk2108 support for SERDES1 protocol 0x3333

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

flexbuilder lsdk2108 support for SERDES1 protocol 0x3333

112 Views
nagurvalisayyad
Contributor I

Hi,

We are using LS1046A in our custom board and the images are compiled using flexbuild lsdk2108 and our design is as similar to the ARDB development kit.  The SERDES1 supports two 10G ports and two 1G ports and SERDES2 is not used.

We have compiled images accroding to our custom board and everything is working fine, both 10G ports(xgmii) and 1G ports(sgmii) are working properly. In one of our application, we want to use both 10G ports as 1G ports. For this, we have changed the rcw, uboot and linux dts files. The files are attached for reference.

After the compilation and board booting, we could see that the linux log is still looking for 10G ports and the ubuntu file system is not showing fm1-mac1 and fm1-mac2 ports.The boot log is attached for reference.

It is evident from the boot log that, we are missing something that needs to be changed. In this regard, it is reqested to support which files needs to be modified to meet our requirements.

Thanks & Regards--

Nagurvali Sayyad.

0 Kudos
Reply
2 Replies

91 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Yes — for LS1046A, changing the two 10G SerDes1 ports to 1G is not just a Linux DTS change. You need all three layers aligned: RCW , U-Boot board Ethernet fixup , and Linux DTS . If Linux still probes the 10G ports and fm1-mac1 / fm1-mac2 do not appear, the most likely issue is that U-Boot is still disabling those MAC nodes in the DT before Linux boots

To make the two LS1046A 10G ports work as 1G ports, you must change the RCW to an SGMII protocol such as 0x3333 , update U-Boot eth.c so it does not disable those MAC nodes, and update the Linux DTS so those ports are described as sgmii with the correct PHY or fixed-link configuration.

 

regards

0 Kudos
Reply

42 Views
nagurvalisayyad
Contributor I

Hi,

Thanks for the reply. As suggested, changes are done in rcw, u-boot and linux dts files. It can be seen in the previous log file attached, the initial messages are showing as below.

"eth0: fm1-mac1, eth1: fm1-mac2, eth2: fm1-mac3, eth3: fm1-mac4, eth4: fm1-mac5, eth5: fm1-mac6
"

After changing the u-boot dts file, fm1-mac1 and fm1-mac2 are appeared. Can you please suggest us what modifications needs to be done in eth.c file.

In addtition, is it required to modify any other files.

Thanks & Regards--

Nagurvali Sayyad.

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2360009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eflexbuilder%20lsdk2108%20support%20for%20SERDES1%20%20protocol%200x3333%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2360009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20are%20using%20LS1046A%20in%20our%20custom%20board%20and%20the%20images%20are%20compiled%20using%20flexbuild%20lsdk2108%20and%20our%20design%20is%20as%20similar%20to%20the%20ARDB%20development%20kit.%26nbsp%3B%20The%20SERDES1%20supports%20two%2010G%20ports%20and%20two%201G%20ports%20and%20SERDES2%20is%20not%20used.%3C%2FP%3E%3CP%3EWe%20have%20compiled%20images%20accroding%20to%20our%20custom%20board%20and%20everything%20is%20working%20fine%2C%20both%2010G%20ports(xgmii)%20and%201G%20ports(sgmii)%20are%20working%20properly.%20In%20one%20of%20our%20application%2C%20we%20want%20to%20use%20both%2010G%20ports%20as%201G%20ports.%20For%20this%2C%20we%20have%20changed%20the%20rcw%2C%20uboot%20and%20linux%20dts%20files.%20The%20files%20are%20attached%20for%20reference.%3C%2FP%3E%3CP%3EAfter%20the%20compilation%20and%20board%20booting%2C%20we%20could%20see%20that%20the%20linux%20log%20is%20still%20looking%20for%2010G%20ports%20and%20the%20ubuntu%20file%20system%20is%20not%20showing%20fm1-mac1%20and%20fm1-mac2%20ports.The%20boot%20log%20is%20attached%20for%20reference.%3C%2FP%3E%3CP%3EIt%20is%20evident%20from%20the%20boot%20log%20that%2C%20we%20are%20missing%20something%20that%20needs%20to%20be%20changed.%20In%20this%20regard%2C%20it%20is%20reqested%20to%20support%20which%20files%20needs%20to%20be%20modified%20to%20meet%20our%20requirements.%3C%2FP%3E%3CP%3EThanks%20%26amp%3B%20Regards--%3C%2FP%3E%3CP%3ENagurvali%20Sayyad.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2360266%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20flexbuilder%20lsdk2108%20support%20for%20SERDES1%20%20protocol%200x3333%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2360266%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EThanks%20for%20the%20reply.%20As%20suggested%2C%20changes%20are%20done%20in%20rcw%2C%20u-boot%20and%20linux%20dts%20files.%20It%20can%20be%20seen%20in%20the%20previous%20log%20file%20attached%2C%20the%20initial%20messages%20are%20showing%20as%20below.%3C%2FP%3E%3CP%3E%22eth0%3A%20fm1-mac1%2C%20eth1%3A%20fm1-mac2%2C%20eth2%3A%20fm1-mac3%2C%20eth3%3A%20fm1-mac4%2C%20eth4%3A%20fm1-mac5%2C%20eth5%3A%20fm1-mac6%3CBR%20%2F%3E%22%3C%2FP%3E%3CP%3EAfter%20changing%20the%20u-boot%20dts%20file%2C%20fm1-mac1%20and%20fm1-mac2%20are%20appeared.%20Can%20you%20please%20suggest%20us%20what%20modifications%20needs%20to%20be%20done%20in%20eth.c%20file.%3C%2FP%3E%3CP%3EIn%20addtition%2C%20is%20it%20required%20to%20modify%20any%20other%20files.%3C%2FP%3E%3CP%3EThanks%20%26amp%3B%20Regards--%3C%2FP%3E%3CP%3ENagurvali%20Sayyad.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2360092%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20flexbuilder%20lsdk2108%20support%20for%20SERDES1%20%20protocol%200x3333%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2360092%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EYes%20%E2%80%94%20for%20LS1046A%2C%20changing%20the%20two%2010G%20SerDes1%20ports%20to%201G%20is%20not%20just%20a%20Linux%20DTS%20change.%20You%20need%20all%20three%20layers%20aligned%3A%20RCW%20%2C%20U-Boot%20board%20Ethernet%20fixup%20%2C%20and%20Linux%20DTS%20.%20If%20Linux%20still%20probes%20the%2010G%20ports%20and%20%3CCODE%20class%3D%22%22%3Efm1-mac1%3C%2FCODE%3E%20%2F%20%3CCODE%20class%3D%22%22%3Efm1-mac2%3C%2FCODE%3E%20do%20not%20appear%2C%20the%20most%20likely%20issue%20is%20that%20U-Boot%20is%20still%20disabling%20those%20MAC%20nodes%20in%20the%20DT%20before%20Linux%20boots%3C%2FP%3E%0A%3CP%3ETo%20make%20the%20two%20LS1046A%2010G%20ports%20work%20as%201G%20ports%2C%20you%20must%20change%20the%20RCW%20to%20an%20SGMII%20protocol%20such%20as%20%3CCODE%20class%3D%22%22%3E0x3333%3C%2FCODE%3E%20%2C%20update%20U-Boot%20%3CCODE%20class%3D%22%22%3Eeth.c%3C%2FCODE%3E%20so%20it%20does%20not%20disable%20those%20MAC%20nodes%2C%20and%20update%20the%20Linux%20DTS%20so%20those%20ports%20are%20described%20as%20%3CCODE%20class%3D%22%22%3Esgmii%3C%2FCODE%3E%20with%20the%20correct%20PHY%20or%20fixed-link%20configuration.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3Eregards%3C%2FP%3E%3C%2FLINGO-BODY%3E