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.

PROCESSOR-SDK-J7200: PROCESSOR-SDK-J7200: ENET-FW running on U-Boot

Part Number: PROCESSOR-SDK-J7200

Dear Champs,

I would like to follow-up below e2e and want to know to run CPSW5G ethfw on u-boot.

Could you please let me know how CPSW5G ethfw can be run on u-boot?

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1132161/processor-sdk-j7200-enet-fw-running-on-u-boot 

"Both ethfw and native-linux-driver can be used to control cpsw5g. From u-boot it is easier to use native-linux-driver. I will mention the changes required for the same in this post. If the customer wants to opt for Ethfw based solution, let me know. Different changed have to made in both ethfw and u-boot to enable that."

Thanks and Best Regards,

SI.

  • Hi,

    Could you please let me know how CPSW5G ethfw can be run on u-boot?

    You can use rproc to load the ethfw on mcu2_0 core. But there will be no virtual mac driver running on A72 in u-boot. Hence, you won't be able to send any data to A72. You can only make a connection to mcu2_0 core. There are no plans to add virtual mac driver support in u-boot.

    Let me know if this satisfies your requirement. 

    Regards,
    Tanmay

  • Hi Tanmay,

    Thanks for the info. Yes. it is ok to load ethfw on mcu2_0 core without virtual mac driver support with A72 in u-boot, and there is no need to send any data to A72.

    Could you please provide more details how customer use rproc to load the ethfw on mcu2_0 core?

    My customer also tried to use rpro as below to load the ethfw, but there was no link-up led turn-on in the EVM after start command.

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1106701/dra821u-cpsw5g-doesn-t-work-on-u-boot 

    rproc init
    load mmc 0:2 0x90000000 /lib/firmware/j7200-main-r5f0_0-fw
    rproc load 2 0x90000000 0x${filesize}
    rproc start 2

    Thanks and Best Regards,

    SI.

  • Hi,

    Can you get the logs for ethfw?

    You can read the remoteproc trace buffer from u-boot. It has the ethfw prints which will be required for further debug.

    To get the address of trace-buffer, you cam check the map file or run the command `readelf -l <ethfw_binary>`. In its output, the Program headers and Segment sections have one-to-one mapping. So check the segment number for trace buffer and the "PhysAddr" for the corresponding entry in Program header is the trace buffer addr. Lets call it ${tracebuf_addr}.

    After loading the rproc image, you can run `md ${tracebuf_addr} 0x300` and in the output you will see the ethfw log. Can you please provide me the logs.

    Can you also tell me the link details like who is the link partner and what the link configurations.

    If you are trying using EVM, you will need to bring the QSGMII phy out of reset. To do this, run `run init_main_cpsw0_qsgmii_phy` from the command prompt.

    Regards,
    Tanmay

  • Hi Tanmay, 

    My customer succeed to link-up and ping in the EVM with below commands.

    Thanks for your support!

    Command : run init_main_cpsw0_qsgmii_phy

    rproc init
    load mmc 0:2 0x90000000 /lib/firmware/j7200-main-r5f0_0-fw
    rproc load 2 0x90000000 0x${filesize}
    rproc start 2     

    Thanks and Best Regards,

    SI.