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.

AM6412: Uboot Query

Part Number: AM6412


Hi Experts

i am trying to boot my am6412 board using usb booting method with prebuild images, it got hanged while loading uboot,img image,Can someone suggest some steps to fix the issue ?

  • Hii Experts

    I am using custom board with am6412 soc,now i am able to get uboot but 1G phy is not working,there is some issues,i am attaching the logs 

    U-Boot SPL 2021.01-g2ee8efd654 (Aug 26 2023 - 11:43:34 +0000)
    EEPROM not available at 80, trying to read at 81
    Reading on-board EEPROM at 0x51 failed 1
    Resetting on cold boot to workaround ErrataID:i2331
    resetting ...

    U-Boot SPL 2021.01-g2ee8efd654 (Aug 26 2023 - 11:43:34 +0000)
    EEPROM not available at 80, trying to read at 81
    Reading on-board EEPROM at 0x51 failed 1
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
    SPL initial stack usage: 13424 bytes
    Trying to boot from DFU
    #############################################DOWNLOAD ... OK
    Ctrl+C to exit ...
    Authentication passed
    Authentication passed
    Authentication passed
    Authentication passed
    init_env from device 10 not supported!
    Starting ATF on ARM64 core...

    NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
    NOTICE: BL31: Built : 07:31:04, Aug 22 2023
    I/TC:
    I/TC: OP-TEE version: 3.20.0 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-20194
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check optee.readthedocs.io/.../porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
    I/TC: HUK Initialized
    I/TC: Activated SA2UL device
    I/TC: Enabled firewalls for SA2UL TRNG device
    I/TC: SA2UL TRNG initialized
    I/TC: SA2UL Drivers initialized
    I/TC: Primary CPU switching to normal world boot

    U-Boot SPL 2021.01-g2ee8efd654 (Aug 26 2023 - 11:43:28 +0000)
    EEPROM not available at 80, trying to read at 81
    Reading on-board EEPROM at 0x51 failed 1
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
    Trying to boot from DFU
    #####DOWNLOAD ... OK
    Ctrl+C to exit ...
    Authentication passed
    Authentication passed


    U-Boot 2021.01-g2ee8efd654 (Aug 26 2023 - 11:43:28 +0000)

    SoC: AM64X SR2.0 HS-FS
    Model: Texas Instruments AM642 EVM
    EEPROM not available at 80, trying to read at 81
    Reading on-board EEPROM at 0x51 failed 1
    DRAM: 2 GiB
    NAND: 0 MiB
    MMC: mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from FAT... MMC: no card present
    In: serial@2800000
    Out: serial@2800000
    Err: serial@2800000
    EEPROM not available at 80, trying to read at 81
    Reading on-board EEPROM at 0x51 failed 1
    Net: Could not get PHY for ethernet@8000000port@1: addr 0
    am65_cpsw_nuss_port ethernet@8000000port@1: phy_connect() failed
    No ethernet found.

    Hit any key to stop autoboot: 0

    According to our design,i have configured all the gpio pins,but i am facing the phy issues,can anyone help to solve this issue?

  • Hi Experts,

    Please find the attached schematic section for your referance.

    ETH_PHY_AM64.pdf

  • Hi,

    Could you please describe the boot flow? It looks like you are starting with USB and then transitioning to Ethernet. What does the u-boot DTS have for the CPSW node?

    Best Regards,

    Schuyler

  • Hi Schuyler

    Thanks for the response

    yes correct we are booting with usb upto u-boot,then we try to do tftp ,at that time ethernet is not working fine,device detected but data transfer is not happening,while trying mdio list command ,device is showing with part number.



      

  • Hi,

    If I understand correctly what you are showing me are you trying to use one of the PRU-ICSSG ethernet ports to do the TFTP boot?

    If that is the case this will not work since the ICSSG ports need a driver loaded. Is one of the CPSW ports available?

    Best Regards,

    Schuyler

  • Hi Schuyler

    If I understand correctly what you are showing me are you trying to use one of the PRU-ICSSG ethernet ports to do the TFTP boot? -----> yes

    If that is the case this will not work since the ICSSG ports need a driver loaded. Is one of the CPSW ports available?----> there is no cpsw port,only icssg port available,Is there any method available to use icsssg driver and make this 1G works ?

  • Hi,

    This could possibly explain why the ethernet is not functioning. There are drivers required for the icssg to function. Usually these are loaded as the kernel boots. To my knowledge not available in u-boot. I will ask a team member to assist with this question.

    Best Regards,

    Schuyler

  • Hi Schuyler

    After complete boot up,In linux i am able to access the ethernet,its working fine

    Thanks for the help