This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRA821U-Q1: How to make gateway demo sample for spl booting?

Part Number: DRA821U-Q1

Tool/software:

Hi experts,

Our project use the whole cpsw5g and 8 channel can fd.  Because of the convenience of the spl booting, our gateway project using u-boot as the bootloader. However, the gateway demo is only for sbl booting, and there was no documents for building for spl booting. So, if there were some experience for doing it? Thanks.

  • Hi Mr Ke

         which gateway demo do you want to run?

    Regards

       

  • Hi,

    gateway demos running using CPSW5G and CAN, MCAL ETH drivers on MCU2_1 core.

    So, we are running this using MCU2_0 ETHFE server + MCU2_1 Ethernet client with CAN (MCAL based).

    If you want to run this, you have to boot MCU2_0 and MCU2_1 cores from u-boot.
    As TI tested in CCS no boot mode only, please take care of DDR allocation to MCU2_1 core, to avoid conflict with other cores.

    If you want to run customer app using CPSW5G and CAN at u-boot, you can enable CPSW5G & CAN from u-boot and use.

    Best Regards,
    Sudheer

  • we use ti-processor-sdk-rtos-j7200-evm-10_00_00_03/gateway-demos

  • It sames difficult about booting MCU2 at u-boot booing stage. We let the kernel load firmwares and boot the r5 cores. According your suggestion above, we should use app_remoteswitchcfg_server for MCU2_0, and app_remoteswitchcfg_client for MCU2_1? I have tried this, but there was nothing in the trace log file of MCU2_1. And there were some error message about the linux client proxy:

    12.488570] am65-cpsw-nuss 46000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    [   12.561537] am65-cpsw-nuss c000000.ethernet: PSI-L request err -22
    [   12.601751] am65-cpsw-nuss c000000.ethernet: couldn't enable rx chn: -22
    [   12.826838]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   13.076267]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   13.323842]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   13.570031]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   13.651674] am65-cpsw-nuss c000000.ethernet: PSI-L request err -22
    [   13.665335] am65-cpsw-nuss c000000.ethernet: couldn't enable rx chn: -22
    [   13.732624]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   13.735200]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   13.735437]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   13.735654]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   13.740211] am65-cpsw-nuss c000000.ethernet: PSI-L request err -22
    [   14.655955] am65-cpsw-nuss c000000.ethernet: couldn't enable rx chn: -22
    [   14.877891]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   15.120805]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   15.361677]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   15.612453]  am65_cpsw_nuss_ndo_slave_open+0x354/0x784
    [   15.704824] am65-cpsw-nuss c000000.ethernet: PSI-L request err -22
    [   15.725016] am65-cpsw-nuss c000000.ethernet: couldn't enable rx chn: -22
    

    It seems there were something error about MCU2_1, right?

  • It seems there were something error about MCU2_1, right?

    Hello Mr Ke

          if want to run ETH+CAN forwarding demo, need to configure MCU ETH under R5F core and run the RTOS demo

    Regards

       Semon

  • but if we use only cpsw5g first?

    And, the 4port cpsw eth in main domain have 3 port sgmii and 1 port rgmii

  • gateway demos running using CPSW5G and CAN, MCAL ETH drivers on MCU2_1 core.

    So, we are running this using MCU2_0 ETHFE server + MCU2_1 Ethernet client with CAN (MCAL based).

    If you want to run this, you have to boot MCU2_0 and MCU2_1 cores from u-boot.
    As TI tested in CCS no boot mode only, please take care of DDR allocation to MCU2_1 core, to avoid conflict with other cores.

    If you want to run customer app using CPSW5G and CAN at u-boot, you can enable CPSW5G & CAN from u-boot and use.

    Hello Sudheer

        could you help check if there has patch to enable 4 SGMII port on ETHFW, the phy is 88Q2112,

        is there driver for this PHY chp?

    Thanks

       Semon

  • Hi,

    could you help check if there has patch to enable 4 SGMII port on ETHFW,

    We have SerDes SGMII configuration from SDK as bellow, it has to be called from board_j7200_evm.c file in "ethfw/utils/board/src/j7200/"


    Above will enable all 4 lanes of SerDes in SGMII by default.

    Note:
    Enable SerDes configuration in ETHFW and disable from u-boot and Linux.

    the phy is 88Q2112,

        is there driver for this PHY chp?

    We don't have PHY driver from 88Q2212, check with PHY vendor and Integrate to PDK Enet by following PHY integration Gide shared below.

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-j7200/10_01_00_04/exports/docs/pdk_j7200_10_01_00_25/docs/apiguide/j7200/html/enetphy_guide_top.html


    Best Regards,
    Sudheer