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.

[FAQ] TDA4VM: How to change the MAC-only port mapped to A72 (Linux) client in Ethernet Firmware + Linux Use Case?

Part Number: TDA4VM

How to change the MAC only port mapped to A72 (Linux) client in case of Ethernet Firmware + Linux Use Case?

  • To change the MAC-only port mapped to A72, we need to make changes in the Ethernet Firmware and the Linux side.

    Ethernet Firmware Side:
    Change the MAC port number corresponding to the hardware MAC port intended to map with A72 (Linux) client under "gEthApp_virtPortCfg" as shown in below.


    Also, make sure that the port is enabled/added under "gEthAppPorts". In above image MAC Port-6 is mapped to A72 instead of MAC Port-1 (default). 

    After changing the MAC port number as required, rebuild Ethernet Firmware as a clean build followed by the build.
    Please refer to User Guide for build options.

    After completion of the build, copy the switch server binary from <SDKR>/ethfw/out/J721E/R5Ft/FREERTOS/release/ to rootfs/lib/firmware/ethfw/ directory in SD Card flashed with Linux SDK if boot mode is SD Boot Mode.

    A72 (Linux) client Side:
    Change the MAC port number in MAC-only node of the Linux device tree file with the hardware MAC port number intended to map with A72, the same as in the Ethernet Firmware as shown in below.


    After changing the MAC Port number in Linux device tree file, build the device tree file using the below command from <SDKL>/ directory.
    # make linux-dtbs

    After completion of the build, copy the dtb files from <SDKL>/board-support/linux-5.10.162+gitAUTOINC+76b3e88d56-g76b3e88d56/arch/arm64/boot/dts/ti/ to rootfs/boot/ directory in SD Card flashed with Linux SDK if boot mode is SD Boot Mode.

    Note: Linux version in the above path could be different as per the SDK version been using.

     

    After the successful completion of changes in Ethernet Firmware and Linux device tree and booting the SOC, you could see MAC Port number map to A72 from Ethernet Firmware log.

    Ethernet Firmware Log:



    Best Regards,
    Sudheer

  • From SDK 9.1, remote client communication frame work is changed EthFw only will allocate the configuration for Linux Client.

    So, Linux side no change required for changing the MAC only Port.

    EthFw side we need to change the below as highlighted below with the required MAC Port Number, along with  "gEthApp_virtPortCfg" update.



    Best Regards,
    Sudheer